From adf0a83354643c827deb98f46c240562cdfb8624 Mon Sep 17 00:00:00 2001 From: "Gun.io Whitespace Robot" Date: Mon, 31 Oct 2011 02:20:45 -0400 Subject: [PATCH] Remove whitespace [Gun.io WhitespaceBot] --- .dircolors | 4 +- .gitignore | 20 ++++++++ .screenrc | 6 +-- .vim/autoload/javascriptcomplete.vim | 72 ++++++++++++++-------------- .vim/autoload/pythoncomplete.vim | 8 ++-- .vim/autoload/vimball.vim | 14 +++--- .vim/colors/darkbluefix.vim | 2 +- .vim/doc/autocmd.cnx | 2 +- .vim/doc/change.cnx | 12 ++--- .vim/doc/cmdline.cnx | 8 ++-- .vim/doc/debugger.cnx | 4 +- .vim/doc/develop.cnx | 2 +- .vim/doc/digraph.cnx | 2 +- .vim/doc/eval.cnx | 14 +++--- .vim/doc/ft_ada.cnx | 8 ++-- .vim/doc/ft_sql.cnx | 2 +- .vim/doc/gui.cnx | 4 +- .vim/doc/gui_w16.cnx | 2 +- .vim/doc/hebrew.cnx | 4 +- .vim/doc/if_ole.cnx | 2 +- .vim/doc/if_perl.cnx | 2 +- .vim/doc/if_pyth.cnx | 4 +- .vim/doc/if_tcl.cnx | 4 +- .vim/doc/indent.cnx | 12 ++--- .vim/doc/insert.cnx | 6 +-- .vim/doc/intro.cnx | 24 +++++----- .vim/doc/map.cnx | 2 +- .vim/doc/mbyte.cnx | 6 +-- .vim/doc/mlang.cnx | 4 +- .vim/doc/netbeans.cnx | 12 ++--- .vim/doc/options.cnx | 16 +++---- .vim/doc/os_dos.cnx | 2 +- .vim/doc/os_msdos.cnx | 2 +- .vim/doc/os_os2.cnx | 2 +- .vim/doc/os_qnx.cnx | 2 +- .vim/doc/os_win32.cnx | 4 +- .vim/doc/pattern.cnx | 8 ++-- .vim/doc/pi_getscript.cnx | 10 ++-- .vim/doc/pi_netrw.cnx | 26 +++++----- .vim/doc/pi_spec.cnx | 2 +- .vim/doc/pi_vimball.cnx | 2 +- .vim/doc/pi_zip.cnx | 2 +- .vim/doc/print.cnx | 4 +- .vim/doc/quickfix.cnx | 8 ++-- .vim/doc/quickref.cnx | 2 +- .vim/doc/recover.cnx | 4 +- .vim/doc/scroll.cnx | 10 ++-- .vim/doc/spell.cnx | 2 +- .vim/doc/sponsor.cnx | 6 +-- .vim/doc/syntax.cnx | 2 +- .vim/doc/taglist.txt | 40 ++++++++-------- .vim/doc/term.cnx | 2 +- .vim/doc/tips.cnx | 2 +- .vim/doc/todo.cnx | 6 +-- .vim/doc/uganda.cnx | 2 +- .vim/doc/undo.cnx | 2 +- .vim/doc/usr_01.cnx | 2 +- .vim/doc/usr_02.cnx | 2 +- .vim/doc/usr_03.cnx | 12 ++--- .vim/doc/usr_04.cnx | 2 +- .vim/doc/usr_05.cnx | 6 +-- .vim/doc/usr_08.cnx | 4 +- .vim/doc/usr_10.cnx | 6 +-- .vim/doc/usr_11.cnx | 4 +- .vim/doc/usr_12.cnx | 8 ++-- .vim/doc/usr_20.cnx | 4 +- .vim/doc/usr_21.cnx | 4 +- .vim/doc/usr_22.cnx | 24 +++++----- .vim/doc/usr_24.cnx | 8 ++-- .vim/doc/usr_25.cnx | 10 ++-- .vim/doc/usr_26.cnx | 2 +- .vim/doc/usr_27.cnx | 6 +-- .vim/doc/usr_28.cnx | 2 +- .vim/doc/usr_29.cnx | 4 +- .vim/doc/usr_30.cnx | 6 +-- .vim/doc/usr_40.cnx | 4 +- .vim/doc/usr_41.cnx | 6 +-- .vim/doc/usr_42.cnx | 2 +- .vim/doc/usr_43.cnx | 6 +-- .vim/doc/usr_44.cnx | 16 +++---- .vim/doc/usr_45.cnx | 4 +- .vim/doc/usr_90.cnx | 2 +- .vim/doc/various.cnx | 10 ++-- .vim/doc/version7.cnx | 8 ++-- .vim/doc/visual.cnx | 2 +- .vim/doc/windows.cnx | 2 +- .vim/indent/javascript.vim | 20 ++++---- .vim/plugin/bufexplorer.vim | 2 +- .vim/plugin/grep.vim | 30 ++++++------ .vim/plugin/jsbeautify.vim | 36 +++++++------- .vim/plugin/mark.vim | 4 +- .vim/plugin/phpfolding.vim | 46 +++++++++--------- .vim/plugin/taglist.vim | 8 ++-- .vim/plugin/winfileexplorer.vim | 12 ++--- .vim/plugin/winmanager.vim | 72 ++++++++++++++-------------- .vim/plugin/wintagexplorer.vim | 44 ++++++++--------- .vim/syntax/javascript.vim | 4 +- .vim/syntax/php.vim | 40 ++++++++-------- .vim/syntax/python.vim | 4 +- .vimrc | 6 +-- 100 files changed, 482 insertions(+), 462 deletions(-) create mode 100644 .gitignore diff --git a/.dircolors b/.dircolors index 317c0e0..3984855 100644 --- a/.dircolors +++ b/.dircolors @@ -48,7 +48,7 @@ EIGHTBIT 1 # Below are the color init strings for the basic file types. A color init # string consists of one or more of the following numeric codes: -# Attribute codes: +# Attribute codes: # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes: # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white @@ -66,7 +66,7 @@ ORPHAN 01;05;37;41 # orphaned syminks MISSING 01;05;37;41 # ... and the files they point to # This is for files with execute permission: -EXEC 01;32 +EXEC 01;32 # List any file extensions like '.gz' or '.tar' that you would like ls # to colorize below. Put the extension, a space, and the color init string. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac8f968 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db diff --git a/.screenrc b/.screenrc index 879314e..8b0e4bf 100644 --- a/.screenrc +++ b/.screenrc @@ -23,7 +23,7 @@ vbell_msg " Wuff ---- Wuff!! " # all termcap entries are now duplicated as terminfo entries. # only difference should be the slightly modified syntax, and check for # terminfo entries, that are already corected in the database. -# +# # G0 we have a SEMI-GRAPHICS-CHARACTER-MODE # WS this sequence resizes our window. # cs this sequence changes the scrollregion @@ -70,7 +70,7 @@ termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' # -# Do not use xterms alternate window buffer. +# Do not use xterms alternate window buffer. # This one would not add lines to the scrollback buffer. #termcap xterm|xterms|xs ti=\E7\E[?47l #terminfo xterm|xterms|xs ti=\E7\E[?47l @@ -269,7 +269,7 @@ hardstatus alwayslastline '%{bW}%-w%{.wB}%n %t%{-}%+w %=%{.w}' ############################# xp add ################################# #chdir /home/xp/temp -#screen -t toy +#screen -t toy #screen -t editor cd data/temp #screen -t network cd software #screen -t toy cd / diff --git a/.vim/autoload/javascriptcomplete.vim b/.vim/autoload/javascriptcomplete.vim index 4249293..ed92688 100644 --- a/.vim/autoload/javascriptcomplete.vim +++ b/.vim/autoload/javascriptcomplete.vim @@ -90,7 +90,7 @@ function! javascriptcomplete#CompleteJS(findstart, base) let maths = mathprop + mathmeth " Number - let numbprop = ['MAX_VALUE', 'MIN_VALUE', 'NaN', 'NEGATIVE_INFINITY', 'POSITIVE_INFINITY', + let numbprop = ['MAX_VALUE', 'MIN_VALUE', 'NaN', 'NEGATIVE_INFINITY', 'POSITIVE_INFINITY', \ 'constructor', 'prototype'] let numbmeth = ['toExponential', 'toFixed', 'toPrecision', 'toSource', 'toString', 'valueOf', \ 'watch', 'unwatch'] @@ -176,7 +176,7 @@ function! javascriptcomplete#CompleteJS(findstart, base) let formmeth = ['reset', 'submit', 'onReset', 'onSubmit'] call map(formmeth, 'v:val."("') let forms = formprop + formmeth - + "YAHOO let yahooprop = ['util', 'widget', 'Tools'] call map(yahooprop, 'v:val."."') @@ -194,16 +194,16 @@ function! javascriptcomplete#CompleteJS(findstart, base) call map(yahooudmeth, 'v:val."("') let yahooutildom = yahooudmeth - + "YAHOO.util.Event - let yahoouemeth = ['addListener', 'clearCache', 'fireLegacyEvent', 'generateId', 'getCharCode', 'getEl', 'getEvent', 'getLegacyIndex', - \ 'getListeners', 'getPageX', 'getPageY', 'getRelatedTarget', 'getTarget', 'getTime', 'getXY', 'on', 'onAvailable', - \ 'onContentReady', 'preventDefault', 'purgeElement', 'removeListener', 'resolveTextNode', 'startInterval', 'stopEvent', + let yahoouemeth = ['addListener', 'clearCache', 'fireLegacyEvent', 'generateId', 'getCharCode', 'getEl', 'getEvent', 'getLegacyIndex', + \ 'getListeners', 'getPageX', 'getPageY', 'getRelatedTarget', 'getTarget', 'getTime', 'getXY', 'on', 'onAvailable', + \ 'onContentReady', 'preventDefault', 'purgeElement', 'removeListener', 'resolveTextNode', 'startInterval', 'stopEvent', \ 'stopPropagation', 'useLegacyEvent'] call map(yahoouemeth, 'v:val."("') let yahooutilevent = yahoouemeth - + "YAHOO.util.Anim let yahoouameth = ['animate', 'doMethod', 'getAttribute', 'getDefaultUnit', 'getEl', 'getStartTime', 'init', 'isAnimated', 'onTween', 'setAttribute', 'stop', 'toString', 'onComplete', 'onStart', 'onTween'] call map(yahoouameth, 'v:val."("') @@ -213,8 +213,8 @@ function! javascriptcomplete#CompleteJS(findstart, base) " YAHOO.Tools let yahootoolsmeth = ['getHeight', 'getCenter', 'makeTextObject', 'makeChildren', 'styleToCamel', 'removeQuotes', 'trim', 'stripTags', 'hasBRs', - \ 'convertBRs2NLs', 'stringRepeat', 'stringReverse', 'printf', 'setStyleString', 'getSelection', 'removeElement', 'setCookie', 'getCookie', - \ 'deleteCookie', 'getBrowserEngine', 'getBrowserAgent', 'checkFlash', 'setAttr', 'create', 'insertAfter', 'inArray', 'checkBoolean', 'checkNumber', + \ 'convertBRs2NLs', 'stringRepeat', 'stringReverse', 'printf', 'setStyleString', 'getSelection', 'removeElement', 'setCookie', 'getCookie', + \ 'deleteCookie', 'getBrowserEngine', 'getBrowserAgent', 'checkFlash', 'setAttr', 'create', 'insertAfter', 'inArray', 'checkBoolean', 'checkNumber', \ 'PixelToEm', 'PixelToEmStyle', 'base64Encode', 'base64Decode', 'getQueryString'] call map(yahootoolsmeth, 'v:val."("') let yahootools = yahootoolsmeth @@ -254,50 +254,50 @@ function! javascriptcomplete#CompleteJS(findstart, base) call map(buttmeth, 'v:val."("') let butts = buttprop + buttmeth " Checkbox - accessible only by other properties - let checprop = ['accept', 'accessKey', 'align', 'alt', 'checked', 'defaultChecked', - \ 'disabled', 'form', 'id', 'name', 'tabIndex', 'type', 'value'] + let checprop = ['accept', 'accessKey', 'align', 'alt', 'checked', 'defaultChecked', + \ 'disabled', 'form', 'id', 'name', 'tabIndex', 'type', 'value'] let checmeth = ['blur', 'click', 'focus', 'onBlur', 'onClick', 'onFocus', 'onMouseDown', 'onMouseUp'] call map(checmeth, 'v:val."("') let checs = checprop + checmeth " File upload - accessible only by other properties - let fileprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', - \ 'disabled', 'form', 'id', 'name', 'tabIndex', 'type', 'value'] + let fileprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', + \ 'disabled', 'form', 'id', 'name', 'tabIndex', 'type', 'value'] let filemeth = ['blur', 'focus', 'onBlur', 'onClick', 'onFocus', 'onMouseDown', 'onMouseUp'] call map(filemeth, 'v:val."("') let files = fileprop + filemeth " Hidden - accessible only by other properties - let hiddprop = ['defaultValue', 'form', 'id', 'name', 'type', 'value'] + let hiddprop = ['defaultValue', 'form', 'id', 'name', 'type', 'value'] let hidds = hiddprop " Password - accessible only by other properties - let passprop = ['accept', 'accessKey', 'defaultValue', - \ 'disabled', 'form', 'id', 'maxLength', 'name', 'readOnly', 'size', 'tabIndex', - \ 'type', 'value'] - let passmeth = ['blur', 'click', 'focus', 'select', 'onBlur', 'onFocus', 'onKeyDown', + let passprop = ['accept', 'accessKey', 'defaultValue', + \ 'disabled', 'form', 'id', 'maxLength', 'name', 'readOnly', 'size', 'tabIndex', + \ 'type', 'value'] + let passmeth = ['blur', 'click', 'focus', 'select', 'onBlur', 'onFocus', 'onKeyDown', \ 'onKeyPress', 'onKeyUp'] call map(passmeth, 'v:val."("') let passs = passprop + passmeth " Radio - accessible only by other properties - let radiprop = ['accept', 'accessKey', 'align', 'alt', 'checked', 'defaultChecked', - \ 'disabled', 'form', 'id', 'name', 'tabIndex', 'type', 'value'] + let radiprop = ['accept', 'accessKey', 'align', 'alt', 'checked', 'defaultChecked', + \ 'disabled', 'form', 'id', 'name', 'tabIndex', 'type', 'value'] let radimeth = ['blur', 'click', 'focus', 'select', 'onBlur', 'onFocus'] call map(radimeth, 'v:val."("') let radis = radiprop + radimeth " Reset - accessible only by other properties - let reseprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', - \ 'disabled', 'form', 'id', 'name', 'size', 'tabIndex', 'type', 'value'] + let reseprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', + \ 'disabled', 'form', 'id', 'name', 'size', 'tabIndex', 'type', 'value'] let resemeth = ['blur', 'click', 'focus', 'select', 'onBlur', 'onFocus'] call map(resemeth, 'v:val."("') let reses = reseprop + resemeth " Submit - accessible only by other properties - let submprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', - \ 'disabled', 'form', 'id', 'name', 'size', 'tabIndex', 'type', 'value'] + let submprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', + \ 'disabled', 'form', 'id', 'name', 'size', 'tabIndex', 'type', 'value'] let submmeth = ['blur', 'click', 'focus', 'select', 'onClick', 'onSelectStart'] call map(submmeth, 'v:val."("') let subms = submprop + submmeth " Text - accessible only by other properties - let textprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', - \ 'disabled', 'form', 'id', 'maxLength', 'name', 'readOnly', - \ 'size', 'tabIndex', 'type', 'value'] + let textprop = ['accept', 'accessKey', 'align', 'alt', 'defaultValue', + \ 'disabled', 'form', 'id', 'maxLength', 'name', 'readOnly', + \ 'size', 'tabIndex', 'type', 'value'] let textmeth = ['blur', 'focus', 'select', 'onBlur', 'onChange', 'onFocus', 'onKeyDown', \ 'onKeyPress', 'onKeyUp', 'onSelect'] call map(textmeth, 'v:val."("') @@ -329,15 +329,15 @@ function! javascriptcomplete#CompleteJS(findstart, base) \ 'type', 'useMap', 'vspace', 'width'] let objes = objeprop " Option - accessible only by other properties - let optiprop = ['defaultSelected', + let optiprop = ['defaultSelected', \ 'disabled', 'form', 'id', 'index', 'label', 'selected', 'text', 'value'] let optis = optiprop " Screen - screen. let screprop = ['availHeight', 'availWidth', 'colorDepth', 'height', 'width'] let scres = screprop " Select - accessible only by other properties - let seleprop = ['options', 'disabled', 'form', 'id', 'length', 'multiple', 'name', - \ 'selectedIndex', 'size', 'tabIndex', 'type', 'value'] + let seleprop = ['options', 'disabled', 'form', 'id', 'length', 'multiple', 'name', + \ 'selectedIndex', 'size', 'tabIndex', 'type', 'value'] let selemeth = ['blur', 'focus', 'remove', 'onBlur', 'onChange', 'onFocus'] call map(selemeth, 'v:val."("') let seles = seleprop + selemeth @@ -384,9 +384,9 @@ function! javascriptcomplete#CompleteJS(findstart, base) call map(trowmeth, 'v:val."("') let trows = trowprop + trowmeth " Textarea - accessible only by other properties - let tareprop = ['accessKey', 'cols', 'defaultValue', - \ 'disabled', 'form', 'id', 'name', 'readOnly', 'rows', - \ 'tabIndex', 'type', 'value', 'selectionStart', 'selectionEnd'] + let tareprop = ['accessKey', 'cols', 'defaultValue', + \ 'disabled', 'form', 'id', 'name', 'readOnly', 'rows', + \ 'tabIndex', 'type', 'value', 'selectionStart', 'selectionEnd'] let taremeth = ['blur', 'focus', 'select', 'onBlur', 'onChange', 'onFocus'] call map(taremeth, 'v:val."("') let tares = tareprop + taremeth @@ -411,7 +411,7 @@ function! javascriptcomplete#CompleteJS(findstart, base) " Attributes - element.attributes[x]. let xdomattrprop = ['name', 'specified', 'value'] " Element - anyelement. - let xdomelemprop = ['attributes', 'childNodes', 'firstChild', 'lastChild', + let xdomelemprop = ['attributes', 'childNodes', 'firstChild', 'lastChild', \ 'namespaceURI', 'nextSibling', 'nodeName', 'nodeType', 'nodeValue', \ 'ownerDocument', 'parentNode', 'prefix', 'previousSibling', 'tagName'] let xdomelemmeth = ['appendChild', 'cloneNode', 'getAttribute', 'getAttributeNode', @@ -421,14 +421,14 @@ function! javascriptcomplete#CompleteJS(findstart, base) call map(xdomelemmeth, 'v:val."("') let xdomelems = xdomelemprop + xdomelemmeth " Node - anynode. - let xdomnodeprop = ['attributes', 'childNodes', 'firstChild', 'lastChild', + let xdomnodeprop = ['attributes', 'childNodes', 'firstChild', 'lastChild', \ 'namespaceURI', 'nextSibling', 'nodeName', 'nodeType', 'nodeValue', \ 'ownerDocument', 'parentNode', 'prefix', 'previousSibling'] let xdomnodemeth = ['appendChild', 'cloneNode', \ 'hasChildNodes', 'insertBefore', 'removeChild', 'replaceChild'] call map(xdomnodemeth, 'v:val."("') let xdomnodes = xdomnodeprop + xdomnodemeth - " NodeList + " NodeList let xdomnliss = ['length', 'item('] " Error - parseError. let xdomerror = ['errorCode', 'reason', 'line', 'linepos', 'srcText', 'url', 'filepos'] diff --git a/.vim/autoload/pythoncomplete.vim b/.vim/autoload/pythoncomplete.vim index 1474493..4824576 100644 --- a/.vim/autoload/pythoncomplete.vim +++ b/.vim/autoload/pythoncomplete.vim @@ -164,7 +164,7 @@ class Completer(object): if type(func_obj) == types.ClassType: func_obj = _ctor(func_obj) elif type(func_obj) == types.MethodType: func_obj = func_obj.im_func else: arg_offset = 0 - + arg_text='' if type(func_obj) in [types.FunctionType, types.LambdaType]: try: @@ -453,7 +453,7 @@ class PyParser: def _parseassignment(self): assign='' tokentype, token, indent = self.next() - if tokentype == tokenize.STRING or token == 'str': + if tokentype == tokenize.STRING or token == 'str': return '""' elif token == '(' or token == 'tuple': return '()' @@ -550,7 +550,7 @@ class PyParser: continue freshscope = True self.scope = self.scope.add(cls) - + elif token == 'import': imports = self._parseimportlist() for mod, alias in imports: @@ -572,7 +572,7 @@ class PyParser: elif tokentype == STRING: if freshscope: self.scope.doc(token) elif tokentype == NAME: - name,token = self._parsedotname(token) + name,token = self._parsedotname(token) if token == '=': stmt = self._parseassignment() dbg("parseassignment: %s = %s" % (name, stmt)) diff --git a/.vim/autoload/vimball.vim b/.vim/autoload/vimball.vim index df932db..c53ab4d 100644 --- a/.vim/autoload/vimball.vim +++ b/.vim/autoload/vimball.vim @@ -140,7 +140,7 @@ fun! vimball#MkVimball(line1,line2,writelevel,...) range while linenr <= a:line2 let svfile = getline(linenr) " call Decho("svfile<".svfile.">") - + if !filereadable(svfile) call vimball#ShowMesg(s:ERROR,"unable to read file<".svfile.">") call s:ChgDir(curdir) @@ -148,7 +148,7 @@ fun! vimball#MkVimball(line1,line2,writelevel,...) range " call Dret("MkVimball") return endif - + " create/switch to mkvimball tab if !exists("vbtabnr") tabnew @@ -157,7 +157,7 @@ fun! vimball#MkVimball(line1,line2,writelevel,...) range else exe "tabn ".vbtabnr endif - + let lastline= line("$") + 1 if lastline == 2 && getline("$") == "" call setline(1,'" Vimball Archiver by Charles E. Campbell, Jr., Ph.D.') @@ -210,7 +210,7 @@ endfun " --------------------------------------------------------------------- " vimball#Vimball: extract and distribute contents from a vimball {{{2 -" (invoked the the UseVimball command embedded in +" (invoked the the UseVimball command embedded in " vimballs' prologue) fun! vimball#Vimball(really,...) " call Dfunc("vimball#Vimball(really=".a:really.") a:0=".a:0) @@ -257,7 +257,7 @@ fun! vimball#Vimball(really,...) " give title to listing of (extracted) files from Vimball Archive if a:really echohl Title | echomsg "Vimball Archive" | echohl None - else + else echohl Title | echomsg "Vimball Archive Listing" | echohl None echohl Statement | echomsg "files would be placed under: ".home | echohl None endif @@ -426,7 +426,7 @@ fun! vimball#RmVimball(...) if filereadable(".VimballRecord") " call Decho(".VimballRecord is readable") " call Decho("curfile<".curfile.">") - keepalt keepjumps 1split + keepalt keepjumps 1split silent! keepalt keepjumps e .VimballRecord let keepsrch= @/ " call Decho("search for ^".curfile.".vba:") @@ -622,7 +622,7 @@ fun! s:RecordInFile(home) if exists("s:recordfile") || exists("s:recorddir") let curdir= getcwd() call s:ChgDir(a:home) - keepalt keepjumps 1split + keepalt keepjumps 1split let cmd= expand("%:tr").": " " call Decho("cmd<".cmd.">") diff --git a/.vim/colors/darkbluefix.vim b/.vim/colors/darkbluefix.vim index dcbd926..38500d1 100644 --- a/.vim/colors/darkbluefix.vim +++ b/.vim/colors/darkbluefix.vim @@ -16,7 +16,7 @@ let colors_name = "darkbluefix" hi TabLine cterm=none ctermfg=lightgrey ctermbg=lightblue guifg=gray guibg=black hi TabLineSel cterm=none ctermfg=lightgrey ctermbg=LightMagenta guifg=white guibg=black -hi TabLineFill cterm=none ctermfg=lightblue ctermbg=lightblue guifg=black guibg=black +hi TabLineFill cterm=none ctermfg=lightblue ctermbg=lightblue guifg=black guibg=black hi Normal guifg=#c0c0c0 guibg=#000040 ctermfg=gray ctermbg=black hi ErrorMsg guifg=#ffffff guibg=#287eff ctermfg=white ctermbg=lightblue diff --git a/.vim/doc/autocmd.cnx b/.vim/doc/autocmd.cnx index fc257be..e3ed79d 100644 --- a/.vim/doc/autocmd.cnx +++ b/.vim/doc/autocmd.cnx @@ -413,7 +413,7 @@ CursorHold 用户在 'updatetime' 指定的时间里没有按键时。如 注意: 将来设定时间可能有别的选项。 提示: 要强制更新状态行,用: > :let &ro = &ro -< {仅在 Amiga、Unix、Win32、MSDOS 和所有的 GUI +< {仅在 Amiga、Unix、Win32、MSDOS 和所有的 GUI 版本上有效} *CursorHoldI* CursorHoldI 类似于 CursorHold,但用于插入模式。 diff --git a/.vim/doc/change.cnx b/.vim/doc/change.cnx index 7b06f91..8aaff09 100644 --- a/.vim/doc/change.cnx +++ b/.vim/doc/change.cnx @@ -221,7 +221,7 @@ r{char} 把光标下的字符换成 {char}。如果 {char} 是 或者 如果你给出 [count],Vim 替换 [count] 个字符为 [count] 个 {char}。不过如果 {char} 为 或者 ,Vim 只插 入一个换行符: "5r" 替换五个字符为一个换行符。 - + 当 {char} 为 或者 ,Vim 会自动缩进。这和先执 行删除要替换的字符在执行 "i" 类似。 @@ -876,7 +876,7 @@ Vim 总是把文本放在下一行。你可以用命令序列 "xp" 来交换两 4. 26 个命名的寄存器 "a 到 "z 或者 "A 到 "Z 5. 四个只读寄存器 ":、".、"% 和 "# 6. 表达式寄存器 "= -7. 选择和拖放寄存器 "*、"+ 和 "~ +7. 选择和拖放寄存器 "*、"+ 和 "~ 8. 黑洞寄存器寄存器 "_ 9. 最近搜索模式寄存器 "/ @@ -941,7 +941,7 @@ string() 转化)。 如果 "= 寄存器被 "p" 命令使用,该字符串会在 字符处断开。如果该字符串以 结尾,则它被视为一个面向行的寄存器。{Vi 无此功能} -7. 选择和拖放寄存器 "*、"+ 和 "~ +7. 选择和拖放寄存器 "*、"+ 和 "~ 用这些寄存器来保存和取得 GUI 界面选择的文本。参见 |quotestar| 和 |quoteplus|。 如果剪贴板不存在或者不工作,使用无名寄存器。Unix 上,仅当 |+xterm_clipboard| 特性存在时剪贴板才可用。{Vi 无此功能} @@ -1074,7 +1074,7 @@ Vim 没有靠右控制对齐 (right justify) 文本的命令。你可以用 "par *format-comments* 用户手册的 |30.6| 一节给出注释排版的总览。 -Vim 可以自动对注释的插入和排版进行特殊处理。Vim 把以特定字符串开头 (忽略空白) +Vim 可以自动对注释的插入和排版进行特殊处理。Vim 把以特定字符串开头 (忽略空白) 的行识别为注释。以下是三种不同类型的注释: - 在每行的开头都出现的注释字符串。例如,外壳脚本使用的注释行都以 "#" 开头。 @@ -1277,9 +1277,9 @@ B 在连接行时,不要在两个多字节字符之间插入空格。有 'M' - 将 'formatoptions' 设为 "aw2tq" 使得文本以如下方式缩进: - bla bla foobar bla + bla bla foobar bla bla foobar bla foobar bla - bla bla foobar bla + bla bla foobar bla bla foobar bla bla foobar - 如果只想自动排版注释,加上 'c' 标志位。可用于源代码。 diff --git a/.vim/doc/cmdline.cnx b/.vim/doc/cmdline.cnx index c3628ef..8b64fbe 100644 --- a/.vim/doc/cmdline.cnx +++ b/.vim/doc/cmdline.cnx @@ -4,7 +4,7 @@ VIM 参 考 手 册 by Bram Moolenaar 翻译: Dasn, tocer http://vimcdoc.sf.net - + *Cmdline-mode* *Command-line-mode* @@ -639,7 +639,7 @@ Ex 命令有几个特别的地方: # 被轮换文件名取代 *:_#* #n (n 是一个数字) 被第 n 个缓冲区的文件名取代。"#0" 与 "#" 相同 ## 被参数列表里的所有文件名 (使用空格符分隔) 取代。 *:_##* - 文件名中的空格符前面会加一个反斜杠。 + 文件名中的空格符前面会加一个反斜杠。 注意: 这样只给出输入时使用的文件名。如果需要完整的路径 (当从另一个目录使用文件 名的时候),你需要加 ":p"。见 |filename-modifiers|。 注意: 空格符前面会插入反斜杠,以便 Vim 命令会正确地解释文件名。但是 shell 命令 @@ -703,7 +703,7 @@ Ex 命令有几个特别的地方: OS/2 以 "x:\" 开始;Amiga 以 "drive:" 开始),这些部分不会被删 除。如果没有文件头 (路径是相对于当前目录的),则结果为空。 :t 文件名的尾部 (文件名的最后一部分)。必须在 :r 或 :e 之前。 - :r 文件名的根部 (除去最后的扩展名)。如果只有扩展名 (文件名以 '.' + :r 文件名的根部 (除去最后的扩展名)。如果只有扩展名 (文件名以 '.' 开始,例如,".vimrc"),则不会被删除。可以重复使用,以删除多个 扩展名 (最后一个先被删除)。 :e 扩展名。只有单独使用时才有意义。 @@ -759,7 +759,7 @@ Ex 命令有几个特别的地方: #< 同上,但无扩展名 #31 序号为 31 的轮换文件名 #31< 同上,但无扩展名 - 光标下的单词 + 光标下的单词 光标下的字串 (见 |WORD|) 光标下的路径名 < 同上,但无扩展名 diff --git a/.vim/doc/debugger.cnx b/.vim/doc/debugger.cnx index 74bddf4..f6ce1f1 100644 --- a/.vim/doc/debugger.cnx +++ b/.vim/doc/debugger.cnx @@ -38,7 +38,7 @@ 输入连接的目的是让外部调试器把命令传送给 Vim。调试器送来的命令必须足以使它自己 显示当前的调试环境和状态。 -目前的实现是基于 X 工具包中的 dispatch 循环和对 XtAddInput() 函数的调用的。 +目前的实现是基于 X 工具包中的 dispatch 循环和对 XtAddInput() 函数的调用的。 1.2 调试标号 *debug-signs* @@ -77,7 +77,7 @@ Microsystem 的 dtterm 是一个例外,它有一个 "sign gutter" 可以用来 目的在于使 Sun 的 Visual WorkShop 调试器能够显示表达式表达式求值。实际上,这个 特性是用通用的方式实现的,所以它还可以用来显示其他的信息。 -气泡表达式求值还有一些可以设置的参数。对于 Motif,字体列表和颜色可以通过 X +气泡表达式求值还有一些可以设置的参数。对于 Motif,字体列表和颜色可以通过 X 资源 (XmNballoonEvalFontList, XmNballoonEvalBackground, 和 XmNballoonEvalForeground) 来设定。 diff --git a/.vim/doc/develop.cnx b/.vim/doc/develop.cnx index e2d5319..2c3680a 100644 --- a/.vim/doc/develop.cnx +++ b/.vim/doc/develop.cnx @@ -324,7 +324,7 @@ get_env_value() Linux 系统函数 screen 整个屏幕。对于 GUI 来说,就是类似于 1024x768 像素之类的东西。 Vim shell 可以使用整个屏幕 (例如,在控制台上运行时) 或它的一部 分 (xterm 或 GUI)。 -shell Vim 这个应用程序。它可以覆盖整个屏幕 (例如,在控制台上运行时) +shell Vim 这个应用程序。它可以覆盖整个屏幕 (例如,在控制台上运行时) 或它的一部分 (xterm 或 GUI)。 window 用来查看缓冲区内容的地方。Vim 中可以包括很多窗口,还有命令行、 菜单栏、工具栏等。它们被整合到 shell 中。 diff --git a/.vim/doc/digraph.cnx b/.vim/doc/digraph.cnx index ede8364..90d52b3 100644 --- a/.vim/doc/digraph.cnx +++ b/.vim/doc/digraph.cnx @@ -138,7 +138,7 @@ Vim 在大多数系统中使用相同二合字母。它们适用于 Unicode 和 示例: a: 是 ä 而 o: 是 ö -下面列出 RFC1345 定义的单字节二合字母。其他的二合字母见 ":digraphs"。高于 255 +下面列出 RFC1345 定义的单字节二合字母。其他的二合字母见 ":digraphs"。高于 255 的字符只有在 Vim 编译的时候加上 |+multi_byte| 特性才能使用。 EURO diff --git a/.vim/doc/eval.cnx b/.vim/doc/eval.cnx index 5a49990..dd469f9 100644 --- a/.vim/doc/eval.cnx +++ b/.vim/doc/eval.cnx @@ -1367,7 +1367,7 @@ v:scrollstart 指示使屏幕上滚的脚本或函数的字符串。只有在原 v:servername 如果有的话,注册过的 |x11-clientserver| 名字。 只读。 - + v:searchforward *v:searchforward* *searchforward-variable* 搜索方向: 正向搜索后为 1,反向搜索后为 0。直接设置最近搜索模式 会复位此值为正向,见 |quote/|。 @@ -1862,7 +1862,7 @@ bufloaded({expr}) *bufloaded()* {expr} 参数用法同 |bufexists()|。 bufname({expr}) *bufname()* - 返回缓冲区的名字,如同 ":ls" 命令显示的那样。 + 返回缓冲区的名字,如同 ":ls" 命令显示的那样。 如果 {expr} 参数是数值,指定缓冲区号。数值零代表当前窗口的轮换 缓冲区。 如果 {expr} 参数是字符串,它用作 |file-pattern| 来匹配缓冲区名 @@ -3631,7 +3631,7 @@ pow({x}, {y}) *pow()* :echo pow(32, 0.20) < 2.0 {仅当编译时加入 |+float| 特性才有效} - + prevnonblank({lnum}) *prevnonblank()* 返回第一个 {lnum} 所在或之上的非空白行的行号。例如: > let ind = indent(prevnonblank(v:lnum - 1)) @@ -4029,7 +4029,7 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* searchdecl({name} [, {global} [, {thisblock}]]) *searchdecl()* 搜索 {name} 的声明。 - + 如果 {global} 参数非零,使用 |gD| 的工作方式,寻找文件的第一个 匹配。否则使用 |gd| 的工作方式,寻找函数里的第一个匹配。 @@ -4246,7 +4246,7 @@ setqflist({list} [, {action}]) *setqflist()* nr 错误号 text 错误描述 type 错误类型,'E'、'W' 等。 - + "col"、"vcol"、"nr"、"type" 和 "text" 项目是可选的。"lnum" 或 "pattern" 项目用来定位匹配的错误行。 如果 "filename" 和 "bufnr" 项目都不存在或者 "lnum" 和 @@ -4305,7 +4305,7 @@ settabwinvar({tabnr}, {winnr}, {varname}, {val}) *settabwinvar()* 冲区的变量。 如果设置局部于缓冲区的选项,全局值不会改变。 注意 必须使用不带 "w:" 的变量名。 - Vim 短暂地进入标签页 {tabnr},所以会激活 TabLeave 和 TabEnter + Vim 短暂地进入标签页 {tabnr},所以会激活 TabLeave 和 TabEnter 自动命令。 示例: > :call settabwinvar(1, 1, "&list", 0) @@ -6858,7 +6858,7 @@ Geddes 提供的方法) redir => scriptnames_output silent scriptnames redir END - + " 把输出分拆为行,并对每行进行分析。在 "script" 字典中加入项目。 let scripts = {} for line in split(scriptnames_output, "\n") diff --git a/.vim/doc/ft_ada.cnx b/.vim/doc/ft_ada.cnx index 639d4e0..0a8d3d7 100644 --- a/.vim/doc/ft_ada.cnx +++ b/.vim/doc/ft_ada.cnx @@ -334,7 +334,7 @@ g:ada_default_compiler 字符串 :AdaRainbow *:AdaRainbow* 切换用于 '(' 和 ')' 的彩虹颜色 (|g:ada_rainbow_color|) 模式 - + :AdaLines *:AdaLines* 切换行错误 (|g:ada_line_errors|) 显示 @@ -365,13 +365,13 @@ g:ada_default_compiler 字符串 *ft-ada-variables* *g:gnat* -g:gnat 对象 +g:gnat 对象 管理 GNAT 编译的控制对象。只要 |g:ada_default_compiler| 设为 'gnat',该对象会在载入首个 Ada 源代码时建立。详见 |gnat_members|。 *g:decada* -g:decada 对象 +g:decada 对象 管理 Dec Ada 编译的控制对象。只要 |g:ada_default_compiler| 设 为 'decada',该对象会在载入首个 Ada 源代码时建立。详见 |decada_members|。 @@ -412,7 +412,7 @@ ada#Word([{line}, {col}]) *ada#Word()* 删除空白/换行符。 ada#List_Tag([{line}, {col}]) *ada#Listtags()* - 在 quick-fix 窗口列出光标所在 (或在任何给定的行/列上) 的 Ada + 在 quick-fix 窗口列出光标所在 (或在任何给定的行/列上) 的 Ada 实体的所有出现 ada#Jump_Tag ({ident}, {mode}) *ada#Jump_Tag()* diff --git a/.vim/doc/ft_sql.cnx b/.vim/doc/ft_sql.cnx index d3c3e48..499ecd9 100644 --- a/.vim/doc/ft_sql.cnx +++ b/.vim/doc/ft_sql.cnx @@ -102,7 +102,7 @@ Vim 预定义了若干处理文本对象动作 |object-motions|的键。本文 let g:ftplugin_sql_objects = 'function,procedure,event,table,trigger' . \ ',schema,service,publication,database,datatype,domain' . \ ',index,subscription,synchronization,view,variable' - + 存在使用上述列表的下述普通模式 |Normal| 和可视模式 |Visual| 映射: > ]} 正向移动到下一个 'create <对象名>' [{ 反向移动到前一个 'create <对象名>' diff --git a/.vim/doc/gui.cnx b/.vim/doc/gui.cnx index dc3201d..809c755 100644 --- a/.vim/doc/gui.cnx +++ b/.vim/doc/gui.cnx @@ -147,12 +147,12 @@ Vim 试图在启动时使窗口在屏幕上的大小合适,以免部分内容 | | | | |#| |#| 左滚动条 (l) -> |#| |#| <- 右滚动条 (r) - |#| |#| + |#| |#| | | | | |v| |v| +-+--------------------------+-+ | |< #### >| | <- 底部滚动条 (b) - +-+--------------------------+-+ + +-+--------------------------+-+ 任何滚动条或者菜单都可以关闭,只要在 'guioptions' 字符串里没有相应的字母就行 了。底部滚动条只有在置位 'nowrap' 时才有用。 diff --git a/.vim/doc/gui_w16.cnx b/.vim/doc/gui_w16.cnx index 49951b9..632a189 100644 --- a/.vim/doc/gui_w16.cnx +++ b/.vim/doc/gui_w16.cnx @@ -112,7 +112,7 @@ Sys_WindowFrame Sys_WindowText Sys_WindowText 正常的窗口文字颜色 Sys_Highlight 加亮的背景颜色 Sys_HighlightText 加亮的文字颜色 - + 还有一些额外可供使用的颜色: Gray、Grey、LightYellow、SeaGreen、Orange、Purple、SlateBlue、Violet。 diff --git a/.vim/doc/hebrew.cnx b/.vim/doc/hebrew.cnx index 7c23b63..b86bb2d 100644 --- a/.vim/doc/hebrew.cnx +++ b/.vim/doc/hebrew.cnx @@ -100,7 +100,7 @@ CTRL-U 并不会在插入点开始处和行尾停住。 "-- REVERSE INSERT --"。 如果打开了 'allowrevins' 选项,CTRL-_ 也可以进入反向插入模式,而且还有一些附带 -的功能: 首先,键盘映射根据窗口的朝向自动切换 - 如果在从左到右的窗口,'revins' +的功能: 首先,键盘映射根据窗口的朝向自动切换 - 如果在从左到右的窗口,'revins' 被用来输入希伯来文,所以键盘改变为希伯来方式 (设置 'hkmap');如果在从右到左的 窗口,'revins' 被用来输入英语,所以键盘切换成英语方式 (关闭 'hkmap')。其次,通 过 CTRL-_ 来退出 'revins' 时的光标移动到输入文字的末尾 (如果可能的话)。 @@ -117,7 +117,7 @@ CTRL-U 并不会在插入点开始处和行尾停住。 有时希伯来字母代码在 'isprint' 变量定义的非可显示字符的范围内。例如,在 Linux 控制台上,希伯来字体的编码从 128 开始,而缺省的 'isprint' 变量是 @,161-255。 结果就是所有的希伯来字母都被显示成 ~x。要解决这个问题,执行 > - set isprint=@,128-255 + set isprint=@,128-255 vim:tw=78:ts=8:ft=help:norl: diff --git a/.vim/doc/if_ole.cnx b/.vim/doc/if_ole.cnx index 38e905f..af54430 100644 --- a/.vim/doc/if_ole.cnx +++ b/.vim/doc/if_ole.cnx @@ -124,7 +124,7 @@ GetHwnd() 返回 Vim 窗口的句柄。 ============================================================================== 4. 注册 *ole-registration* *E243* -在 Vim 作为 OLE 服务器运行之前,必须向系统注册。如果你想注册,可以在运行 Vim +在 Vim 作为 OLE 服务器运行之前,必须向系统注册。如果你想注册,可以在运行 Vim 的时候加一个参数 "-register"。 *-register* > gvim -register diff --git a/.vim/doc/if_perl.cnx b/.vim/doc/if_perl.cnx index f5d057d..5237acd 100644 --- a/.vim/doc/if_perl.cnx +++ b/.vim/doc/if_perl.cnx @@ -162,7 +162,7 @@ VIM::DoCommand({cmd}) 执行 Ex 命令 {cmd}。 *perl-Eval* VIM::Eval({expr}) 对 {expr} 求值并返回 (success,val)。success=1 表示 val 包含 {expr} 的值。success=0 表示表达式求值失败。 - '@x' 返回寄存器 x 的内容, '&x' 返回选项 x 的值,'x' + '@x' 返回寄存器 x 的内容, '&x' 返回选项 x 的值,'x' 返回内部变量 x 的值,'$x' 等价于 perl 中的 $ENV{x}。所 有在命令行可以访问的函数都可用于 {expr}。 列表 |List| 通过连接项目并在项目间插入换行符来转化为字 diff --git a/.vim/doc/if_pyth.cnx b/.vim/doc/if_pyth.cnx index 8d5e6bc..92d93de 100644 --- a/.vim/doc/if_pyth.cnx +++ b/.vim/doc/if_pyth.cnx @@ -49,7 +49,7 @@ Vim 的 Python 接口仅当 |+python| 特性被编译进 Vim 时才有效。 进。 *:pyfile* *:pyf* -:[range]pyf[ile] {file} +:[range]pyf[ile] {file} 执行 {file} 文件中包含的 Python 脚本。整个参数被用作一 个文件名。 {Vi 无此功能} @@ -210,7 +210,7 @@ Python 的输出 *python-output* 取 (它们是可变的)。每一个元素是缓冲区中的一行。所有通常的序列存取操作,包括索 引,索引赋值,切片 (slice) 及切片赋值,等等,都可以被使用。注意 索引 (切片) 操 作的结果是一个字符串 (字符串列表)。这产生了一个意想不到的结果 - b[:] 和 b 是不 -同的。确切一些,"b[:] = None" 会清空整个缓冲区,而 "b = None" 仅仅更新变量 b +同的。确切一些,"b[:] = None" 会清空整个缓冲区,而 "b = None" 仅仅更新变量 b 的值,完全不会影响到缓冲区。 缓冲区索引从 0 开始算起,这与通常的 Python 语法一致。但这和 Vim 的行号从 1 算 diff --git a/.vim/doc/if_tcl.cnx b/.vim/doc/if_tcl.cnx index 0a6b107..3cc85ac 100644 --- a/.vim/doc/if_tcl.cnx +++ b/.vim/doc/if_tcl.cnx @@ -247,7 +247,7 @@ Tcl 完全通过 "::vim" 命名空间的命令访问 vim 的功能。已实现 $win height {n} 在没有参数的情况下,报告当前的窗口高度。在有参数的情况下,设置窗口高度 为 {n},并报告新的高度 (有可能和 {n} 不同)。 - + $win command [-quiet] {cmd} *tcl-window-command* $win expr {expr} *tcl-window-expr* $win option {opt} [val] *tcl-window-option* @@ -448,7 +448,7 @@ vimout 和 vimerr。从而,正常的 "puts" 命令可以用来在 vim 里显 花括号。 -如果你想为 vim 永久地加入若干 Tcl 过程,只要把它们放在一个文件里 (例如在 Unix +如果你想为 vim 永久地加入若干 Tcl 过程,只要把它们放在一个文件里 (例如在 Unix 机器上,"~/.vimrc.tcl"),并在启动文件里 (在 Unix 上通常是 "~/.vimrc") 加入: > if has("tcl") tclfile ~/.vimrc.tcl diff --git a/.vim/doc/indent.cnx b/.vim/doc/indent.cnx index 6d519e7..7067d14 100644 --- a/.vim/doc/indent.cnx +++ b/.vim/doc/indent.cnx @@ -111,7 +111,7 @@ CTRL-D 来改变缩进,Vim 将不会再次缩进。 "1s" 是 'shiftwidth',"2s" 是 'shiftwidth' 的两倍,以此类推。你也可以使用小数 点: "-0.5s" 是 'shiftwidth' 一半的负值。下面的例子假定 'shiftwidth' 为 4。 - >N "一般" 缩进的增加值。在需要增加缩进的行 (比如,以 "if" 或是 "{" + >N "一般" 缩进的增加值。在需要增加缩进的行 (比如,以 "if" 或是 "{" 等开头的行) 之后使用。(缺省为 'shiftwidth')。 cino= cino=>2 cino=>2s > @@ -377,7 +377,7 @@ CTRL-D 来改变缩进,Vim 将不会再次缩进。 *java-cinoptions* *java-indenting* jN 正确地缩进 Java 匿名类。目前,'N' 的值并没有用到但其不能为 0 (比如 'j1')。'j1' 将对下面的代码段这样正确的缩进: > - + object.add(new ChangeListener() { public void stateChanged(ChangeEvent e) { do_something(); @@ -394,7 +394,7 @@ CTRL-D 来改变缩进,Vim 将不会再次缩进。 不识别 '#' 注释。注意 # 开头的行仍将被识别为预处理命令行。 -全部的缺省值是: +全部的缺省值是: cinoptions=>s,e0,n0,f0,{0,}0,^0,:s,=s,l0,b0,gs,hs,ps,ts,is,+s,c3,C0, /0,(2s,us,U0,w0,W0,m0,j0,)20,*30,#0 @@ -429,13 +429,13 @@ do 循环 ~ 需要编译器级别的语法分析。对于这样 do 循环结束于任意类型的带标号语句的老式代码 可以使用 Tidy (http://www.unb.ca/chem/ajit/f_tidy.htm) 等专门的程序缩进。结构 化的 do/continue 循环也保持不缩进,因为 continue 除了结束 do 循环以外还有其它 -的用途。Tidy 可以将结构化的 do/continue 循环转换成 do/enddo 的形式。do/enddo +的用途。Tidy 可以将结构化的 do/continue 循环转换成 do/enddo 的形式。do/enddo 类型的循环能被缩进。如果你只使用结构化的 do/enddo 形式的循环,可以在 .vimrc 中 作如下声明: > let fortran_do_enddo=1 -这样 do 循环就被缩进了。如果只是在比如 .f90 文件里,你的所有循环都是 do/enddo +这样 do 循环就被缩进了。如果只是在比如 .f90 文件里,你的所有循环都是 do/enddo 形式,那么可以像下面一样用自动命令设置一个缓冲区标志位 > au! BufRead,BufNewFile *.f90 let b:fortran_do_enddo=1 @@ -491,7 +491,7 @@ PHP 缩进可以通过修改若干变量的值来对几个方面进行改变: 要使花括号的缩进和其包含的代码相同: > :let g:PHP_BracesAtCodeLevel = 1 - + 给出的结果会变成: > if ($foo) { diff --git a/.vim/doc/insert.cnx b/.vim/doc/insert.cnx index 9249738..0554e77 100644 --- a/.vim/doc/insert.cnx +++ b/.vim/doc/insert.cnx @@ -506,7 +506,7 @@ CTRL-G j 和 CTRL-G k 命令可以用来在某一列前插入文本。例如: > 弹出菜单显示时,有一些特殊键可用,见 |popupmenu-keys|。 注意: CTRL-X 模式下合法的键不经过映射。这使得 ":map ^F ^X^F" 能够工作 (其中 ^F -是 CTRL-F 而 ^X 是 CTRL-X)。能够使得 CTRL-X 模式退出的键 (任何不是合法 CTRL-X +是 CTRL-F 而 ^X 是 CTRL-X)。能够使得 CTRL-X 模式退出的键 (任何不是合法 CTRL-X 模式命令的键) 则经过映射。 另外,通过 'complete' 的补全也使用映射。 @@ -790,7 +790,7 @@ CTRL-P 在 'complete' 选项给出的地方搜索上一个以光标前面的 CTRL-N 正向搜索下一个匹配的关键字。替换上一次匹配的关键字。 CTRL-P 反向搜索前一个匹配的关键字。替换上一次匹配的关键字。 - + CTRL-X CTRL-N 或 CTRL-X CTRL-P 继续使用 CTRL-X CTRL-N 或 CTRL-X CTRL-P 会复制上次本类 型补全在其它上下文里扩展的单词之后紧跟的单词,直到见到 @@ -1010,7 +1010,7 @@ C 代码补全需要标签文件。你应该使用 Exuberant ctags 软件,因 set tags+=~/.vim/systags 如果在不包含 "." 或 "=" 的名字后面用 CTRL-X CTRL-O,会直接从标签文件中补全。这 -适用于任何标识符,包括函数名。如果你想补全标签文件没有的局部变量名,用 CTRL-P +适用于任何标识符,包括函数名。如果你想补全标签文件没有的局部变量名,用 CTRL-P 代替。 如果在包含 "." 或 "=" 的名字后面用 CTRL-X CTRL-O,Vim 会试图识别变量类型并指出 diff --git a/.vim/doc/intro.cnx b/.vim/doc/intro.cnx index 6f459b9..d33e07e 100644 --- a/.vim/doc/intro.cnx +++ b/.vim/doc/intro.cnx @@ -2,7 +2,7 @@ VIM 参 考 手 册 作者:Bram Moolenaar - 译者:Dasn, tocer + 译者:Dasn, tocer http://vimcdoc.sf.net @@ -178,7 +178,7 @@ Vim 编辑器是在 Stevie 的基础上并汲取了其它软件的思想开发 Marcin Dalecki GTK+ 图形界面的移植,工具栏的图标,gettext() Kayhan Demirel 给我发送乌干达的信息 Chris & John Downey xvi (多窗口的思想) - Henk Elbers 最先移植到 VMS + Henk Elbers 最先移植到 VMS Daniel Elstner GTK+ 2 移植 Eric Fischer Mac 系统移植、'cindent'、其它的改进 Benji Fisher 解答用户问题 @@ -199,9 +199,9 @@ Vim 编辑器是在 Stevie 的基础上并汲取了其它软件的思想开发 David Leonard 将 Python 扩展移植到 Unix Avner Lottem 在窗口里从左向右编辑 Flemming Madsen X11 客户端-服务器,许多功能和补丁 - Microsoft 给我一份 DevStudio 的拷贝来编译 Vim + Microsoft 给我一份 DevStudio 的拷贝来编译 Vim Paul Moore Python 接口的扩展,许多补丁 - Katsuhito Nagano 多字节版本 + Katsuhito Nagano 多字节版本 Sung-Hyun Nam 多字节版本 Vince Negri 加强了 Win32 图形界面和控制台版本 Steve Oualline 第一本介绍 Vim 的书的作者 |frombook| @@ -364,7 +364,7 @@ CTRL-{char} 作为控制字符输入的 {char};也就是说,按住 CTRL 键 光标下移键 *cursor-down* *cursor_down* 光标左移键 *cursor-left* *cursor_left* 光标右移键 *cursor-right* *cursor_right* - Shift+光标上移键 + Shift+光标上移键 Shift+光标下移键 Shift+光标左移键 Shift+光标右移键 @@ -452,7 +452,7 @@ Vim 有六种基本模式: *Normal* *Normal-mode* *command-mode* 普通模式 在普通 (normal) 模式里,你可以输入所有的普通编辑命令。 - 启动编辑器之后就处于该模式 (除非你置位了 'insertmode' + 启动编辑器之后就处于该模式 (除非你置位了 'insertmode' 选项,下面会有说明)。亦称为命令 (command) 模式。 @@ -562,11 +562,11 @@ Ex :vi -- -- -- -- -- - 如果 'selectmode' 里包含 "key",那么按住 Shift 键然后用不可显示的命令来移 动光标。 - 如果 'selectmode' 包含 "cmd",那么用 "v"、"V" 或 "CTRL-V" - - 使用 "gh"、"gH" 或 "g CTRL-H" + - 使用 "gh"、"gH" 或 "g CTRL-H" *5 使用不可显示的命令移动光标 (不要按 Shift) 可以从选择模式转到普通模式。 *6 输入一个可显示字符可以从选择模式切换到插入模式。插入该字符的同时删除被选择 的部分。 - + 如果打开了 'insertmode' 选项,编辑文件时将直接进入插入模式。 *CTRL-\_CTRL-N* *i_CTRL-\_CTRL-N* *c_CTRL-\_CTRL-N* *v_CTRL-\_CTRL-N* @@ -660,7 +660,7 @@ gQ 同 "Q",切换到 "Ex" 模式,但与一条接一条的 ":" 命令相 *wrap-off* 如果关闭了 'wrap' 选项,长行不会被回绕。只显示能放到窗口里的那一部分。如果光标 移动到没有显示的部分,屏幕会水平方向滚动。这样做的好处是可以正常显示文本列而窗 -口里放不下的行也可编辑。缺点是你不能一次看见一行的所有字符。选项 'sidescroll' +口里放不下的行也可编辑。缺点是你不能一次看见一行的所有字符。选项 'sidescroll' 可以设定滚动列数的最小值。{Vi: 没有 'wrap' 选项} 所有正常的 ASCII 字符直接显示在屏幕上。 用相应数量的空白代替。其余不可显 @@ -671,7 +671,7 @@ gQ 同 "Q",切换到 "Ex" 模式,但与一条接一条的 ":" 命令相 如果你置位了 'number' 选项,所有的行前面会加行号。提示:如果你不喜欢回绕的行混 淆了行号,可以把 'showbreak' 选项设置成八个空格: > - :set showbreak=\ \ \ \ \ \ \ \ + :set showbreak=\ \ \ \ \ \ \ \ < 如果你置位了 'list' 选项, 字符不会显示成多个空格,而是 "^I"。'$' 字符会 出现在每一行的末尾,这样你可以发现尾部的空白字符。 @@ -760,10 +760,10 @@ gQ 同 "Q",切换到 "Ex" 模式,但与一条接一条的 ":" 命令相 8. ccc ccc c 1. aaa 1. aaa 1. aaa 9. cc 2. bbb 2. bbb 2. bbb 10. ddd -3. ccc ccc ccc 3. ccc ccc ccc 3. ccc ccc c 11. ~ +3. ccc ccc ccc 3. ccc ccc ccc 3. ccc ccc c 11. ~ 4. ddd 4. ddd 4. cc 12. === 状态行 === 5. ddd 13. (命令行) - 6. ~ + 6. ~ ============================================================================== vim:tw=78:ts=8:ft=help:norl: diff --git a/.vim/doc/map.cnx b/.vim/doc/map.cnx index cf4a517..446d835 100644 --- a/.vim/doc/map.cnx +++ b/.vim/doc/map.cnx @@ -423,7 +423,7 @@ CTRL-V)。 :set encoding=latin1 :imap foo :set encoding=utf-8 - 的映射是在 latin1 编码中被定义的,结果是一个 0xc3 字节。如果你在 UTF-8 + 的映射是在 latin1 编码中被定义的,结果是一个 0xc3 字节。如果你在 UTF-8 解码中输入 á (0xe1 ) 它是双字节 0xc3 0xa1。这个时候你不希望 0xc3 字节被映 射,否则的话将不能输入 á 字符了。 diff --git a/.vim/doc/mbyte.cnx b/.vim/doc/mbyte.cnx index cd06b43..ef10e04 100644 --- a/.vim/doc/mbyte.cnx +++ b/.vim/doc/mbyte.cnx @@ -145,7 +145,7 @@ locale,或者只在 Vim 内部使用特定的 locale。 "/usr/lib/locale",具体请看 setlocale() 的手册页。 在这些目录里你可以看到每个 locale 的全称,它们也区别大小写,因此 "ja_JP.EUC" -和 "ja_jp.euc" 不同。有的系统有一个 locale.alias 文件,它允许一个简称如 "nl" +和 "ja_jp.euc" 不同。有的系统有一个 locale.alias 文件,它允许一个简称如 "nl" 和它的全称 "nl_NL.ISO_8859-1" 转化。 备注: X-windows 有自己的 locale 设置,不幸的是它使用的 locale 名也和其它地方不 @@ -303,7 +303,7 @@ u ucs-4le 类似于 ucs-4,little endian 2 japan 日语: Unix 上的 "euc-jp",MS-Windows 上的 cp932 2 korea 韩语: Unix 上的 "euc-kr",MS-Windows 上的 cp949 2 prc 简体中文: Unix 上的 "euc-cn",MS-Windows 上的 cp936 -2 chinese 等同于 "prc" +2 chinese 等同于 "prc" 2 taiwan 繁体中文: Unix 上的 "euc-tw",MS-Windows 上的 cp950 u utf8 同 utf-8 u unicode 同 ucs-2 @@ -357,7 +357,7 @@ iconv() 的功能影响。因为这取决于你所用的系统,这里无法给 8bit Unicode 可以转换,但是你只能直接输入 8bit 字符 (其它字符可以通 过二合字母、键盘映射表等方式输入),在终端下你只能看到 8bit 字符,GUI 上可以看到 'guifont' 支持的所有字符。 - + 2byte 8bit 可以转换,但是输入非 ASCII 字符可能会有问题。 2byte 2byte MS-Windows:支持系统安装的所有的代码页之间的转换,当 locale 和 'encoding' 不同时输入可能会有问题。 diff --git a/.vim/doc/mlang.cnx b/.vim/doc/mlang.cnx index 38b9868..dc90ab7 100644 --- a/.vim/doc/mlang.cnx +++ b/.vim/doc/mlang.cnx @@ -69,7 +69,7 @@ Vim 从环境变量中获取当前 locale 信息。这意味着在大部分的 果你希望的话,这两者可以不同,例如:当你编辑日文文本时 使用英文消息。它设置 $LC_MESSAGES。 借助于参数 "ctype",你就可以设置用作字符编码的语言。这 - 将会影响到 Vim 所连接的库。一般不能将它和 'encoding' + 将会影响到 Vim 所连接的库。一般不能将它和 'encoding' 设成不同的值。它设置 $LC_CTYPE。 借助于参数 "time" 参数,你就可以设置用作时间和日期消息 的语言。它影响到 strftime()。它设置 $LC_TIME。 @@ -166,7 +166,7 @@ LOCALE 的 别 名 你可以在 $VIMRUNTIME/lang 目录中找到例子。 -为了检验你的翻译,首先你需要清除所有的菜单。用下面的方法你可以不重新启动 Vim +为了检验你的翻译,首先你需要清除所有的菜单。用下面的方法你可以不重新启动 Vim 就达到这样的效果: > :source $VIMRUNTIME/delmenu.vim :source diff --git a/.vim/doc/netbeans.cnx b/.vim/doc/netbeans.cnx index 64147b0..2c87fd4 100644 --- a/.vim/doc/netbeans.cnx +++ b/.vim/doc/netbeans.cnx @@ -81,13 +81,13 @@ http://www.sun.com 可以了解更多关于 Sun ONE Studio 产品线的信息。 Vim 的 NetBeans 套接字接口可以从 Vim 那里得到信息或者告诉 Vim 执行特定任务: - 得到缓冲区的信息: 缓冲区名、光标位置、缓冲区内容,等等 -- 缓冲区被打开或关闭时被告知 +- 缓冲区被打开或关闭时被告知 - 缓冲区内容修改时被告知 - 读入或保存文件 - 修改缓冲区内容 - 安装特别的键绑定 - 抬起 (raise) 窗口,控制窗口的尺寸 - + 要发送键击到 Vim 以执行 Vim 的功能,必须使用 |clientserver| 接口。 @@ -125,7 +125,7 @@ http://gnuwin32.sourceforge.net (MinGW 版本)。 允许调试: --------- -要允许调试 Vim 和 NetBeans 协议,需要定义 "NBDEBUG" 宏。在相应平台的 Makefile +要允许调试 Vim 和 NetBeans 协议,需要定义 "NBDEBUG" 宏。在相应平台的 Makefile 里查找 "NBDEBUG" 就可以知道需要去掉哪些行的注释。基本上就是给编译的命令加上 "-DNBDEBUG"。另见 |netbeans-debugging| @@ -332,7 +332,7 @@ editFile pathname 设置缓冲区的名字为字符串参数 pathname,并编辑该参数指定的文 件。 这是通常 IDE 告诉编辑器编辑一个文件的方法。 - + 使用该命令,你必须设置 bufId 为非零以把该 bufId 赋给缓冲区。它 会触发 bufId 为零的 fileOpened 事件,但缓冲区已经分配好了。 @@ -465,7 +465,7 @@ startAtomic 开始一个原子操作。屏幕不更新,直到遇到 "endAtomic startCaretListen 没有实现。 - + startDocumentListen 标识缓冲区,使之向 IDE 报告 "insert" 和 "remove" 事件。缺省就 @@ -707,7 +707,7 @@ REJECT 不用。 ============================================================================== 9. 调试 NetBeans 协议 *netbeans-debugging* -要调试 Vim 协议,必须在编译 Vim 时加入调试支持和 NetBeans 调试支持。关于 Vim +要调试 Vim 协议,必须在编译 Vim 时加入调试支持和 NetBeans 调试支持。关于 Vim 编译和如果打开调试支持的操作,请见 |netbeans-configure|。 运行 Vim 时,设置以下环境变量: diff --git a/.vim/doc/options.cnx b/.vim/doc/options.cnx index fe5908c..ca07314 100644 --- a/.vim/doc/options.cnx +++ b/.vim/doc/options.cnx @@ -269,7 +269,7 @@ Vim 基本上依照你的想法使用这些选项值。不幸的是,要满足 例如,你有两个窗口,都在编辑 C 源代码,也都使用全局的 'makeprg' 选项。如果其中 一个这么做: > :set makeprg=gmake -那么另一个窗口也会切换到新值。无需再为那个 C 源代码窗口重复设置一遍 'makeprg' +那么另一个窗口也会切换到新值。无需再为那个 C 源代码窗口重复设置一遍 'makeprg' 选项。 不过,如果你在新窗口里编辑 Perl 脚本而想让它使用别的 'makeprg',但你又不想改变 C 源代码使用的值。可用这个命令: > @@ -296,7 +296,7 @@ C 源代码使用的值。可用这个命令: > :if !did_filetype() : setlocal filetype={filetype} :endif -< 在一个 filetype.vim 里使用该命令可避免设置 'filetype' +< 在一个 filetype.vim 里使用该命令可避免设置 'filetype' 选项两次,导致不同的设置和语法文件被载入。 {Vi 无此功能} @@ -574,7 +574,7 @@ se[t] 字符串 "set " 或 "se " (注意 空格) 'autochdir' 'acd' 布尔型 (缺省关闭) 全局 {Vi 无此功能} - {仅当编译时加入 |+netbeans_intg| 或 |+sun_workshop| + {仅当编译时加入 |+netbeans_intg| 或 |+sun_workshop| 特性才有效} 如果打开,Vim 会在你打开文件、切换缓冲区、删除缓冲区或者打开/关闭窗口 时改变当前工作目录的值。具体来说,就是打开或者选择的文件所在的目录。 @@ -629,7 +629,7 @@ se[t] 字符串 "set " 或 "se " (注意 空格) 置位 'paste' 选项时,'autoindent' 选项被复位。 {Vi 稍有不同: Vim 里输入 删除缩进后,上下移动把光标放在 删除的缩进之后;Vi 则把光标放在已删除的缩进的某处}。 - + *'autoread'* *'ar'* *'noautoread'* *'noar'* 'autoread' 'ar' 布尔型 (缺省关闭) 全局或局部于缓冲区 |global-local| @@ -1744,7 +1744,7 @@ se[t] 字符串 "set " 或 "se " (注意 空格) 'debug' 字符串 (缺省为 "") 全局 {Vi 无此功能} - 可以使用这些值: + 可以使用这些值: msg 别的情况下会忽略的错误信息此时都会给出。 throw 别的情况下会忽略的错误信息此时都会给出,同时抛出例外并设置 |v:errmsg|。 @@ -2313,7 +2313,7 @@ se[t] 字符串 "set " 或 "se " (注意 空格) {仅当编译时加入 |+folding| 和 |+eval| 特性才有效} 'foldmethod' 为 "expr" 时使用的表达式。每行使用它计算折叠级别。见 |fold-expr|。 - + 可能在沙盘 |sandbox| 里计算此表达式。见 |sandbox-option|。 计算 'foldexpr' 时不允许修改文本或者跳到其它窗口 |textlock|。 @@ -2841,7 +2841,7 @@ se[t] 字符串 "set " 或 "se " (注意 空格) 全局 {Vi 无此功能} {仅当编译时加入 GUI 的支持和 +windows 特性时才有效} - 如果非空,描述 GUI 标签页行使用的标签的文本。如果为空或结果为空,Vim + 如果非空,描述 GUI 标签页行使用的标签的文本。如果为空或结果为空,Vim 使用缺省的标签。详情见 |setting-guitablabel|。 此选项的格式类似于 'statusline'。 @@ -5240,7 +5240,7 @@ se[t] 字符串 "set " 或 "se " (注意 空格) 要小心,每次显示状态行时都要计算此表达式。当前缓冲区和当前窗口会临时设 为目前要显示的状态行所属的窗口 (缓冲区),而表达式会使用此上下文计算。 变量 "actual_curbuf" 被设为实际的当前缓冲区的 'bufnr()' 号。 - + 可能在沙盘 |sandbox| 里计算 'statusline' 选项。见 |sandbox-option|。 计算 'statusline' 时不允许修改文本或者跳到其它窗口 |textlock|。 diff --git a/.vim/doc/os_dos.cnx b/.vim/doc/os_dos.cnx index 959ea7f..2a873b5 100644 --- a/.vim/doc/os_dos.cnx +++ b/.vim/doc/os_dos.cnx @@ -38,7 +38,7 @@ Vim 会在 "c:\user\piet\" 下寻找资源文件。 set VIM=E:\vim Vim 会在 "e:\vim\vim54" 寻找 5.4 版本运行时需要的文件。 备注: 强烈建议不要这样做。最好把可执行文件和运行时需要的文件放到同一个目录里。 - + 如果你把可执行文件和资源文件都移动了,那么你必须用 $VIM 和 $VIMRUNTIME 两个环 境变量来分别指定资源文件 ("_vimrc" 和 "_gvimrc") 和运行目录的位置。例如: > set VIM=C:\usr\piet diff --git a/.vim/doc/os_msdos.cnx b/.vim/doc/os_msdos.cnx index 4cc1595..6d2a38b 100644 --- a/.vim/doc/os_msdos.cnx +++ b/.vim/doc/os_msdos.cnx @@ -2,7 +2,7 @@ VIM 参 考 手 册 作者:Bram Moolenaar - 译者: Dasn, tocer + 译者: Dasn, tocer http://vimcdoc.sf.net diff --git a/.vim/doc/os_os2.cnx b/.vim/doc/os_os2.cnx index 4503d78..574974a 100644 --- a/.vim/doc/os_os2.cnx +++ b/.vim/doc/os_os2.cnx @@ -36,7 +36,7 @@ Unix系统下用 telnet 访问,打开 Vim。看起来,这个问题是因为 预 备 条 件 要执行 Vim,你需要 emx 运行环境 (至少 rev. 0.9b)。这可以如下得到 (可以询问 -Archie): +Archie): emxrt.zip emx 运行包 diff --git a/.vim/doc/os_qnx.cnx b/.vim/doc/os_qnx.cnx index 3196d61..ffb6635 100644 --- a/.vim/doc/os_qnx.cnx +++ b/.vim/doc/os_qnx.cnx @@ -71,7 +71,7 @@ shift、ctrl、或是 alt, pterm 自己会处理鼠标事件。它会选择文 不支持的特性: 查找和替换窗口 |:promptfind| - 可卸的菜单 + 可卸的菜单 其他我还没有想及的恕难加入 diff --git a/.vim/doc/os_win32.cnx b/.vim/doc/os_win32.cnx index 47d1221..c3b9a86 100644 --- a/.vim/doc/os_win32.cnx +++ b/.vim/doc/os_win32.cnx @@ -223,7 +223,7 @@ Win32s 版本的 gvim 与 95/NT 系统上运行的 Win32 版本的 gvim 是一 备份文件中,然后用备份文件覆盖原文件。这样做是为了保证所有属性都和原文件相 同。在非 UNIX 系统上,首先原文件被改名,然后写入新文件。只有保护位和原文件 相同。但是,这个方法不能处理 NFS 文件系统,那里除了链接还有一些其它问题。 - 唯一的解决办法是禁用备份文件,可以通过命令 ":set nobackup nowritebackup" + 唯一的解决办法是禁用备份文件,可以通过命令 ":set nobackup nowritebackup" 实现 |'writebackup'| 问:我正通过 Samba 使用 Vim 编辑 Unix 系统上的一个文件。当我保存文件时,文件所 @@ -287,7 +287,7 @@ Win32s 版本的 gvim 与 95/NT 系统上运行的 Win32 版本的 gvim 是一 测试,启动 Vim,输入 > :!dir C:\" < 你应该看到一个 DOS 窗口短暂出现,显示文件及目录列表。 - + 问:我在 Win32s 和 NT 上使用 Vim。在 NT 上,我可以把控制台的默认值设置为 50 行,这样当我用 ":sh" 命令时,就会得到一个 80x50 的 shell。我可以在 Win3.1x 下这样做么?我会不会只能使用 80x25? diff --git a/.vim/doc/pattern.cnx b/.vim/doc/pattern.cnx index d3a9404..5e7173e 100644 --- a/.vim/doc/pattern.cnx +++ b/.vim/doc/pattern.cnx @@ -69,7 +69,7 @@ N 将上次的 "/" 或 "?" 在相反方向上重复 [count] 次。 3. 光标所在的非空白单词 4. 当前行内的光标后的第一个非空白单词 只查找整字,就像使用了命令 "/\" 一样。 - (|exclusive| 开动作) {Vi 无此功能} + (|exclusive| 开动作) {Vi 无此功能} 使用 'ignorecase',不使用 'smartcase'。 *#* @@ -898,7 +898,7 @@ x 一个没有特殊含义的单个字符,匹配其自身 *[:upper:]* [:upper:] 大写字母 (使用 'ignorecase' 时代表所有 字母) *[:xdigit:]* [:xdigit:] 十六进制数位 -*[:return:]* [:return:] 字符 +*[:return:]* [:return:] 字符 *[:tab:]* [:tab:] 字符 *[:escape:]* [:escape:] 字符 *[:backspace:]* [:backspace:] 字符 @@ -1076,7 +1076,7 @@ Vim 和 Perl 匹配一个字符串中的换行符时有所不同: 束。要当心某些特殊的字符,例如 '"' 和 '|'。 该命令执行时,{group} 必须已经定义。 - + 对于 'hlsearch' 要高亮的字符,仍然适用 {group} 高亮,因为匹配 高亮的优先级比 'hlsearch' 要高。同样的,语法高亮 (见 'syntax') 也被匹配否决。 @@ -1087,7 +1087,7 @@ Vim 和 Perl 匹配一个字符串中的换行符时有所不同: 'ignorecase' 不起作用。在模式中使用 |/\c| 来忽略大小写,否则, 大小写总是区分的。 - + 'redrawtime' 定义搜索模式匹配的最大时间。 匹配行尾而 Vim 只重绘部分显示时,结果可能会令你意想不到。这是 diff --git a/.vim/doc/pi_getscript.cnx b/.vim/doc/pi_getscript.cnx index 0645ee4..dbf13c6 100644 --- a/.vim/doc/pi_getscript.cnx +++ b/.vim/doc/pi_getscript.cnx @@ -61,7 +61,7 @@ GetLatestVimScripts.dist 文件提供了示例和样板,你可以参照来建 mv GetLatestVimScripts.dist GetLatestVimScripts.dat (编辑 GetLatestVimScripts.dat,以安装你自己需要的插件列表 -- 见 |GetLatestVimScripts_dat|) - + 3. Windows: vim getscript.vba :so % @@ -77,7 +77,7 @@ GetLatestVimScripts.dist 文件提供了示例和样板,你可以参照来建 除非另有定义, > :GLVS -会调用 GetLatestVimScripts()。如果其它脚本定义了该命令,那么你可以输入 +会调用 GetLatestVimScripts()。如果其它脚本定义了该命令,那么你可以输入 > :GetLatestVimScripts < @@ -215,7 +215,7 @@ GetLatestVimScripts 现在支持了 "AutoInstall" (自动安装)。并非所有 let g:GetLatestVimScripts_allowautoinstall= 0 < 缺省打开 :AutoInstall:。此时,名字里包含如下后缀的文件会被相应地 - + ---.tar.bz2 : 解压和 untar 解包到 .vim /目录 ---.vba.bz2 : 解压到 .vim/ 目录,然后由 vimball 处理 ---.vim.bz2 : 解压并移到 .vim/plugin 目录 @@ -225,7 +225,7 @@ GetLatestVimScripts 现在支持了 "AutoInstall" (自动安装)。并非所有 ---.vba : 解压到 .vim/ 目录 ---.vim : 移到 .vim/plugin 目录 ---.zip : unzip 解压到 .vim/ 目录 - + 如果只要通过 untar/gunzip 或 "移到插件目录" 过程来放置各个部件就可以使用,那么 这个脚本就称之为可以自动安装。当然,Vimball 包总是可以自动安装的。 @@ -240,7 +240,7 @@ GetLatestVimScripts 现在支持了 "AutoInstall" (自动安装)。并非所有 目前,vim 的 after/syntax 只支持按文件类型命名的脚本 (blockhl.vim 的情况应该使 用 after/syntax/c.vim)。所以,如果使用自动安装,可能会覆盖当前用户自己的 after/syntax/c.vim 文件。 - + 我自己的例子。我用 (换名到 after/syntax/c.vim) 以支持 after/syntax/c/ 目录: diff --git a/.vim/doc/pi_netrw.cnx b/.vim/doc/pi_netrw.cnx index 31f4ce0..ac1ed61 100644 --- a/.vim/doc/pi_netrw.cnx +++ b/.vim/doc/pi_netrw.cnx @@ -1063,15 +1063,15 @@ OpenOffice (*.sfx)、可视文件 (*.jpg、*.gif 等) 和 PostScript (*.ps、 *. ..对文件名进行特殊处理.. endfun < -这些函数需要在你的 .vim/plugin (vimfiles\plugin) 目录下的某个文件里定义。Vim +这些函数需要在你的 .vim/plugin (vimfiles\plugin) 目录下的某个文件里定义。Vim 的函数名不能包含标点符号 (除了下划线以外)。要支持包含这类字符的后缀,netrw 会 先按照下表对后缀进行转换: > - @ -> AT ! -> EXCLAMATION % -> PERCENT - : -> COLON = -> EQUAL ? -> QUESTION + @ -> AT ! -> EXCLAMATION % -> PERCENT + : -> COLON = -> EQUAL ? -> QUESTION , -> COMMA - -> MINUS ; -> SEMICOLON - $ -> DOLLAR + -> PLUS ~ -> TILDE -< + $ -> DOLLAR + -> PLUS ~ -> TILDE +< 因而,对于下例: > file.rcs,v -> NFH_rcsCOMMAv() @@ -1292,7 +1292,7 @@ industrial strength tips & tools" (O'Reilly, ISBN 0-596-00461-3) 一书给出如 1. 在本地机器 (ssh 客户端) 上生成 公钥/私钥 对: > ssh-keygen -t rsa (按照提示,把该文件存到 ~/.ssh/id_rsa) -< +< 2. 如果不要 passphrase,提示 passphrase 时只要按 即可 (两次)。如 果需要 passphrase,你要使用 ssh-agent,从而每个会话期间只需输入一次 passphrase。如果不用 passphrase,只要简单地登录到你的本地机器上或者 @@ -1405,7 +1405,7 @@ Kingston Fung 写下另一个避免不断要求输入密码的方法: |netrw-mu|)。 *markfilelist* *global_markfilelist* *local_markfilelist* -所有的标记文件都进入全局标记文件列表;只有唯一的这样的列表。此外,每个 netrw +所有的标记文件都进入全局标记文件列表;只有唯一的这样的列表。此外,每个 netrw 缓冲区都有自己局部的标记文件列表;因为 netrw 缓冲区和特定的目录相关联,这意味 着每个目录都有自己的局部标记文件列表。操作标记文件的命令分别使用两个标记文件列 表中的一个。 @@ -1734,7 +1734,7 @@ NETRW 浏 览 器 变 量 *netrw-browser-options* *netrw-browser-var* {{{2 netrwMakefile: [mM]akefile *.mak netrwObj : *.o *.obj netrwTags : tags ANmenu ANtags - netrwTilde : *~ + netrwTilde : *~ netrwTmp : tmp* *tmp 这些语法高亮组缺省被链接到 Folded 或 @@ -1784,7 +1784,7 @@ NETRW 浏 览 器 变 量 *netrw-browser-options* *netrw-browser-var* {{{2 circumflex 是一个占空间的代码点;硬制表符 是一个;宽和窄的 CJK 都是一个;等等) =3: 虚拟长度 (制表符在 1 到 |'tabstop'| 之间, - 宽 CJK 是 2 而不是 1,阿拉伯 alif 在 lam + 宽 CJK 是 2 而不是 1,阿拉伯 alif 在 lam 之前是零,否则为 1,等等) *g:NetrwTopLvlMenu* 指定顶层子菜单名;缺省为 "Netrw."。 @@ -2039,7 +2039,7 @@ g:netrw_rename_cmd 变量实现换名。缺省值为: < 'pscp' 如何使用私钥: > http://www.tartarus.org/~simon/puttydoc/Chapter5.html - 5.2.4 Using public key authentication with PSCP + 5.2.4 Using public key authentication with PSCP < (Ben Schmidt) 我发现 cwRsync 所带的 ssh 太好了,现在我在自己用 的大多数 Windows 系统上都安装了 cwRsync 或 cwRsyncServer。对只 @@ -2066,7 +2066,7 @@ g:netrw_rename_cmd 变量实现换名。缺省值为: let g:netrw_use_noswf= 0 < *netrw-p10* - P10. "[something] is a directory" 和 + P10. "[something] is a directory" 和 "Press ENTER or type command to continue" 这些提示烦死我了... "[something] is a directory" 提示是 Vim 发出的,不是 netrw,看 @@ -2128,7 +2128,7 @@ g:netrw_rename_cmd 变量实现换名。缺省值为: 3. 然后启动 vim 进行文件传输或者进行浏览以重现错误。一系列消息应该在一 个单独的标签页出现,提示 进行网络文件读写的一系列步骤。 - + 要保存文件,用 > :wincmd j :set bt= @@ -2378,7 +2378,7 @@ g:netrw_rename_cmd 变量实现换名。缺省值为: decipher the name. May 07, 2007 * g:netrw_use_errorwindow now allows one to have error messages go to a reliable window - or to use a less reliable but recallable + or to use a less reliable but recallable echoerr method May 07, 2007 * g:netrw_scpport and g:netrw_sshport support use of -P and -p, respectively, to set port diff --git a/.vim/doc/pi_spec.cnx b/.vim/doc/pi_spec.cnx index 4131fd7..b1439fc 100644 --- a/.vim/doc/pi_spec.cnx +++ b/.vim/doc/pi_spec.cnx @@ -6,7 +6,7 @@ 这是一个针对 rpm 规格文件的文件类型插件。 -此 Vim 插件让你轻松更新 RPM 规格 (spec) 文件的更新记录段 (%changelog section) +此 Vim 插件让你轻松更新 RPM 规格 (spec) 文件的更新记录段 (%changelog section) 的内容。如果该段还不存在,它可以为你新建段。如果你今天还没有更新,它会帮你建立 新的说明入口 (entry)。如果你还没有提供格式串 (|spec_chglog_format|),它会询问 你的 email 地址,然后自动为你提供该格式串。 diff --git a/.vim/doc/pi_vimball.cnx b/.vim/doc/pi_vimball.cnx index 493bc95..5613295 100644 --- a/.vim/doc/pi_vimball.cnx +++ b/.vim/doc/pi_vimball.cnx @@ -65,7 +65,7 @@ Copyright: (c) 2004-2008 by Charles E. Campbell, Jr. *Vimball-copyright* :[range]MkVimball filename < 建立文件 "filename.vba",Vimball.vim 随后可以用它来还原那些文件。如果 - 文件 "filename.vba" 已经存在,MKVimball 会给出警告而不建立文件。注意 + 文件 "filename.vba" 已经存在,MKVimball 会给出警告而不建立文件。注意 这些路径都相对于你的 .vim (vimfiles) 目录,而所有文件都应该在该目录 下。更准确地说,vimball 插件通常使用 'runtimepath' 里第一个存在的目录 作为前缀;它不使用绝对路径,除非用户指定的就是如此。 diff --git a/.vim/doc/pi_zip.cnx b/.vim/doc/pi_zip.cnx index 6106312..82fe5e2 100644 --- a/.vim/doc/pi_zip.cnx +++ b/.vim/doc/pi_zip.cnx @@ -32,7 +32,7 @@ Copyright: Copyright (C) 2005-2008 Charles E Campbell, Jr *zip-copyright* 键,就可以选择该文件进行编辑。编辑后,可以写回该文件。目前,不能用 该插件建立新的 zip 归档文件。 - 选 项 + 选 项 *g:zip_nomax* diff --git a/.vim/doc/print.cnx b/.vim/doc/print.cnx index 1625037..aebb482 100644 --- a/.vim/doc/print.cnx +++ b/.vim/doc/print.cnx @@ -263,10 +263,10 @@ ASCII 代码范围里的字符和传统的 ASCII 字符有差异。有两个附 ASCII 代码范围内的字符打印。 c:yes 使用 Courier 字体打印 ASCII 代码范围内的字符。 - c:no (缺省) + c:no (缺省) a:yes 在 ASCII 代码范围内的代码使用 ASCII 字符集。 - a:no (缺省) + a:no (缺省) 下面的例子指定两个多字节字体,一个用于普通和斜体打印,一个用于粗体和粗体斜体打 印,它使用 Courier 打印 ASCII 代码范围内的代码,但使用国家字符集: > diff --git a/.vim/doc/quickfix.cnx b/.vim/doc/quickfix.cnx index 1d64598..9db14ef 100644 --- a/.vim/doc/quickfix.cnx +++ b/.vim/doc/quickfix.cnx @@ -78,7 +78,7 @@ quickfix 列表相互独立。 有文件名,则跳转到往前第 [count] 个错误。有关 [!] 和 'switchbuf',参见 |:cc|。 - + :[count]lN[ext][!] *:lp* *:lprevious* *:lN* *:lNext* :[count]lp[revious][!] 和 ":cNext" 与 ":cprevious" 类似,但使用当前窗口的位置 列表而不是 quickfix 列表。 @@ -147,7 +147,7 @@ quickfix 列表相互独立。 :cg[etfile] [errorfile] *:cg* *:cgetfile* 读入错误文件。和 ":cfile" 类似,只是不跳转到首个错误。 - + :lg[etfile] [errorfile] *:lg* *:lgetfile* 和 ":cgetfile" 类似,但使用当前窗口的位置列表而不是 quickfix 列表。 @@ -470,7 +470,7 @@ Vim 有两种寻找模式匹配的方式: 内部方式和外部方式。内部 g 如果没有 'g' 标志位,每行只加一次。 如果有 'g',每个匹配都被加入。 - {pattern} 是 Vim 的搜索模式。除了用 / 之外,任何非 ID + {pattern} 是 Vim 的搜索模式。除了用 / 之外,任何非 ID 字符 (见 |'isident') 都可以用来包围该模式,只要在 {pattern} 里不出现就行了。 适用 'ignorecase'。要否决该设置,在模式里用 |/\c| 来忽 @@ -532,7 +532,7 @@ Vim 可以和 "grep" 或类似 grep 的程序 (比如 GNU id-utils) 交互,其 注意 这时模式必须用分隔字符包围。 *:lgr* *:lgrep* - + :lgr[ep][!] [arguments] 和 ":grep" 类似,但使用当前窗口的位置列表而不是 quickfix 列表。 diff --git a/.vim/doc/quickref.cnx b/.vim/doc/quickref.cnx index 5945848..d72697d 100644 --- a/.vim/doc/quickref.cnx +++ b/.vim/doc/quickref.cnx @@ -990,7 +990,7 @@ N 用来 (可选) 置于命令之前表示该命令执行的计数。 |:range| , 分隔两个行号 |:range| ; 同上,但在解释第二个行号之前先移动光标至第一个 - 行号代表的行 + 行号代表的行 |:range| {number} 绝对行号 |:range| . 当前行 diff --git a/.vim/doc/recover.cnx b/.vim/doc/recover.cnx index 6118c64..0cabffc 100644 --- a/.vim/doc/recover.cnx +++ b/.vim/doc/recover.cnx @@ -33,7 +33,7 @@ Vim 把您对文件的改动保存在一个交换文件中。多数情况下, 正常情况下,交换文件的文件名和您正在编辑的文件相同,只是扩展名换成了 ".swp"。 - 在 Unix 系统上,交换文件名以 '.' 开始,这样它们就不会在列目录文件时被显示出 来。 -- 在 MS-DOS 系统上,如果 'shortname' 选项是打开的,原文件名中的 '.' 会被 '_' +- 在 MS-DOS 系统上,如果 'shortname' 选项是打开的,原文件名中的 '.' 会被 '_' 替代。 - 如果同名交换文件已经存在 (例如:当您从一个崩溃中恢复时),Vim 会显示一个警告 信息,并且会使用另外一个诸如 ".swo",".swn" ……这样的文件扩展名。 @@ -135,7 +135,7 @@ Unix 上同一文件可以有两个名字。这可以通过硬链接和符号链 另一种恢复方式是在启动 Vim 后使用 ":recover" 命令。当您用 Vim 编辑一个文件并且 得到一个 "注意:已找到一个交换文件 ..." 这样的提示时,这样比较方便。这种情况 -下,一个简单的 ":recover" 命令就可以完成所有的工作。您也可以在使用 ":recover" +下,一个简单的 ":recover" 命令就可以完成所有的工作。您也可以在使用 ":recover" 命令时指定文件名或者交换文件名: *:rec* *:recover* *E305* *E306* *E307* :rec[over] [file] 试图从交换文件中恢复 [file]。如果没有指定 [file],使用 diff --git a/.vim/doc/scroll.cnx b/.vim/doc/scroll.cnx index 18c08e3..2a36097 100644 --- a/.vim/doc/scroll.cnx +++ b/.vim/doc/scroll.cnx @@ -43,7 +43,7 @@ CTRL-D 使窗口在缓冲区中向下滚动。滚动的行数由 'scroll' 选 助记:Downwards。 {Vi: Vim 滚动 'scroll' 屏幕行,而不是文件行;有行回绕 时两者会有差异} - + 或 ** ** 或 ** *CTRL-F* CTRL-F 使窗口在缓冲区中向下滚动 [count] 页。 @@ -121,7 +121,7 @@ z. 重绘,使第 [count] 行显示在窗口中部 (默认为光标所在的 zz 类似 "z.",不过光标停留在相同的列上。注意:如果打开了 caps-lock,这个命令就变成了 "ZZ":写缓冲区并退出! {Vi 无此功能} - + *z-* z- 重绘,使第 [count] 行显示在窗口底部 (默认为光标所在的 行)。光标停留在那一行第一个非空白字符上。 @@ -139,7 +139,7 @@ z 或 *zl* *z* zl 使文本视图向右移动 [count] 个字符,也就是使文本向左滚 动 [count] 个字符。仅当 'wrap' 为关时有效。 {Vi 无此功能} - + z 或 *zh* *z* zh 使文本视图向左移动 [count] 个字符,也就是使文本向右滚 动 [count] 个字符。仅当 'wrap' 为关时有效。 @@ -192,9 +192,9 @@ ze 水平滚动文本,使光标置于屏幕的结束处 (最右侧)。仅当 *syncbind* *:syncbind* *:sync* :syncbind 强制所有 'scrollbind' 窗口具有相同的相对偏移。即:当 - 一个窗口滚屏到了它缓冲区的顶部时,所有的 'scrollbind' + 一个窗口滚屏到了它缓冲区的顶部时,所有的 'scrollbind' 窗口都会滚屏到它们缓冲区的顶部。 - + *scrollbind-quickadj* 当使用键盘命令来垂直的滚动一个窗口,或用垂直滚动条来滚动一个具有光标焦点的窗口 时, 'scrollbind' 标志是起作用的。但是,当用垂直滚动条来滚动一个不具有光标焦点 diff --git a/.vim/doc/spell.cnx b/.vim/doc/spell.cnx index 6d9a478..2600dbe 100644 --- a/.vim/doc/spell.cnx +++ b/.vim/doc/spell.cnx @@ -683,7 +683,7 @@ Vim 支持不少附加成分。下面给出描述 |spell-affix-vim|。已经作 词。 行 12 (译者注: 应为行 11) 定义单词 "TCP/IP"。因为斜杠有特殊含义,这里使用逗号 -代替。它定义在字缀文件的 SLASH 项目里,见 |spell-SLASH|。注意 没有这个 SLASH +代替。它定义在字缀文件的 SLASH 项目里,见 |spell-SLASH|。注意 没有这个 SLASH 项目,匹配的单词将是 "TCP,IP"。 diff --git a/.vim/doc/sponsor.cnx b/.vim/doc/sponsor.cnx index 60aaa81..9484031 100644 --- a/.vim/doc/sponsor.cnx +++ b/.vim/doc/sponsor.cnx @@ -2,7 +2,7 @@ VIM 参 考 手 册 作者:Bram Moolenaar - 译者:Dasn, tocer + 译者:Dasn, tocer http://vimcdoc.sf.net @@ -67,12 +67,12 @@ hall of honour) 里:http://www.vim.org/sponsor/hall_of_honour.php,不过您 请在转帐的备注信息里注明 "Vim sponsor" 或 "Vim registration"。 如果您想要进行功能投票或者向别人说明自己是一名注册的 Vim 用户 或赞助者,那么请给我发电邮说明您资助的数额。 - + 现金 少量现金可以通过普通的信件邮寄。把钱用东西包好,让别人从外面看 不出来。如果您想要进行功能投票或者向别人说明自己是一名注册的 Vim 用户或赞助者,那么请同时写下您的电邮地址。 -您可以使用下面的永久地址: +您可以使用下面的永久地址: Bram Moolenaar Finsterruetihof 1 8134 Adliswil diff --git a/.vim/doc/syntax.cnx b/.vim/doc/syntax.cnx index 2c71ce5..c59fba8 100644 --- a/.vim/doc/syntax.cnx +++ b/.vim/doc/syntax.cnx @@ -539,7 +539,7 @@ GL 编程。支持很多的标准宏定义/常数。 可以为内嵌的 SQL 块打开折叠,如 SELECT、SELECTDO、SELECTEMPTY,... 这里开始/结 束关键字之前的缩进必须一致 (空格不等于制表)。 > let baan_fold_sql=1 -< +< 注意: 代码块级别的折叠可能产生许多小的折叠。建议在 .vimrc 里用 |:set| 设置选项 'foldminlines' 和 'foldnestmax',在 .../after/syntax/baan.vim 里用 |:setlocal| 设置也可以 (见 |after-directory|)。例如: > diff --git a/.vim/doc/taglist.txt b/.vim/doc/taglist.txt index 6a62b39..5888b21 100644 --- a/.vim/doc/taglist.txt +++ b/.vim/doc/taglist.txt @@ -25,7 +25,7 @@ The "Tag List" plugin is a source code browser plugin for Vim. This plugin allows you to efficiently browse through source code files for different programming languages. The "Tag List" plugin provides the following features: - * Displays the tags (functions, classes, structures, variables, etc.) + * Displays the tags (functions, classes, structures, variables, etc.) defined in a file in a vertically or horizontally split Vim window. * In GUI Vim, optionally displays the tags in the Tags drop-down menu and in the popup menu. @@ -329,7 +329,7 @@ file. You can also use the ":TlistUpdate" command to update the tags for the current buffer after you made some changes to it. You should save the modified buffer before you update the taglist window. Otherwise the listed tags will not -include the new tags created in the buffer. +include the new tags created in the buffer. If you have deleted the tags displayed for a file in the taglist window using the 'd' key, you can again display the tags for that file using the @@ -639,7 +639,7 @@ variables are initialized to a default value. By changing these variables you can change the behavior of the taglist plugin. You need to change these settings only if you want to change the behavior of the taglist plugin. You should use the |:let| command in your .vimrc file to change the setting of any -of these variables. +of these variables. The configurable taglist variables are listed below. For a detailed description of these variables refer to the text below this table. @@ -938,8 +938,8 @@ side. If you prefer to open the window on the right hand side, you can set the < *'Tlist_Use_SingleClick'* Tlist_Use_SingleClick~ -By default, when you double click on the tag name using the left mouse -button, the cursor will be positioned at the definition of the tag. You +By default, when you double click on the tag name using the left mouse +button, the cursor will be positioned at the definition of the tag. You can set the 'Tlist_Use_SingleClick' variable to 1 to jump to a tag when you single click on the tag name using the mouse. By default this variable is set to zero. @@ -1091,7 +1091,7 @@ The taglist plugin provides the following ex-mode commands: used. A tag spans multiple lines starting from the line where it is defined to the line before the next tag. This command displays the prototype for the tag for any line number in this - range. + range. *:TlistShowTag* :TlistShowTag [filename] [linenumber] @@ -1100,7 +1100,7 @@ The taglist plugin provides the following ex-mode commands: specified, then the current file name and line number are used. A tag spans multiple lines starting from the line where it is defined to the line before the next tag. This command - displays the tag name for any line number in this range. + displays the tag name for any line number in this range. *:TlistHighlightTag* :TlistHighlightTag @@ -1180,11 +1180,11 @@ Tlist_Set_App({appname}) Set the name of the plugin that controls the taglist plugin window and buffer. This can be used to integrate the taglist plugin with other Vim plugins. - + For example, the winmanager plugin and the Cream package use this function and specify the appname as "winmanager" and "cream" respectively. - + By default, the taglist plugin is a stand-alone plugin and controls the taglist window and buffer. If the taglist window is controlled by an external plugin, then the appname should @@ -1303,7 +1303,7 @@ are generated for the flags b, c and l respectively. 10. Frequently Asked Questions~ Q. The taglist plugin doesn't work. The taglist window is empty and the tags - defined in a file are not displayed. + defined in a file are not displayed. A. Are you using Vim version 6.0 and above? The taglist plugin relies on the features supported by Vim version 6.0 and above. You can use the following command to get the Vim version: @@ -1349,13 +1349,13 @@ A. Are you using Vim version 6.0 and above? The taglist plugin relies on the taglist plugin uses the system() function to invoke the exuberant ctags utility. You need to rebuild Vim after enabling the support for the system() function. If you use the default build options, the system() - function will be supported. + function will be supported. Do you have the |'shellslash'| option set? You can try disabling the |'shellslash'| option. When the taglist plugin invokes the exuberant ctags utility with the path to the file, if the incorrect slashes are used, then you will see errors. - + Check the shell related Vim options values using the following command: > :set shell? shellcmdflag? shellpipe? @@ -1435,22 +1435,22 @@ A. The taglist plugin will work only with the exuberant ctags tool. You Q. A file has more than one tag with the same name. When I select a tag name from the taglist window, the cursor is positioned at the incorrect tag - location. + location. A. The taglist plugin uses the search pattern generated by the exuberant ctags utility to position the cursor at the location of a tag definition. If a file has more than one tag with the same name and same prototype, then the search pattern will be the same. In this case, when searching for the tag - pattern, the cursor may be positioned at the incorrect location. + pattern, the cursor may be positioned at the incorrect location. Q. I have made some modifications to my file and introduced new functions/classes/variables. I have not yet saved my file. The taglist plugin is not displaying the new tags when I update the taglist window. A. The exuberant ctags utility will process only files that are present in the disk. To list the tags defined in a file, you have to save the file and - then update the taglist window. + then update the taglist window. Q. I have created a ctags file using the exuberant ctags utility for my source - tree. How do I configure the taglist plugin to use this tags file? + tree. How do I configure the taglist plugin to use this tags file? A. The taglist plugin doesn't use a tags file stored in disk. For every opened file, the taglist plugin invokes the exuberant ctags utility to get the list of tags dynamically. The Vim system() function is used to invoke @@ -1486,11 +1486,11 @@ software. 12. Todo~ 1. Group tags according to the scope and display them. For example, - group all the tags belonging to a C++/Java class -2. Support for displaying tags in a modified (not-yet-saved) file. + group all the tags belonging to a C++/Java class +2. Support for displaying tags in a modified (not-yet-saved) file. 3. Automatically open the taglist window only for selected filetypes. - For other filetypes, close the taglist window. -4. When using the shell from the MKS toolkit, the taglist plugin + For other filetypes, close the taglist window. +4. When using the shell from the MKS toolkit, the taglist plugin doesn't work. 5. The taglist plugin doesn't work with files edited remotely using the netrw plugin. The exuberant ctags utility cannot process files over diff --git a/.vim/doc/term.cnx b/.vim/doc/term.cnx index 212e822..cad5926 100644 --- a/.vim/doc/term.cnx +++ b/.vim/doc/term.cnx @@ -235,7 +235,7 @@ termcap 项目、鼠标和一些其它的项目中使用 8 位字符,通常, t_vb 可视铃声 *t_vb* *'t_vb'* t_ve 光标可见 *t_ve* *'t_ve'* t_vi 光标不可见 *t_vi* *'t_vi'* - t_vs 光标 "非常" 可见 *t_vs* *'t_vs'* + t_vs 光标 "非常" 可见 *t_vs* *'t_vs'* t_xs 如果非空,突出部分不能通过覆盖删除 (hpterm) *t_xs* *'t_xs'* t_ZH 斜体模式 *t_ZH* *'t_ZH'* t_ZR 斜体结束 *t_ZR* *'t_ZR'* diff --git a/.vim/doc/tips.cnx b/.vim/doc/tips.cnx index e04ec64..ee2e671 100644 --- a/.vim/doc/tips.cnx +++ b/.vim/doc/tips.cnx @@ -186,7 +186,7 @@ CTRL-E 和 CTRL-X CTRL-Y 来滚屏。 如果需要统计缓冲区中一个模式 (pattern) 出现的频率,使用 substitute 命令并加入 'n' 标志位以避免实际的替代。Vim 报告的已替代的数目就是模式出现的次数。例: > - :%s/./&/gn 字符数 + :%s/./&/gn 字符数 :%s/\i\+/&/gn 单词数 :%s/^//n 行数 :%s/the/&/gn 任何地方出现的 "the" diff --git a/.vim/doc/todo.cnx b/.vim/doc/todo.cnx index cd046ed..d112698 100644 --- a/.vim/doc/todo.cnx +++ b/.vim/doc/todo.cnx @@ -108,7 +108,7 @@ Unexpectedly inserting a double quote. (Anton Woellert, 2008 Mar 23) Works OK when 'cmdheight' is 2. The utf class table is missing some entries: - 0x2212, minus sign + 0x2212, minus sign 0x2217, star 0x2500, bar 0x26ab, circle @@ -392,7 +392,7 @@ Ruby completion is insecure. Can this be fixed? When 'backupskip' is set from $TEMP special characters need to be escaped. (patch by Grembowietz, 2007 Feb 26, not quite right) -Another problem is that file_pat_to_reg_pat() doesn't recognize "\\", so "\\(" +Another problem is that file_pat_to_reg_pat() doesn't recognize "\\", so "\\(" will be seen as a path separator plus "\(". ":python os.chdir('/tmp')" makes short buffer names invalid. (Xavier de Gaye) @@ -1764,7 +1764,7 @@ Macintosh: don't have a spell file. Useful when there is also text in other languages in the file. - Support more regions? Caolan McNamara argues it's needed for es_XX. - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219777 + https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219777 - Unicode defines another quote character: 0x2019. Use it as an equivalent of a single quote, thus use it as a word character like a quote and match with words, replacing the curly quote with a single quote. diff --git a/.vim/doc/uganda.cnx b/.vim/doc/uganda.cnx index 3cf05ac..67a43f9 100644 --- a/.vim/doc/uganda.cnx +++ b/.vim/doc/uganda.cnx @@ -2,7 +2,7 @@ VIM 参 考 手 册 作者: Bram Moolenaar - 译者: Dasn + 译者: Dasn http://vimcdoc.sf.net *uganda* *Uganda* *copying* *copyright* *license* diff --git a/.vim/doc/undo.cnx b/.vim/doc/undo.cnx index 183c0bc..af7367a 100644 --- a/.vim/doc/undo.cnx +++ b/.vim/doc/undo.cnx @@ -2,7 +2,7 @@ Vim 参考手册 作者:Bram Moolenaar - (译者: jwdu, tocer http://vimcdoc.sf.net) + (译者: jwdu, tocer http://vimcdoc.sf.net) 撤销和重做 *undo-redo* diff --git a/.vim/doc/usr_01.cnx b/.vim/doc/usr_01.cnx index 66b6e69..d156572 100644 --- a/.vim/doc/usr_01.cnx +++ b/.vim/doc/usr_01.cnx @@ -97,7 +97,7 @@ Vim 的手册分成两个部分: < 在 MS-Windows 中,你可以在 Program/vim 菜单中找到这个命令,或者在 $VIMRUNTIME 目录中运行 vimtutor.bat 程序。 - + 这个命令会建立一份教程文件的拷贝,你可以任意修改它而不用担心会损坏原始的文件。 这个教材有各种语言的版本。要检查你需要的版本是否可用,使用相应语言的双字母 缩写。例如,对于法语版本: diff --git a/.vim/doc/usr_02.cnx b/.vim/doc/usr_02.cnx index c10bd4b..cf7bdf1 100644 --- a/.vim/doc/usr_02.cnx +++ b/.vim/doc/usr_02.cnx @@ -119,7 +119,7 @@ Vim 新手常常遇到的一个问题是不知道自己在什么模式下,可 *02.3* 移动光标 回到普通模式后,你可以使用如下命令移动光标: - + h 左 *hjkl* j 下 k 上 diff --git a/.vim/doc/usr_03.cnx b/.vim/doc/usr_03.cnx index 1e80bb7..4a9f32e 100644 --- a/.vim/doc/usr_03.cnx +++ b/.vim/doc/usr_03.cnx @@ -83,10 +83,10 @@ (这里 "....." 表示空白字符) - 象大多数移动命令一样,"$" 命令接受计数前缀。但是 "移动到一行的行尾 n 次" + 象大多数移动命令一样,"$" 命令接受计数前缀。但是 "移动到一行的行尾 n 次" 没有什么意义,所以它会使光标移动到另一行。例如,"1$" 移动到当前行的行尾,而 "2$" 则移动到下一行的行尾,如此类推。 - "0" 命令不能加计数前缀,因为 "0" 本身就是个数字。而且,出人意料地是,"^" + "0" 命令不能加计数前缀,因为 "0" 本身就是个数字。而且,出人意料地是,"^" 命令使用计数前缀也没有任何效果。 ============================================================================== @@ -126,7 +126,7 @@ 永远都不会移出当前行,哪怕这两行是连续的一个句子。 有时你启动了一个查找命令后才发现自己执行了一个错误的命令。例如,你启动了一个 -"f" 命令后才发现你本来想用的是 "F"。要放弃这个查找,输入 。所以 "f" +"f" 命令后才发现你本来想用的是 "F"。要放弃这个查找,输入 。所以 "f" 取消一个向前查找命令而不做任何操作。 备注: 可以中止大部分命令,而不仅仅 是查找。 @@ -260,7 +260,7 @@ CTRL-U 命令向下滚动半屏。想象一下通过一个视窗看着你的文 每次滚一行的命令是 CTRL-E (上滚) 和 CTRL-Y (下滚)。可以把 CTRL-E 想象为是多给 你一行 (one line Extra)。 -正向滚动一整屏的命令是 CTRL-F (减去两行)。反向的命令是 CTRL-B。幸运地,CTRL-F +正向滚动一整屏的命令是 CTRL-F (减去两行)。反向的命令是 CTRL-B。幸运地,CTRL-F 是向前 (forward) 滚动,CTRL-B 是向后 (backward) 滚动,这比较好记。 移动中的一个常见问题是,当你用 "j" 向下移动的时候,你的光标会处于屏幕的底部, @@ -394,7 +394,7 @@ CTRL-U 命令向下滚动半屏。想象一下通过一个视窗看着你的文 调 节 查 找 方 式 -有一些选项能改变查找命令的工作方式。其中有几个是最基本的: +有一些选项能改变查找命令的工作方式。其中有几个是最基本的: > :set incsearch @@ -510,7 +510,7 @@ O)。考虑如下命令序列: > /^The CTRL-O -你首先跳到第 33 行,然后查找以 "The" 开头的一行,然后用 CTRL-O 你会跳回到 33 +你首先跳到第 33 行,然后查找以 "The" 开头的一行,然后用 CTRL-O 你会跳回到 33 行。再执行 CTRL-O 你会跳到最初的地方。现在你使用 CTRL-I,就又跳到 33 行。而再 用一次 CTRL-I 你又会到达找到 "The" 的地方。 diff --git a/.vim/doc/usr_04.cnx b/.vim/doc/usr_04.cnx index a1c6c0a..f8bc5b5 100644 --- a/.vim/doc/usr_04.cnx +++ b/.vim/doc/usr_04.cnx @@ -62,7 +62,7 @@ Vim 只删除从当前位置到 "动作" 把光标移动到的位置的前一个 To err is human ~ -以上定义了一个命令组合模式:操作符-动作。你首先输入一个操作符命令,例如,"d" +以上定义了一个命令组合模式:操作符-动作。你首先输入一个操作符命令,例如,"d" 就是一个删除操作符。然后你输入一个动作命令,例如 "4l" 或者 "w"。这种方法使你可 以在任何你能越过的文本上执行各种操作。 diff --git a/.vim/doc/usr_05.cnx b/.vim/doc/usr_05.cnx index e345644..97a4348 100644 --- a/.vim/doc/usr_05.cnx +++ b/.vim/doc/usr_05.cnx @@ -202,7 +202,7 @@ vimrc 文件可以包含任何冒号命令。最简单的是设置选项命令 让我们来分解一下这个命令: F5 功能键。这是命令的触发器。当这个键被按下时,相应的命令即被 执行。 - + i{ 插入 { 字符。 键用于退出插入模式。 e 移动到词尾。 @@ -285,7 +285,7 @@ Vim 中有两种插件: 除了把这些插件直接放进 plugin/ 目录以外,还可以更好地组织一下,把它们放进 plugin 的单独的子目录中。例如,可以考虑把所有 Perl 插件放置在 -"~/.vim/plugin/perl/*.vim" +"~/.vim/plugin/perl/*.vim" 文件类型插件 *add-filetype-plugin* *ftplugins* @@ -332,7 +332,7 @@ Vim 的发布中包括一套针对不同文件类型的插件。你可以用如 mkdir $VIM/vimfiles/ftplugin/fortran copy thefile $VIM/vimfiles/ftplugin/fortran/too.vim -总的来说,一个文件类型相关的插件的名称是: +总的来说,一个文件类型相关的插件的名称是: > ftplugin/.vim ftplugin/_.vim diff --git a/.vim/doc/usr_08.cnx b/.vim/doc/usr_08.cnx index 2592c5d..f9a7133 100644 --- a/.vim/doc/usr_08.cnx +++ b/.vim/doc/usr_08.cnx @@ -364,7 +364,7 @@ Vim 会用垂直分割的方式打开两个文件。你只能看到你修改过 区别: > :edit main.c - :vertical diffsplit main.c~ + :vertical diffsplit main.c~ ":vertical" 命令使窗口用垂直的方式分割。如果你不写这个命令,结果会变成水平分 割。 @@ -484,7 +484,7 @@ obtain"。本来用 "dg" (diff get) 会更好。可是它已经有另外的意 现在,你拥有了两个标签页。第一个是文件 "thisfile" 的窗口,第二个是文件 "thatfile" 的窗口。这就像是两张重叠的纸,它们所带的的标签露在外面,显示其文件 -名。 +名。 现在,使用鼠标单击顶端的 "thisfile"。结果是 diff --git a/.vim/doc/usr_10.cnx b/.vim/doc/usr_10.cnx index 736fae6..9fdc861 100644 --- a/.vim/doc/usr_10.cnx +++ b/.vim/doc/usr_10.cnx @@ -74,7 +74,7 @@ 你已经执行过一次,你可以用 "@@" 完成这个操作,这更容易输入一些。例如,你上次使 用 "@b" 命令引用了寄存器 b,下一个 "@@" 命令将使用寄存器 b。 如果你对回放命令和 "." 命令作一个比较,你会发现几个区别。首先,"." 只能重 -复一次改动。而在上例中,"@a" 可以重复多次改动,还能够执行移动操作。第二, "." +复一次改动。而在上例中,"@a" 可以重复多次改动,还能够执行移动操作。第二, "." 只能记住最后一次变更操作。而寄存器执行命令允许你记录任何操作并使用象 "@a" 这样 的命令回放这些被记录的操作。最后,你可以使用 26 个寄存器,因此,你可以记录多达 26 个命令序列。 @@ -445,7 +445,7 @@ CTRL-V 命令可以选中一个矩形文本块。有几个命令是专门用来 备注: - 如果你要在可视列块中包括行尾之后的字符,请参考 25 章的 'virtualedit' + 如果你要在可视列块中包括行尾之后的字符,请参考 25 章的 'virtualedit' 特性。 @@ -606,7 +606,7 @@ CTRL-V 命令可以选中一个矩形文本块。有几个命令是专门用来 符,所以删除一行就是 "dd"。相似地,"gugu" 使整一行变成小写。这可以缩成 "guu"。 "gUgU" 可以缩成 "gUU" 而 "g~g~" 则是 "g~~"。例如: > - g~~ + g~~ < Some GIRLS have Fun ----> sOME girls HAVE fUN ~ diff --git a/.vim/doc/usr_11.cnx b/.vim/doc/usr_11.cnx index 9a92400..0231061 100644 --- a/.vim/doc/usr_11.cnx +++ b/.vim/doc/usr_11.cnx @@ -125,7 +125,7 @@ Vim 会列出所有它能找到的交换文件。它还会从其它目录寻找 Vim -r .help.txt.swo 这个方法在交换文件在一个非预期的目录中时很有用。如果这还不行,看看 Vim 报告的 -文件名是什么,然后根据需要给文件换名。根据 'directory' 选项的值你可以知道 Vim +文件名是什么,然后根据需要给文件换名。根据 'directory' 选项的值你可以知道 Vim 会把交换文件放到什么地方。 备注: @@ -184,7 +184,7 @@ Vim 尽可能保护你不要做傻事。有时你打开一个文件,天真地 如果你已经进行了恢复,请删除交换文件 ".main.c.swp" ~ 以避免再看到此消息。~ - ) + ) 你遇到这个信息是因为 Vim 发现你编辑的文件的交换文件已经存在。这一定是有什么地 方出问题了。可能的原因有两个: diff --git a/.vim/doc/usr_12.cnx b/.vim/doc/usr_12.cnx index f32d5b9..fb500fe 100644 --- a/.vim/doc/usr_12.cnx +++ b/.vim/doc/usr_12.cnx @@ -109,7 +109,7 @@ Vim 会在最后一个文件上报错,因为 ":wnext" 无法移到下一个文 任意多次 * 在 "to" 部分,我们有 "\2" 和 "\1"。这些称为 "反向引用"。它们指向前面模式中的 -\( 和 \) 间的部分。"\2" 指向模式中的第二对 \( 和 \) 间的部分,也就是 "First" +\( 和 \) 间的部分。"\2" 指向模式中的第二对 \( 和 \) 间的部分,也就是 "First" 名 (译者注:英文中 Last Name 表示姓,即家族名,后面的 First Name 表示名字)。 "\1" 指向第一对 \( \),即 "Last" 名。 你可以在替换部分使用多达 9 个反向引用。"\0" 表示整个匹配部分。还有一些特殊 @@ -193,7 +193,7 @@ Vim 会在最后一个文件上报错,因为 ":wnext" 无法移到下一个文 (译者注:中文是: 第 1/0 列; 第 141/157 行; 第 748/774 个词; 第 4489/4976 个字节 ~ - ) + ) 你可以看到你在第几个单词 (748) 上以及文件中的单词总数 (774)。 @@ -207,7 +207,7 @@ Vim 会在最后一个文件上报错,因为 ":wnext" 无法移到下一个文 (译者注:中文是: 选择了 5/293 行; 70/1884 个词; 359/10928 个字节 ~ ) - + 要知道其它计算字数,行数和其它东西总数的方法,可以参见 |count-items|。 @@ -270,7 +270,7 @@ Vim 会在对应的单词上执行外部命令:man。如果能找到相应的 另一种没有用的空格是 Tab 前面的字符。通常这可以删除而不影响格式。但并不是总这 样!所以,你最好手工删除它。执行如下命令: > - / + / 你什么都看不见,其实这是一个空格加一个 TAB 键。相当于 "/"。现在, 你可以用 "x" 删除多余的空格,并保证格式没有改变。接着你可以用 "n" 找到下一个位 diff --git a/.vim/doc/usr_20.cnx b/.vim/doc/usr_20.cnx index cc9c4d5..17a1789 100644 --- a/.vim/doc/usr_20.cnx +++ b/.vim/doc/usr_20.cnx @@ -1,8 +1,8 @@ *usr_20.txt* For Vim version 7.2. 最近更新:2005年3月 VIM 用户手册 - Bram Moolenaar 著 - 译者: Chimin Yen http://vimcdoc.sf.net - + 译者: Chimin Yen http://vimcdoc.sf.net + 快速键入命令行命令 Vim 具备若干基本功能,以简化键入命令的工作。你可以缩写,编辑和重复冒号命令,而 diff --git a/.vim/doc/usr_21.cnx b/.vim/doc/usr_21.cnx index 47caed9..0e2ce7e 100644 --- a/.vim/doc/usr_21.cnx +++ b/.vim/doc/usr_21.cnx @@ -2,7 +2,7 @@ VIM 用户手册 - Bram Moolenaar 著 译者: Chimin Yen http://vimcdoc.sf.net - + 离开和回来 @@ -69,7 +69,7 @@ 这有点类似于用 CTRL-Z 来挂起 Vim。不同之处在于这种方法启动的是一个新 shell。 -使用图像用户界面时,这个 shell 利用 Vim 的窗口作为其输入和输出端口。既然 Vim +使用图像用户界面时,这个 shell 利用 Vim 的窗口作为其输入和输出端口。既然 Vim 并非终端仿真器,所以使用中未必尽善近美。要是你遇到麻烦,试试切换 'guipty' 选 项。如果这方法仍不奏效,那就只好启动一个新的终端来运行 shell。例如: > diff --git a/.vim/doc/usr_22.cnx b/.vim/doc/usr_22.cnx index 8603df3..fa4e555 100644 --- a/.vim/doc/usr_22.cnx +++ b/.vim/doc/usr_22.cnx @@ -2,7 +2,7 @@ VIM 用户手册 - Bram Moolenaar 著 译者: Chimin Yen http://vimcdoc.sf.net - + 寻找要编辑的文件 @@ -27,7 +27,7 @@ Vim 有个插件可以用来编辑一个目录。试一下这个命令: > :edit . 借助魔术般的自动命令和 Vim 脚本功能,目录的内容被用来填充窗口。看起来就像这 -样: +样: " ============================================================================ ~ " Netrw Directory Listing (netrw v109) ~ @@ -67,9 +67,9 @@ help.txt.info ~ 你可以按 键获取关于 netrw 文件浏览器功能的帮助。帮助文字如下: > - 9. Directory Browsing netrw-browse netrw-dir netrw-list netrw-help + 9. Directory Browsing netrw-browse netrw-dir netrw-list netrw-help - MAPS netrw-maps + MAPS netrw-maps .............Help.......................................|netrw-help| .............Browsing...................................|netrw-cr| ............Deleting Files or Directories..............|netrw-delete| @@ -153,7 +153,7 @@ netrw 浏览器不限于你的本地机器;也可使用 url,如下: (拖 :pwd /home/Bram/VeryLongFileName -Vim 记得最近访问过的那个目录。你可以用 "cd -" 命令回去那儿。例如: +Vim 记得最近访问过的那个目录。你可以用 "cd -" 命令回去那儿。例如: > :pwd /home/Bram/VeryLongFileName @@ -194,7 +194,7 @@ Vim 记得最近访问过的那个目录。你可以用 "cd -" 命令回去那 ============================================================================== *22.3* 查找文件 -假定现在你在编辑一个 C 程序,该程序有这样一行: +假定现在你在编辑一个 C 程序,该程序有这样一行: #include "inits.h" ~ @@ -254,7 +254,7 @@ Vim 编辑器使用术语 "缓冲区" 来描述编辑当中的文件。实际上 隐 藏 的 缓 冲 区 -假设你在编辑文件 one.txt,同时又要编辑文件 two.txt。你本来可以简单地用 ":edit +假设你在编辑文件 one.txt,同时又要编辑文件 two.txt。你本来可以简单地用 ":edit two.txt" 来办到,但由于你已经修改了 one.txt,那样做就没用了。而你又不想在此时 就把 one.txt 存盘。Vim 可以为你解决这个问题: > @@ -272,7 +272,7 @@ two.txt" 来办到,但由于你已经修改了 one.txt,那样做就没用了 一个缓冲区一经使用,Vim 就记住了一些有关该缓冲区的信息。即使它既不显示在窗 口内,又非隐藏缓冲区,它也仍然在缓冲区列表上。这样的缓冲区称为非激活缓冲区。一 -般而言, +般而言, 激活 显示在窗口内,并加载文本 隐藏 不显示在窗口内,但加载文本 @@ -325,7 +325,7 @@ two.txt" 来办到,但由于你已经修改了 one.txt,那样做就没用了 Vim 将为你键入的文件名找到最佳匹配。如果只有一个缓冲区与之匹配,该缓冲区就被选 用。在这个例子中,被选中的就是 "help.txt"。 - 要在新窗口中打开一个缓冲区: + 要在新窗口中打开一个缓冲区: :sbuffer 3 @@ -334,21 +334,21 @@ Vim 将为你键入的文件名找到最佳匹配。如果只有一个缓冲区 使 用 缓 冲 区 列 表 -你可以用这些命令在缓冲区列表间移动: +你可以用这些命令在缓冲区列表间移动: :bnext 编辑下一个缓冲区 :bprevious 编辑前一个缓冲区 :bfirst 编辑第一个缓冲区 :blast 编辑最后一个缓冲区 -要从缓冲区列表上删除一个缓冲区,用这个命令: +要从缓冲区列表上删除一个缓冲区,用这个命令: :bdelete 3 同样,这命令也适用文件名。 如果你删除了一个激活的缓冲区 (显示在窗口中的缓冲区),你也就关闭了该窗口。如 果你删除了当前缓冲区,你也就关闭了当前窗口。如果它是最后一个窗口,Vim 将找一个 -缓冲区来编辑。你无法什么也不编辑! +缓冲区来编辑。你无法什么也不编辑! 备注: 即使用 ":bdelete" 命令删除了缓冲区以后,Vim 依然记得它。这个缓冲区实际 diff --git a/.vim/doc/usr_24.cnx b/.vim/doc/usr_24.cnx index 0e6dc26..e717f9c 100644 --- a/.vim/doc/usr_24.cnx +++ b/.vim/doc/usr_24.cnx @@ -205,7 +205,7 @@ Vim 编辑器会非常努力的来补全不完整的词。默认情况下,它 the file is found in /usr/ ~ -如果你现在按 CTRL-N,你就又回到 "/u"。接受 "/usr/" 并进入下一层目录,再来一次 +如果你现在按 CTRL-N,你就又回到 "/u"。接受 "/usr/" 并进入下一层目录,再来一次 CTRL-X CTRL-F: the file is found in /usr/X11R6/ ~ @@ -229,7 +229,7 @@ CTRL-X CTRL-F: 些可选项为 "struct foo" 所拥有。这和使用 CTRL-P 有很大不同,后者补全任意单词, 而我们这里只要求 "struct foo" 的成员。 -为使全能补全工作,需要做一些初始化。起码,要保证打开文件类型插件。你的 vimrc +为使全能补全工作,需要做一些初始化。起码,要保证打开文件类型插件。你的 vimrc 文件应该包含形如: > filetype plugin on 或: > @@ -238,7 +238,7 @@ CTRL-X CTRL-F: 对于 C 代码,需要建立标签文件并设置 'tags' 选项。在|ft-c-omni|中有进一步的解 释。对于其他文件类型,需要做类似的事情,请查看 |compl-omni-filetypes|。补全只 -对特定文件类型有效。查看 'omnifunc' 选项的值,以便检查补全能否正常工作。 +对特定文件类型有效。查看 'omnifunc' 选项的值,以便检查补全能否正常工作。 ============================================================================== *24.4* 重复一次插入 @@ -457,7 +457,7 @@ CTRL-V 命令用来插入下一个字面意义上的字符。换言之,无论 备注: 在 MS-Windows 环境下,CTRL-V 用来粘贴文本。所以用 CTRL-Q 代替 CTRL-V。 另外,在 Unix 环境下,CTRL-Q 在某些终端上不起作用,因其另有特殊意义。 - + 你也可以用命令 CTRL-V {digits} 来插入一个以若干个十进位数字 {digits} 表示的字 符。例如,字符编码 127 是字符 (但并不一定是 键!)。要插入 , 键入: > diff --git a/.vim/doc/usr_25.cnx b/.vim/doc/usr_25.cnx index e194b28..2921ebe 100644 --- a/.vim/doc/usr_25.cnx +++ b/.vim/doc/usr_25.cnx @@ -63,7 +63,7 @@ Vim 有一系列功能可以使处理文本变得更容易。在默认情况下 重 排 文 本: Vim 编辑器并不是一个字处理器。字处理器在你删除了段落开头的一些东西时会重新调整 -换行符。(译者注: 这意味着后边的文本会向前补进,使换行位置保持不变)。但在 Vim +换行符。(译者注: 这意味着后边的文本会向前补进,使换行位置保持不变)。但在 Vim 里并不是这样。因此,当你从第一行删除单词 "programming" 时,你所得到的只是一个 短行: @@ -112,7 +112,7 @@ Vim 编辑器并不是一个字处理器。字处理器在你删除了段落开 "gg" 用来移动到第一行,"gqG" 用来对文本进行排版操作直到最后一行。 警告: 如果你的段落没有被正确的分隔开,它们将被连接在一起。一个常见的错误是 文件内包含一些只有空格或制表符的行。这些是空白行,但不是空行。 - + Vim 并不是只能对纯文本进行排版操作。请参考 |fo-table| 一节获取更详细的信息。参 考 'joinspaces' 选项以了解如何改变在句号之后加入的空格数。 也可以调用外部程序来做排版。这在 Vim 自带的排版功能无法满足你的文本的需要时 @@ -132,7 +132,7 @@ Vim 并不是只能对纯文本进行排版操作。请参考 |fo-table| 一节 :1,5center 40 -将得到下面的结果: +将得到下面的结果: I taught for a while. One ~ time, I was stopped by the ~ @@ -330,7 +330,7 @@ tabstop 的正常值为 8。你可以通过把 'tabstop' 的值设置为 3 来 开,从而难以阅读。 编辑此类段落时,一个好的解决方法是设置 'linebreak' 选项。这样,Vim 将会在 一个适当的地方回绕行显示,同时仍保持文件中的文本不变。 - 没有设置 'linebreak' 选项时的文本看起来可能是这样: + 没有设置 'linebreak' 选项时的文本看起来可能是这样: +---------------------------------+ |letter generation program for a b| @@ -437,7 +437,7 @@ tabstop 的正常值为 8。你可以通过把 'tabstop' 的值设置为 3 来 /test 3 现在按下 "j",光标就到了你要输入对应 "input A" 的值的地方了。输入 "0.693",结 -果是: +果是: nice table test 1 test 2 test 3 ~ input A 0.534 0.693 ~ diff --git a/.vim/doc/usr_26.cnx b/.vim/doc/usr_26.cnx index 937ea54..82d9789 100644 --- a/.vim/doc/usr_26.cnx +++ b/.vim/doc/usr_26.cnx @@ -2,7 +2,7 @@ VIM 用户手册 - Bram Moolenaar 著 译者: Chimin Yen http://vimcdoc.sf.net - + 重复 diff --git a/.vim/doc/usr_27.cnx b/.vim/doc/usr_27.cnx index e96a45e..a5d0c3b 100644 --- a/.vim/doc/usr_27.cnx +++ b/.vim/doc/usr_27.cnx @@ -2,7 +2,7 @@ VIM 用户手册 - Bram Moolenaar 著 译者: Chimin Yen http://vimcdoc.sf.net - + 查找命令及模式 @@ -258,8 +258,8 @@ Vim 将光标停留在别的位置上。在正向查找命令 "/" 中指定偏 \{,4} 0,1,2,3 或 4 \{3,} 3,4,5 等等 \{0,1} 0 或 1,同 \= - \{0,} 0 或更多,同 * - \{1,} 1 或更多,同 \+ + \{0,} 0 或更多,同 * + \{1,} 1 或更多,同 \+ \{3} 3 diff --git a/.vim/doc/usr_28.cnx b/.vim/doc/usr_28.cnx index 3393983..69b60e1 100644 --- a/.vim/doc/usr_28.cnx +++ b/.vim/doc/usr_28.cnx @@ -233,7 +233,7 @@ (B) 利用 |zo| 和 |zc| 命令打开和关闭指定的折叠。 这个方法允许你仅仅打开那些你要打开的折叠,而不影响其它的折叠。 -这两种方法可以结合起来用: 你可以先用几次 |zm| 以关闭大多数折叠,然后用 |zo| +这两种方法可以结合起来用: 你可以先用几次 |zm| 以关闭大多数折叠,然后用 |zo| 打开一个指定的折叠。或者,用 |zR| 打开所有的折叠,然后用 |zc| 关闭指定的折叠。 但是,当折叠方法 'foldmethod' 的值为 "indent" 时,你不能手动定义折叠。因为那样 diff --git a/.vim/doc/usr_29.cnx b/.vim/doc/usr_29.cnx index 39c18c2..5b10b82 100644 --- a/.vim/doc/usr_29.cnx +++ b/.vim/doc/usr_29.cnx @@ -90,7 +90,7 @@ Vim 的创造者是一名计算机程序员,因此这就不奇怪 Vim 中有 < 你可以在前面加上要向前跳转的标签个数。比如:":3tag"。CTRL-T 同样可以加上一个计 数参数。 - 通过这些命令,你可以用 CTRL-] 沿着调用树向前跳转,用 CTRL-T 向回跳转,用 + 通过这些命令,你可以用 CTRL-] 沿着调用树向前跳转,用 CTRL-T 向回跳转,用 ":tags" 命令显示当前位置。 @@ -324,7 +324,7 @@ Vim 会打开一个窗口,跳转到 "write_char" 标签。然后它会回到 在 代 码 块 内 移 动 -C 代码块包含在 {} 中,有时一个代码会很长。要跳转到外部代码块的开始处,用 "[[" +C 代码块包含在 {} 中,有时一个代码会很长。要跳转到外部代码块的开始处,用 "[[" 命令。用 "][" 找到结尾处。(前提是 "{" 和 "}" 都在第一列。) "[{" 命令跳转到当前代码块的开始处。它会跳过同一级别的 {} 对。"]}" 跳转到结 尾。 diff --git a/.vim/doc/usr_30.cnx b/.vim/doc/usr_30.cnx index 92a9b6e..b4a49cc 100644 --- a/.vim/doc/usr_30.cnx +++ b/.vim/doc/usr_30.cnx @@ -251,7 +251,7 @@ Vim 可以记住十个出错信息列表。 *30.3* 自动缩进 你无需每次编辑 C 文件时都手工设定 'cindent' 选项。通过下面的命令你可以使它自动 -化: +化: > :filetype indent on @@ -284,7 +284,7 @@ Vim 识别到的文件类型名: 这样你就可以用 "help" 来表示 {filetype}。 对 {directory} 部分,你需要根据你的运行时目录来设定。请查看下面命令的输 -出: +出: > set runtimepath @@ -292,7 +292,7 @@ Vim 识别到的文件类型名: runtimepath=~/.vim,/usr/local/share/vim/vim60/runtime,~/.vim/after ~ -你需要使用 "~/.vim" 来表示 {directory}。这样最后的文件名就是: +你需要使用 "~/.vim" 来表示 {directory}。这样最后的文件名就是: ~/.vim/indent/help.vim ~ diff --git a/.vim/doc/usr_40.cnx b/.vim/doc/usr_40.cnx index 7176674..6de9745 100644 --- a/.vim/doc/usr_40.cnx +++ b/.vim/doc/usr_40.cnx @@ -338,7 +338,7 @@ SaveIt: > -register 你可以指定一个寄存器。(缺省为无名寄存器。) 指定的寄存器可通过 (即 ) 来操 作。 - -complete={type} 给出命令行补全的方式。|:command-completion| + -complete={type} 给出命令行补全的方式。|:command-completion| 列出了所有可用值。 -bar 命令后可用 | 加另外一个命令,或 " 加一个注释。 -buffer 命令仅对当前缓冲区有效。 @@ -423,7 +423,7 @@ Filetype 事件。你可以利用这个来为某一类型的文件做编辑的 在 |autocmd-events| 可以找到一个完整的事件列表。 -匹 配 模 式 +匹 配 模 式 那个 {file_pattern} 参数实际上可以是一个以逗号分割开的模式列表。例如: "*.c,*.h" 匹配所有文件名以 ".c" 和 ".h" 结尾的文件。 diff --git a/.vim/doc/usr_41.cnx b/.vim/doc/usr_41.cnx index 336ab65..f49c993 100644 --- a/.vim/doc/usr_41.cnx +++ b/.vim/doc/usr_41.cnx @@ -794,7 +794,7 @@ Vim 服务器: did_filetype() 检查某文件类型自动命令是否已经使用 eventhandler() 检查是否在一个事件处理程序内 getpid() 得到 Vim 的进程号 - + libcall() 调用一个外部库函数 libcallnr() 同上,但返回一个数值 @@ -1394,7 +1394,7 @@ Vim 会给出错误信息,因为它被解释成: > 字符为止的内容都是有效的。此行为的后果之一,是你没法总看到这些命令后面包括的空 白字符: > - :map o#include + :map o#include 要发现这个问题,你可以在你的 vimrc 文件内置位 'list' 选项。 @@ -1412,7 +1412,7 @@ Unix 上有一个特殊的办法给一行加注释,从而使得 Vim 脚本可 下面的例子的问题就更大了: > :map ,ab o#include - :unmap ,ab + :unmap ,ab 这里,unmap 命令是行不通的,因为它试着 unmap ",ab "。而这个映射根本就不存在。 因为 'unmap ,ab ' 的末尾的那个空白字符是不可见的,这个错误很难被找出。 diff --git a/.vim/doc/usr_42.cnx b/.vim/doc/usr_42.cnx index 43fe952..bd4c291 100644 --- a/.vim/doc/usr_42.cnx +++ b/.vim/doc/usr_42.cnx @@ -278,7 +278,7 @@ Vim 中有两个特殊的菜单: ToolBar (工具栏) 和 PopUp (弹出菜单)。 现在你需要创建图标。对于 MS-Windows 图标必须是名为 "Compile.bmp" 的位图格式文 件。对于 Unix 系统必须是名为 "Compile.xpm" 的 XPM 格式文件。大小必须是 18 X 18 个像素。对于 MS-Windows 来说也可以使用其它大小的图标,但可能看起来会比较难看。 - 把位图放到 'runtimepath' 其中一个目录下的 "bitmaps" 子目录内。例如:对于 + 把位图放到 'runtimepath' 其中一个目录下的 "bitmaps" 子目录内。例如:对于 Unix 系统可以使用 "~/.vim/bitmaps/Compile.xpm" 目录。 你也可以为工具栏项定义一个工具提示。工具提示是解释工具栏项功能的简短文字。例如 diff --git a/.vim/doc/usr_43.cnx b/.vim/doc/usr_43.cnx index 5be976b..08e95ff 100644 --- a/.vim/doc/usr_43.cnx +++ b/.vim/doc/usr_43.cnx @@ -79,7 +79,7 @@ 设为该命令的参数,除非该选项已经被设置过。该命令保证 'filetype' 不会被重复设 定。 -你可以使用各种各样的模式来匹配你的文件名。也可以包括目录名。见 +你可以使用各种各样的模式来匹配你的文件名。也可以包括目录名。见 |autocmd-patterns|。例如,"/usr/share/scripts/" 目录下的文件都是 "ruby" 文件, 但没有文件扩展名。加入如下一行就可以了: > @@ -88,7 +88,7 @@ au BufNewFile,BufRead /usr/share/scripts/* setf ruby augroup END -然而,如果你编辑一个叫做 /usr/share/scripts/README.txt 的文件,那可不是 ruby +然而,如果你编辑一个叫做 /usr/share/scripts/README.txt 的文件,那可不是 ruby 文件。使用以 "*" 结尾的模式的不妥之处就在于它会匹配过多的文件。为了避免这种情 况,把那个 filetype.vim 文件放到位于 'runtimepath' 最后的那个目录。以 Unix 为 例,你可以用 "~/.vim/after/filetype.vim"。 @@ -110,7 +110,7 @@ $VIMRUNTIME 中的 filetype.vim,因为该目录在 'runtimepath' 的中部。 ~/.vim/after/filetype.vim,然后其中检测 ruby 文件的自动命令才被添加到系统中。 现在你在编辑 /usr/share/scripts/README.txt 时,自动命令是以其被定义的次序一 一检测的。因为匹配 *.txt 模式,这样就会执行 "setf text" 命令,将文件类型设定为 -"text"。之后 ruby 文件的模式也匹配了,"setf ruby" 被执行。但是因为 'filetype' +"text"。之后 ruby 文件的模式也匹配了,"setf ruby" 被执行。但是因为 'filetype' 已经被设为 "text" 了,后者就什么作用也不起了。 当你编辑文件 /usr/share/scripts/foobar 同样的自动命令被检测。但只有 ruby 文 件的那个匹配,因此 "setf ruby" 命令将 'filetype' 设为 ruby。 diff --git a/.vim/doc/usr_44.cnx b/.vim/doc/usr_44.cnx index c54ce31..0738934 100644 --- a/.vim/doc/usr_44.cnx +++ b/.vim/doc/usr_44.cnx @@ -132,7 +132,7 @@ x 语言允许缩写。比如,"next" 可以缩写成 "n"、"ne" 或者 "nex" 关键字超越其它的语法项目。这样上面的 ":syntax keyword" 命令定义的 "if","then" 等关键字将被视为关键字,即使它们匹配 xIdentifier 的模式。 -最后一部分是一个模式 (类似查找中的模式)。"//" 用来包含模式 (像 ":substitute" +最后一部分是一个模式 (类似查找中的模式)。"//" 用来包含模式 (像 ":substitute" 命令中的一样)。你也可以用其它的字符,比如加号或者引号。 现在定义一个注释的匹配。在 x 语言中注释是以 '#' 开头的行: > @@ -174,7 +174,7 @@ x 语言允许缩写。比如,"next" 可以缩写成 "n"、"ne" 或者 "nex" %Get input TODO: Skip white space ~ -你想将 "TODO" 高亮显示成黄色字符,即使它在一个蓝色高亮显示的注释中。要使 Vim +你想将 "TODO" 高亮显示成黄色字符,即使它在一个蓝色高亮显示的注释中。要使 Vim 了解到这些,你需要定义以下的语法组: > :syntax keyword xTodo TODO contained @@ -193,7 +193,7 @@ x 语言用大括号定义代码块。而且一个代码块中可以包含其它 :syntax region xBlock start=/{/ end=/}/ contains=xBlock -假设你有这样的代码: +假设你有这样的代码: while i < b { ~ if a { ~ @@ -271,7 +271,7 @@ x 语言有这种形式的语句: 亮显示。 "skipwhite" 参数告诉 Vim 空白字符 (空格和制表符) 可以出现在项目之间。相似地, -"skipnl" 参数允许项目之间存在换行符;"skipempty" 允许存在空行。注意 "skipnl" +"skipnl" 参数允许项目之间存在换行符;"skipempty" 允许存在空行。注意 "skipnl" 并不忽略一个空行,换行符之后必须有能够匹配的内容。 ============================================================================== @@ -420,12 +420,12 @@ ONELINE ============================================================================== *44.9* 包含其它语法文件 -C++ 语言的语法是 C 语言的超集。因为你不想编写两个独立的语法文件,你可以在 C++ +C++ 语言的语法是 C 语言的超集。因为你不想编写两个独立的语法文件,你可以在 C++ 语法文件中首先读入 C 语言的语法文件: > :runtime! syntax/c.vim -":runtime!" 命令会在 'runtimepath' 里搜索所有的 "syntax/c.vim" 文件。这使得 C +":runtime!" 命令会在 'runtimepath' 里搜索所有的 "syntax/c.vim" 文件。这使得 C 语法定义的方式就像 C 文件里使用的那样。如果你替换了 c.vim 语法文件,或是在另一 个文件中增加了项目,这些都会被载入。 载入 C 语法项目之后,可以定义特定的 C++ 项目。比如,添加一些没在 C 中用到的 @@ -478,7 +478,7 @@ perlPOD 开始于 Perl 文件中的 "=head"。这个区域包含 @Pod 簇。所 :syntax sync ccomment xAltComment -如果你的语言没有 C 风格的注释,你可以用其它的同步方式。最简单的方法是告诉 Vim +如果你的语言没有 C 风格的注释,你可以用其它的同步方式。最简单的方法是告诉 Vim 跳过若干行并从那里开始定位。下面的命令指定 Vim 反向跳过 150 行,并从那里开始分 析: > @@ -506,7 +506,7 @@ perlPOD 开始于 Perl 文件中的 "=head"。这个区域包含 @Pod 簇。所 :syntax sync match shIfSync groupthere NONE "\" -在这个例子中,NONE 告诉 Vim 你不在任何一个特殊的区域内。特别地,你不在一个 if +在这个例子中,NONE 告诉 Vim 你不在任何一个特殊的区域内。特别地,你不在一个 if 代码块内。 你还可以定义没有 "grouphere" 或 "groupthere" 参数的匹配和区域。这些组在同步时 diff --git a/.vim/doc/usr_45.cnx b/.vim/doc/usr_45.cnx index 942957f..93f4237 100644 --- a/.vim/doc/usr_45.cnx +++ b/.vim/doc/usr_45.cnx @@ -66,7 +66,7 @@ gettext 软件包。在解压缩了源代码后,先读一下 src/po/README.txt 导。 翻译本身不是很难的,你不一定要是一个程序员。当然,你必须懂英语和你要翻译成 的语言。 - 当你对你的翻译满意的时候,可以考虑和其它人共享。上载到 vim-online + 当你对你的翻译满意的时候,可以考虑和其它人共享。上载到 vim-online (http://vim.sf.net) 或者 e-mail 给 Vim 的维护者 Vim 。 或者两者都做。 @@ -152,7 +152,7 @@ Vim 在内部使用 Unicode,你将可以用任何编码编辑文件。 http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz ~ -对于 MS-Windows,一些字体包含了一些有限的 Unicode 字符。试一下 "Courier New" +对于 MS-Windows,一些字体包含了一些有限的 Unicode 字符。试一下 "Courier New" 字体。你可以通过 Edit/Select Font... 菜单来选择几种字体试试。但是你只能使用定 宽的字体。例如: > diff --git a/.vim/doc/usr_90.cnx b/.vim/doc/usr_90.cnx index acdd7c5..e986537 100644 --- a/.vim/doc/usr_90.cnx +++ b/.vim/doc/usr_90.cnx @@ -327,7 +327,7 @@ $TERM 设置。如果没什么错误,试试这个: > 第一行你需要键入 CTRL-V 在按 backspace 键。第二行你需要键入 CTRL-V 再按 Delete 键。你可以把这两行加入到你的 vimrc 文件中,参见 |05.1|。 这样做的一个缺点是如 -果你换用另外一个终端程序的话,这些设置可能就不起作用了。其他的解决办法可以在 +果你换用另外一个终端程序的话,这些设置可能就不起作用了。其他的解决办法可以在 |:fixdel| 中找到。 diff --git a/.vim/doc/various.cnx b/.vim/doc/various.cnx index 8d799f3..d6833ba 100644 --- a/.vim/doc/various.cnx +++ b/.vim/doc/various.cnx @@ -103,7 +103,7 @@ g8 显示光标下字符 (假定其为 |UTF-8| 编码) 的各字节的十六 |ex-flags| 说明 [flags]。 *:#* -:[range]# [count] [flags] +:[range]# [count] [flags] 和 :number 相同。 *:#!* @@ -139,7 +139,7 @@ g8 显示光标下字符 (假定其为 |UTF-8| 编码) 的各字节的十六 *:=* := [flags] 显示末行的行号。 |ex-flags| 说明 [flags]。 - + :{range}= [flags] 显示 {range} 范围内最后一行的行号。例如,打印当前行 号: > :.= @@ -399,11 +399,11 @@ N *+X11* 只对 Unix 有效: 可以恢复窗口标题 |X11| {Vi 无此功能} :redi[r] @{a-z}>> 附加消息到寄存器 {a-z}。{Vi 无此功能} -:redi[r] @*> +:redi[r] @*> :redi[r] @+> 重定向消息到选择区或剪贴板。为了后向兼容,寄存器名后的 '>' 可以省略。见 |quotestar| 和 |quoteplus|。 {Vi 无此功能} -:redi[r] @*>> +:redi[r] @*>> :redi[r] @+>> 附加消息到选择区或剪贴板。{Vi 无此功能} :redi[r] @"> 重定向消息到无名寄存器。为了后向兼容,寄存器名后的 '>' @@ -521,7 +521,7 @@ g CTRL-A 只有在 Vim 编译时定义了 MEM_PROFILING 才有效 (这很少 2. 线上帮助 *online-help* *help* ** *:h* *:help* ** *i_* *i_* - 或 + 或 :h[elp] 打开一个窗口并以只读方式显示帮助文件。如果已经打开了一 个帮助窗口,就继续使用那个窗口。不然,如果当前窗口占据 了屏幕的完整宽度或者至少有 80 个字符宽,帮助窗口会出现 diff --git a/.vim/doc/version7.cnx b/.vim/doc/version7.cnx index 41ce6c6..9be419b 100644 --- a/.vim/doc/version7.cnx +++ b/.vim/doc/version7.cnx @@ -276,7 +276,7 @@ MzScheme 接口 *new-MzScheme* 用 'tabpagemax' 设置可打开的最大标签页数。 标签页标签所在的行可以使用高亮的普通文本,也可以使用 GUI 的机制。GUI 标签看起 -来更舒服,但只有少数系统支持。用 'tabline'、'guitablabel' 和 'guitabtooltip' +来更舒服,但只有少数系统支持。用 'tabline'、'guitablabel' 和 'guitabtooltip' 可以定制标签页行,而它显示与否则由 'showtabline' 控制。至于是否使用 GUI 标签由 'guioptions' 的 "e" 标志位决定。 @@ -3952,7 +3952,7 @@ Patch 7.0.173 问题: ":call f().TT()" doesn't work. (Richard Emberson) 解决方案: When a function returns a Dictionary or another composite continue evaluating what follows. -相关文件: src/eval.c +相关文件: src/eval.c Patch 7.0.174 问题: ":mksession" doesn't restore window layout correctly in tab pages @@ -4066,7 +4066,7 @@ Patch 7.0.192 that not all blocks are loaded into memory, causing ml_get errors later. 解决方案: Rename "dont_release" to "mf_dont_release" and also use it to - avoid using the cached line and locked block. + avoid using the cached line and locked block. 相关文件: src/globals.h, src/memfile.c, src/memline.c Patch 7.0.193 @@ -5825,7 +5825,7 @@ Patch 7.1.206 相关文件: src/version.c Patch 7.1.207 -问题: Netbeans: "remove" cannot delete one line. +问题: Netbeans: "remove" cannot delete one line. 解决方案: Remove partial lines and whole lines properly. Avoid a memory leak. (Xavier de Gaye) 相关文件: src/netbeans.c diff --git a/.vim/doc/visual.cnx b/.vim/doc/visual.cnx index 418f5ce..af95a99 100644 --- a/.vim/doc/visual.cnx +++ b/.vim/doc/visual.cnx @@ -225,7 +225,7 @@ CTRL-T、CTRL-R、CTRL-I 和 CTRL-O 将会引起铃声,但可视模式保持 {move-around} 是任何移动命令的组合。注意 它与 {motion} 的区别,后者只代表 _一个 _移动命令。 -对可视区域的另一种操作方法是用模式中的 |/\%V| 项。例如,要在可视区域中把 '(' +对可视区域的另一种操作方法是用模式中的 |/\%V| 项。例如,要在可视区域中把 '(' 全部替代为 '#': > :%s/\%V(/X/g diff --git a/.vim/doc/windows.cnx b/.vim/doc/windows.cnx index ffe2b4f..b07baf6 100644 --- a/.vim/doc/windows.cnx +++ b/.vim/doc/windows.cnx @@ -344,7 +344,7 @@ CTRL-W r *CTRL-W_r* *CTRL-W_CTRL-R* *E443* CTRL-W CTRL-R 向右/下方向旋转窗口。第一个窗口变成第二个,第二个变成第三个…… 最后一个变成第一个。光标保留在相同窗口里。 本操作只在和当前窗口同行或同列的窗口间移动。 - + *CTRL-W_R* CTRL-W R 向左/上方向旋转窗口。第二个窗口变成第一个,第三个变成第二个…… 第一个变成最后一个。光标保留在相同窗口里。 diff --git a/.vim/indent/javascript.vim b/.vim/indent/javascript.vim index 2b4afc7..ef1beef 100644 --- a/.vim/indent/javascript.vim +++ b/.vim/indent/javascript.vim @@ -12,12 +12,12 @@ let b:did_indent = 1 setlocal indentexpr=GetJsIndent() setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*,=*/ " Clean CR when the file is in Unix format -if &fileformat == "unix" +if &fileformat == "unix" silent! %s/\r$//g endif " Only define the functions once per Vim session. if exists("*GetJsIndent") - finish + finish endif function! GetJsIndent() let pnum = prevnonblank(v:lnum - 1) @@ -27,15 +27,15 @@ function! GetJsIndent() let line = getline(v:lnum) let pline = getline(pnum) let ind = indent(pnum) - + if pline =~ '{\s*$\|[\s*$\|(\s*$' let ind = ind + &sw endif - + if pline =~ ';\s*$' && line =~ '^\s*}' let ind = ind - &sw endif - + if pline =~ '\s*]\s*$' && line =~ '^\s*),\s*$' let ind = ind - &sw endif @@ -43,27 +43,27 @@ function! GetJsIndent() if pline =~ '\s*]\s*$' && line =~ '^\s*}\s*$' let ind = ind - &sw endif - + if line =~ '^\s*});\s*$\|^\s*);\s*$' && pline !~ ';\s*$' let ind = ind - &sw endif - + if line =~ '^\s*})' && pline =~ '\s*,\s*$' let ind = ind - &sw endif - + if line =~ '^\s*}();\s*$' && pline =~ '^\s*}\s*$' let ind = ind - &sw endif - if line =~ '^\s*}),\s*$' + if line =~ '^\s*}),\s*$' let ind = ind - &sw endif if pline =~ '^\s*}\s*$' && line =~ '),\s*$' let ind = ind - &sw endif - + if pline =~ '^\s*for\s*' && line =~ ')\s*$' let ind = ind + &sw endif diff --git a/.vim/plugin/bufexplorer.vim b/.vim/plugin/bufexplorer.vim index eb061a3..bba55ad 100644 --- a/.vim/plugin/bufexplorer.vim +++ b/.vim/plugin/bufexplorer.vim @@ -504,7 +504,7 @@ function! BuildBufferList() " Get the name of the buffer. let bufName = bufname(i) - " Only show modifiable buffers (The idea is that we don't + " Only show modifiable buffers (The idea is that we don't " want to show Explorers) if (bufName != '[BufExplorer]') " Get filename & Remove []'s & ()'s diff --git a/.vim/plugin/grep.vim b/.vim/plugin/grep.vim index b9e8f32..0597db4 100644 --- a/.vim/plugin/grep.vim +++ b/.vim/plugin/grep.vim @@ -2,7 +2,7 @@ " Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com) " Version: 1.9 " Last Modified: September 10, 2007 -" +" " Overview " -------- " The grep plugin integrates the grep, fgrep, egrep, and agrep tools with @@ -20,7 +20,7 @@ " Installation " ------------ " 1. Copy the grep.vim file to the $HOME/.vim/plugin or $HOME/vimfiles/plugin -" or $VIM/vimfiles/plugin directory. +" or $VIM/vimfiles/plugin directory. " Refer to the following Vim help topics for more information about Vim " plugins: " :help add-plugin @@ -47,7 +47,7 @@ " results " :Bgrep - Same as :GrepBuffer " :BgrepAdd - Same as :GrepBufferAdd -" :GrepArgs - Search for a pattern on all the Vim argument +" :GrepArgs - Search for a pattern on all the Vim argument " filenames (:args) " :GrepArgsAdd - Same as ":GrepArgs" but adds the results to the current " results @@ -102,7 +102,7 @@ " " You can specify grep options like -i (ignore case) or -w (search for a word) " to the above commands. If the are not specified, then the -" default grep options specified by the variable Grep_Default_Options is +" default grep options specified by the variable Grep_Default_Options is " used. " " You can specify the grep pattern to search as an argument to the above @@ -166,7 +166,7 @@ " window again. " " For more information about other quickfix commands read ":help quickfix" -" +" " When using GUI Vim, the Tools->Search menu item with a few sub-menu items is " created for few variations of the search command. " @@ -250,7 +250,7 @@ " recursive searches: " " :let Grep_Find_Use_Xargs = 0 -" +" " To handle file names with space characters in them, the xargs utility " is invoked with the '--null' argument. If the xargs utility in your system " doesn't accept the '--null' argument, then you can change the @@ -264,7 +264,7 @@ " difference between the backslash and forward slash path separators. " " :let Grep_Cygwin_Find = 1 -" +" " The 'Grep_Null_Device' variable specifies the name of the null device to " pass to the grep commands. This is needed to force the grep commands to " print the name of the file in which a match is found, if only one filename @@ -407,8 +407,8 @@ function! s:RunGrepCmd(cmd, pattern, action) let cmd_output = system(a:cmd) if cmd_output == "" - echohl WarningMsg | - \ echomsg "Error: Pattern " . a:pattern . " not found" | + echohl WarningMsg | + \ echomsg "Error: Pattern " . a:pattern . " not found" | \ echohl None return endif @@ -467,7 +467,7 @@ function! s:RunGrepRecursive(cmd_name, grep_cmd, action, ...) if a:{argcnt} =~ '^-' let grep_opt = grep_opt . " " . a:{argcnt} elseif pattern == "" - let pattern = g:Grep_Shell_Quote_Char . a:{argcnt} . + let pattern = g:Grep_Shell_Quote_Char . a:{argcnt} . \ g:Grep_Shell_Quote_Char else let filepattern = filepattern . " " . a:{argcnt} @@ -501,12 +501,12 @@ function! s:RunGrepRecursive(cmd_name, grep_cmd, action, ...) endif " No argument supplied. Get the identifier and file list from user - if pattern == "" + if pattern == "" let pattern = input("Search for pattern: ", expand("")) if pattern == "" return endif - let pattern = g:Grep_Shell_Quote_Char . pattern . + let pattern = g:Grep_Shell_Quote_Char . pattern . \ g:Grep_Shell_Quote_Char endif @@ -524,7 +524,7 @@ function! s:RunGrepRecursive(cmd_name, grep_cmd, action, ...) endif if filepattern == "" - let filepattern = input("Search in files matching pattern: ", + let filepattern = input("Search in files matching pattern: ", \ g:Grep_Default_Filelist) if filepattern == "" return @@ -584,7 +584,7 @@ function! s:RunGrepRecursive(cmd_name, grep_cmd, action, ...) let cmd = cmd . g:Grep_Xargs_Path . ' ' . g:Grep_Xargs_Options let cmd = cmd . ' ' . grep_path . " " . grep_opt . " -n " let cmd = cmd . grep_expr_option . " " . pattern - let cmd = cmd . ' ' . g:Grep_Null_Device + let cmd = cmd . ' ' . g:Grep_Null_Device else let cmd = g:Grep_Find_Path . " " . startdir let cmd = cmd . " " . find_prune . " -prune -o" @@ -754,7 +754,7 @@ function! s:RunGrep(cmd_name, grep_cmd, action, ...) endif " Get the identifier and file list from user - if pattern == "" + if pattern == "" let pattern = input("Search for pattern: ", expand("")) if pattern == "" return diff --git a/.vim/plugin/jsbeautify.vim b/.vim/plugin/jsbeautify.vim index 2512aa1..176e43d 100644 --- a/.vim/plugin/jsbeautify.vim +++ b/.vim/plugin/jsbeautify.vim @@ -11,7 +11,7 @@ function! s:trim_output() endwhile endfunction -function! s:print_newline(ignore_repeated) +function! s:print_newline(ignore_repeated) let s:if_line_flag = 0 call s:trim_output() if len(s:output)==0 @@ -85,7 +85,7 @@ function! s:get_next_token() let c = s:input[s:parser_pos] let s:parser_pos += 1 - while s:in_array(c, s:whitespace) + while s:in_array(c, s:whitespace) if s:parser_pos >= len(s:input) return ["", "TK_EOF"] endif @@ -99,10 +99,10 @@ function! s:get_next_token() endwhile let wanted_newline = 0 - + if s:opt_preserve_newlines if n_newlines > 1 - for i in [0, 1] + for i in [0, 1] call s:print_newline(i==0) endfor endif @@ -161,7 +161,7 @@ function! s:get_next_token() let comment = "" if s:input[s:parser_pos] == "*" let s:parser_pos += 1 - if s:parser_pos < len(s:input) + if s:parser_pos < len(s:input) while !(s:input[s:parser_pos] == "*" && s:parser_pos + 1 < len(s:input) && s:input[s:parser_pos + 1] == "/" && s:parser_pos < len(s:input)) let comment .= s:input[s:parser_pos] let s:parser_pos += 1 @@ -217,7 +217,7 @@ function! s:get_next_token() let resulting_string .= sep if sep == "/" - + while s:parser_pos < len(s:input) && s:in_array(s:input[s:parser_pos], s:wordchar) let resulting_string .= s:input[s:parser_pos] let s:parser_pos += 1 @@ -247,7 +247,7 @@ function! s:get_next_token() endif endif - if c == "<" && s:input[s:parser_pos-1 : s:parser_pos+3] == "