Add 'WP' function, spelling and thesaurus files
This commit is contained in:
14
vimrc
14
vimrc
@@ -16,3 +16,17 @@ endif
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
|
||||
set ai et nu ts=2 sw=2 wm=0 tabpagemax=100
|
||||
|
||||
func! WordProcessor()
|
||||
map j gj
|
||||
map k gk
|
||||
setlocal formatoptions=1
|
||||
setlocal noexpandtab
|
||||
setlocal wrap
|
||||
setlocal linebreak
|
||||
setlocal spell spelllang=en_us,es_mx
|
||||
set thesaurus+=$HOME/.vim/thesaurus/mthesaur.txt
|
||||
set complete+=s
|
||||
endfu
|
||||
com! WP call WordProcessor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user