add compatability for neovim < 0.5

This commit is contained in:
Nachuan Tang
2022-07-23 02:55:31 -04:00
parent d6048e7c17
commit 2d8c33c1e2
2 changed files with 10 additions and 6 deletions
+5
View File
@@ -1,5 +1,10 @@
" Modeline and Notes {
" Environment {
" get current neovim version
if has('nvim')
let g:nvim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*')
endif
" The default leader is '\', but many people prefer ',' as it's in a standard
let mapleader = ','
let maplocalleader = '_'