You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
451 B
20 lines
451 B
function! mine#functions#text() abort |
|
" set spellchecking |
|
set spell |
|
|
|
" Add undo points when this punctuation is added |
|
inoremap <buffer> ! !<C-g>u |
|
inoremap <buffer> , ,<C-g>u |
|
inoremap <buffer> . .<C-g>u |
|
inoremap <buffer> : :<C-g>u |
|
inoremap <buffer> ; ;<C-g>u |
|
inoremap <buffer> ? ?<C-g>u |
|
endfunction |
|
|
|
function! mine#functions#colorcols() abort |
|
if &textwidth > 0 |
|
setlocal colorcolumn=+0 |
|
else |
|
setlocal colorcolumn=80,100 |
|
endif |
|
endfunction
|
|
|