li3的笔记 https://bbs.21ic.com/?12283 [收藏] [复制] [RSS]

日志

( VIM GVIM ) 与 VIM6 比较 VIM7 新功能 总结 (2006-03-18)

已有 3163 次阅读2006-3-18 14:17 |个人分类:vim与gvim技巧|系统分类:芝麻流水帐

                                
Go to Table of Content...

//2006-03-18 @ 15:02 By
|i_CTRL-X|                 CTRL-X {mode}   enter CTRL-X sub mode, see |i_CTRL-X_index|
|i_<PageUp>|               <PageUp>        one screenful backward
|i_<PageDown>|             <PageDown>      one screenful forward
*************************************************************************
CTRL-X submode                              *i_CTRL-X_index*
*************************************************************************
|i_CTRL-X_CTRL-O|          CTRL-X CTRL-O   omni completion
|i_CTRL-X_CTRL-S|          CTRL-X CTRL-S   spelling suggestions
|i_CTRL-X_CTRL-U|          CTRL-X CTRL-U   complete with 'completefunc'
|i_CTRL-X_CTRL-V|          CTRL-X CTRL-V   complete like in : command line
|i_CTRL-X_s|               CTRL-X s        spelling suggestions
*************************************************************************
                           insert; synonym for "cc".
*************************************************************************
|[|                        [{char}          square bracket command (see |[| below)
|]|                        ]{char}          square bracket command (see |]| below)
|g|                        g{char}          extended commands, see |g| below
|z|                        z{char}          commands starting with 'z', see |z| below
|<MiddleMouse>|            <MiddleMouse> 2  same as "gP" at the mouse click position
|v_aquote|                 a"               double quoted string
|v_a'|                     a'               single quoted string
|v_a`|                     a`               string in backticks
|v_iquote|                 i"               double quoted string without the quotes
|v_i'|                     i'               single quoted string without the quotes
|v_i`|                     i`               string in backticks without the backticks
|CTRL-W_F|                 CTRL-W F         split window and edit file name under the
|g<|                       g<               display previous command output
|gF|                       gF               start editing the file whose name is under following the filename.
|g@|                       g@{motion}       call 'operatorfunc'
|z=|                       z=               give spelling suggestions
|zG|                       zG               mark word as good spelled word
|zW|                       zW               mark word as wrong (bad) spelled word
|zg|                       zg               mark word as good spelled word
|zw|                       zw               mark word as wrong (bad) spelled word Most commands in Visual mode are the same as in Normal mode.
|v_CTRL-C|                 CTRL-C           stop Visual mode
|v_<Esc>|                  <Esc>            stop Visual mode
|:caddbuffer|              :caddb[uffer]    add errors from buffer
|:caddexpr|                :cad[dexpr]      add errors from expr
|:caddfile|                :caddf[ile]      add error message to current quickfix list
|:cbuffer|                 :cb[uffer]       parse error messages and jump to first error
|:cexpr|                   :cex[pr]         read errors from expr and jump to first
|:delmarks|                :delm[arks]      delete marks
|:diffoff|                 :diffo[ff]       switch off diff mode
|:earlier|                 :ea[rlier]       go to older change, undo
|:endfor|                  :endfo[r]        end previous :for
|:exusage|                 :exu[sage]       overview of Ex commands
|:for|                     :for             for loop
|:grepadd|                 :grepa[dd]       like :grep, but append to current list
|:keepalt|                 :keepa[lt]       following command keeps the alternate file
|:lNext|                   :lN[ext]         go to previous entry in location list
|:lNfile|                  :lNf[ile]        go to last entry in previous file
|:laddexpr|                :lad[dexpr]      add locations from expr
|:laddbuffer|              :laddb[uffer]    add locations from buffer
|:laddfile|                :laddf[ile]      add locations to current location list
|:later|                   :lat[er]         go to newer change, redo
|:lbuffer|                 :lb[uffer]       parse locations and jump to first location
|:lclose|                  :lcl[ose]        close location window
|:lcscope|                 :lcs[cope]       like ":cscope" but uses location list
|:lexpr|                   :lex[pr]         read locations from expr and jump to first
|:lfile|                   :lf[ile]         read file with locations and jump to first
|:lfirst|                  :lfir[st]        go to the specified location, default first one
|:lgetfile|                :lg[etfile]      read file with locations
|:lgrep|                   :lgr[ep]         run 'grepprg' and jump to first match
|:lgrepadd|                :lgrepa[dd]      like :grep, but append to current list
|:lhelpgrep|               :lh[elpgrep]     like ":helpgrep" but uses location list
|:ll|                      :ll              go to specific location
|:llast|                   :lla[st]         go to the specified location, default last one
|:llist|                   :lli[st]         list all locations
|:lmake|                   :lmak[e]         execute external command 'makeprg' and parse error messages
|:lnext|                   :lne[xt]         go to next location
|:lnewer|                  :lnew[er]        go to newer location list
|:lnfile|                  :lnf[ile]        go to first location in next file
|:lockvar|                 :lockv[ar]       lock variables
|:lolder|                  :lol[der]        go to older location list
|:lopen|                   :lope[n]         open location window
|:lprevious|               :lp[revious]     go to previous location
|:lpfile|                  :lpf[ile]        go to last location in previous file
|:lrewind|                 :lr[ewind]       go to the specified location, default first one
|:ltag|                    :lt[ag]          jump to tag and add matching tags to the location list
|:lvimgrep|                :lv[imgrep]      search for pattern in files
|:lvimgrepadd|             :lvimgrepa[dd]   like :vimgrep, but append to current list
|:lwindow|                 :lw[indow]       open or close location window
|:mkspell|                 :mksp[ell]       produce .spl spell file
|:mzscheme|                :mz[scheme]      execute MzScheme command
|:mzfile|                  :mzf[ile]        execute MzScheme script file
|:nbkey|                   :nb[key]         pass a key to Netbeans
|:noautocmd|               :noa[utocmd]     following command don't trigger autocommands
|:only|                    :on[ly]          close all windows except the current one
|:print|                   :p[rint]         print lines
|:profdel|                 :profd[el]       stop profiling a function or script
|:profile|                 :prof[ile]       profiling functions and scripts
|:promptfind|              :pro[mtfind]     open GUI dialog for searching
|:promptrepl|              :promtr[epl]     open GUI dialog for search/replace
|:sandbox|                 :san[dbox]       execute a command in the sandbox
|:scscope|                 :scs[cope]       split window and execute cscope command
|:sort|                    :sor[t]          sort lines
|:spelldump|               :spelld[ump]     split window and fill with all correct words
|:spellgood|               :spe[llgood]     add good word for spelling
|:spellinfo|               :spelli[nfo]     show info about loaded spell files
|:spellrepall|             :spellr[epall]   replace all bad words like last |z=|
|:spellundo|               :spellu[ndo]     remove good or bad word
|:spellwrong|              :spellw[rong]    add spelling mistake
|:startgreplace|           :startg[replace] start Virtual Replace mode
|:startreplace|            :startr[eplace]  start Replace mode
|:tabNext|                 :tabN[ext]       go to previous tab page
|:tabclose|                :tabc[lose]      close current tab page
|:tabdo|                   :tabdo           execute command in each tab page
|:tabedit|                 :tabe[dit]       edit a file in a new tab page
|:tabfind|                 :tabf[ind]       find file in 'path', edit it in a new tab page
|:tabfirst|                :tabfir[st]      got to first tab page
|:tablast|                 :tabl[ast]       got to last tab page
|:tabmove|                 :tabm[ove]       move tab page to other position
|:tabnew|                  :tabnew          edit a file in a new tab page
|:tabnext|                 :tabn[ext]       go to next tab page
|:tabonly|                 :tabo[nly]       close all tab pages except the current one
|:tabprevious|             :tabp[revious]   go to previous tab page
|:tabrewind|               :tabr[ewind]     got to first tab page
|:tabs|                    :tabs            list the tab pages and what they contain
|:tab|                     :tab             create new tab when opening new window
|:undojoin|                :undoj[oin]      join next change with previous undo block
|:undolist|                :undol[ist]      list leafs of the undo tree
|:unlockvar|               :unlo[ckvar]     unlock variables
|:vimgrep|                 :vim[grep]       search for pattern in filesgg
|:vimgrepadd|              :vimgrepa[dd]    like :vimgrep, but append to current list
|:viusage|                 :viu[sage]       overview of Normal mode commands

  

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)