Practical Vim Notes 1

  1. use . to repeat last change made. 
  2. f{char} find the next {char} in this line
  3. ; repeat last find command. f, t , etc.
  4. perform substitution  repeat by & and reverse by u  (very useful, tip 4)
  5. cw cut the word
  6. the ideal: one keystroke to move, another one to execute
  7. use -u to load vim with the vim script. -u None for none
  8. Pressing db deletes from the cursor’s starting position to the beginning of the
  9. word
  10. daw, delete the whole word.
  11. {num}<C-a> add first int num. <C-x> reduce first int num
  12. gugU upper case or normal
  13. ap stand for all paragraph
  14. <C-o> repeat last jump
  15. : normal {normal actions:  like A ;}
  16. @: repeat last EX command than we can use @@
  17. While <C-r><C-w> gets the word under the cursor, we can instead use <C-r><C-a>
    if we want to get the WORD at command mode.
  18. In addition to the <Up> and <Down> keys, we can also use the <C-p> and <C-n> chords to go backward and forward through our command history. 
  19.  Press q: and meet the command-line
  20. use ! to run cmd and filter. 


转载于:https://my.oschina.net/edwardpku/blog/144550

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值