vim - detect vrapper in .vimrc -
vim - detect vrapper in .vimrc -
in .vimrc have following:
" utilize j/k navigate word completion popup menu inoremap <expr> j pumvisible() ? "\<c-n>" : "j" inoremap <expr> k pumvisible() ? "\<c-p>" : "k"
this works perfect when using vim within terminal, not compatible vrapper (eclipse vim plugin). vrapper stops working when these settings in .vimrc. in home directory have .vrapperrc
file, symobolic link pointing .vimrc
file. hence vim settings loaded vim / vrapper equal.
is there way in .vimrc can observe settings loaded vrapper instead of default (terminal) vim. way disable these settings vrapper , load them when vim used command line. perhaps there different smart way solve issue. of course of study create 2 .vimrc files, 1 default vim , 1 vrapper, way need maintain 2 files prevent.
i had similar problem in vrapper executed contents of functions because didn't understand were.
i solved wrapping vim code
if has("eval") " vim code endif
which caused vrapper ignore it.
vim eclipse-plugin
Comments
Post a Comment