I recently started using the Vim editor again. It used to be my favorite because of all the great plugins. I have been getting lazy the past year and have been using nano but recently I had to work on a few systems which only had vim and I was not able to install another editor. I am am going to write a few article’s on my favorite plugins.
Tab complete is probably the best thing about linux and the shell so it only makes sense to be able to use it with vim. Adding this plugin makes it possible to tab complete while using the / to search in vim. Below I will show how to add plugins to vim.
The SearchComplete plugin is available here:
http://www.vim.org/scripts/script.php?script_id=474
Once you download it you need to place it in your vim plugin directory.
The directory should be located in /home/(user)/.vim/plugin
If its not there we can simply create it:
- mkdir -p ~/.vim/plugin
once you create the directory simply place the SearchComplete.vim file inside the plugin folder and restart vim.
You should now be able to tab complete while searching.