aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin/text/text.vim
blob: c370a74ae32b2375a4768e293f06508adf0ba5dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" ~/.vim/ftplugin/text/text.vim
" Plain text files vim configuration
"
" Syntastic linter: proselint

" 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

let mapleader = " "

call matchadd('ColorColumn', '\%101v', 100)
setlocal textwidth=100

nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/text/text.vim<CR>

" Proselint is slow to act
nnoremap <buffer> <leader>sp :SyntasticCheck proselint<CR>
nnoremap <buffer> <leader>e :Errors<CR>