Vim Advanced - Day 4

Vim Advanced - Day 4

  • 2020-3-1
  1. Number+| Jump to the column Number
  2. Visual mode: o toggle cursor position between the beginning and the end of the highlighting
  3. Visual mode: c-q or c-v enter visual-block mode
  4. Visual mode: g+v start highlighting on previous visual area
  5. Notice the key l. We always use this key to move right but forget another function that it has - It represents the character under cursor. That is to say, if you want to perform an operation on the char under cursor, we can use l to represent it. For instance, we can use y+s+l+surroundings enclose the char with the surroundings we provided.
  6. g+m to the middle of the line

Ref:

  1. Learn Vim For the Last Tiem: A Tutorial and Primer
  2. VSCodeVim Roadmap