zoukankan      html  css  js  c++  java
  • vi同类品

    nvi

    更纯正,接近原始的vi

    command argument
    -F    don't copy whole file, may faster
    -S    secure

    help (quick reference)
    :exusage
    :viusage

    init
    /etc/vi.exrc => ~/.nexrc or ~/.exrc

    multi window
    Edit   
    Fg
    fg  bg
    Next  edit next file in args at new window
    Previous
    Visual
    di[splay] b[uffers]
    di[splay] s[creens]

    elvis

    显示模式很有特色,比如可以实现分屏,一边编辑html,一边即时查看效果

    Q    vi-mode to ex-mode
    cmd args
    -?    options list
    -s    read from stdin an excute ex script, ignore init file
    -i    start with input-mode

    multi window
    sp[lit]     new window
    new    new buffer
    sne[w]    new buffer and window
    sn[ext]    next file in args
    sN[ext] previous file in args
    sre[wind]    first file in args
    sl[ast]        last
    sa[ll]        create window for file without window in args
    close        close window not affect buffer
    wquit        write buffer to file and close window
    qall        close all not affect buffer without window
    wi[ndow] [target]    list all window if no target
        target:
        +    ^W k    switch to next window
        ++    ^W ^W    switch round
        -    ^W j    previous window
        --    ^W ^W
        num    window=num
        buffer-name

    ^w c    :close
    ^w d    change mode on syntax and html,man,tex
    ^w j    next
    ^w k    previous
    ^w n    :snew
    ^w q    ZZ
    ^w s    :split
    ^w S    change wrap option, wrap or scroll
    ^w ]    :stag
    [count] ^w ^w    next or count's
    ^w +    increase size (only for termcap)
    ^w -    decrease size
    ^w     maxmium window


    visual mode
    v    text field, one char every time
    V    one line
    ^v    rectangle area

    program assist
    cc
    mak[e]
    er[rlist]    next error position

    display mode
    di[splay] [mode [lang]]        change mode ,lang stand for syntax
    no[rmal]    same as :di normal


    elvis.brf    before reading file, default check extend name
    elvis.arf    after reading file, check name, open syntas heighlight
    elvis.bwf    before writing file, backup
    elvis.awf    after writing file

    vile

    类似emacs的vi

    help document
    :show-commands    list of vile cmd with shortly describe
    :apropos    cmd name contain specified string
    :describe-key    show describe of input cmd
    :describe-function

    init
    $XVILE_MENU => .vilemenu    set X11 menu
    $VILEINIT =>$VIL_STARTUP_FILE =>.vilerc => .exrc

    multi window
    :split        split-current-window

    delete-other-windows    ^o, ^x 1
    delete-window        ^k, ^x 0
    edit-file,E,e        ^x e
    find-file        ^x e
    grow-window        V    increase count line at current window
    shrink-window        v    decrease count line
    move-next-window-down    ^a ^e    scroll text up in other window
    move-next-window-up    ^a ^y
    move-window-left    ^x ^l
    move-window-right    ^x ^r
    next-window        ^x o
    position-window        z where        where may be center(. M m),top(ENTER H t), bottom(- L b)
    previous-window        ^x O   
    resize-window            change window as counts lines
    restore-window   
    save-window            mark a window, use for restore
    scroll-next-window-down    ^a ^d    half screen
    scroll-next-window-up    ^a ^u
    view-file            readonly open file
    historical-buffer    _    nine buffer lists
    toggle-buffer-list    *    pop a window, show all buffer

    quoted motion
    1q,q    heighlight  by char
    2q    line
    3q    rectangle
    ^s      refer to quote field

    ^x !cmd        run cmd
    ^x ^x        next error

  • 相关阅读:
    A1141. PAT Ranking of Institutions
    A1140. Look-and-say Sequence
    A1139. First Contact
    A1138. Postorder Traversal
    A1137. Final Grading
    A1136. Delayed Palindrome
    A1135. Is It A Red-Black Tree
    A1134. Vertex Cover
    A1133. Splitting A Linked List
    layer.open打开iframe页面的调用父页面方法及关闭
  • 原文地址:https://www.cnblogs.com/sukai/p/3834978.html
Copyright © 2011-2022 走看看