<-

Clearing the Current Row in Vim

Today I learned something really useful which started saving me a lot of time in vim. Up until recently, whenever I had to replace the content of the current row in a file, I had to:

However, recently I realized that there is a default key-bind of S, which will clear the content of the current row and put you into insert mode at the correct indentation level. The workflow then becomes:

While this may seem like marginal improvements, it’s one less step which adds up over time. Hope this helped!