Skip to content

Instantly share code, notes, and snippets.

@heavyimage
Created May 7, 2025 15:51
Show Gist options
  • Save heavyimage/6d0667c57f5b039cea6de7e08bc9da15 to your computer and use it in GitHub Desktop.
Save heavyimage/6d0667c57f5b039cea6de7e08bc9da15 to your computer and use it in GitHub Desktop.
func! WordProcessor()
" movement changes
map j gj
map k gk
" formatting text
setlocal formatoptions=1
setlocal noexpandtab
setlocal wrap
setlocal linebreak
" spelling and thesaurus
setlocal spell spelllang=en_us
" set thesaurus+=/home/test/.vim/thesaurus/mthesaur.txt
" thesaurus query -- requires mythes-en-us
let g:tq_openoffice_en_file="/usr/share/mythes/th_en_US_v2"
" complete+=s makes autocompletion search the thesaurus
set complete+=s
"highlight OverLength ctermbg=red ctermfg=white guibg=#592929
"match OverLength /\%100v.\+/
set textwidth=100
set colorcolumn=100
endfu
com! WP call WordProcessor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment