diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-08-11 20:09:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-08-11 20:09:58 +0000 |
commit | 488c6512d9fbe998b2d6ef64bd50d323ccb6607f (patch) | |
tree | 9e73a6df9accd1ad5c03e4271e4144708b5722d3 /runtime | |
parent | 8b1e71fa25088fa133b440327cb4f500a3a61767 (diff) |
updated for version 7.0128
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 4 | ||||
-rw-r--r-- | runtime/doc/insert.txt | 29 | ||||
-rw-r--r-- | runtime/doc/options.txt | 6 | ||||
-rw-r--r-- | runtime/doc/pi_netrw.txt | 87 | ||||
-rw-r--r-- | runtime/doc/spell.txt | 6 | ||||
-rw-r--r-- | runtime/doc/syntax.txt | 62 | ||||
-rw-r--r-- | runtime/doc/tags | 12 | ||||
-rw-r--r-- | runtime/doc/todo.txt | 5 | ||||
-rw-r--r-- | runtime/doc/version7.txt | 10 | ||||
-rw-r--r-- | runtime/plugin/netrw.vim | 364 | ||||
-rw-r--r-- | runtime/spell/yi/!yi.diff | 7 | ||||
-rw-r--r-- | runtime/spell/yi/README.txt | 6 | ||||
-rw-r--r-- | runtime/spell/yi/yi.diff | 18 | ||||
-rw-r--r-- | runtime/syntax/tex.vim | 39 |
14 files changed, 454 insertions, 201 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index a47f472600..f98bd93721 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0aa. Last change: 2005 Aug 05 +*eval.txt* For Vim version 7.0aa. Last change: 2005 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3983,7 +3983,7 @@ soundfold({word}) *spellbadword()* spellbadword() Return the badly spelled word under or after the cursor. - The cursor is advanced to the start of the bad word. + The cursor is moved to the start of the bad word. When no bad word is found in the cursor line an empty String is returned and the cursor doesn't move. diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 087a0bfdb5..43b3d4f416 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1,4 +1,4 @@ -*insert.txt* For Vim version 7.0aa. Last change: 2005 Aug 01 +*insert.txt* For Vim version 7.0aa. Last change: 2005 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -354,6 +354,8 @@ CTRL-G CTRL-J cursor one line down, insert start column *i_CTRL-G_CTRL-J* <MouseUp> scroll three lines up *i_<MouseUp>* <S-MouseUp> scroll a full page up *i_<S-MouseUp>* CTRL-O execute one command, return to Insert mode *i_CTRL-O* +CTRL-\ CTRL-O like CTRL-O but don't move the cursor *i_CTRL-\_CTRL-O* +CTRL-L when 'insertmode' is set: go to Normal mode *i_CTRL-L* CTRL-G u break undo sequence, start new change *i_CTRL-G_u* ----------------------------------------------------------------------- @@ -363,7 +365,8 @@ option. The CTRL-O command sometimes has a side effect: If the cursor was beyond the end of the line, it will be put on the last character in the line. In mappings it's often better to use <Esc> (first put an "x" in the text, <Esc> -will then always put the cursor on it). +will then always put the cursor on it). Or use CTRL-\ CTRL-O, but then +beware of the cursor possibly being beyond the end of the line. The shifted cursor keys are not available on all terminals. @@ -567,7 +570,8 @@ Completion can be done for: 9. Vim command-line |i_CTRL-X_CTRL-V| 10. User defined completion |i_CTRL-X_CTRL-U| 11. Occult completion |i_CTRL-X_CTRL-O| -12. keywords in 'complete' |i_CTRL-N| +12. Spelling suggestions |i_CTRL-X_s| +13. keywords in 'complete' |i_CTRL-N| All these (except 2) are done in CTRL-X mode. This is a sub-mode of Insert and Replace modes. You enter CTRL-X mode by typing CTRL-X and one of the @@ -893,6 +897,25 @@ CTRL-X CTRL-O Guess what kind of item is in front of the cursor and previous one. +Spelling suggestions *compl-spelling* + +The word in front of the cursor is located and correctly spelled words are +suggested to replace it. The word doesn't actually have to be badly spelled. +NOTE: CTRL-S suspends display in many Unix terminals. Use 's' instead. Type +CTRL-Q to resume displaying. + + *i_CTRL-X_CTRL-S* *i_CTRL-X_s* +CTRL-X CTRL-S or +CTRL-X s Locate the word in front of the cursor and find the + first spell suggestion for it. + CTRL-S or + CTRL-N Use the next suggestion. This replaces the previous + one. Note that you can't use 's' here. + + CTRL-P Use the previous suggestion. This replaces the + previous one. + + Completing keywords from different sources *compl-generic* *i_CTRL-N* diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index f17cf6516d..70bdb87daf 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 7.0aa. Last change: 2005 Aug 05 +*options.txt* For Vim version 7.0aa. Last change: 2005 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3732,9 +3732,9 @@ A jump table for the options with a short description can be found at |Q_op|. - Use CTRL-O to execute one Normal mode command |i_CTRL-O|). When this is a mapping, it is executed as if 'insertmode' was off. Normal mode remains active until the mapping is finished. - *i_CTRL-L* - Use CTRL-L to execute a number of Normal mode commands, then use - <Esc> to get back to Insert mode. + <Esc> to get back to Insert mode. Note that CTRL-L moves the cursor + left, like <Esc> does when 'insertmode' isn't set. |i_CTRL-L| These items change when 'insertmode' is set: - when starting to edit of a file, Vim goes to Insert mode. diff --git a/runtime/doc/pi_netrw.txt b/runtime/doc/pi_netrw.txt index a7e6e3bed6..435d51b009 100644 --- a/runtime/doc/pi_netrw.txt +++ b/runtime/doc/pi_netrw.txt @@ -1,4 +1,4 @@ -*pi_netrw.txt* For Vim version 7.0. Last change: Aug 08, 2005 +*pi_netrw.txt* For Vim version 7.0. Last change: Aug 09, 2005 VIM REFERENCE MANUAL by Charles E. Campbell, Jr. @@ -580,12 +580,12 @@ MAPS *netrw-maps* x................Customizing Browsing.......................|netrw-x| COMMANDS *netrw-explore-cmds* - :Explore[!] [dir].Explore directory of current file........|netrw-explore| - :Sexplore[!] [dir].Split & Explore directory of current file|netrw-explore| - :Hexplore[!] [dir].Horizontal Split & Explore...............|netrw-explore| - :Vexplore[!] [dir].Vertical Split & Explore.................|netrw-explore| - :Pexplore[!] [dir].Vertical Split & Explore.................|netrw-explore| - :Nexplore[!] [dir].Vertical Split & Explore.................|netrw-explore| + :Explore[!] [dir] Explore directory of current file........|netrw-explore| + :Sexplore[!] [dir] Split & Explore directory ...............|netrw-explore| + :Hexplore[!] [dir] Horizontal Split & Explore...............|netrw-explore| + :Vexplore[!] [dir] Vertical Split & Explore.................|netrw-explore| + :Pexplore[!] [dir] Vertical Split & Explore.................|netrw-explore| + :Nexplore[!] [dir] Vertical Split & Explore.................|netrw-explore| QUICK REFERENCE COMMANDS TABLE *netrw-browse-cmds* > @@ -745,28 +745,32 @@ ssh interaction, etc, see |netrw-list-hack|. *netrw-hexplore* *netrw-sexplore* DIRECTORY EXPLORING COMMANDS *netrw-nexplore* *netrw-vexplore* - :Explore[!] [dir]... Explore directory of current file - :Sexplore[!] [dir]... Split & Explore directory of current file - :Hexplore[!] [dir]... Horizontal Split & Explore - :Vexplore[!] [dir]... Vertical Split & Explore - :Nexplore............. used with **/patterns; go to next matching file - :Pexplore............. used with **/patterns; go to previous matching file - -The Explore command will open the local-directory browser on the current -file's directory (or on directory [dir] if specified). The window will be -split only if the file has been modified, otherwise the browsing window will -take over that window. Normally the splitting is taken horizontally; the -optional ! will use vertical splitting. - -Sexplore will always split the window before invoking the local-directory -browser. As with Explore, the splitting is normally done horizontally, but -with the optional ! the splitting will be done vertically. - -Hexplore does an Explore with |belowright| horizontal splitting; the -optional ! does the Explore with |aboveleft| horizontal splitting. - -Vexplore does an Explore with |leftabove| vertical splitting; the -optional "!" does an Explore with |topleft| vertical splitting. + :Explore[!] [dir]... Explore directory of current file *:Explore* + :Sexplore[!] [dir]... Split&Explore directory of current file *:Sexplore* + :Hexplore[!] [dir]... Horizontal Split & Explore *:Hexplore* + :Vexplore[!] [dir]... Vertical Split & Explore *:Vexplore* + + Used with :Explore **/pattern : + :Nexplore............. go to next matching file *:Nexplore* + :Pexplore............. go to previous matching file *:Pexplore* + +:Explore will open the local-directory browser on the current file's + directory (or on directory [dir] if specified). The window will be + split only if the file has been modified, otherwise the browsing + window will take over that window. Normally the splitting is taken + horizontally. +:Explore! is like :Explore, but will use vertical splitting. +:Sexplore will always split the window before invoking the local-directory + browser. As with Explore, the splitting is normally done + horizontally. +:Sexplore! [dir] is like :Sexplore, but the splitting will be done vertically. +:Hexplore [dir] does an :Explore with |:belowright| horizontal splitting. +:Hexplore! [dir] does an :Explore with |:aboveleft| horizontal splitting. +:Vexplore [dir] does an :Explore with |:leftabove| vertical splitting. +:Vexplore! [dir] does an :Explore with |:rightbelow| vertical splitting. + +By default, these commands use the current file's directory. However, one +may explicitly provide a directory (path) to use. (Following needs v7.0 or later) *netrw-starstar* When Explore, Sexplore, Hexplore, or Vexplore are used like @@ -941,7 +945,7 @@ the "p" key when the cursor is atop the desired filename to be previewed. SELECTING SORTING STYLE *netrw-s* *netrw-sort* One may select the sorting style by name, time, or (file) size. The -"s" map allows one to circulate among the three choices; the directory +"s" map allows one to circulate amongst the three choices; the directory listing will automatically be refreshed to reflect the selected style. @@ -952,7 +956,7 @@ sequence (g:netrw_sort_sequence). The sorting sequence typically prioritizes the name-listing by suffix, although any pattern will do. Patterns are delimited by commas. The default sorting sequence is: > - /$,*,\.bak$,\.o$,\.h$,\.info$,\.swp$,\.obj$ + [\/]$,*,\.bak$,\.o$,\.h$,\.info$,\.swp$,\.obj$ < The lone * is where all filenames not covered by one of the other patterns will end up. One may change the sorting sequence by modifying @@ -1072,7 +1076,7 @@ the associated security issues. (This section is likely to grow as I get feedback) (also see |netrw-debug|) - + *netrw-p1* P1. I use windows 95, and my ftp dumps four blank lines at the end of every read. @@ -1081,8 +1085,7 @@ the associated security issues. let g:netrw_win95ftp= 1 - - + *netrw-p2* P2. I use windows, and my network browsing with ftp doesn't sort by time or size @@ -1100,6 +1103,7 @@ the associated security issues. let g:netrw_cygwin= 1 + *netrw-p3* P3. I tried rcp://user@host/ (or protocol other than ftp) and netrw used ssh! That wasn't what I asked for... @@ -1108,6 +1112,7 @@ the associated security issues. When it comes time to do download a file (not just a directory listing), netrw will use the given protocol to do so. + *netrw-p4* P4. I would like long listings to be the default. let g:netrw_longlist=1 @@ -1115,6 +1120,7 @@ the associated security issues. Check out |netrw-browse-var| for more customizations that you can set. + *netrw-p5* P5. My times come up oddly in local browsing Does your system's strftime() accept the "%c" to yield dates @@ -1123,6 +1129,7 @@ the associated security issues. your <.vimrc>: let g:netrw_timefmt= "%X" (where X is the option) + *netrw-p6* P6. I want my current directory to track my browsing. How do I do that? @@ -1133,9 +1140,11 @@ the associated security issues. 9. Debugging *netrw-debug* The <netrw.vim> script is typically available as: - +> /usr/local/share/vim/vim6x/plugin/netrw.vim - +< -or- > + /usr/local/share/vim/vim7x/plugin/netrw.vim +< which is loaded automatically at startup (assuming :set nocp). 1. Get the <Decho.vim> script, available as: @@ -1179,6 +1188,12 @@ which is loaded automatically at startup (assuming :set nocp). ============================================================================== 10. History *netrw-history* + v60: * when using the i map to switch between long and short listings, + netrw will now keep cursor on same line + * "Match # of #" now uses status line + * :Explore **/*.c will now work from a non-netrw-browser window + * :Explore **/patterns can now be run in separate browser windows + * active banner (hit <cr> will cause various things to happen) v59: * bugfix -- another keepalt work-around installed (for vim6.3) * "Match # of #" for Explore **/pattern matches v58: * Explore and relatives can now handle **/somefilepattern (v7) diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt index 573a9429d9..d76c66b806 100644 --- a/runtime/doc/spell.txt +++ b/runtime/doc/spell.txt @@ -1,4 +1,4 @@ -*spell.txt* For Vim version 7.0aa. Last change: 2005 Jul 31 +*spell.txt* For Vim version 7.0aa. Last change: 2005 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -145,6 +145,10 @@ z? For the word under/after the cursor suggest correctly :spellr[epall] Repeat the replacement done by |z?| for all matches with the replaced word in the current window. +In Insert mode, when the cursor is after a badly spelled word, you can use +CTRL-X s to find suggestions. This works like Insert mode completion. Use +CTRL-N to use the next suggestion, CTRL-P to go back. |i_CTRL-X_s| + The 'spellsuggest' option influences how the list of suggestions is generated and sorted. See |'spellsuggest'|. diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index dfe93cabc1..3643f7aa0c 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 7.0aa. Last change: 2005 Jul 29 +*syntax.txt* For Vim version 7.0aa. Last change: 2005 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -399,7 +399,7 @@ Go back to the default to use 'number' by deleting the variable: > :unlet html_number_lines Closed folds are put in the HTML as they are displayed. If you don't want -this, use the "zR" command before invoking 2html, or use: > +this, use the |zR| command before invoking 2html, or use: > :let html_ignore_folding = 1 By default, HTML optimized for old browsers is generated. If you prefer using @@ -426,16 +426,13 @@ To go back to the automatic mechanism, delete the g:html_use_encoding variable: > :unlet html_use_encoding < -Closed folds are kept as they are displayed. If you don't want closed folds -in the HTML use the |zR| command before converting. - For diff mode a sequence of more than 3 filler lines is displayed as three lines with the middle line mentioning the total number of inserted lines. If you prefer to see all the inserted lines use: > :let html_whole_filler = 1 And to go back to displaying up to three lines again: > :unlet html_whole_filler - +< *convert-to-XML* *convert-to-XHTML* An alternative is to have the script generate XHTML (XML compliant HTML). To do this set the "use_xhtml" variable: > @@ -2355,18 +2352,30 @@ number is that redrawing can become slow. TEX *tex.vim* *tex-syntax* +*tex-folding* +Want Syntax Folding? ~ + +As of version 28 of <syntax/tex.vim>, syntax-based folding of parts, chapters, +sections, subsections, etc are supported. Put > + let g:tex_fold_enabled=1 +in your <.vimrc>, and :set fdm=syntax. I suggest doing the latter via a +modeline at the end of your LaTeX file: > + % vim: fdm=syntax +< +*tex-runon* Run-on Comments/Math? ~ -The tex highlighting supports TeX, LaTeX, and some AmsTeX. The -highlighting supports three primary zones: normal, texZone, and texMathZone. -Although a considerable effort has been made to have these zones terminate -properly, zones delineated by $..$ and $$..$$ cannot be synchronized as -there's no difference between start and end patterns. Consequently, a +The <syntax/tex.vim> highlighting supports TeX, LaTeX, and some AmsTeX. The +highlighting supports three primary zones/regions: normal, texZone, and +texMathZone. Although considerable effort has been made to have these zones +terminate properly, zones delineated by $..$ and $$..$$ cannot be synchronized +as there's no difference between start and end patterns. Consequently, a special "TeX comment" has been provided > %stopzone which will forcibly terminate the highlighting of either a texZone or a texMathZone. +*tex-slow* Slow Syntax Highlighting? ~ If you have a slow computer, you may wish to reduce the values for > @@ -2376,6 +2385,7 @@ If you have a slow computer, you may wish to reduce the values for > increase them. This primarily affects synchronizing (i.e. just what group, if any, is the text at the top of the screen supposed to be in?). +*tex-error* Excessive Error Highlighting? ~ The <tex.vim> supports lexical error checking of various sorts. Thus, @@ -2383,28 +2393,24 @@ although the error checking is ofttimes very useful, it can indicate errors where none actually are. If this proves to be a problem for you, you may put in your <.vimrc> the following statement: > let tex_no_error=1 -and all error checking by <tex.vim> will be suppressed. +and all error checking by <syntax/tex.vim> will be suppressed. +*tex-math* Need a new Math Group? ~ If you want to include a new math group in your LaTeX, the following code shows you an example as to how you might do so: > - - syn cluster texMathZones add=texMathZoneLOCAL - syn region texMathZoneLOCAL start="\\begin\s*{\s*LOCALMATH\s*}" - \ end="\\end\s*{\s*LOCALMATH\s*}" keepend - \ contains=@texMathZoneGroup - if !exists("tex_no_math") - syn sync match texSyncMathZoneLOCAL grouphere texMathZoneLOCAL - \ "\\begin\s*{\s*LOCALMATH\*\s*}" - syn sync match texSyncMathZoneLOCAL groupthere NONE - \ "\\end\s*{\s*LOCALMATH\*\s*}" - endif - hi link texMathZoneLOCAL texMath -< -You'll need to change LOCALMATH to the name of your new math group, -and then to put it into .vim/after/syntax/tex.vim. - + call TexNewMathZone(sfx,mathzone,starform) +You'll want to provide the new math group with a unique suffix +(currently, A-L and V-Z are taken by <syntax/tex.vim> itself). +As an example, consider how eqnarray is set up by <syntax/tex.vim>: > + call TexNewMathZone("D","eqnarray",1) +You'll need to change "mathzone" to the name of your new math group, +and then to the call to it in .vim/after/syntax/tex.vim. +The "starform" variable, if true, implies that your new math group +has a starred form (ie. eqnarray*). + +*tex-style* Starting a New Style? ~ One may use "\makeatletter" in *.tex files, thereby making the use of "@" in diff --git a/runtime/doc/tags b/runtime/doc/tags index e5eb5d36ef..0cb5c8d749 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -4453,6 +4453,7 @@ compl-function insert.txt /*compl-function* compl-generic insert.txt /*compl-generic* compl-keyword insert.txt /*compl-keyword* compl-occult insert.txt /*compl-occult* +compl-spelling insert.txt /*compl-spelling* compl-tag insert.txt /*compl-tag* compl-vim insert.txt /*compl-vim* compl-whole-line insert.txt /*compl-whole-line* @@ -5317,7 +5318,7 @@ i_CTRL-H insert.txt /*i_CTRL-H* i_CTRL-I insert.txt /*i_CTRL-I* i_CTRL-J insert.txt /*i_CTRL-J* i_CTRL-K insert.txt /*i_CTRL-K* -i_CTRL-L options.txt /*i_CTRL-L* +i_CTRL-L insert.txt /*i_CTRL-L* i_CTRL-M insert.txt /*i_CTRL-M* i_CTRL-N insert.txt /*i_CTRL-N* i_CTRL-O insert.txt /*i_CTRL-O* @@ -5342,17 +5343,20 @@ i_CTRL-X_CTRL-L insert.txt /*i_CTRL-X_CTRL-L* i_CTRL-X_CTRL-N insert.txt /*i_CTRL-X_CTRL-N* i_CTRL-X_CTRL-O insert.txt /*i_CTRL-X_CTRL-O* i_CTRL-X_CTRL-P insert.txt /*i_CTRL-X_CTRL-P* +i_CTRL-X_CTRL-S insert.txt /*i_CTRL-X_CTRL-S* i_CTRL-X_CTRL-T insert.txt /*i_CTRL-X_CTRL-T* i_CTRL-X_CTRL-U insert.txt /*i_CTRL-X_CTRL-U* i_CTRL-X_CTRL-V insert.txt /*i_CTRL-X_CTRL-V* i_CTRL-X_CTRL-Y insert.txt /*i_CTRL-X_CTRL-Y* i_CTRL-X_CTRL-] insert.txt /*i_CTRL-X_CTRL-]* i_CTRL-X_index index.txt /*i_CTRL-X_index* +i_CTRL-X_s insert.txt /*i_CTRL-X_s* i_CTRL-Y insert.txt /*i_CTRL-Y* i_CTRL-Z options.txt /*i_CTRL-Z* i_CTRL-[ insert.txt /*i_CTRL-[* i_CTRL-\_CTRL-G intro.txt /*i_CTRL-\\_CTRL-G* i_CTRL-\_CTRL-N intro.txt /*i_CTRL-\\_CTRL-N* +i_CTRL-\_CTRL-O insert.txt /*i_CTRL-\\_CTRL-O* i_CTRL-] insert.txt /*i_CTRL-]* i_CTRL-^ insert.txt /*i_CTRL-^* i_CTRL-_ insert.txt /*i_CTRL-_* @@ -5764,6 +5768,7 @@ netrw-ftp pi_netrw.txt /*netrw-ftp* netrw-h pi_netrw.txt /*netrw-h* netrw-handler pi_netrw.txt /*netrw-handler* netrw-help pi_netrw.txt /*netrw-help* +netrw-hexplore pi_netrw.txt /*netrw-hexplore* netrw-history pi_netrw.txt /*netrw-history* netrw-horiz pi_netrw.txt /*netrw-horiz* netrw-i pi_netrw.txt /*netrw-i* @@ -5773,6 +5778,7 @@ netrw-listhack pi_netrw.txt /*netrw-listhack* netrw-maps pi_netrw.txt /*netrw-maps* netrw-move pi_netrw.txt /*netrw-move* netrw-netrc pi_netrw.txt /*netrw-netrc* +netrw-nexplore pi_netrw.txt /*netrw-nexplore* netrw-nread pi_netrw.txt /*netrw-nread* netrw-nwrite pi_netrw.txt /*netrw-nwrite* netrw-o pi_netrw.txt /*netrw-o* @@ -5780,6 +5786,7 @@ netrw-options pi_netrw.txt /*netrw-options* netrw-p pi_netrw.txt /*netrw-p* netrw-passwd pi_netrw.txt /*netrw-passwd* netrw-path pi_netrw.txt /*netrw-path* +netrw-pexplore pi_netrw.txt /*netrw-pexplore* netrw-preview pi_netrw.txt /*netrw-preview* netrw-problems pi_netrw.txt /*netrw-problems* netrw-protocol pi_netrw.txt /*netrw-protocol* @@ -5790,8 +5797,10 @@ netrw-ref pi_netrw.txt /*netrw-ref* netrw-rename pi_netrw.txt /*netrw-rename* netrw-reverse pi_netrw.txt /*netrw-reverse* netrw-s pi_netrw.txt /*netrw-s* +netrw-sexplore pi_netrw.txt /*netrw-sexplore* netrw-sort pi_netrw.txt /*netrw-sort* netrw-sortsequence pi_netrw.txt /*netrw-sortsequence* +netrw-starstar pi_netrw.txt /*netrw-starstar* netrw-transparent pi_netrw.txt /*netrw-transparent* netrw-u pi_netrw.txt /*netrw-u* netrw-uidpass pi_netrw.txt /*netrw-uidpass* @@ -5800,6 +5809,7 @@ netrw-urls pi_netrw.txt /*netrw-urls* netrw-v pi_netrw.txt /*netrw-v* netrw-var pi_netrw.txt /*netrw-var* netrw-variables pi_netrw.txt /*netrw-variables* +netrw-vexplore pi_netrw.txt /*netrw-vexplore* netrw-write pi_netrw.txt /*netrw-write* netrw-x pi_netrw.txt /*netrw-x* netrw-xfer pi_netrw.txt /*netrw-xfer* diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index 68c220a023..6776077ac2 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.0aa. Last change: 2005 Aug 10 +*todo.txt* For Vim version 7.0aa. Last change: 2005 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -33,9 +33,6 @@ be worked on, but only if you sponsor Vim development. See |sponsor|. Spell checking: default value for 'spellcapcheck' in spell file? For Hebrew and Yiddish it should be empty. -When 'insertmode' is set, CTRL-L no longer moves the cursor left. What -compatibility problems does this cause? - Using "@:" has two problems (Tim Chase, 2005 Aug 9) Mac unicode patch (Da Woon Jung): diff --git a/runtime/doc/version7.txt b/runtime/doc/version7.txt index 10402aad81..d4fbb33ea8 100644 --- a/runtime/doc/version7.txt +++ b/runtime/doc/version7.txt @@ -1,4 +1,4 @@ -*version7.txt* For Vim version 7.0aa. Last change: 2005 Aug 09 +*version7.txt* For Vim version 7.0aa. Last change: 2005 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -331,6 +331,11 @@ CTRL-W <Enter> In the quickfix window: opens a new window to show the |at| and |it| text objects select a block of text between HTML or XML tags. +Insert mode commands: ~ + +CTRL-\ CTRL-O Execute a Normal mode command. Like CTRL-O but + without moving the cursor. + Options: ~ 'completefunc' The name of a function used for user-specified Insert @@ -1274,7 +1279,4 @@ were not set. Win32: Could not use "**/" in 'path', it had to be "**\". -When 'insertmode' is set CTRL-L would move the cursor. That wasn't supposed -to happen, CTRL-O doesn't do it either. - vim:tw=78:ts=8:ft=help:norl: diff --git a/runtime/plugin/netrw.vim b/runtime/plugin/netrw.vim index edda27a68f..0b7c616af6 100644 --- a/runtime/plugin/netrw.vim +++ b/runtime/plugin/netrw.vim @@ -1,7 +1,7 @@ " netrw.vim: Handles file transfer and remote directory listing across a network -" Last Change: Aug 08, 2005 +" Last Change: Aug 10, 2005 " Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz> -" Version: 59 +" Version: 60 " License: Vim License (see vim's :help license) " Copyright: Copyright (C) 1999-2005 Charles E. Campbell, Jr. " Permission is hereby granted to use and distribute this code, @@ -22,9 +22,11 @@ if exists("g:loaded_netrw") || &cp finish endif -let g:loaded_netrw = "v59" -let loaded_explorer = 1 -let s:keepcpo = &cpo +let g:loaded_netrw = "v60" +if v:version < 700 + let loaded_explorer = 1 +endif +let s:keepcpo= &cpo set cpo&vim " --------------------------------------------------------------------- @@ -255,28 +257,28 @@ com! -nargs=? -bar -bang Pexplore call s:Explore(-2,0,0,<q-args>) fun! s:NetSavePosn() " call Dfunc("NetSavePosn()") " Save current line and column - let s:netrw_winnr= winnr() - let s:netrw_line = line(".") - let s:netrw_col = virtcol(".") + let w:netrw_winnr= winnr() + let w:netrw_line = line(".") + let w:netrw_col = virtcol(".") " Save top-of-screen line norm! H0 - let s:netrw_hline= line(".") + let w:netrw_hline= line(".") call s:NetRestorePosn() -" call Dret("NetSavePosn : winnr=".s:netrw_winnr." line=".s:netrw_line." col=".s:netrw_col." hline=".s:netrw_hline) +" call Dret("NetSavePosn : winnr=".w:netrw_winnr." line=".w:netrw_line." col=".w:netrw_col." hline=".w:netrw_hline) endfun " ------------------------------------------------------------------------ " NetRestorePosn: restores the cursor and file position as saved by NetSavePosn() {{{1 fun! <SID>NetRestorePosn() -" call Dfunc("NetRestorePosn() winnr=".s:netrw_winnr." line=".s:netrw_line." col=".s:netrw_col." hline=".s:netrw_hline) +" call Dfunc("NetRestorePosn() winnr=".w:netrw_winnr." line=".w:netrw_line." col=".w:netrw_col." hline=".w:netrw_hline) let eikeep= &ei set ei=all " restore window -" call Decho("restore window: exe silent! ".s:netrw_winnr."wincmd w") - exe "silent! ".s:netrw_winnr."wincmd w" +" call Decho("restore window: exe silent! ".w:netrw_winnr."wincmd w") + exe "silent! ".w:netrw_winnr."wincmd w" " if v:shell_error == 0 " " as suggested by Bram M: redraw on no error " " allows protocol error messages to remain visible @@ -284,12 +286,12 @@ fun! <SID>NetRestorePosn() " endif " restore top-of-screen line -" call Decho("restore topofscreen: exe norm! ".s:netrw_hline."G0z") - exe "norm! ".s:netrw_hline."G0z\<CR>" +" call Decho("restore topofscreen: exe norm! ".w:netrw_hline."G0z") + exe "norm! ".w:netrw_hline."G0z\<CR>" " restore position -" call Decho("restore posn: exe norm! ".s:netrw_line."G0".s:netrw_col."|") - exe "norm! ".s:netrw_line."G0".s:netrw_col."\<bar>" +" call Decho("restore posn: exe norm! ".w:netrw_line."G0".w:netrw_col."|") + exe "norm! ".w:netrw_line."G0".w:netrw_col."\<bar>" let &ei= eikeep " call Dret("NetRestorePosn") @@ -1050,6 +1052,12 @@ endfun fun! <SID>NetBrowse(dirname) " call Dfunc("NetBrowse(dirname<".a:dirname.">) longlist=".g:netrw_longlist) + if exists("s:netrw_skipbrowse") + unlet s:netrw_skipbrowse +" call Dret("NetBrowse") + return + endif + " sanity check if exists("b:netrw_method") && b:netrw_method =~ '[235]' " call Decho("b:netrw_method=".b:netrw_method) @@ -1106,8 +1114,8 @@ fun! <SID>NetBrowse(dirname) endif if exists("b:netrw_method") -" call Decho("setting s:netrw_method<".b:netrw_method.">") - let s:netrw_method= b:netrw_method +" call Decho("setting w:netrw_method<".b:netrw_method.">") + let w:netrw_method= b:netrw_method endif " optionally sort by time (-t) or by size (-S) @@ -1200,14 +1208,14 @@ fun! <SID>NetBrowse(dirname) nnoremap <buffer> <silent> B :<c-u>call <SID>NetBookmarkDir(1,expand("%"))<cr> nnoremap <buffer> <silent> <c-h> :call <SID>NetHideEdit(0)<cr> nnoremap <buffer> <silent> i :call <SID>NetLongList(0)<cr> - nnoremap <buffer> <silent> o :exe (g:netrw_alto? "bel " : "abo ").g:netrw_winsize."wincmd s"<bar>exe "norm! 0"<bar>call <SID>NetBrowse(<SID>NetBrowseChgDir(expand("%"),<SID>NetGetWord()))<cr> + nnoremap <buffer> <silent> o :call <SID>NetSplit(0)<cr> nnoremap <buffer> <silent> q :<c-u>call <SID>NetBookmarkDir(2,expand("%"))<cr> nnoremap <buffer> <silent> r :let g:netrw_sort_direction= (g:netrw_sort_direction =~ 'n')? 'r' : 'n'<bar>exe "norm! 0"<bar>call <SID>NetBrowse(<SID>NetBrowseChgDir(expand("%"),'./'))<cr> nnoremap <buffer> <silent> s :call <SID>NetSaveWordPosn()<bar>let g:netrw_sort_by= (g:netrw_sort_by =~ 'n')? 'time' : (g:netrw_sort_by =~ 't')? 'size' : 'name'<bar>exe "norm! 0"<bar>call <SID>NetBrowse(<SID>NetBrowseChgDir(expand("%"),'./'))<bar>call <SID>NetRestoreWordPosn()<cr> nnoremap <buffer> <silent> S :call <SID>NetSortSequence(0)<cr> nnoremap <buffer> <silent> u :<c-u>call <SID>NetBookmarkDir(4,expand("%"))<cr> nnoremap <buffer> <silent> U :<c-u>call <SID>NetBookmarkDir(5,expand("%"))<cr> - nnoremap <buffer> <silent> v :exe (g:netrw_altv? "rightb " : "lefta ").g:netrw_winsize."wincmd v"<bar>exe "norm! 0"<bar>call <SID>NetBrowse(<SID>NetBrowseChgDir(expand("%"),<SID>NetGetWord()))<cr> + nnoremap <buffer> <silent> v :call <SID>NetSplit(1)<cr> nnoremap <buffer> <silent> x :exe "norm! 0"<bar>call <SID>NetBrowseX(<SID>NetBrowseChgDir(expand("%"),<SID>NetGetWord()),1)<cr> nnoremap <buffer> <silent> <2-leftmouse> :exe "norm! 0"<bar>call <SID>NetBrowse(<SID>NetBrowseChgDir(expand("%"),<SID>NetGetWord()))<cr> exe 'nnoremap <buffer> <silent> <del> :exe "norm! 0"<bar>call <SID>NetBrowseRm("'.user.machine.'","'.path.'")<cr>' @@ -1225,15 +1233,15 @@ fun! <SID>NetBrowse(dirname) keepjumps put ='\" ===========================================================================' keepjumps put ='\" Netrw Remote Directory Listing' keepjumps put ='\" '.bufname - let s:netrw_bannercnt= 7 - let sortby= g:netrw_sort_by + let w:netrw_bannercnt = 7 + let sortby = g:netrw_sort_by if g:netrw_sort_direction =~ "^r" - let sortby= sortby." reversed" + let sortby = sortby." reversed" endif if g:netrw_sort_by =~ "^n" " sorted by name - let s:netrw_bannercnt= s:netrw_bannercnt + 1 + let w:netrw_bannercnt= w:netrw_bannercnt + 1 keepjumps put ='\" Sorted by '.sortby keepjumps put ='\" Sort sequence: '.g:netrw_sort_sequence else @@ -1246,7 +1254,7 @@ fun! <SID>NetBrowse(dirname) else keepjumps put ='\" Showing: '.g:netrw_list_hide endif - let s:netrw_bannercnt= s:netrw_bannercnt + 1 + let w:netrw_bannercnt= w:netrw_bannercnt + 1 endif keepjumps put ='\" Quick Help: ?:help -:go up dir D:delete R:rename s:sort-by x:exec' keepjumps put ='\" ===========================================================================' @@ -1263,7 +1271,7 @@ fun! <SID>NetBrowse(dirname) if !g:netrw_longlist " shorten the listing " call Decho("generate short listing") - exe "keepjumps ".s:netrw_bannercnt + exe "keepjumps ".w:netrw_bannercnt " cleanup if g:netrw_ftp_browse_reject != "" @@ -1283,9 +1291,9 @@ fun! <SID>NetBrowse(dirname) keepjumps norm! 0 " more cleanup - exe 'keepjumps silent! '.s:netrw_bannercnt.',$s/^\(\%(\S\+\s\+\)\{7}\S\+\)\s\+\(\S.*\)$/\2/e' - exe "keepjumps silent! ".s:netrw_bannercnt.',$g/ -> /s# -> .*/$#/#e' - exe "keepjumps silent! ".s:netrw_bannercnt.',$g/ -> /s# -> .*$#/#e' + exe 'keepjumps silent! '.w:netrw_bannercnt.',$s/^\(\%(\S\+\s\+\)\{7}\S\+\)\s\+\(\S.*\)$/\2/e' + exe "keepjumps silent! ".w:netrw_bannercnt.',$g/ -> /s# -> .*/$#/#e' + exe "keepjumps silent! ".w:netrw_bannercnt.',$g/ -> /s# -> .*$#/#e' endif else @@ -1315,7 +1323,7 @@ fun! <SID>NetBrowse(dirname) endif " manipulate the directory listing (hide, sort) - if line("$") >= s:netrw_bannercnt + if line("$") >= w:netrw_bannercnt if g:netrw_hide && g:netrw_list_hide != "" call s:NetrwListHide() endif @@ -1326,7 +1334,7 @@ fun! <SID>NetBrowse(dirname) if method == "ftp" " cleanup - exe "keepjumps ".s:netrw_bannercnt + exe "keepjumps ".w:netrw_bannercnt while getline(".") =~ g:netrw_ftp_browse_reject keepjumps d endwhile @@ -1336,37 +1344,37 @@ fun! <SID>NetBrowse(dirname) silent keepjumps call search('^\.\.\/\%(\s\|$\)','W') let line2= line(".") if line2 == 0 - exe 'keepjumps '.s:netrw_bannercnt."put='./'" - exe 'keepjumps '.s:netrw_bannercnt."put='../'" + exe 'keepjumps '.w:netrw_bannercnt."put='./'" + exe 'keepjumps '.w:netrw_bannercnt."put='../'" endif exe "keepjumps ".line1 keepjumps norm! 0 endif - exe 'keepjumps silent '.s:netrw_bannercnt.',$s/ -> .*$//e' - exe 'keepjumps silent '.s:netrw_bannercnt.',$s/^\(\%(\S\+\s\+\)\{7}\S\+\)\s\+\(\S.*\)$/\2\t\1/e' - exe s:netrw_bannercnt + exe 'keepjumps silent '.w:netrw_bannercnt.',$s/ -> .*$//e' + exe 'keepjumps silent '.w:netrw_bannercnt.',$s/^\(\%(\S\+\s\+\)\{7}\S\+\)\s\+\(\S.*\)$/\2\t\1/e' + exe w:netrw_bannercnt endif - if line("$") >= s:netrw_bannercnt + if line("$") >= w:netrw_bannercnt if g:netrw_sort_by =~ "^n" call s:SetSort() if v:version < 700 - exe 'keepjumps silent '.s:netrw_bannercnt.',$call s:NetSort()' + exe 'keepjumps sil |