Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: