Created
May 7, 2025 15:51
-
-
Save heavyimage/6d0667c57f5b039cea6de7e08bc9da15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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