3 ms·
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)?
by kidambisrinivas 14y ago
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.
- docwhat 14y agoMy .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/.vimrc 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!