diff options
Diffstat (limited to 'files/vim')
-rw-r--r-- | files/vim/ftplugin/sh/sh.vim | 1 | ||||
-rw-r--r-- | files/vim/ftplugin/tex/tex.vim | 3 | ||||
-rw-r--r-- | files/vim/ftplugin/vimwiki/vimwiki.vim | 7 |
3 files changed, 8 insertions, 3 deletions
diff --git a/files/vim/ftplugin/sh/sh.vim b/files/vim/ftplugin/sh/sh.vim index f9c4a21..786fdf8 100644 --- a/files/vim/ftplugin/sh/sh.vim +++ b/files/vim/ftplugin/sh/sh.vim @@ -4,6 +4,7 @@ " Linters: sh, shellcheck call matchadd('ColorColumn', '\%101v', 100) +setlocal textwidth=80 nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/sh/sh.vim<CR> nnoremap <buffer> <leader>+x :!chmod 744 %<CR><CR> diff --git a/files/vim/ftplugin/tex/tex.vim b/files/vim/ftplugin/tex/tex.vim index 1414c60..a60be03 100644 --- a/files/vim/ftplugin/tex/tex.vim +++ b/files/vim/ftplugin/tex/tex.vim @@ -4,8 +4,9 @@ " Syntastic linters: chktex, lacheck, proselint call matchadd('ColorColumn', '\%91v', 100) +setlocal textwidth=80 -nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/tex.vim<CR> +nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/tex/tex.vim<CR> nnoremap <buffer> <leader>e :Errors<CR> " proselint not enabled by default (it's slow) nnoremap <buffer> <leader>sp :SyntasticCheck proselint<CR> diff --git a/files/vim/ftplugin/vimwiki/vimwiki.vim b/files/vim/ftplugin/vimwiki/vimwiki.vim index 68970fd..2029fcb 100644 --- a/files/vim/ftplugin/vimwiki/vimwiki.vim +++ b/files/vim/ftplugin/vimwiki/vimwiki.vim @@ -17,5 +17,8 @@ setlocal textwidth=80 nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/vimwiki/vimwiki.vim<CR> nnoremap <buffer> <leader>e :Errors<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>c :w<CR>:!toPDF.sh "%"<CR><CR> +nnoremap <buffer> <leader>o :w<CR>:!toPDF.sh -o "%"<CR><CR> + +" Syntax highlighting colors +highlight Title ctermfg=darkblue |