diff options
Diffstat (limited to 'files/vim/ftplugin')
-rw-r--r-- | files/vim/ftplugin/vimwiki/snips/template.txt | 12 | ||||
-rw-r--r-- | files/vim/ftplugin/vimwiki/vimwiki.vim | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/files/vim/ftplugin/vimwiki/snips/template.txt b/files/vim/ftplugin/vimwiki/snips/template.txt new file mode 100644 index 0000000..18280d3 --- /dev/null +++ b/files/vim/ftplugin/vimwiki/snips/template.txt @@ -0,0 +1,12 @@ +--- +title: "Title" +author: +- Íñigo Gutiérrez Fernández + + \ + + UO238186 +date: "10/04/2020" +--- + +# Introducción diff --git a/files/vim/ftplugin/vimwiki/vimwiki.vim b/files/vim/ftplugin/vimwiki/vimwiki.vim index be7054f..f0e6cd5 100644 --- a/files/vim/ftplugin/vimwiki/vimwiki.vim +++ b/files/vim/ftplugin/vimwiki/vimwiki.vim @@ -17,8 +17,10 @@ setlocal textwidth=100 nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/vimwiki/vimwiki.vim<CR> nnoremap <buffer> <leader>e :Errors<CR> +nnoremap <buffer> <leader>t :-1r ~/.vim/ftplugin/vimwiki/snips/template.txt<CR> + nnoremap <buffer> <leader>c :w<CR>:!toPDF.sh "%"<CR><CR> -nnoremap <buffer> <leader>o :w<CR>:!toPDF.sh -o "%"<CR><CR> +nnoremap <buffer> <leader>o :w<CR>:!toPDF.sh -o "%"<CR> " Syntax highlighting colors highlight Title ctermfg=darkblue |