Re:Vim After 11 Years
by kidambisrinivas on Tuesday February 19, 2013 @10:55PM
(#5248845)
Does any vim plugin support context sensitive auto-complete like Visual Studio (auto-complete only with variables that are alive in the current block of code)? I code in perl and am currently using ctags for autocomplete, but it doesnt autocomplete based on the context.
[ Parent
| on HN ]
My .vimrc does this. I haven't used it much in perl (mainly bash, ruby, and python) but it should work fine.
https://github.com/docwhat/homedir-vim/blob/master/vimrc/.vi...
The important bits are vim's built-in omnicomplete and neocachecompl
Omnicomplete by itself isn't bad. I haven't seen any excellent documentation explaining how it all works, but even without my .vimrc I use C-X-f a lot to complete filenames.
Ciao!