vimscript-snippets: add version checking
This commit is contained in:
parent
fe4a49f389
commit
c1e836c08d
|
@ -29,3 +29,11 @@ title: Vimscript snippets
|
|||
|
||||
" calling hello#method() will load only if autoload()
|
||||
|
||||
## Misc
|
||||
|
||||
### Version check
|
||||
|
||||
if version < 704
|
||||
echom "requires vim >= 7.4"
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue