Files
dot-vim/vimrc

33 lines
755 B
VimL

execute pathogen#infect()
filetype plugin indent on
set modeline
set background=dark
set shell=/bin/bash
set splitbelow
syntax on
if has('gui_running')
set gfn=Iosevka\ Medium\ 20
colorscheme solarized
let g:solarized_menu=0
else
colorscheme torte
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()