bookmark

Text editors through the years, and my little "secret" (2011) | Lobsters


Description

" Just to clarify to others. In vim if you are on a word “c” starts a change and the next keystroke determines what will be changed. For example, “c$” removes text from where the cursor is to the end of the line.

Now what is new for me is vim has a concept of “inner text”. Such as things in quotes, or inbetween any two symmetric symbols. The text between those two things are the “inner text”.

For example, in this line, we want to change the “tag stuff” to “anything”.

<tag style="tag stuff">Stuff</tag>

Move the cursor anywhere between the quotes and type ci then a quote and you are left with

<tag style="">Stuff</tag> "

Preview

Tags

Users

  • @bshanks

Comments and Reviews