DEV Community

Discussion on: Exploring Vim: The 10 or So Things You Need To Know To Go Through The Dip

Collapse
 
vonheikemen profile image
Heiker

Thank you. This was very informative, especially the abbreviations part.

The snippets were one of the last pieces that was missing in my workflow with Vim. I refused to install a snippet plugin because I don't need that many. Now that I know about abbreviations I've created a couple for if statements and one for function definitions.

One thing I'm still missing is the "Go to definition" feature. I know that I can use ctags to make that happen but I'll have to find a way to keep them updated.

Collapse
 
vintharas profile image
Jaime González García • Edited

Thank you! Glad that you enjoyed it! :D

There's different ways in which to get that Go To Definition working:

  1. The "native" way to do that in vim is through the use of tags as you say. There's a great article in this years' vim advent calendar that gives some great pointers
  2. The alternative way to do it is through plugins that support LSP (Language Server Protocol) or something similar, and can understand your code at some level, many of these plugins double as autocompletion and code navigation tools. Some examples: ALE, CoC, some sources of Deoplete, etc. I don't yet have a favorite and I'm still investigating this area.
Collapse
 
vonheikemen profile image
Heiker

Thanks. Now my workflow is complete.

I will go with the file watch approach to update the tag file. It will give me a good excuse to use this utility. It will be enough 90% of the time, for the other 10% I'll jump back to Sublime text.