Setting up [Neo]Vim for easier project navigation
I’ve been struggling for some time to switch my JS development to Vim, but always ended up with issues of navigating through JS projects quick enough so it will not have effect on my productivity.
I have tried all kind of plugin combination but never felt quite comfortable.
You need to clone repository, compile and install universal ctags. No reason to worry it is very simple process, here is what i had to do on my system (i am running Ubuntu 18.04.1):
$ cd $ git clone https://github.com/universal-ctags/ctags $ cd ctags $ ./autogen.sh $ ./configure $ make $ sudo make install
Depending on your plugin manager you need to add following in your neovim init script or .vimrc:
If you are not sure where your Vim/NeoVim configuration is located you can, start [n]vim and type following:
This will open your [n]vim configuration file ready for editing.
Once you are done with all this restart [n]vim and run in case you are using
After installation is completed, restart [n]vim and that’s it, you have setup ctags to work on all your projects. Tags file will be generated automatically each time you open project.