Skip to content

Instantly share code, notes, and snippets.

@syscall0x80
Created December 18, 2015 02:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syscall0x80/c4b030c75de922bb5b5d to your computer and use it in GitHub Desktop.
Save syscall0x80/c4b030c75de922bb5b5d to your computer and use it in GitHub Desktop.

海盗哥talks about vim

  1. visual 模式下面能用o来切换选中上下

  2. repeat: .,用来重复上一次对字符串的操作

  3. visual模式下可以这样用:

        :'<,'>g/text_feature/vimcommand
        :'<,'>g/text_feature/s/this/that
        :'<,'>g/text_feature/normal d$

    g => grep v => grep -v

  4. surround: 这个插件值得一看. (个人感觉是因为这个插件做得非常符合vim哲学)

  5. jumplist: c-o and c-i

  6. changelist: g; and g,

  7. register:

    1. "by 复制到register b
    2. "bp 输出register b
  8. macro:

    1. 实现和register在一起的. 能直接修改(叼爆了)
  9. jump paragraphs/defs: [[ and ]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment