VIM编辑器中如何快速在一行中定位

来源:互联网 发布:手机透镜桌面软件 编辑:程序博客网 时间:2024/04/30 14:05
  • You can use $0, and ^ to move to line endpoints and then use w and b. Also, adding a numeric argument to w and b can accelerate the process, so using 6w instead of just wcan put you about to where ou need to be.
  • Using f and t to move to individual characters will help also. (I use this typically with punctuation. If, for example, I have four sentences on one long line 2f. will go to the end of the second sentence)
  • Using the ( and ) keys are an alternative way to navigate entire sentences.
  • Splitting out long lines into multiple lines (manually, or with set tw=72 [or 80]) can make editing them simpler. You can always join them later with J.
  • Something I just discovered, you can move up and down one displayed line by using gj and gk. That way, you can treat your one wrapped line as multiple lines
0 0
原创粉丝点击