zoukankan      html  css  js  c++  java
  • vim使用技巧

    1.普通模式下

      h:向前移动

      J:向下

      k:向上

      l:向右

      i -> insert befroe letter

      I ->insert beginning line

      a ->append after letter

      A->append after line

      O -> open a new line before the current line

      0 -> open a new lint after current line

      w -> navigates cursor to next word

      W -> navigates cursor to next word(not worrying about symbols)

      e -> navigates to the next end of a word

      E -> navigates to the next end of a word(not worrying about symbols)

      

      r -> Replaces a single character

      R -> Replaces untill we tell it to stop

      c -> Changes whatever we specifiy(using a modifier)

      C -> Changes untill the end of a line

       x -> Deletes a single character at the cursor

      X -> Deletes a single character before the cursor

      d -> Deletes whatever we specify (using a modifier)

      D -> Deletes untill the end of a line

      

      y -> Yanks whatever we specify (using a modifier)

      Y -> Yanks the entire current line

      p -> pastes from the vim buffer after the current cursor position

      P -> pastes from this vim buffer before the current cursor position

      u -> 撤销  http://blog.csdn.net/xiongzhengxiang/article/details/7206691

      

      gg -> scoll to top

      G -> scoll to buttom

      :split  (ctrl + w + s)-> 上下分割

      :vsplit (ctrl + w + v)->左右分割--类似于tmux

      :tabnew -> 创建新的tab

      :tabp -> 前一个tab,:tabn->下一个tab

      

      : set nu - line Numbers

      : set rnu relative Line Numbers

      : 

  • 相关阅读:
    HTML screenX 事件属性
    CSS Display(显示) 与 Visibility(可见性)
    JavaScript手册 | JS Array 对象中的sort() 方法
    IntelliJ IDEA收费版本Ultimate的安装和破解
    ASP.NET Style 控件
    HTML area hreflang 属性
    Shell test 命令
    ftplib (Internet) – Python 中文开发手册
    Java 之 Collection 接口
    java 之 集合概述
  • 原文地址:https://www.cnblogs.com/Iqiaoxun/p/5825549.html
Copyright © 2011-2022 走看看