I would like to know how I could set up script names auto completion in vim ?
For example let's say I have myscript.sh
in ~/bin
and ~/bin
is in my $PATH, I would like to type mys
in vim and get auto completion.
I think it should be possible with CTRL-X CTRL-U
or CTRL-X CTRL-O
but not sure how.
Note: I've already an Omni completion set up by let &runtimepath pointing to a vim program directory.
Thanks for your help !
:let &runtimepath.=','.$MYPROGRAM_VIMPATH
and:set completeopt=longest,menuone
in .vimrc to activate auto completion. I just wanted to notice this such that I do not break this auto completion.~/.vim/after/syntax/plumed.vim
and then write an ftdetect to set the filetype (thereby setting the syntax) for the appropriate files. This is what most language plugins do, except they don't use after (and, however you install your plugins, they get automatically put on the runtimepath)