Vim Advanced - Day 6

Vim Advanced - Day 6

  • 2020-3-3
  1. C-n In the native Vim, we can use this shortcut to achieve keyword completion. But in the VSCodeVim the behavior is something different because completion is the killer feature equipped with VSCode that you don't need to type any extra keys to open completion window. So C-n here means toggling cursor among all available candidates.
  2. The Vim supports scp protocol and you can use vim scp://aliyun/Downloads/app.js to edit app.js file under ~/Downloads directory in your remote aliyun machine.
  3. Local Bookmarks Management
    • :marks [a-zA-Z] List all bookmarks (or specified bookmarks only)
    • m+a-z Create a local bookmark
    • m+A-Z Create a global bookmark
    • `+a-zA-Z Jump to the bookmark
    • '+a-zA-Z Jump to the bookmark (stop at the beginning of your bookmarked line)
    Combined with the powerful C-o (Jump backward the cursor's location) and C-i (Jump forward the cursor's location), we can move the cursor from place to place easily.

Ref: Why I love Vim: It’s the lesser-known features that make it so amazing