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.
Senior Software Engineer at Google working on Google Meet 👨💻 Helping developers be more awesome 🔥 author, speaker & nerd 🧙🏼♂️ into JavaScript, TypeScript, Vim & pixelart ❤️
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.
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.
I guess my dip is dvorak (note that only used vim to a point where learn the four keys to move around and that was in a game). I love dvorak so much that I don't want to switch to anything else (tried recently colemak).
I feel like this will make things harder for me.
Do you have any recommendations on that?
Senior Software Engineer at Google working on Google Meet 👨💻 Helping developers be more awesome 🔥 author, speaker & nerd 🧙🏼♂️ into JavaScript, TypeScript, Vim & pixelart ❤️
If you take a look at the vim keybindings it does look like some of them were placed where they are with QWERTY in mind, particularly the basic motion keys under the right hand on the home row. There's also keys that are somewhat associated with each other and are colocated within QWERTY. F.i. ; and , or f and t or d and c, w and e. Other than that there's motions and operators spread all over the keyboard.
I think that you should be able to get accustomed to using vim regardless of where they are located within a keyboard as long as your hands rest in the home row where they can reach all the keys. The most important thing is to spend some time practicing so that moving around, using operators, etc becomes natural and you no longer need to think consciously about it. Try starting with a small set of motions and commands and see if you can get comfy with them and then decide :D
This is just an opinion though, I think we need to find a vim dvorak user to enlighten both of us :D
Senior Software Engineer at Google working on Google Meet 👨💻 Helping developers be more awesome 🔥 author, speaker & nerd 🧙🏼♂️ into JavaScript, TypeScript, Vim & pixelart ❤️
Senior Software Engineer at Google working on Google Meet 👨💻 Helping developers be more awesome 🔥 author, speaker & nerd 🧙🏼♂️ into JavaScript, TypeScript, Vim & pixelart ❤️
Senior Software Engineer at Google working on Google Meet 👨💻 Helping developers be more awesome 🔥 author, speaker & nerd 🧙🏼♂️ into JavaScript, TypeScript, Vim & pixelart ❤️
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
ifstatements and one for function definitions.One thing I'm still missing is the "Go to definition" feature. I know that I can use
ctagsto make that happen but I'll have to find a way to keep them updated.Thank you! Glad that you enjoyed it! :D
There's different ways in which to get that Go To Definition working:
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.
I guess my dip is dvorak (note that only used vim to a point where learn the four keys to move around and that was in a game). I love dvorak so much that I don't want to switch to anything else (tried recently colemak).
I feel like this will make things harder for me.
Do you have any recommendations on that?
Hi Anton! _^
TBH I don't know :)
If you take a look at the vim keybindings it does look like some of them were placed where they are with QWERTY in mind, particularly the basic motion keys under the right hand on the home row. There's also keys that are somewhat associated with each other and are colocated within QWERTY. F.i.
;and,orfandtordandc,wande. Other than that there's motions and operators spread all over the keyboard.I think that you should be able to get accustomed to using vim regardless of where they are located within a keyboard as long as your hands rest in the home row where they can reach all the keys. The most important thing is to spend some time practicing so that moving around, using operators, etc becomes natural and you no longer need to think consciously about it. Try starting with a small set of motions and commands and see if you can get comfy with them and then decide :D
This is just an opinion though, I think we need to find a vim dvorak user to enlighten both of us :D
:O
I've used vim for years and it was great to learn some new things I wish I knew earlier. Thanks!
@vintharas ? More like @vimtharas
🤭
Informative article, I've been using Neovim for about a year now and have just learned a lot again.
Awesome! Stoked that you found it useful! 😀