aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-25 00:25:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-25 00:25:31 +1200
commit9ee1c06c9623911d72f0d5d6ebde67265b09bf43 (patch)
treec24abc297ea4a2184fd41feb064ef80d55a17399 /vim/vimrc
parentAdd missing character to &runtimepath substitute (diff)
downloaddotfiles-9ee1c06c9623911d72f0d5d6ebde67265b09bf43.tar.gz
dotfiles-9ee1c06c9623911d72f0d5d6ebde67265b09bf43.zip
Use simpler method to get first part of &spelllang
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1f955871..6dc685f8 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -406,7 +406,7 @@ endif
set spelllang=en_nz
Establish $MYVIM/cache/spell
let &spellfile = $MYVIM.'/cache/spell/'.join([
- \ substitute(&spelllang, '_.*', '', '')
+ \ split(&spelllang, '_')[0]
\,&encoding
\,'add'
\], '.')