Skip to content

Commit cc7c310

Browse files
committed
Merge branch 'vim' of git://github.com/b4winckler/macvim into kaoriya
2 parents fa74ca1 + acbc24e commit cc7c310

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1924
-728
lines changed

.hgtags

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,3 +1663,34 @@ dc7f2f9759208aa07bf136deca661fd080a1ee68 v7-3-319
16631663
738ea87c196431c452bd499c5a9849597ac938de v7-3-320
16641664
fc0804089b2945bfe683f9bc9ee0238b8c64a46e v7-3-321
16651665
38a7fd9043474dfb464c338ffd7f393361f5a6c1 v7-3-322
1666+
3bdb646fc8a46ee5a5fe474dccdce098680d24d6 v7-3-323
1667+
f04619f1fc1663f4ab05798c410e4fa35a9dd863 v7-3-324
1668+
8aca621c00910556d4f52bd650d6841d6059d6ec v7-3-325
1669+
d3758064ff9946d23aeccc9d2340686766647b84 v7-3-326
1670+
9028c70adafd109ab294102f74dfb5005a20bbfb v7-3-327
1671+
5b53cea62e5d1be2a1a36ce685c15f99bb8a41ba v7-3-328
1672+
ec901ddc84d5c66c5d0c1dcca093584598487f9f v7-3-329
1673+
abb03be99d661455fd3790cd25355459448fa432 v7-3-330
1674+
4b8c614c1c914ce5d712368a75dbfea9b7e44e17 v7-3-331
1675+
0ecfe54a273f6bc440684aca4ebe5926a2dfc6e2 v7-3-332
1676+
992b24149a9ee0d6f417e40a7462891a9f62ec6a v7-3-333
1677+
fdc72363229865cc6fd2da9db66f1d6e683b87c0 v7-3-334
1678+
dc3f90a73fb375092ea9d870ae48ff31b31a56ab v7-3-335
1679+
52526aec4afb220a1271e9a645194c42d3b2a538 v7-3-336
1680+
176bfa951339a0a36366cbc8def41ae75f5034e0 v7-3-337
1681+
7919a3d7333b99cece7d1a2657c89c18de78bf82 v7-3-338
1682+
b5a2b4c0c1cac1758990ea449bc1c552522f39a9 v7-3-339
1683+
49b08c9b9f5b72d930a1c02f00aa4128dc58532d v7-3-340
1684+
6963603ec6dc2b47da9a7e951b2d0b3e024535eb v7-3-341
1685+
314d9368069ec0458631ca150c202e7f724ad6d3 v7-3-342
1686+
98a05814f1b466c87611b810eeafe8e7d9c581b6 v7-3-343
1687+
7ba2f171cdaca18571b5e73dece426411c4f124a v7-3-344
1688+
35f098371af699aa7e614a6397a068119b54cabf v7-3-345
1689+
af76a61a7f79ccd3bcf64e15c73f2a3ea0eb77da v7-3-346
1690+
72528c5eb87ea315a7c1a48f7734d1717c28820f v7-3-347
1691+
4d4a328f199e4020457b4bf8f077622966bb3563 v7-3-348
1692+
075acc2dccaa621998ccb1d671a987090367d485 v7-3-349
1693+
07956eab189c0c776b79bc42235833d234480559 v7-3-350
1694+
ff69efc4bc55d83b5f2bb68aeede1d921e8f1036 v7-3-351
1695+
ca65249eb34bc62e82d54f74e14271be7f7f8a44 v7-3-352
1696+
12bb368fef2c8c5478f0f8905aac381a56a75fe0 v7-3-353

Filelist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ SRC_ALL = \
8181
src/testdir/test[0-9]*.ok \
8282
src/testdir/test49.vim \
8383
src/testdir/test60.vim \
84+
src/testdir/test83-tags? \
8485
src/proto.h \
8586
src/proto/blowfish.pro \
8687
src/proto/buffer.pro \
@@ -313,6 +314,7 @@ SRC_DOS = \
313314
src/xxd/Make_bc5.mak \
314315
src/xxd/Make_cyg.mak \
315316
src/xxd/Make_djg.mak \
317+
src/xxd/Make_ming.mak \
316318
src/xxd/Make_mvc.mak \
317319
nsis/gvim.nsi \
318320
nsis/README.txt \

runtime/autoload/netrw.vim

Lines changed: 455 additions & 221 deletions
Large diffs are not rendered by default.

