aboutsummaryrefslogtreecommitdiff
path: root/files/vim/ftplugin/vimwiki/vimwiki.vim
blob: 7164c1c0ae63bab224e4012fb3df734f34fee006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
" ~/.vim/ftplugin/vimwiki.vim
" vimwiki-specific vim configuration
"
" Syntastic linter: mdl, proselint, textlint

" Tabs hate: tabs are expanded to 2 spaces
set tabstop=2 shiftwidth=2 expandtab
" Show existing tabs (they can be deleted with :retab)
set list

" Column marker: 80 characters
call matchadd('ColorColumn', '\%81v', 100)
set textwidth=80

let g:syntastic_vimwiki_checkers = ['markdown/mdl']

nnoremap <leader>C :sp ~/.vim/ftplugin/vimwiki/vimwiki.vim<CR>
nnoremap <leader>e :Errors<CR>

nnoremap <leader>c :w<CR>:!toPDF.sh %<CR><CR>
nnoremap <leader>o :w<CR>:!toPDF.sh -o %<CR><CR>