aboutsummaryrefslogtreecommitdiff
path: root/ftplugin/text.vim
blob: 9097834acf7279f869fd4c82d6ff98a164067e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
" highlight double words (its unlikely they are right)
autocmd InsertLeave * syntax match Convention /\v<(\w+)\_s+\1>/ containedin=ALL


set autoindent nosmartindent nocindent

set formatoptions+=n " When formatting text, recognize numbered lists.
set formatoptions+=1 " do not break after a one letter word
" set formatoptions+=p " Don't break lines at single spaces that follow periods.

set formatoptions+=aw " Automatic formatting of paragraphs (w=only if space in the end)


set noexpandtab
set spell
set complete+=kspell

inoremap <C-Space> <C-n>

" nnoremap <c-s> :normal <c-n>
" autocmd CursorHoldI * normal <c-x>s
..