runtime/autoload/vimball.vim

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" vimball.vim : construct a file containing both paths and files
22
" Author: Charles E. Campbell, Jr.
3-
" Date: Apr 02, 2011
4-
" Version: 33
3+
" Date: Sep 26, 2011
4+
" Version: 34
55
" GetLatestVimScripts: 1502 1 :AutoInstall: vimball.vim
66
" Copyright: (c) 2004-2011 by Charles E. Campbell, Jr.
77
" The VIM LICENSE applies to Vimball.vim, and Vimball.txt
@@ -14,7 +14,7 @@
1414
if &cp || exists("g:loaded_vimball")
1515
finish
1616
endif
17-
let g:loaded_vimball = "v33"
17+
let g:loaded_vimball = "v34"
1818
if v:version < 702
1919
echohl WarningMsg
2020
echo "***warning*** this version of vimball needs vim 7.2"
@@ -220,7 +220,16 @@ fun! vimball#Vimball(really,...)
220220

221221
" go to vim plugin home
222222
if a:0 > 0
223+
" let user specify the directory where the vimball is to be unpacked.
224+
" If, however, the user did not specify a full path, set the home to be below the current directory
223225
let home= expand(a:1)
226+
if has("win32") || has("win95") || has("win64") || has("win16")
227+
if home !~ '^\a:[/\\]'
228+
let home= getcwd().'/'.a:1
229+
endif
230+
elseif home !~ '^/'
231+
let home= getcwd().'/'.a:1
232+
endif
224233
else
225234
let home= vimball#VimballHome()
226235
endif
@@ -282,11 +291,14 @@ fun! vimball#Vimball(really,...)
282291
" call Decho("making directories if they don't exist yet (fname<".fname.">)")
283292
let fnamebuf= substitute(fname,'\\','/','g')
284293
let dirpath = substitute(home,'\\','/','g')
294+
" call Decho("init: fnamebuf<".fnamebuf.">")
295+
" call Decho("init: dirpath <".dirpath.">")
285296
while fnamebuf =~ '/'
286297
let dirname = dirpath."/".substitute(fnamebuf,'/.*$','','')
287298
let dirpath = dirname
288299
let fnamebuf = substitute(fnamebuf,'^.\{-}/\(.*\)$','\1','')
289300
" call Decho("dirname<".dirname.">")
301+
" call Decho("dirpath<".dirpath.">")
290302
if !isdirectory(dirname)
291303
" call Decho("making <".dirname.">")
292304
if exists("g:vimball_mkdir")
@@ -569,9 +581,19 @@ endfun
569581
fun! s:ChgDir(newdir)
570582
" call Dfunc("ChgDir(newdir<".a:newdir.">)")
571583
if (has("win32") || has("win95") || has("win64") || has("win16"))
572-
exe 'silent cd '.fnameescape(substitute(a:newdir,'/','\\','g'))
584+
try
585+
exe 'silent cd '.fnameescape(substitute(a:newdir,'/','\\','g'))
586+
catch /^Vim\%((\a\+)\)\=:E/
587+
call mkdir(fnameescape(substitute(a:newdir,'/','\\','g')))
588+
exe 'silent cd '.fnameescape(substitute(a:newdir,'/','\\','g'))
589+
endtry
573590
else
574-
exe 'silent cd '.fnameescape(a:newdir)
591+
try
592+
exe 'silent cd '.fnameescape(a:newdir)
593+
catch /^Vim\%((\a\+)\)\=:E/
594+
call mkdir(fnameescape(a:newdir))
595+
exe 'silent cd '.fnameescape(a:newdir)
596+
endtry
575597
endif
576598
" call Dret("ChgDir : curdir<".getcwd().">")
577599
endfun

runtime/doc/eval.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.3. Last change: 2011 Aug 29
1+
*eval.txt* For Vim version 7.3. Last change: 2011 Sep 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6374,7 +6374,7 @@ last defined. Example: >
63746374
<
63756375
See |:verbose-cmd| for more information.
63766376

6377-
*E124* *E125*
6377+
*E124* *E125* *E853*
63786378
:fu[nction][!] {name}([arguments]) [range] [abort] [dict]
63796379
Define a new function by the name {name}. The name
63806380
must be made of alphanumeric characters and '_', and

runtime/doc/map.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 7.3. Last change: 2011 Aug 19
1+
*map.txt* For Vim version 7.3. Last change: 2011 Oct 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -237,11 +237,18 @@ For this reason the following is blocked:
237237
- Editing another buffer.
238238
- The |:normal| command.
239239
- Moving the cursor is allowed, but it is restored afterwards.
240-
- You can use getchar(), but the existing typeahead isn't seen and new
241-
typeahead is discarded.
242240
If you want the mapping to do any of these let the returned characters do
243241
that.
244242

243+
You can use getchar(), it consumes typeahead if there is any. E.g., if you
244+
have these mappings: >
245+
inoremap <expr> <C-L> nr2char(getchar())
246+
inoremap <expr> <C-L>x "foo"
247+
If you now type CTRL-L nothing happens yet, Vim needs the next character to
248+
decide what mapping to use. If you type 'x' the second mapping is used and
249+
"foo" is inserted. If you type 'a' the first mapping is used, getchar() gets
250+
the 'a' and returns it.
251+
245252
Here is an example that inserts a list number that increases: >
246253
let counter = 0
247254
inoremap <expr> <C-L> ListItem()

