快捷搜索:   服务器  安全  linux 安全  MYSQL  dedecms

vim quick ref card(2)


    zH zL . . . . . . . . . . . . . scroll half a screen to the right, left
    ?Ws or :split - . . . . . . . . . . . . . . . . . . . split window in two
    ?Wn or :new - . . . . . . . . . . . . . . . .create new empty window
    ?Wo or :on - . . . . . . . make current window one on screen
    ?Wj ?Wk . . . . . . . . . . . . . . . . .move to window below, above
    ?Ww ?W?W. . . . . . . . .move to window below, above (wrap)
    Ex commands ( -)
    :e f . . . . . . . edit file f, unless changes have been made
    :e! f . . . . edit file f always (by default reload current)
    :wn :wN . . . . . . . . . write file and edit next, previous one
    :n :N. . . . . . . . . . . . . . . . . . . . edit next, previous file in list
    :rw . . . . . . . . . . . . . . . . . . . . . . . write range r to current file
    :rw f . . . . . . . . . . . . . . . . . . . . . . . . . . .write range r to file f
    :rw>>f . . . . . . . . . . . . . . . . . . . . . . .append range r to file f
    :q :q!. . . . .quit and confirm, quit and discard changes
    :wq or :x or ZZ . . . . . . . . . . . . . write to current file and exit
    hupi hdowni. . . . recall commands starting with current
    :r f . . . . . . . . . . . . . . insert content of file f below cursor
    :r! c . . . . . . . . insert output of command c below cursor
    :all . . open a window for each file in the argument list
    :args . . . . . . . . . . . . . . . . . . . . . . . display the argument list
    Ex ranges
    , ; . . . . . . separates two lines numbers, set to first line
    n. . . . . . . . . . . . . . . . . . . . . . . . . . . an absolute line number n
    . $ . . . . . . . . . . . . . . . . the current line, the last line in file
    % * . . . . . . . . . . . . . . . . . . . . . . . . . . . . . entire file, visual area
    ’t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . position of mark t
    /p/ ?p?. . . . . . .the next, previous line where p matches
    +n -n . . . . . . . . . . .+n, ?n to the preceding line number
    Folding
    zfm . . . . . . . . . . . . . . . . . . . . . . . create fold of movement m
    :rfo. . . . . . . . . . . . . . . . . . . . . . . . . . . .create fold for range r
    zd zE . . . . . . . . . . . . . . delete fold at cursor, all in window
    zo zc zO zC . . . . . . . . . . open, close one fold; recursively
    [z ]z. . . . . . . . . .move to start, end of current open fold
    zj zk . . . . . . . . move down, up to start, end of next fold
    Miscellaneous
    :sh - :!c - . . . start shell, execute command c in shell
    K. . . . . . . . . . . . . . . lookup keyword under cursor with man
    :make - . . . . . . start make, read errors and jump to first
    :cn - :cp - . . . . . . . . . . display the next, previous error
    :cl - :cf - . . . . . . . list all errors, read errors from file
    ?L ?G . . . . . . . redraw screen, show filename and position
    g?G . . . show cursor column, line, and character position
    ga . . . . . . . . . show ASCII value of character under cursor
    gf. . . . . . . . . . . . .open file which filename is under cursor
    :redir>f - . . . . . . . . . . . . . . . . . . redirect output to file f
    :mkview [f] . . . . . . . . . save view configuration [to file f]
    :loadview [f] . . . . load view configuration [from file f]
    ?@ ?K ? \ Fn ?Fn. . . . . . . . . . . . . . . . . . . .unmapped keys
    This card may be freely distributed under the terms of the GNU
    general public licence — Copyright c
     2003 by Laurent Gr′egoire
    [email protected] — v1.5 — The author assumes no
    responsibility for any errors on this card. The latest version can

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论