mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-20 07:01:12 +00:00
restore cpo vim plugin
This commit is contained in:
parent
0f7e95ccc0
commit
decb4192aa
|
@ -1,11 +1,19 @@
|
||||||
if exists("g:himalaya_loaded")
|
if exists("g:loaded_himalaya")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:himalaya_loaded = 1
|
|
||||||
|
|
||||||
if !executable("himalaya")
|
if !executable("himalaya")
|
||||||
throw "Himalaya CLI not found, see https://github.com/soywod/himalaya#installation"
|
throw "Himalaya CLI not found, see https://github.com/soywod/himalaya#installation"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Backup cpo
|
||||||
|
let s:cpo_backup = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
command! -nargs=* Himalaya call himalaya#msg#list(<f-args>)
|
command! -nargs=* Himalaya call himalaya#msg#list(<f-args>)
|
||||||
|
|
||||||
|
" Restore cpo
|
||||||
|
let &cpo = s:cpo_backup
|
||||||
|
unlet s:cpo_backup
|
||||||
|
|
||||||
|
let g:loaded_himalaya = 1
|
||||||
|
|
Loading…
Reference in a new issue