From 1aafc924346e13f206a38812211b88e86c879874 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Thu, 21 Nov 2013 12:30:28 -0600 Subject: [PATCH] Add generic vim improvements * spellchecking * make quickfix take up lower third, regardless of windows --- vim/vimrc.symlink | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index 8ac5469..0e31d93 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -66,7 +66,7 @@ if has("autocmd") && !exists("autocommands_loaded") autocmd FileType ruby setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType html setlocal ts=4 sts=4 sw=4 noexpandtab indentkeys-=* autocmd FileType jade setlocal ts=2 sts=2 sw=2 noexpandtab - autocmd FileType *.md.js :call SyntasticReset + autocmd FileType *.md.js :call SyntasticReset "autocmd WinEnter * setlocal cursorline "autocmd WinLeave * setlocal nocursorline @@ -79,9 +79,9 @@ if has("autocmd") && !exists("autocommands_loaded") autocmd BufNewFile,BufRead *.ejs set filetype=html autocmd BufNewFile,BufRead *.ino set filetype=c - " make quickfix windows take all the lower section of the screen when there - " are multiple windows open - autocmd FileType qf wincmd J + " make quickfix windows take all the lower section of the screen when there + " are multiple windows open + autocmd FileType qf wincmd J endif " code folding settings @@ -206,6 +206,9 @@ map e :e! ~/.vimrc " clear highlighted search noremap :set hlsearch! hlsearch? +" activate spell-checking alternatives +nmap ;s :set invspell spelllang=en + " toggle invisible characters set invlist set listchars=tab:▸\ ,eol:¬,trail:⋅,extends:❯,precedes:❮ @@ -319,3 +322,4 @@ if (has("gui_running")) endif let vimrc_already_sourced = 1 +