diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2020-07-09 01:10:36 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2020-07-09 01:10:36 +0200 |
commit | faeb7cab78f10b8359b2fa86a96e6861e2b86e3f (patch) | |
tree | 6925703f1977533e92f621a61ef929fd3f36be7e /files/vim/ftplugin/vimwiki/vimwiki.vim | |
parent | bac1cf42d0ae8c0afdaf843b6dbff494b30354d9 (diff) | |
download | configs-faeb7cab78f10b8359b2fa86a96e6861e2b86e3f.tar.gz configs-faeb7cab78f10b8359b2fa86a96e6861e2b86e3f.zip |
Trying space as leader for vim ftplugins.
Diffstat (limited to 'files/vim/ftplugin/vimwiki/vimwiki.vim')
-rw-r--r-- | files/vim/ftplugin/vimwiki/vimwiki.vim | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/files/vim/ftplugin/vimwiki/vimwiki.vim b/files/vim/ftplugin/vimwiki/vimwiki.vim index f0e6cd5..e8f7a18 100644 --- a/files/vim/ftplugin/vimwiki/vimwiki.vim +++ b/files/vim/ftplugin/vimwiki/vimwiki.vim @@ -3,25 +3,31 @@ " " Syntastic linter: mdl, proselint, textlint -let g:syntastic_vimwiki_checkers = ['markdown/mdl'] +"let g:syntastic_vimwiki_checkers = ['markdown/mdl'] " Tabs hate: tabs are expanded to 2 spaces setlocal tabstop=2 shiftwidth=2 expandtab " Show existing tabs (they can be deleted with :retab) setlocal list -" Column marker: 80 characters -call matchadd('ColorColumn', '\%101v', 100) -setlocal textwidth=100 +" Text width +match ColorColumn /\%81v/ +setlocal textwidth=80 +setlocal linebreak + +" Syntax highlighting colors +highlight Title ctermfg=blue +highlight TitleHash ctermfg=cyan +match TitleHash /^##*/ 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>tt :r ~/.vim/ftplugin/vimwiki/snips/template.txt<CR> +nnoremap <buffer> <leader>tp :r ~/.vim/ftplugin/vimwiki/snips/plantUml.txt<CR>/<+++><CR>cf> nnoremap <buffer> <leader>c :w<CR>:!toPDF.sh "%"<CR><CR> -nnoremap <buffer> <leader>o :w<CR>:!toPDF.sh -o "%"<CR> - -" Syntax highlighting colors -highlight Title ctermfg=darkblue +nnoremap <buffer> <leader>o :w<CR>:!toPDF.sh -o "%"<CR><CR> +inoremap <buffer> <leader>h <Esc><<A +inoremap <buffer> <leader>l <Esc>>>A |