美文网首页
vi -- advanced

vi -- advanced

作者: 奋斗的迈腾 | 来源:发表于2017-10-13 16:58 被阅读0次

    :.=       returns line number of current line at bottom of screen

    :=        returns the total number of lines at bottom of screen

    ^g/:f     List file info: fine name, number of lines in file, position of cursor in file

    :30 Move cursor to line thirty

    shift + 3    equals ?world( the world which at the position of the mouse) 

    dw  delete worlds

    m      Mark the line on which the cursor resides. Marking requires an identifier.

    ma     Mark the line as identified by the letter "a" by marking with keystroke "ma"

    :set all     - display all mode settings of your editing session.

    :set termcap    - display terminal settings of your editing session.

    :set ic     - Change default to ignore case for text searches

    :set list    Show tabs and end of line markers

    :set nolist   Turn of tab and eol markings

    :r filename read file named filename and insert after current line

    :12,35w     smallfile write the contents of the lines numbered 12 through 35 to a new file named smallfile

    :Explore   List files in your current directory

    :Explore  directory-name     List files in specified directory

    :Vexplore Split with a new vertical window and then list files in your current directory

    :Sexplore Split with a new horizontal window and then list files in your current directory

    相关文章

      网友评论

          本文标题:vi -- advanced

          本文链接:https://www.haomeiwen.com/subject/lcozyxtx.html