Tim Pope has a blog post detailing his workflow with Git hooks.Ī lot of people also love the popular Gutentags plugin. Several people have different techniques to keep the tags file up-to-date as you edit. Universal ctags is an often recommended ctags implementation, since it's actively maintained and has good language coverage.įor Javascript filetypes, I actually rely on es-ctags, which uses the Tern static analysis engine to generate a tags file. To work with ctags, all you have to do is generate a tags file (preferably in project root): $ ctags -R. Ctags tags important parts of your code so you can jump around the project without the restriction of include files. Now I can jump to definitions in required files!įurther reading: :help definition-search in Vim: hotlink. Javascript), we can repurpose it to match variable definitions instead.įor my Javascript filetype, I have: let
0 Comments
Leave a Reply. |