runtime/doc/mbyte.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*mbyte.txt* For Vim version 7.3. Last change: 2011 Jul 18
1+
*mbyte.txt* For Vim version 7.3. Last change: 2011 Oct 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -797,8 +797,8 @@ is suitable for complex input, such as CJK.
797797
number of Hira-gana characters are 76. So, first, we pre-input text as
798798
pronounced in Hira-gana, second, we convert Hira-gana to Kanji or Kata-Kana,
799799
if needed. There are some Kana-Kanji conversion server: jserver
800-
(distributed with Wnn, see below) and canna. Canna could be found at:
801-
ftp://ftp.nec.co.jp/pub/Canna/ (no longer works).
800+
(distributed with Wnn, see below) and canna. Canna can be found at:
801+
http://canna.sourceforge.jp/
802802

803803
There is a good input system: Wnn4.2. Wnn 4.2 contains,
804804
xwnmo (|IM-server|)

runtime/doc/netbeans.txt

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*netbeans.txt* For Vim version 7.3. Last change: 2010 Sep 29
1+
*netbeans.txt* For Vim version 7.3. Last change: 2011 Oct 20
22

33

44
VIM REFERENCE MANUAL by Gordon Prieur et al.
@@ -263,6 +263,12 @@ The messages are currently sent over a socket. Since the messages are in
263263
plain UTF-8 text this protocol could also be used with any other communication
264264
mechanism.
265265

266+
Netbeans messages are processed when Vim is idle, waiting for user input.
267+
When Vim is run in non-interactive mode, for example when running an automated
268+
test case that sources a Vim script, the idle loop may not be called often
269+
enough. In that case, insert |sleep| commands in the Vim script. The |sleep|
270+
command does invoke Netbeans messages processing.
271+
266272
6.1 Kinds of messages |nb-messages|
267273
6.2 Terms |nb-terms|
268274
6.3 Commands |nb-commands|
@@ -833,11 +839,16 @@ These errors occur when a message violates the protocol:
833839
signs.
834840

835841
*:nbkey*
836-
:nb[key] {key} Pass the {key} to the Vim Controller for processing
837-
838-
When a hot-key has been installed with the specialKeys command, this command
839-
can be used to generate a hotkey messages to the Vim Controller. The events
840-
newDotAndMark, keyCommand and keyAtPos are generated (in this order).
842+
:nb[key] {key} Pass the {key} to the Vim Controller for processing.
843+
When a hot-key has been installed with the specialKeys
844+
command, this command can be used to generate a hotkey
845+
message to the Vim Controller.
846+
This command can also be used to pass any text to the
847+
Vim Controller. It is used by Pyclewn, for example,
848+
to build the complete set of gdb commands as Vim user
849+
commands.
850+
The events newDotAndMark, keyCommand and keyAtPos are
851+
generated (in this order).
841852

842853

843854
==============================================================================

runtime/doc/options.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 7.3. Last change: 2011 Sep 09
1+
*options.txt* For Vim version 7.3. Last change: 2011 Sep 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6772,8 +6772,8 @@ A jump table for the options with a short description can be found at |Q_op|.
67726772
usetab Like "useopen", but also consider windows in other tab
67736773
pages.
67746774
split If included, split the current window before loading
6775-
a buffer. Otherwise: do not split, use current window.
6776-
Supported in |quickfix| commands that display errors.
6775+
a buffer for a |quickfix| command that display errors.
6776+
Otherwise: do not split, use current window.
67776777
newtab Like "split", but open a new tab page. Overrules
67786778
"split" when both are present.
67796779

runtime/doc/pattern.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 7.3. Last change: 2011 Jul 20
1+
*pattern.txt* For Vim version 7.3. Last change: 2011 Sep 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -21,7 +21,7 @@ explanations are in chapter 27 |usr_27.txt|.
2121
10. Highlighting matches |match-highlight|
2222

2323
==============================================================================
24-
1. Search commands *search-commands* *E486*
24+
1. Search commands *search-commands*
2525

2626
*/*
2727
/{pattern}[/]<CR> Search forward for the [count]'th occurrence of
@@ -150,6 +150,11 @@ use <Esc> to abandon the search.
150150
All matches for the last used search pattern will be highlighted if you set
151151
the 'hlsearch' option. This can be suspended with the |:nohlsearch| command.
152152

153+
When no match is found you get the error: *E486* Pattern not found
154+
Note that for the |:global| command this behaves like a normal message, for Vi
155+
compatibility. For the |:s| command the "e" flag can be used to avoid the
156+
error message |:s_flags|.
157+
153158
*search-offset* *{offset}*
154159
These commands search for the specified pattern. With "/" and "?" an
155160
additional offset may be given. There are two types of offsets: line offsets

0 commit comments

Comments
 (0)