From 76d159a083494a14e03602ab056ac9b0bf728259 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 29 Mar 2014 10:23:22 -0500 Subject: [PATCH] .vimrc: spelllang=en_us Set spelllang centrally at the start rather than in individual bindings. --- .vimrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index fbda036..4ffc902 100644 --- a/.vimrc +++ b/.vimrc @@ -145,6 +145,7 @@ set smarttab " smarter softtab handling set formatoptions+=n " support for numbered/bullet lists set textwidth=0 " no line-wrapping by default set virtualedit=block " allow virtual edit in visual block .. +set spelllang=en_us " spell-check dictionary " ---------------------------------------------------------------------------- " Filename exclusions @@ -214,8 +215,8 @@ nnoremap :NERDTreeToggle " to toggle Gundo nnoremap :GundoToggle " to toggle spell-check -nnoremap :setlocal spell! spelllang=en_us spell? -inoremap :setlocal spell! spelllang=en_us spell? +nnoremap :setlocal spell! spell? +inoremap :setlocal spell! spell? " leader-based keyboard shortcuts let mapleader = "," @@ -260,7 +261,7 @@ nmap L mQgewvu`Q " strip all trailing whitespace in file nmap s :call whitespace#strip_trailing() " toggle spell-check -nmap sp :setlocal spell! spelllang=en_us spell? +nmap sp :setlocal spell! spell? " set text wrapping toggles nmap tw :set wrap! wrap? " set list-whitespace-chars toggle @@ -289,13 +290,13 @@ augroup vimrc_autocmds au Filetype sh,bash set ts=4 sts=4 sw=4 expandtab let g:is_bash = 1 " git commit message - au Filetype gitcommit set tw=68 spell spelllang=en_us + au Filetype gitcommit set tw=68 spell " html variants au Filetype html,xml,xsl,rhtml source $HOME/.vim/scripts/closetag.vim " don't use cindent for javascript au FileType javascript setlocal nocindent " use Octopress syntax-highlighting for *.markdown files - au BufNewFile,BufRead *.markdown set filetype=octopress spell spelllang=en_us + au BufNewFile,BufRead *.markdown set filetype=octopress spell " in Makefiles, use real tabs not tabs expanded to spaces au FileType make setlocal noexpandtab augroup END @@ -306,4 +307,3 @@ augroup END let g:manpageview_pgm= 'man -P "/usr/bin/less -is"' let $MANPAGER = '/usr/bin/less -is' - -- 2.43.0