diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -104,8 +104,8 @@ scriptencoding utf-8 " if !exists('$MYVIM') let $MYVIM = map( - \ split(&runtimepath, '\\\@<!,[, ]*') - \,'substitute(v:val, ''\\,'', '''', ''g'')' + \ split(&runtimepath, '\\\@<!,[, ]*'), + \ 'substitute(v:val, ''\\,'', '','', ''g'')', \)[0] endif @@ -406,19 +406,19 @@ endif set spelllang=en_nz Establish $MYVIM/cache/spell let &spellfile = $MYVIM.'/cache/spell/'.join([ - \ substitute(&spelllang, '_.*', '', '') - \,&encoding - \,'add' + \ split(&spelllang, '_')[0], + \ &encoding, + \ 'add', \], '.') -" Spell checking includes optional support for catching lowercase letters at +" Spell checking includes optional support for catching lower case letters at " the start of sentences, and defines a pattern in 'spellcapcheck' for the end " of a sentence. The default is pretty good, but with two-spacing with " 'cpoptions' including 'J' and 'formatoptions' including 'p' as set later in -" this file, we can be less ambiguous in this pattern. We requre two +" this file, we can be less ambiguous in this pattern. We require two " consecutive spaces, a newline, a carriage return, or a tab to mark the end " of a sentence. This means that we could make abbreviations like "i.e. -" something" without flatting "something" as a spelling error. +" something" without flagging "something" as a spelling error. " " We use :let syntax rather than :set here, just to avoid a whole bunch of " annoying escaping for the value. |