Compare commits

...

281 Commits

Author SHA1 Message Date
dc7e85ee5d updated for version 7.3.558
Problem:    Memory access error. (Gary Johnson)
Solution:   Allocate one more byte. (Dominique Pelle)
2012-06-20 12:40:08 +02:00
9e931224db updated for version 7.3.557
Problem:    Crash when an autocommand wipes out a buffer when it is hidden.
Solution:   Restore the current window when needed. (Christian Brabandt)
2012-06-20 11:55:01 +02:00
36105782d2 updated for version 7.3.556
Problem:    Compiler warnings on 64 bit Windows.
Solution:   Add type casts. (Mike Williams)
2012-06-14 20:59:25 +02:00
77c193579b updated for version 7.3.555
Problem:    Building on IBM z/OS fails.
Solution:   Adjust configure. Use the QUOTESED value from config.mk instead of
            the hard coded one in Makefile. (Stephen Bovy)
2012-06-13 19:19:41 +02:00
795ec43112 updated for version 7.3.554
Problem:    Compiler warning for unused argument.
Solution:   Add UNUSED.
2012-06-13 18:15:19 +02:00
5641f38d41 updated for version 7.3.553
Problem:    With double-width characters and 'listchars' containing "precedes"
            the text is displayed one cell off.
Solution:   Check for double-width character being overwritten by the
            "precedes" character. (Yasuhiro Matsumoto)
2012-06-13 18:06:36 +02:00
bfe3bf806a updated for version 7.3.552
Problem:    Formatting inside comments does not use the "2" flag in
            'formatoptions'.
Solution:   Support the "2" flag.  (Tor Perkins)
2012-06-13 17:28:55 +02:00
a8596c4772 updated for version 7.3.551
Problem:    When using :tablose a TabEnter autocommand is triggered too early.
            (Karthick)
Solution:   Don't trigger *Enter autocommands before closing the tab.
            (Christian Brabandt)
2012-06-13 14:28:20 +02:00
e04a48f204 updated for version 7.3.550
Problem:    With "j" in 'formatoptions' a list leader is not removed. (Gary
            Johnson)
Solution:   Don't ignore the start of a three part comment. (Lech Lorens)
2012-06-13 14:01:41 +02:00
48d279215f updated for version 7.3.549
Problem:    In 'cinoptions' "0s" is interpreted as one shiftwidth. (David
            Pineau)
Solution:   Use the zero as zero. (Lech Lorens)
2012-06-13 13:40:48 +02:00
27ba088549 updated for version 7.3.548
Problem:    Compiler warning on 64 bit Windows.
Solution:   Add type cast. (Mike Williams)
2012-06-07 21:09:39 +02:00
802053f14a updated for version 7.3.547
Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize it.
2012-06-06 23:08:38 +02:00
3b393a0b53 updated for version 7.3.546
Problem:    Bogus line break.
Solution:   Remove the line break.
2012-06-06 19:05:50 +02:00
362ce48048 updated for version 7.3.545
Problem:    When closing a window or buffer autocommands may close it too,
            causing problems for where the autocommand was invoked from.
Solution:   Add the w_closing and b_closing flags.  When set disallow ":q" and
            ":close" to prevent recursive closing.
2012-06-06 19:02:45 +02:00
3b53dfb3b0 updated for version 7.3.544
Problem:    There is no good way to close a quickfix window when closing the
            last ordinary window.
Solution:   Add the QuitPre autocommand.
2012-06-06 18:03:07 +02:00
ab984db296 updated for version 7.3.543
Problem:    The cursor is in the wrong line after using ":copen". (John
            Beckett)
Solution:   Invoke more drastic redraw method.
2012-06-06 16:29:10 +02:00
08bc274e88 updated for version 7.3.542
Problem:    Function is sometimes unused.
Solution:   Add #ifdef.
2012-06-06 16:14:40 +02:00
8134039744 updated for version 7.3.541
Problem:    When joining lines comment leaders need to be removed manually.
Solution:   Add the 'j' flag to 'formatoptions'. (Lech Lorens)
2012-06-06 16:12:59 +02:00
bc256d91ea updated for version 7.3.540
Problem:    Cursor is left on the text instead of the command line.
Solution:   Don't call setcursor() in command line mode.
2012-06-06 12:06:15 +02:00
64fdf5ceae updated for version 7.3.539
Problem:    Redrawing a character on the command line does not work properly
            for multi-byte charactes.
Solution:   Count the number of bytes in a character. (Yukihiro Nakadaira)
2012-06-06 12:03:06 +02:00
c873442b15 Updated runtime files. 2012-06-01 22:38:45 +02:00
f13de07e49 updated for version 7.3.538
Problem:    'efm' does not handle Tabs in pointer lines.
Solution:   Add Tab support. Improve tests. (Lech Lorens)
2012-06-01 18:34:41 +02:00
24ee83b0a0 updated for version 7.3.537
Problem:    Unecessary call to init_spell_chartab().
Solution:   Delete the call.
2012-06-01 17:49:55 +02:00
88178de99f updated for version 7.3.536
Problem:    When spell checking the German sharp s is not seen as a word
            character. (Aexl Bender)
Solution:   In utf_islower() return true for the sharp s. Note: also need
            updated spell file for this to take effect.
2012-06-01 17:46:59 +02:00
9a920d8c31 updated for version 7.3.535
Problem:    Many #ifdefs for MB_MAXBYTES.
Solution:   Also define MB_MAXBYTES without the +multi_byte feature.  Fix
            places where the buffer didn't include space for a NUL byte.
2012-06-01 15:21:02 +02:00
704984ac87 updated for version 7.3.534
Problem:    When using an InsertCharPre autocommand autoindent fails.
Solution:   Proper handling of v:char. (Alexey Radkov)
2012-06-01 14:57:51 +02:00
d2aed44c77 updated for version 7.3.533
Problem:    Memory leak when writing undo file.
Solution:   Free the ACL. (Dominique Pelle)
2012-06-01 13:46:12 +02:00
112f318551 updated for version 7.3.532
Problem:    Compiler warning from Clang.
Solution:   Use a different way to point inside a string. (Dominique Pelle)
2012-06-01 13:18:53 +02:00
ae084bb97c updated for version 7.3.531
Problem:    GUI does not work on MS-Windows.
Solution:   Add the missing #ifdef. (Patrick Avery)
2012-05-27 00:37:51 +02:00
6a3c1b44e5 updated for version 7.3.530
Problem:    Gvim does not work when 'guioptions' includes "f". (Davido)
Solution:   Call gui_mch_init_check() when running GUI in the foreground.
            (Yasuhiro Matsumoto)
2012-05-25 14:06:36 +02:00
6057b9c658 updated for version 7.3.529
Problem:    Using a count before "v" and "V" does not work (Kikyous)
Solution:   Make the count select that many characters or lines. (Christian
            Brabandt)
2012-05-25 13:12:36 +02:00
bef1c36ab6 updated for version 7.3.528
Problem:    Crash when closing last window in a tab. (Alex Efros)
Solution:   Use common code in close_last_window_tabpage(). (Christian
            Brabandt)
2012-05-25 12:39:00 +02:00
936347b6bf updated for version 7.3.527
Problem:    Clang complains about non-ASCII characters in a string.
Solution:   Change to \x88 form. (Dominique Pelle)
2012-05-25 11:56:22 +02:00
0c50a6ba59 updated for version 7.3.526
Problem:    Confusing indenting for #ifdef.
Solution:   Remove and add indent. (Elias Diem)
2012-05-25 11:04:38 +02:00
17bd9dc2bd updated for version 7.3.525
Problem:    Compiler warning on 64 bit MS-Windows.
Solution:   Add type cast. (Mike Williams)
2012-05-25 11:02:41 +02:00
1763969e5c updated for version 7.3.524
Problem:    Missing comma.
Solution:   Add the comma.
2012-05-18 21:54:13 +02:00
8e52a59376 Fix more 'cpo' issues in runtime files. 2012-05-18 21:49:28 +02:00
bd1d560895 updated for version 7.3.523
Problem:    ":diffupdate" doesn't check for files changed elsewhere.
Solution:   Add the ! flag. (Christian Brabandt)
2012-05-18 18:47:17 +02:00
455981e69b updated for version 7.3.522
Problem:    Crash in vim_realloc() when using MEM_PROFILE.
Solution:   Avoid using a NULL argument. (Dominique Pelle)
2012-05-18 18:34:19 +02:00
f9de140e7f updated for version 7.3.521
Problem:    Using "z=" on a multi-byte character may cause a crash.
Solution:   Don't use strlen() on an int pointer.
2012-05-18 18:08:01 +02:00
2969570036 updated for version 7.3.520
Problem:    Gvim starts up slow on Unbuntu 12.04.
Solution:   Move the call to gui_mch_init_check() to after fork(). (Yasuhiro
            Matsumoto)  Do check $DISPLAY being set.
2012-05-18 17:03:18 +02:00
8a4c136a90 updated for version 7.3.519
Problem:    When completefunction returns it cannot indicate end of completion
            mode.
Solution:   Recognize completefunction returning -3.  (Mtsushita Shougo)
2012-05-18 16:35:21 +02:00
a0149c7401 updated for version 7.3.518
Problem:    When 'encoding' is a double-byte encoding ":helptags" may not find
            tags correctly.
Solution:   Use vim_strbyte() instead of vim_strchr(). (Yasuhiro Matsumoto)
2012-05-18 16:24:11 +02:00
1aeaf8c0e0 Updated runtime files. 2012-05-18 13:46:39 +02:00
dbb4a42cdc Ignore file generated by tests. 2012-05-18 13:14:26 +02:00
18e00d2c86 updated for version 7.3.517
Problem:    Crash when using "vipvv". (Alexandre Provencio)
Solution:   Don't let the text length become negative.
2012-05-18 12:49:40 +02:00
2fc8802fcc updated for version 7.3.516
Problem:    extend(o, o) may crash Vim.
Solution:   Fix crash and add test. (Thinca and Hirohito Higashi)
2012-05-18 12:07:05 +02:00
8071607aa5 More runtime file fixes for 'compatible' mode. 2012-05-01 21:14:34 +02:00
2d0b92f8f9 updated for version 7.3.515
Problem:    'wildignorecase' only applies to the last part of the path.
Solution:   Also ignore case for letters earlier in the path.
2012-04-30 21:09:43 +02:00
5ae636b9bb updated for version 7.3.514
Problem:    No completion for :history command.
Solution:   Add the completion and update the docs. Also fix ":behave"
            completion. (Dominique Pelle)
2012-04-30 18:48:53 +02:00
8320da42bc updated for version 7.3.513
Problem:    Cannot use CTRL-E and CTRL-Y with "r".
Solution:   Make CTRL-E and CTRL-Y work like in Insert mode. (Christian
            Brabandt)
2012-04-30 18:18:47 +02:00
b41d9689f1 updated for version 7.3.512
Problem:    undofile() returns a useless name when passed an empty string.
Solution:   Return an empty string. (Christian Brabandt)
2012-04-30 17:35:48 +02:00
7da9c37a17 updated for version 7.3.511
Problem:    Using a FileReadCmd autocommand that does ":e! {file}" may cause a
            crash. (Christian Brabandt)
Solution:   Properly restore curwin->w_s.
2012-04-30 17:04:52 +02:00
9a7224b5a0 Fixed compatible mode in most runtime files. 2012-04-30 15:56:52 +02:00
e8938e507e updated for version 7.3.510
Problem:    Test 77 fails on Solaris 7. (Michael Soyka)
Solution:   Replace any tabs with spaces.
2012-04-30 11:34:28 +02:00
ddbb5550b4 Updated runtime files, include fixes for line continuation. 2012-04-26 20:17:03 +02:00
d38b055ab8 Updated runtime files. 2012-04-25 19:07:41 +02:00
7f51a82c1b updated for version 7.3.509
Problem:    ":vimgrep" fails when 'autochdir' is set.
Solution:   A more generic solution for changing directory. (Ben Fritz)
2012-04-25 18:57:21 +02:00
b429cdeb6e updated for version 7.3.508
Problem:    Default for v:register is not set.
Solution:   Init v:register in eval_init(). Correct for 'clipboard' before the
            main loop. (Ingo Karkat)
2012-04-25 18:24:29 +02:00
8218f60b61 updated for version 7.3.507
Problem:    When exiting with unsaved changes, selecting an existing file in
            the file dialog, there is no dialog to ask whether the existing
            file should be overwritten. (Felipe G. Nievinski)
Solution:   Call check_overwrite() before writing. (Christian Brabandt)
2012-04-25 17:32:18 +02:00
68fb5dcd13 updated for version 7.3.506
Problem:    GTK gives an error when selecting a non-existent file.
Solution:   Add a handler to avoid the error. (Christian Brabandt)
2012-04-25 17:10:16 +02:00
68a33fc704 updated for version 7.3.505
Problem:    Test 11 fails on MS-Windows in some versions.
Solution:   Fix #ifdefs for whether filtering through a pipe is possible. Move
            setting b_no_eol_lnum back to where it was before patch 7.3.124.
            (David Pope)
2012-04-25 16:50:48 +02:00
720ce53af0 updated for version 7.3.504
Problem:    Commands in help files are not highlighted.
Solution:   Allow for commands in backticks.  Adjust CTRL-] to remove the
            backticks.
2012-04-25 12:57:28 +02:00
6217cdcec3 updated for version 7.3.503
Problem:    Warning for unused argument.
Solution:   Add UNUSED.
2012-04-25 12:28:09 +02:00
e436528e04 updated for version 7.3.502
Problem:    Netbeans insert halfway a line actually appends to the line.
Solution:   Insert halfway the line. (Brian Victor)
2012-04-20 19:47:05 +02:00
35df7d2d99 updated for version 7.3.501
Problem:    Error for "flush" not being defined when using Ruby command.
Solution:   Defined "flush" as a no-op method. (Kent Sibilev)
2012-04-20 18:05:47 +02:00
a6cdc99152 updated for version 7.3.500
Problem:    Ming makefile unconditionally sets WINVER.
Solution:   Only defined when not already defined. (Yasuhiro Matsumoto)
2012-04-20 16:13:25 +02:00
6be120e7f5 updated for version 7.3.499
Problem:    When using any interface language when Vim is waiting for a child
            process it gets confused by a child process started through the
            interface.
Solution:   Always used waitpid() instead of wait(). (Yasuhiro Matsumoto)
2012-04-20 15:55:16 +02:00
84298db3a4 updated for version 7.3.498
Problem:    The behavior of the "- register changes depending on value of
            the 'clipboard' option. (Szamotulski)
Solution:   Also set the "- register when the register is "*" or "+".
            (Christian Brabandt)
2012-04-20 13:46:08 +02:00
b830f0c7df updated for version 7.3.497
Problem:    Crash when doing ":python print" and compiled with gcc and
            the optimizer enabled.
Solution:   Avoid the crash, doesn't really fix the problem. (Christian
            Brabandt)
2012-04-20 13:31:21 +02:00
53bfca22f1 Updated runtime files. 2012-04-13 23:04:47 +02:00
09210ac93c updated for version 7.3.496
Problem:    MS-DOS: When "diff" trips over difference in line separators some
            tests fail.
Solution:   Make some .ok files use unix line separators. (David Pope)
2012-04-13 19:11:20 +02:00
b345d49e06 updated for version 7.3.495
Problem:    Compiler warnings.
Solution:   Add function declaration.  Remove "offset" argument.
2012-04-09 20:42:26 +02:00
bd2f3c3ec6 updated for version 7.3.494
Problem:    Can't compile with Lua 9.1 or dynamic Lua.
Solution:   Fix dll_ methods. Fix luado(). (Muraoka Taro, Luis Carvalho)
2012-04-06 14:31:00 +02:00
b0d7a15d3a updated for version 7.3.493
Problem:    Two unused variables.
Solution:   Remove them. (Hong Xu)
2012-04-06 13:56:04 +02:00
5b435d671e Updated runtime files. 2012-04-05 17:33:26 +02:00
3675fa09a7 updated for version 7.3.492
Problem:    Can't indent conditions separately from function arguments.
Solution:   Add the 'k' flag in 'cino. (Lech Lorens)
2012-04-05 17:17:42 +02:00
98411e57ab updated for version 7.3.491
Problem:    No tests for Lua.
Solution:   Add some simple tests for Lua. (Luis Carvalho)
2012-04-05 16:56:52 +02:00
1dced5727f updated for version 7.3.490
Problem:    Member confusion in Lua interface.
Solution:   Fix it.  Add luaeval(). (Taro Muraoka, Luis Carvalho)
2012-04-05 16:54:08 +02:00
e0ebfd7507 updated for version 7.3.489
Problem:    CTRL-] in Insert mode does not expand abbreviation when used in a
            mapping. (Yichao Zhou)
Solution:   Special case using CTRL-]. (Christian Brabandt)
2012-04-05 16:07:06 +02:00
3dbde6226d updated for version 7.3.488
Problem:    ":help!" in a help file does not work as document.
Solution:   When in a help file don't give an error message. (thinca)
2012-04-05 16:05:05 +02:00
61d35bd020 Updated runtime files. 2012-03-28 20:51:51 +02:00
913077c37c updated for version 7.3.487
Problem:    When setting 'timeoutlen' or 'ttimeoutlen' the column for vertical
            movement is reset unnecessarily.
Solution:   Do not set w_set_curswant for every option. Add a test for this.
            (Kana Natsuno) Add the P_CURSWANT flag for options.
2012-03-28 19:59:04 +02:00
ca628610c0 updated for version 7.3.486
Problem:    Build error with mingw64 on Windows 7.
Solution:   Avoid the step of going through vimres.res. (Guopeng Wen)
2012-03-28 17:43:11 +02:00
da5a4970a9 updated for version 7.3.485
Problem:    When building Vim LDFLAGS isn't passed on to building xxd.
Solution:   Pass the LDFLAGS value. (James McCoy)
2012-03-28 17:17:48 +02:00
f99bc6d002 updated for version 7.3.484
Problem:    The -E and --echo-wid command line arguments are not mentioned in
            "vim --help".
Solution:   Add the help lines. (Dominique Pelle)
2012-03-28 17:10:31 +02:00
6df5e5ae42 updated for version 7.3.483
Problem:    More prompt shows up too often.
Solution:   Instead of adding a line break, only start a new line in the
            message history. (Christian Brabandt)
2012-03-28 16:49:29 +02:00
524780d69f updated for version 7.3.482
Problem:    With 'cursorbind' set moving up/down does not always keep the same
            column.
Solution:   Set curswant appropriately. (Gary Johnson)
2012-03-28 14:19:50 +02:00
61d281a4c0 updated for version 7.3.481
Problem:    Changing 'virtualedit' in an operator function to "all" does not
            have the desired effect. (Aaron Bohannon)
Solution:   Save, reset and restore virtual_op when executing an operator
            function.
2012-03-28 12:59:57 +02:00
970a1b82ec updated for version 7.3.480
Problem:    When using ":qa" and there is a changed buffer picking the buffer
            to jump to is not very good.
Solution:   Consider current and other tab pages. (Hirohito Higashi)
2012-03-23 18:39:18 +01:00
06ca513e2c updated for version 7.3.479
Problem:    When 'cursorline' is set the line number highlighting can't be set
            separately.
Solution:   Add "CursorLineNr". (Howard Buchholz)
2012-03-23 16:25:17 +01:00
507cc8acf1 updated for version 7.3.478
Problem:    Memory leak using the ':rv!' command when reading dictionary or
            list global variables i.e. with 'viminfo' containing !.
Solution:   Free the typeval. (Dominique Pelle)
2012-03-23 15:37:02 +01:00
12b0290d42 updated for version 7.3.477
Problem:    Using ":echo" to output enough lines to scroll, then using "j" and
            "k" at the more prompt, displays the command on top of the output.
            (Marcin Szamotulski)
Solution:   Put the output below the command. (Christian Brabandt)
2012-03-23 15:18:24 +01:00
5e4b9e9ff8 updated for version 7.3.476
Problem:    When selecting a block, using "$" to include the end of each line
            and using "A" and typing a backspace strange things happen.
            (Yuangchen Xie)
Solution:   Avoid using a negative length. (Christian Brabandt)
2012-03-23 14:16:23 +01:00
5d3a8038b6 updated for version 7.3.475
Problem:    In a terminal with few colors the omnicomplete menu may be hard to
            see when using the default colors.
Solution:   Use more explicit colors. (suggested by Alex Henrie)
2012-03-16 20:16:46 +01:00
dfba6b6449 updated for version 7.3.474
Problem:    Perl build with gcc 4 fails.
Solution:   Remove XS() statements. (Yasuhiro Matsumoto)
2012-03-16 19:34:47 +01:00
1ea69b7077 updated for version 7.3.473
Problem:    'cursorbind' does not work correctly in combination with
            'virtualedit' set to "all".
Solution:   Copy coladd. (Gary Johnson)
2012-03-16 19:24:26 +01:00
5ad15df9ce updated for version 7.3.472
Problem:    Crash when using ":redraw" in a BufEnter autocommand and
            switching to another tab. (驼峰)
Solution:   Move triggering the the autocommands to after correcting the
            option values. Also check the row value to be out of bounds.
            (Christian Brabandt, Sergey Khorev)
2012-03-16 19:07:58 +01:00
1c0b03e857 updated for version 7.3.471
Problem:    Can't abort listing placed signs.
Solution:   Check "got_int". (Christian Brabandt)
2012-03-16 14:32:15 +01:00
84f7235bdb Updated runtime files. Add Dutch translations. 2012-03-11 15:57:40 +01:00
7c578d3c3f updated for version 7.3.470
Problem:    Test 62 fails when compiled without GUI and X11.
Solution:   Don't test :drop when it is not supported.
2012-03-07 22:55:20 +01:00
5fbe699390 updated for version 7.3.469
Problem:    Compiler warning for unused argument without some features.
Solution:   Add UNUSED.
2012-03-07 22:52:36 +01:00
8ec1f8523b updated for version 7.3.468
Problem:    For some compilers the error file is not easily readable.
Solution:   Use QuickFixCmdPre for more commands. (Marcin Szamotulski)
2012-03-07 20:13:49 +01:00
917ba89f7f updated for version 7.3.467
Problem:    Cursor positioned wrong at the command line when regaining focus
            and using some input method.
Solution:   Do not position the cursor in command line mode.
2012-03-07 19:38:55 +01:00
9e98edfe8f updated for version 7.3.466
Problem:    Get ml_get error hen ":behave mswin" was used and selecting
            several lines.  (A. Sinan Unur)
Solution:   Adjust the end of the operation. (Christian Brabandt)
2012-03-07 19:30:36 +01:00
146e9c3886 updated for version 7.3.465
Problem:    Cannot get file name with newline from glob().
Solution:   Add argument to glob() and expand() to indicate they must return a
            list. (Christian Brabandt)
2012-03-07 19:18:23 +01:00
552ac13d55 updated for version 7.3.464
Problem:    Compiler warning for sprintf.
Solution:   Put the length in a variable. (Dominique Pelle)
2012-03-07 18:03:10 +01:00
0faaeb826e updated for version 7.3.463
Problem:    When using ":s///c" the cursor is moved away from the match.
            (Lawman)
Solution:   Don't move the cursor when do_ask is set. (Christian Brabandt)
2012-03-07 14:57:52 +01:00
d25ad65a97 updated for version 7.3.462
Problem:    When using ":loadview" folds may be closed unexpectedly.
Solution:   Take into account foldlevel. (Xavier de Gaye)
2012-02-29 19:20:02 +01:00
f5876f147a updated for version 7.3.461
Problem:    The InsertCharPre autocommand event is not triggered during
            completion and when typing several characters quickly.
Solution:   Also trigger InsertCharPre during completion.  Do not read ahead
            when an InsertCharPre autocommand is defined. (Yasuhiro Matsumoto)
2012-02-29 18:22:08 +01:00
91856270df updated for version 7.3.460
Problem:    Win32: UPX does not compress 64 bit binaries.
Solution:   Mention and add the alternative: mpress. (Dave Bodenstab)
2012-02-29 16:56:39 +01:00
4336cdf318 updated for version 7.3.459
Problem:    Win32: Warnings for type conversion.
Solution:   Add type casts. (Mike Williams)
2012-02-29 13:58:47 +01:00
7f29f7a2f4 updated for version 7.3.458
Problem:    Crash when calling smsg() during startup.
Solution:   Don't use 'shortmess' when it is not set yet.
2012-02-29 13:51:37 +01:00
011a34d77d updated for version 7.3.457
Problem:    When setting $VIMRUNTIME later the directory for fetching
            translated messages is not adjusted.
Solution:   Put bindtextdomain() in vim_setenv().
2012-02-29 13:49:09 +01:00
52379eadfb updated for version 7.3.456
Problem:    ":tab drop file" has several problems, including moving the
            current window and opening a new tab for a file that already has a
            window.
Solution:   Refactor ":tab drop" handling. (Hirohito Higashi)
2012-02-22 19:13:08 +01:00
b549a731fb updated for version 7.3.455
Problem:    Using many continuation lines can be slow.
Solution:   Adjust the reallocation size to the current length.
2012-02-22 18:29:33 +01:00
7282bc3e7e updated for version 7.3.454
Problem:    Re-allocating memory slows Vim down.
Solution:   Use realloc() in ga_grow(). (Dominique Pelle)
2012-02-22 18:12:32 +01:00
58437e0409 updated for version 7.3.453
Problem:    Pasting in the command line is slow.
Solution:   Don't redraw if there is another character to read. (Dominique
            Pelle)
2012-02-22 17:58:04 +01:00
5f1e3e4473 updated for version 7.3.452
Problem:    Undo broken when pasting close to the last line. (Andrey Radev)
Solution:   Use a flag to remember if the deleted included the last line.
            (Christian Brabandt)
2012-02-22 17:38:00 +01:00
db7207e6e5 Updated runtime files. 2012-02-22 17:30:19 +01:00
84a4c334e1 updated for version 7.3.451
Problem:    Tcl doesn't work on 64 MS-Windows.
Solution:   Make it work. (Dave Bodenstab)
2012-02-22 16:01:56 +01:00
ee7d100091 updated for version 7.3.450
Problem:    Win32: Still a problem with "!start /b".
Solution:   Fix pointer use. (Yasuhiro Matsumoto)
2012-02-22 15:34:08 +01:00
42ec656524 updated for version 7.3.449
Problem:    Crash when a BufWinLeave autocommand closes the only other window.
            (Daniel Hunt)
Solution:   Abort closing a buffer when it becomes the only one.
2012-02-22 14:58:37 +01:00
fb7df7be2f updated for version 7.3.448
Problem:    Win32: Still a problem with "!start /b".
Solution:   Escape only '|'. (Yasuhiro Matsumoto)
2012-02-22 13:07:05 +01:00
6b707b4b82 updated for version 7.3.447
Problem:    Win32: External commands with "start" do not work.
Solution:   Unescape part of the command. (Yasuhiro Matsumoto)
2012-02-21 21:22:44 +01:00
f66b3fcf6c updated for version 7.3.446
Problem:    Win32: External commands with special characters don't work.
Solution:   Add the 'shellxescape' option.
2012-02-20 22:18:30 +01:00
034b115568 updated for version 7.3.445
Problem:    Can't properly escape commands for cmd.exe.
Solution:   Default 'shellxquote' to '('.  Append ')' to make '(command)'.
            No need to use "/s" for 'shellcmdflag'.
2012-02-19 18:19:30 +01:00
5dc6252d33 Update runtime files. 2012-02-13 00:05:22 +01:00
61c3519b78 updated for version 7.3.444
Problem:    ":all!" and ":sall!" give error E477, even though the
            documentation says these are valid commands.
Solution:   Support the exclamation mark. (Hirohito Higashi)
2012-02-13 00:01:43 +01:00
a64ba220f0 updated for version 7.3.443
Problem:    MS-Windows: 'shcf' and 'shellxquote' defaults are not very good.
Solution:   Make a better guess when 'shell' is set to "cmd.exe". (Ben Fritz)
2012-02-12 23:23:31 +01:00
60542ac9fd updated for version 7.3.442
Problem:    Still read modelines for ":doautocmd".
Solution:   Move check for <nomodeline> to separate function.
2012-02-12 20:14:01 +01:00
bbc98db7c4 updated for version 7.3.441
Problem:    Newer versions of MzScheme (Racket) require earlier (trampolined)
            initialisation.
Solution:   Call mzscheme_main() early in main(). (Sergey Khorev)
2012-02-12 01:55:55 +01:00
efcb54b78c updated for version 7.3.440
Problem:    Vim does not support UTF8_STRING for the X selection.
Solution:   Add UTF8_STRING atom support. (Alex Efros) Use it only when
            'encoding' is set to Unicode.
2012-02-12 01:35:10 +01:00
be74734429 updated for version 7.3.439
Problem:    Compiler warnings to size casts in Perl interface.
Solution:   Use XS macros. (James McCoy)
2012-02-12 00:31:52 +01:00
a61d5fbf7a updated for version 7.3.438
Problem:    There is no way to avoid ":doautoall" reading modelines.
Solution:   Add the <nomodeline> argument. Adjust documentation.
2012-02-12 00:18:58 +01:00
28f2908d95 updated for version 7.3.437
Problem:    Continue looping inside FOR_ALL_TAB_WINDOWS even when already done.
Solution:   Use goto instead of break. (Hirohito Higashi)
2012-02-11 23:45:37 +01:00
68ba0dd633 updated for version 7.3.436
Problem:    Compiler warnings for types on Windows.
Solution:   Add type casts. (Mike Williams)
2012-02-11 20:44:10 +01:00
c047b9a49f updated for version 7.3.435
Problem:    Compiler warning for unused variable.
Solution:   Move the variable inside #ifdef.
2012-02-11 20:40:55 +01:00
3fe37d62d1 updated for version 7.3.434
Problem:    Using join() can be slow.
Solution:   Compute the size of the result before allocation to avoid a lot of
            allocations and copies. (Taro Muraoka)
2012-02-06 00:13:22 +01:00
b3a6bbc7b6 updated for version 7.3.433
Problem:    Using continued lines in a Vim script can be slow.
Solution:   Instead of reallocating for every line use a growarray. (Yasuhiro
            Matsumoto)
2012-02-05 23:10:30 +01:00
8d462f9666 updated for version 7.3.432
Problem:    ACLs are not supported for ZFS or NFSv4 on Solaris.
Solution:   Add configure check and code. (Danek Duvall)
2012-02-05 22:51:33 +01:00
a8c8a688ac updated for version 7.3.431
Problem:    Fetching a key at a prompt may be confused by escape sequences.
            Especially when getting a prompt at a VimEnter autocommand.
            (Alex Efros)
Solution:   Properly handle escape sequences deleted by check_termcode().
2012-02-05 22:05:48 +01:00
73b2470896 updated for version 7.3.430
Problem:    When a custom filetype detection uses "augroup END" the conf
            fileytpe detection does not have the filetypedetect group.
Solution:   Always end the group and include filetypedetect in the conf
            autocommand. (Lech Lorens)
2012-02-05 20:08:36 +01:00
be094a1579 updated for version 7.3.429
Problem:    When 'cpoptions' includes "E" "c0" in the first column is an
            error. The redo register is then set to the errornous command.
Solution:   Do not set the redo register if the command fails because of an
            empty region. (Hideki Eiraku)
2012-02-05 01:18:48 +01:00
e37c611012 updated for version 7.3.428
Problem:    Win32: an xpm file without a mask crashes Vim.
Solution:   Fail when the mask is missing. (Dave Bodenstab)
2012-02-05 00:48:00 +01:00
a489e1d9d6 updated for version 7.3.427
Problem:    readfile() can be slow with long lines.
Solution:   Use realloc() instead of alloc(). (John Little)
2012-02-05 00:39:18 +01:00
76b9b3696c updated for version 7.3.426
Problem:    With '$' in 'cpoptions' the $ is not displayed in the first
            column.
Solution:   Use -1 instead of 0 as a special value. (Hideki Eiraku and
            Hirohito Higashi)
2012-02-04 23:35:00 +01:00
d87fbc2b1c updated for version 7.3.425
Problem:    Search history lines are duplicated. (Edwin Steiner)
Solution:   Convert separator character from space to NUL.
2012-02-04 22:44:32 +01:00
fbe323d854 updated for version 7.3.424
Problem:    Win16 version missing some functions.
Solution:   Add #defines for the functions.
2012-02-04 22:01:48 +01:00
b8ff1fb5eb updated for version 7.3.423
Problem:    Small mistakes in comments, proto and indent.
Solution:   Fix the mistakes.

Also update runtime files
2012-02-04 21:59:01 +01:00
7f85d297dc updated for version 7.3.422
Problem:    Python 3 does not have __members__.
Solution:   Add "name" and "number" in another way. (lilydjwg)
2012-02-04 20:17:26 +01:00
3c70f33440 updated for version 7.3.421
Problem:    Get E832 when setting 'undofile' in vimrc and there is a file to
            be edited on the command line. (Toothpik)
Solution:   Do not try reading the undo file for a file that wasn't loaded.
2012-01-28 18:03:35 +01:00
16c31fe1b7 updated for version 7.3.420
Problem:    "it" and "at" don't work properly with a dash in the tag name.
Solution:   Require a space to match the tag name. (Christian Brabandt)
2012-01-26 20:58:26 +01:00
7d550fbde5 updated for version 7.3.419
Problem:    DBCS encoding in a user command does not always work.
Solution:   Skip over DBCS characters. (Yasuhiro Matsumoto)
2012-01-26 20:41:26 +01:00
6110a006d5 updated for version 7.3.418
Problem:    When a user complete function returns -1 an error message is
            given.
Solution:   When -2 is returned stop completion silently. (Yasuhiro Matsumoto)
2012-01-26 18:58:38 +01:00
8e808d2b4d updated for version 7.3.417
Problem:    Test 43 fails with a tiny build.
Solution:   Only run test 43 with at least a small build.
2012-01-26 18:56:47 +01:00
975261e8a0 updated for version 7.3.416
Problem:    Compiler warning for wrong pointer.
Solution:   Add type cast.
2012-01-26 18:52:06 +01:00
f44cfb88f6 updated for version 7.3.416
Problem:    Compiler warning for wrong pointer.
Solution:   Add type cast.
2012-01-26 18:03:07 +01:00
abe838b099 updated for version 7.3.415
Problem:    Completion of functions stops once a dictionary is encountered.
            (James McCoy)
Solution:   Return an empty string instead of NULL.
2012-01-26 14:32:30 +01:00
06af60244e updated for version 7.3.414
Problem:    Using CTRL-A on "000" drops the leading zero, while on "001" it
            doesn't.
Solution:   Detect "000" as an octal number. (James McCoy)
2012-01-26 13:40:08 +01:00
38f5f9529a updated for version 7.3.413
Problem:    Build warnings on MS-Windows.
Solution:   Add type casts. (Mike Williams)
2012-01-26 13:01:59 +01:00
2b04b19455 updated for version 7.3.412
Problem:    Storing a float in a session file has an additional '&'.
Solution:   Remove the '&'. (Yasuhiro Matsumoto)
2012-01-26 11:45:30 +01:00
53748fcb7b updated for version 7.3.411
Problem:    Pasting in Visual mode using the "" register does not work. (John
            Beckett)
Solution:   Detect that the write is overwriting the pasted register.
            (Christian Brabandt)
2012-01-26 11:43:09 +01:00
33c1b198c6 updated for version 7.3.410
Problem:    Compiler error for // comment. (Joachim Schmitz)
Solution:   Turn into /* comment */.
2012-01-23 20:48:40 +01:00
7474c7c3d6 updated for version 7.3.409
Problem:    The license in pty.c is unclear.
Solution:   Add a comment about the license.
2012-01-20 21:13:59 +01:00
6be7f8733f Update runtime files. 2012-01-20 21:08:56 +01:00
90b280059f updated for version 7.3.408
Problem:    Missing declaration.
Solution:   Add the declaration. (John Marriott)
2012-01-20 20:54:19 +01:00
f31b764c23 updated for version 7.3.407
Problem:    ":12verbose call F()" may duplicate text while trying to truncate.
            (Thinca)
Solution:   Only truncate when there is not enough room.  Also check the byte
            length of the buffer.
2012-01-20 20:44:43 +01:00
3ef7cdf0fd updated for version 7.3.406
Problem:    Multi-byte characters in b:browsefilter are not handled correctly.
Solution:   First use convert_filter() normally and then convert to wide
            characters. (Taro Muraoka)
2012-01-20 17:57:51 +01:00
5af7d71276 updated for version 7.3.405
Problem:    When xterm gets back the function keys it may delete the urxvt
            mouse termcap code.
Solution:   Check for the whole code, not just the start. (Egmont Koblinger)
2012-01-20 17:15:51 +01:00
6d6cec8375 updated for version 7.3.404
Problem:    When a complete function uses refresh "always" redo will not work
            properly.
Solution:   Do not reset compl_leader when compl_opt_refresh_always is set.
            (Yasuhiro Matsumoto)
2012-01-20 14:32:27 +01:00
73633f84d6 updated for version 7.3.403
Problem:    ":helpgrep" does not trigger QuickFixCmd* autocommands.
Solution:   Trigger the autocommands. (Christian Brabandt)
2012-01-20 13:39:07 +01:00
8f55d103db updated for version 7.3.402
Problem:    When jumping to the first error a line of the buffer is sometimes
            redrawn on top of the list of errors.
Solution:   Do not call update_topline_redraw() if the display was scrolled
            up.
2012-01-20 13:28:34 +01:00
309cbc3840 updated for version 7.3.401
Problem:    A couple more shadowed variables.
Solution:   Rename the variables.
2012-01-10 22:31:31 +01:00
70b2a56d5a updated for version 7.3.400
Problem:    Compiler warnings for shadowed variables.
Solution:   Remove or rename the variables.
2012-01-10 22:26:17 +01:00
1f5965b3c4 updated for version 7.3.399
Problem:    ":cd" doesn't work when the path contains wildcards. (Yukihiro
            Nakadaira)
Solution:   Ignore wildcard errors when the EW_NOTWILD flag is used.
2012-01-10 18:37:58 +01:00
a0f299b4e8 updated for version 7.3.398
Problem:    When creating more than 10 location lists and adding items one by
            one a previous location may be used. (Audrius Kažukauskas)
Solution:   Clear the location list completely when adding the tenth one.
2012-01-10 17:13:52 +01:00
10b7b39b3d updated for version 7.3.397
Problem:    ":helpgrep" does not work properly when 'encoding' is not utf-8 or
            latin1.
Solution:   Convert non-ascii lines to 'encoding'. (Yasuhiro Matsumoto)
2012-01-10 16:28:45 +01:00
6ee8d89cf9 Updated runtime files. 2012-01-10 14:55:01 +01:00
64a72303f8 updated for version 7.3.396
Problem:    After forcing an operator to be characterwise it can still become
            linewise when spanning whole lines.
Solution:   Don't make the operator linewise when motion_force was set.
            (Christian Brabandt)
2012-01-10 13:46:22 +01:00
66accae339 updated for version 7.3.395
Problem:    "dv?bar" in the last line deletes too much and breaks undo.
Solution:   Only adjust the cursor position when it's after the last line of
            the buffer.  Add a test. (Christian Brabandt)
2012-01-10 13:44:27 +01:00
738f8fc8ed updated for version 7.3.394
Problem:    When placing a mark while starting up a screen redraw messes up
            the screen. (lith)
Solution:   Don't redraw while still starting up. (Christian Brabandt)
2012-01-10 12:42:09 +01:00
6ef47c223e updated for version 7.3.393
Problem:    Win32: When resizing Vim it is always moved to the primary monitor
            if the secondary monitor is on the left.
Solution:   Use the nearest monitor. (Yukihiro Nakadaira)
2012-01-04 20:29:22 +01:00
374d32d70f updated for version 7.3.392
Problem:    When setting 'undofile' while the file is already loaded but
            unchanged, try reading the undo file. (Andy Wokula)
Solution:   Compute a checksum of the text when 'undofile' is set. (Christian
            Brabandt)
2012-01-04 19:34:37 +01:00
79a2a49c5a updated for version 7.3.391
Problem:    Can't check if the XPM_W32 feature is enabled.
Solution:   Add xpm_w32 to the list of features. (kat)
2012-01-04 14:35:37 +01:00
fc57380c3f updated for version 7.3.390
Problem:    Using NULL buffer pointer in a window.
Solution:   Check for w_buffer being NULL in more places. (Bjorn Winckler)
2011-12-30 15:01:59 +01:00
5d6f75e17e updated for version 7.3.389
Problem:    After typing at a prompt the "MORE" message appears too soon.
Solution:   reset lines_left in msg_end_prompt(). (Eswald)
2011-12-30 14:14:29 +01:00
83bac4c31a updated for version 7.3.388
Problem:    Crash on exit when EXITFREE is defined and using tiny features.
Solution:   Check for NULL window pointer. (Dominique Pelle)
2011-12-30 13:39:10 +01:00
b6b046b281 Updated runtime files. 2011-12-30 13:11:27 +01:00
deaf7b7397 updated for version 7.3.387
Problem:    Test 83 may fail for some encodings.
Solution:   Set 'encoding' to utf-8 earlier.
2011-12-30 13:09:21 +01:00
ff0a4809e3 updated for version 7.3.386
Problem:    Test 83 fails when iconv does not support cp932. (raf)
Solution:   Test if conversion works. (Yukihiro Nakadaira)
2011-12-23 14:56:28 +01:00
637606413f updated for version 7.3.385
Problem:    When using an expression mapping on the command line the cursor
            ends up in the wrong place. (Yasuhiro Matsumoto)
Solution:   Save and restore msg_col and msg_row when evaluating the
            expression.
2011-12-23 14:54:04 +01:00
bbd9fd7353 updated for version 7.3.384
Problem:    Mapping CTRL-K in Insert mode breaks CTRL-X CTRL-K for dictionary
            completion.
Solution:   Add CTRL-K to the list of recognized keys. (James McCoy)
2011-12-23 13:15:03 +01:00
265116a99a updated for version 7.3.383
Problem:    For EBCDIC pound sign is defined as 't'.
Solution:   Correctly define POUND.
2011-12-23 12:47:03 +01:00
213ae48854 updated for version 7.3.382
Problem:    IME characters are inserted twice.
Solution:   Do not call DefWindowProc() if the event was handled. (Yasuhiro
            Matsumoto)
2011-12-15 21:51:36 +01:00
f1568eca24 Update runtime files. 2011-12-14 21:17:39 +01:00
f788a06103 updated for version 7.3.381
Problem:    Configure silently skips interfaces that won't work.
Solution:   Add the --enable-fail_if_missing argument. (Shlomi Fish)
2011-12-14 20:51:25 +01:00
c367faad99 updated for version 7.3.380
Problem:    C-indenting wrong for a function header.
Solution:   Skip to the start paren. (Lech Lorens)
2011-12-14 20:21:35 +01:00
a528565cf1 updated for version 7.3.379
Problem:    C-indenting wrong for static enum.
Solution:   Skip over "static". (Lech Lorens)
2011-12-14 20:05:21 +01:00
323cb95120 updated for version 7.3.378
Problem:    When cross-compiling the check for uint32_t fails.
Solution:   Only give a warning message. (Maksim Melnikau)
2011-12-14 19:22:34 +01:00
d6e256c31a updated for version 7.3.377
Problem:    No support for bitwise AND, OR, XOR and invert.
Solution:   Add add(), or(), invert() and xor() functions.
2011-12-14 15:32:50 +01:00
2787ab91b0 updated for version 7.3.376
Problem:    Win32: Toolbar repainting does not work when the mouse pointer
            hovers over a button.
Solution:   Call DefWindowProc() when not hanlding an event. (Sergiu Dotenco)
2011-12-14 15:23:59 +01:00
68dfcdf725 updated for version 7.3.375
Problem:    Duplicate return statement.
Solution:   Remove the superfluous one. (Dominique Pelle)
2011-12-14 15:07:29 +01:00
b38e9ab4af updated for version 7.3.374
Problem:    ++encoding does not work properly.
Solution:   Recognize ++encoding before ++enc. (Charles Cooper)
2011-12-14 14:49:45 +01:00
08fc756582 updated for version 7.3.373
Problem:    A tags file with an extremely long name may cause an infinite loop.
Solution:   When encountering a long name switch to linear search.
2011-12-14 14:15:16 +01:00
96a8964564 updated for version 7.3.372
Problem:    When using a command line mapping to <Up> with file name
            completion to go one directory up, 'wildchar' is inserted.
            (Yasuhiro Matsumoto)
Solution:   Set the KeyTyped flag.
2011-12-08 18:44:51 +01:00
b9ba403542 updated for version 7.3.371
Problem:    Crash in autocomplete. (Greg Weber)
Solution:   Check not going over allocated buffer size.
2011-12-08 17:49:35 +01:00
fa263a517b updated for version 7.3.370
Problem:    Compiler warns for unused variable in Lua interface.
Solution:   Remove the variable.
2011-12-08 16:00:16 +01:00
f4120a8964 updated for version 7.3.369
Problem:    When compiled with Gnome get an error message when using --help.
Solution:   Don't fork. (Ivan Krasilnikov)
2011-12-08 15:57:59 +01:00
aeabe0545d updated for version 7.3.368
Problem:    Gcc complains about redefining _FORTIFY_SOURCE.
Solution:   Undefine it before redefining it.
2011-12-08 15:17:34 +01:00
ae7ba984ee updated for version 7.3.367
Problem:    :wundo and :rundo use a wrong checksum.
Solution:   Include the last line when computing the hash. (Christian Brabandt)
2011-12-08 15:14:09 +01:00
0a11f8ce4e updated for version 7.3.366
Problem:    A tags file with an extremely long name causes errors.
Solution:   Ignore tags that are too long. (Arno Renevier)
2011-12-08 15:12:11 +01:00
f0b6b0cc3b updated for version 7.3.365
Problem:    Crash when using a large Unicode character in a file that has
            syntax highlighting. (ngollan)
Solution:   Check for going past the end of the utf tables. (Dominique Pelle)
2011-12-08 15:09:52 +01:00
2bbafdbcee updated for version 7.3.364
Problem:    Can't compile on HP-UX. (John Marriott)
Solution:   Only use TTYM_URXVT when it is defined.
2011-12-01 20:59:21 +01:00
3388bb4847 updated for version 7.3.363
Problem:    C indenting is wrong after #endif followed by a semicolon.
Solution:   Add special handling for a semicolon in a line by itself. (Lech
            Lorens)
2011-11-30 17:20:23 +01:00
0612ec8d53 updated for version 7.3.362
Problem:    ml_get error when using ":g" with folded lines.
Solution:   Adjust the line number for changed_lines(). (Christian Brabandt)
2011-11-30 17:01:58 +01:00
89c7122c05 updated for version 7.3.361
Problem:    Accessing memory after it is freed when EXITFREE is defined.
Solution:   Don't access curwin when firstwin is NULL. (Dominique Pelle)
2011-11-30 15:40:56 +01:00
8000baffa7 updated for version 7.3.360
Problem:    Interrupting the load of an autoload function may cause a crash.
Solution:   Do not use the hashitem when not valid. (Yukihiro Nakadaira)
2011-11-30 15:19:28 +01:00
195ea0ff6c updated for version 7.3.359
Problem:    Command line completion shows dict functions.
Solution:   Skip dict functions for completion. (Yasuhiro Matsumoto)
2011-11-30 14:57:31 +01:00
b491c03ee7 updated for version 7.3.358
Problem:    Mouse support doesn't work properly.
Solution:   Add HMT_URXVT. (lilydjwg, James McCoy)
2011-11-30 14:47:15 +01:00
26fdd7da96 updated for version 7.3.357
Problem:    Compiler warning in MS-Windows console build.
Solution:   Adjust return type of PrintHookProc(). (Mike Williams)
2011-11-30 13:42:44 +01:00
6d8f9c6f59 updated for version 7.3.356
Problem:    Using "o" with 'cindent' set may freeze Vim. (lolilolicon)
Solution:   Skip over {} correctly. (Hari G)
2011-11-30 13:03:28 +01:00
49e4ec6eee updated for version 7.3.355
Problem:    GTK warnings when using netrw.vim. (Ivan Krasilnikov)
Solution:   Do not remove the beval event handler twice.
2011-11-30 11:31:30 +01:00
4e5ccfa5c7 updated for version 7.3.354
Problem:    ":set backspace+=eol" doesn't work when 'backspace' has a
            backwards compatible value of 2.
Solution:   Convert the number to a string. (Hirohito Higashi)
2011-11-30 11:15:47 +01:00
1dff76bcb8 updated for version 7.3.353
Problem:    Missing part of the urxvt patch.
Solution:   Add the change in term.c
2011-10-26 23:48:20 +02:00
db710ed999 updated for version 7.3.352
Problem:    When completing methods dict functions and script-local functions
            get in the way.
Solution:   Sort function names starting with "<" to the end. (Yasuhiro
            Matsumoto)
2011-10-26 22:02:15 +02:00
a27ad5aea1 updated for version 7.3.351
Problem:    Text formatting uses start of insert position when it should not.
            (Peter Wagenaar)
Solution:   Do not use Insstart when intentionally formatting.
2011-10-26 17:04:29 +02:00
50bfb3278e updated for version 7.3.350
Problem:    Block of code after ":lua << EOF" may not work. (Paul Isambert)
Solution:   Recognize the ":lua" command, skip to EOF.
2011-10-26 13:19:27 +02:00
f541c36a8c updated for version 7.3.349
Problem:    When running out of memory during startup trying to open a
            swapfile will loop forever.
Solution:   Let findswapname() set dirp to NULL if out of memory.
2011-10-26 11:44:18 +02:00
79739e163b updated for version 7.3.348
Problem:    "call range(1, 947948399)" causes a crash. (ZyX)
Solution:   Avoid a loop in the out of memory message.
2011-10-26 11:41:00 +02:00
b931d74b06 updated for version 7.3.347
Problem:    When dropping text from a browser on Vim it receives HTML even
            though "html" is excluded from 'clipboard'. (Andrei Avk)
Solution:   Fix the condition for TARGET_HTML.
2011-10-26 11:36:25 +02:00
1514667a24 Updated runtime files. 2011-10-20 22:22:38 +02:00
e3cc6d4223 updated for version 7.3.346
Problem:    It's hard to test netbeans commands.
Solution:   Process netbeans commands after :sleep. (Xavier de Gaye)
2011-10-20 21:58:34 +02:00
6cc00c75c1 updated for version 7.3.345 2011-10-20 21:41:09 +02:00
cd6fe97e6b updated for version 7.3.344
Problem:    Problem with GUI startup related to XInitThreads.
Solution:   Use read() and write() instead of fputs() and fread(). (James
            Vega)
2011-10-20 21:28:01 +02:00
c842748302 updated for version 7.3.343
Problem:    No mouse support for urxvt.
Solution:   Implement urxvt mouse support, also for > 252 columns.  (Yiding
            Jia)
2011-10-20 21:09:35 +02:00
62dbdc4a5a updated for version 7.3.342
Problem:    Code not in Vim style.
Solution:   Fix the style. (Elias Diem)
2011-10-20 18:24:22 +02:00
667b4d2db9 updated for version 7.3.341
Problem:    Local help files are only listed in help.txt, not in translated
            help files.
Solution:   Also find translated help files. (Yasuhiro Matsumoto)
2011-10-20 18:17:42 +02:00
f34dc6537d updated for version 7.3.340
Problem:    When 'verbosefile' is set ftplugof.vim can give an error.
Solution:   Only remove filetypeplugin autocommands when they exist. (Yasuhiro
            Matsumoto)
2011-10-20 18:12:32 +02:00
a4594f6b82 updated for version 7.3.339
Problem:    "make shadow" doesn't link all test files.
Solution:   Add a line in Makefile and Filelist.
2011-10-20 16:35:35 +02:00
b3479bd229 updated for version 7.3.338
Problem:    Using getchar() in an expression mapping doesn't work well.
Solution:   Don't save and restore the typeahead. (James Vega)
2011-10-12 22:02:14 +02:00
2e7b1df8fa updated for version 7.3.337
Problem:    Screen doesn't update after resizing the xterm until a character
            is typed.
Solution:   When the select call is interrupted check do_resize. (Taylor
            Hedberg)
2011-10-12 21:04:20 +02:00
e06461a821 updated for version 7.3.336
Problem:    When a tags file specifies an encoding different from 'enc' it
            may hang and using a pattern doesn't work.
Solution:   Convert the whole line.  Continue reading the header after the
            SORT tag.  Add test83. (Yukihiro Nakadaira)
2011-10-12 19:53:52 +02:00
725a962194 updated for version 7.3.335
Problem:    When 'imdisable' is reset from an autocommand in Insert mode it
            doesn't take effect.
Solution:   Call im_set_active() in Insert mode. (Taro Muraoka)
2011-10-12 16:57:13 +02:00
08c51aabc4 updated for version 7.3.334
Problem:    Latest MingW about XSUBPP referencing itself. (Gongqian Li)
Solution:   Rename the first use to XSUBPPTRY.
2011-10-12 14:11:45 +02:00
ca0c9fcda0 updated for version 7.3.333
Problem:    Using "." to repeat a Visual delete counts the size in bytes, not
            characters.  (Connor Lane Smith)
Solution:   Store the virtual column numbers instead of byte positions.
2011-10-04 21:22:44 +02:00
e79d1535cf updated for version 7.3.332
Problem:    Indent after "public:" is not increased in C++ code. (Lech Lorens)
Solution:   Check for namespace after the regular checks. (partly by Martin
            Gieseking)
2011-10-04 18:03:47 +02:00
aa0e80471f updated for version 7.3.331
Problem:    "vit" selects wrong text when a tag name starts with the same text
            as an outer tag name. (Ben Fritz)
Solution:   Add "\>" to the pattern to check for word boundary.
2011-10-04 17:00:20 +02:00
7701c24e36 updated for version 7.3.330
Problem:    When longjmp() is invoked if the X server gives an error the state
            is not properly restored.
Solution:   Reset vgetc_busy. (Yukihiro Nakadaira)
2011-10-04 16:43:53 +02:00
946c1eeafc Add files aaded by patch 7.3.326. 2011-10-03 22:12:32 +02:00
250912918e updated for version 7.3.329
Problem:    When skipping over code from ":for" to ":endfor" get an error for
            calling a dict function. (Yasuhiro Matsumoto)
Solution:   Ignore errors when skipping over :call command.
2011-09-30 18:35:57 +02:00
73dc59aad8 updated for version 7.3.328
Problem:    When command line wraps the cursor may be displayed wrong when
            there are multi-byte characters.
Solution:   Position the cursor before drawing the text. (Yasuhiro Matsumoto)
2011-09-30 17:46:21 +02:00
8f535582ad updated for version 7.3.327
Problem:    When jumping to a help tag a closed fold doesn't open.
Solution:   Save and restore KeyTyped. (Yasuhiro Matsumoto)
2011-09-30 17:30:31 +02:00
2369e35b39 updated for version 7.3.326
Problem:    MingW 4.6 no longer supports the -mno-cygwin option.
Solution:   Split the Cygwin and MingW makefiles. (Matsushita Shougo)
2011-09-30 16:56:02 +02:00
acd6a049f6 updated for version 7.3.325
Problem:    A duplicated function argument gives an internal error.
Solution:   Give a proper error message. (based on patch by Tyru)
2011-09-30 16:39:48 +02:00
a627c96182 updated for version 7.3.324
Problem:    Completion for ":compiler" shows color scheme names.
Solution:   Fix the directory name. (James Vega)
2011-09-30 16:23:32 +02:00
98a22f4a63 updated for version 7.3.323
Problem:    The default 'errorformat' does not ignore some "included from"
            lines.
Solution:   Add a few more patterns. (Ben Boeckel)
2011-09-30 14:44:54 +02:00
9f733d1ffd updated for version 7.3.322
Problem:    #ifdef for PDP_RETVAL doesn't work, INT_PTR can be a typedef.
Solution:   Check the MSC version and 64 bit flags. (Sergiu Dotenco)
2011-09-21 20:09:42 +02:00
447038a127 updated for version 7.3.321
Problem:    Code not following Vim style.
Solution:   Fix the style. (Elias Diem)
2011-09-21 19:50:05 +02:00
d960d76d5e Updated a few runtime files. 2011-09-21 19:22:10 +02:00
a6f4d61af7 updated for version 7.3.320
Problem:    When a 0xa0 character is in a sourced file the error message for
            unrecognized command does not show the problem.
Solution:   Display 0xa0 as <a0>.
2011-09-21 19:10:46 +02:00
62951b1e0d updated for version 7.3.319
Problem:    Redobuff doesn't always include changes of the completion leader.
Solution:   Insert backspaces as needed. (idea by Taro Muraoka)
2011-09-21 18:23:05 +02:00
a554a1933c updated for version 7.3.318
Problem:    "C" on the last line deletes that line if it's blank.
Solution:   Only delete the last line for a delete operation. (James Vega)
2011-09-21 17:33:53 +02:00
38e2b0636b updated for version 7.3.317
Problem:    Calling debug.debug() in Lua may cause Vim to hang.
Solution:   Add a better debug method. (Rob Hoelz, Luis Carvalho)
2011-09-21 17:15:39 +02:00
50f834dfb2 updated for version 7.3.316
Problem:    Crash when 'colorcolumn' is set and closing buffer.
Solution:   Check for w_buffer to be NULL. (Yasuhiro Matsumoto)
2011-09-21 13:40:17 +02:00
7f78bd73d6 updated for version 7.3.315
Problem:    Opening a window before forking causes problems for GTK.
Solution:   Fork first, create the window in the child and report back to the
            parent process whether it worked.  If successful the parent exits,
            if unsuccessful the child exits and the parent continues in the
            terminal. (Tim Starling)
2011-09-14 19:04:39 +02:00
52f8317926 updated for version 7.3.314
Problem:    Missing parenthesis.
Solution:   Add it. (Benjamin R. Haskell)
2011-09-14 19:01:42 +02:00
314ed4b21a updated for version 7.3.313
Problem:    One more warning when compiling with dynamic Python 3.
Solution:   Change PySliceObject to PyObject.
2011-09-14 18:59:39 +02:00
5302d9ebc1 Updated runtime files. 2011-09-14 17:55:08 +02:00
ddab33232a updated for version 7.3.312
Problem:    Can't compile with tiny features.
Solution:   Add #ifdef around win_valid().
2011-09-14 17:50:14 +02:00
821390843b updated for version 7.3.311
Problem:    Complete function isn't called when the leader changed.
Solution:   Allow the complete function to return a dictionary with a flag
            that indicates ins_compl_restart() is to be called when the leader
            changes. (Taro Muraoka)
2011-09-14 16:52:09 +02:00
15d6319b9d updated for version 7.3.310
Problem:    Code not following Vim style.
Solution:   Fix the style. (Elias Diem)
2011-09-14 16:05:15 +02:00
9e8edf6ee6 updated for version 7.3.309
Problem:    Warnings for pointer types.
Solution:   Change PySliceObject to PyObject.
2011-09-14 15:41:58 +02:00
b5b5b895f7 updated for version 7.3.308
Problem:    Writing to 'verbosefile' has problems, e.g. for :highlight.
Solution:   Do not use a separate verbose_write() function but write with the
            same code that does redirecting. (Yasuhiro Matsumoto)
2011-09-14 15:39:29 +02:00
ba4897e6e5 updated for version 7.3.307
Problem:    Python 3 doesn't support slice assignment.
Solution:   Implement slices. (Brett Overesch, Roland Puntaier)
2011-09-14 15:01:58 +02:00
a971b82b16 updated for version 7.3.306
Problem:    When closing a window there is a chance that deleting a scrollbar
            triggers a GUI resize, which uses the window while it is not in a
            valid state.
Solution:   Set the buffer pointer to NULL to be able to detect the invalid
            situation.  Fix a few places that used the buffer pointer
            incorrectly.
2011-09-14 14:43:25 +02:00
52af96527c updated for version 7.3.305
Problem:    Auto-loading a function while editing the command line causes
            scrolling up the display.
Solution:   Don't set msg_scroll when defining a function and the user is not
            typing. (Yasuhiro Matsumoto)
2011-09-14 14:33:51 +02:00
612af43cb6 updated for version 7.3.304
Problem:    Strawberry Perl doesn't work on MS-Windows.
Solution:   Use xsubpp if needed. (Yasuhiro Matsumoto)
2011-09-14 10:49:46 +02:00
9f1188152f updated for version 7.3.303
Problem:    Compilation error.
Solution:   Correct return type from int to pid_t. (Danek Duvall)
2011-09-08 23:24:14 +02:00
868272f58e updated for version 7.3.302
Problem:    Test 19 fails without 'smartindent' and +eval.
Solution:   Don't use ":exe". Source small.vim.
2011-09-08 23:22:40 +02:00
c42e7ed777 updated for version 7.3.301
Problem:    When 'smartindent' and 'copyindent' are set a Tab is used even
            though 'expandtab' is set.
Solution:   Do not insert Tabs. Add a test. (Christian Brabandt)
2011-09-07 19:58:09 +02:00
513 changed files with 25358 additions and 7703 deletions

1
.gitignore vendored
View File

@ -46,6 +46,7 @@ gvimext.lib
src/po/*.ck src/po/*.ck
src/testdir/mbyte.vim src/testdir/mbyte.vim
src/testdir/mzscheme.vim src/testdir/mzscheme.vim
src/testdir/lua.vim
src/testdir/small.vim src/testdir/small.vim
src/testdir/tiny.vim src/testdir/tiny.vim
src/testdir/test*.out src/testdir/test*.out

View File

@ -81,6 +81,7 @@ SRC_ALL = \
src/testdir/test[0-9]*.ok \ src/testdir/test[0-9]*.ok \
src/testdir/test49.vim \ src/testdir/test49.vim \
src/testdir/test60.vim \ src/testdir/test60.vim \
src/testdir/test83-tags? \
src/proto.h \ src/proto.h \
src/proto/blowfish.pro \ src/proto/blowfish.pro \
src/proto/buffer.pro \ src/proto/buffer.pro \
@ -313,6 +314,7 @@ SRC_DOS = \
src/xxd/Make_bc5.mak \ src/xxd/Make_bc5.mak \
src/xxd/Make_cyg.mak \ src/xxd/Make_cyg.mak \
src/xxd/Make_djg.mak \ src/xxd/Make_djg.mak \
src/xxd/Make_ming.mak \
src/xxd/Make_mvc.mak \ src/xxd/Make_mvc.mak \
nsis/gvim.nsi \ nsis/gvim.nsi \
nsis/README.txt \ nsis/README.txt \

View File

@ -29,6 +29,8 @@
if version < 700 if version < 700
finish finish
endif endif
let s:keepcpo= &cpo
set cpo&vim
" Section: Constants {{{1 " Section: Constants {{{1
" "
@ -619,6 +621,9 @@ lockvar g:ada#Comment
lockvar! g:ada#Keywords lockvar! g:ada#Keywords
lockvar! g:ada#Ctags_Kinds lockvar! g:ada#Ctags_Kinds
let &cpo = s:keepcpo
unlet s:keepcpo
finish " 1}}} finish " 1}}}
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------

View File

@ -1,8 +1,10 @@
" Vim completion script " Vim completion script
" Language: C " Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2010 Mar 23 " Last Change: 2011 Dec 30
let s:cpo_save = &cpo
set cpo&vim
" This function is used for the 'omnifunc' option. " This function is used for the 'omnifunc' option.
function! ccomplete#Complete(findstart, base) function! ccomplete#Complete(findstart, base)
@ -603,3 +605,6 @@ function! s:SearchMembers(matches, items, all)
endfor endfor
return res return res
endfunc endfunc
let &cpo = s:cpo_save
unlet s:cpo_save

View File

@ -1,8 +1,8 @@
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" getscript.vim " getscript.vim
" Author: Charles E. Campbell, Jr. " Author: Charles E. Campbell, Jr.
" Date: May 31, 2011 " Date: Jan 17, 2012
" Version: 33 " Version: 34
" Installing: :help glvs-install " Installing: :help glvs-install
" Usage: :help glvs " Usage: :help glvs
" "
@ -15,7 +15,7 @@
if exists("g:loaded_getscript") if exists("g:loaded_getscript")
finish finish
endif endif
let g:loaded_getscript= "v33" let g:loaded_getscript= "v34"
if &cp if &cp
echoerr "GetLatestVimScripts is not vi-compatible; not loaded (you need to set nocp)" echoerr "GetLatestVimScripts is not vi-compatible; not loaded (you need to set nocp)"
finish finish
@ -550,30 +550,42 @@ fun! s:GetOneScript(...)
" decompress " decompress
if sname =~ '\.bz2$' if sname =~ '\.bz2$'
" call Decho("decompress: attempt to bunzip2 ".sname) " call Decho("decompress: attempt to bunzip2 ".sname)
exe "silent !bunzip2 ".shellescape(sname) exe "sil !bunzip2 ".shellescape(sname)
let sname= substitute(sname,'\.bz2$','','') let sname= substitute(sname,'\.bz2$','','')
" call Decho("decompress: new sname<".sname."> after bunzip2") " call Decho("decompress: new sname<".sname."> after bunzip2")
elseif sname =~ '\.gz$' elseif sname =~ '\.gz$'
" call Decho("decompress: attempt to gunzip ".sname) " call Decho("decompress: attempt to gunzip ".sname)
exe "silent !gunzip ".shellescape(sname) exe "sil !gunzip ".shellescape(sname)
let sname= substitute(sname,'\.gz$','','') let sname= substitute(sname,'\.gz$','','')
" call Decho("decompress: new sname<".sname."> after gunzip") " call Decho("decompress: new sname<".sname."> after gunzip")
elseif sname =~ '\.xz$' elseif sname =~ '\.xz$'
" call Decho("decompress: attempt to unxz ".sname) " call Decho("decompress: attempt to unxz ".sname)
exe "silent !unxz ".shellescape(sname) exe "sil !unxz ".shellescape(sname)
let sname= substitute(sname,'\.xz$','','') let sname= substitute(sname,'\.xz$','','')
" call Decho("decompress: new sname<".sname."> after unxz") " call Decho("decompress: new sname<".sname."> after unxz")
else else
" call Decho("no decompression needed") " call Decho("no decompression needed")
endif endif
" distribute archive(.zip, .tar, .vba) contents " distribute archive(.zip, .tar, .vba, ...) contents
if sname =~ '\.zip$' if sname =~ '\.zip$'
" call Decho("dearchive: attempt to unzip ".sname) " call Decho("dearchive: attempt to unzip ".sname)
exe "silent !unzip -o ".shellescape(sname) exe "silent !unzip -o ".shellescape(sname)
elseif sname =~ '\.tar$' elseif sname =~ '\.tar$'
" call Decho("dearchive: attempt to untar ".sname) " call Decho("dearchive: attempt to untar ".sname)
exe "silent !tar -xvf ".shellescape(sname) exe "silent !tar -xvf ".shellescape(sname)
elseif sname =~ '\.tgz$'
" call Decho("dearchive: attempt to untar+gunzip ".sname)
exe "silent !tar -zxvf ".shellescape(sname)
elseif sname =~ '\.taz$'
" call Decho("dearchive: attempt to untar+uncompress ".sname)
exe "silent !tar -Zxvf ".shellescape(sname)
elseif sname =~ '\.tbz$'
" call Decho("dearchive: attempt to untar+bunzip2 ".sname)
exe "silent !tar -jxvf ".shellescape(sname)
elseif sname =~ '\.txz$'
" call Decho("dearchive: attempt to untar+xz ".sname)
exe "silent !tar -Jxvf ".shellescape(sname)
elseif sname =~ '\.vba$' elseif sname =~ '\.vba$'
" call Decho("dearchive: attempt to handle a vimball: ".sname) " call Decho("dearchive: attempt to handle a vimball: ".sname)
silent 1split silent 1split

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,9 @@
" netrwFileHandlers: contains various extension-based file handlers for " netrwFileHandlers: contains various extension-based file handlers for
" netrw's browsers' x command ("eXecute launcher") " netrw's browsers' x command ("eXecute launcher")
" Author: Charles E. Campbell, Jr. " Author: Charles E. Campbell, Jr.
" Date: Sep 30, 2008 " Date: Mar 14, 2012
" Version: 10 " Version: 11a
" Copyright: Copyright (C) 1999-2008 Charles E. Campbell, Jr. {{{1 " Copyright: Copyright (C) 1999-2012 Charles E. Campbell, Jr. {{{1
" Permission is hereby granted to use and distribute this code, " Permission is hereby granted to use and distribute this code,
" with or without modifications, provided that this copyright " with or without modifications, provided that this copyright
" notice is copied with it. Like anything else that's free, " notice is copied with it. Like anything else that's free,
@ -20,7 +20,7 @@
if exists("g:loaded_netrwFileHandlers") || &cp if exists("g:loaded_netrwFileHandlers") || &cp
finish finish
endif endif
let g:loaded_netrwFileHandlers= "v10" let g:loaded_netrwFileHandlers= "v11a"
if v:version < 702 if v:version < 702
echohl WarningMsg echohl WarningMsg
echo "***warning*** this version of netrwFileHandlers needs vim 7.2" echo "***warning*** this version of netrwFileHandlers needs vim 7.2"
@ -356,6 +356,7 @@ fun! s:NFH_obj(obj)
endfun endfun
let &cpo= s:keepcpo let &cpo= s:keepcpo
unlet s:keepcpo
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" Modelines: {{{1 " Modelines: {{{1
" vim: fdm=marker " vim: fdm=marker

View File

@ -1,7 +1,7 @@
" Vim completion script " Vim completion script
" Language: PHP " Language: PHP
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
" Last Change: 2006 May 9 " Last Change: 2011 Dec 08
" "
" TODO: " TODO:
" - Class aware completion: " - Class aware completion:
@ -650,6 +650,7 @@ function! phpcomplete#GetClassContents(file, name) " {{{
" this is the most efficient way. The other way " this is the most efficient way. The other way
" is to go through the looong string looking for " is to go through the looong string looking for
" matching {} " matching {}
let original_window = winnr()
below 1new below 1new
0put =cfile 0put =cfile
call search('class\s\+'.a:name) call search('class\s\+'.a:name)
@ -667,6 +668,9 @@ function! phpcomplete#GetClassContents(file, name) " {{{
let classcontent = join(classc, "\n") let classcontent = join(classc, "\n")
bw! % bw! %
" go back to where we started
exe original_window.'wincmd w'
if extends_class != '' if extends_class != ''
let classlocation = phpcomplete#GetClassLocation(extends_class) let classlocation = phpcomplete#GetClassLocation(extends_class)
if filereadable(classlocation) if filereadable(classlocation)

View File

@ -1,6 +1,6 @@
" Vim script to download a missing spell file " Vim script to download a missing spell file
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2008 Nov 29 " Last Change: 2012 Jan 08
if !exists('g:spellfile_URL') if !exists('g:spellfile_URL')
" Prefer using http:// when netrw should be able to use it, since " Prefer using http:// when netrw should be able to use it, since
@ -70,7 +70,7 @@ function! spellfile#LoadFile(lang)
" Remember the buffer number, we check it below. " Remember the buffer number, we check it below.
new new
let newbufnr = winbufnr(0) let newbufnr = winbufnr(0)
setlocal bin setlocal bin fenc=
echo 'Downloading ' . fname . '...' echo 'Downloading ' . fname . '...'
call spellfile#Nread(fname) call spellfile#Nread(fname)
if getline(2) !~ 'VIMspell' if getline(2) !~ 'VIMspell'
@ -83,7 +83,7 @@ function! spellfile#LoadFile(lang)
" Our buffer has vanished!? Open a new window. " Our buffer has vanished!? Open a new window.
echomsg "download buffer disappeared, opening a new one" echomsg "download buffer disappeared, opening a new one"
new new
setlocal bin setlocal bin fenc=
else else
exe winnr . "wincmd w" exe winnr . "wincmd w"
endif endif
@ -120,6 +120,7 @@ function! spellfile#LoadFile(lang)
else else
let dirname = escape(dirlist[dirchoice], ' ') let dirname = escape(dirlist[dirchoice], ' ')
endif endif
setlocal fenc=
exe "write " . dirname . '/' . fname exe "write " . dirname . '/' . fname
" Also download the .sug file, if the user wants to. " Also download the .sug file, if the user wants to.

View File

@ -1,14 +1,29 @@
" Vim OMNI completion script for SQL " Vim OMNI completion script for SQL
" Language: SQL " Language: SQL
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com> " Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
" Version: 10.0 " Version: 12.0
" Last Change: 2010 Jun 11 " Last Change: 2012 Feb 08
" Usage: For detailed help " Usage: For detailed help
" ":help sql.txt" " ":help sql.txt"
" or ":help ft-sql-omni" " or ":help ft-sql-omni"
" or read $VIMRUNTIME/doc/sql.txt " or read $VIMRUNTIME/doc/sql.txt
" History " History
" Version 12.0
" - Partial column name completion did not work when a table
" name or table alias was provided (Jonas Enberg).
" - Improved the handling of column completion. First we match any
" columns from a previous completion. If not matches are found, we
" consider the partial name to be a table or table alias for the
" query and attempt to match on it.
"
" Version 11.0
" Added g:omni_sql_default_compl_type variable
" - You can specify which type of completion to default to
" when pressing <C-X><C-O>. The entire list of available
" choices can be found in the calls to sqlcomplete#Map in:
" ftplugin/sql.vim
"
" Version 10.0 " Version 10.0
" Updated PreCacheSyntax() " Updated PreCacheSyntax()
" - Now returns a List of the syntax items it finds. " - Now returns a List of the syntax items it finds.
@ -56,7 +71,7 @@ endif
if exists('g:loaded_sql_completion') if exists('g:loaded_sql_completion')
finish finish
endif endif
let g:loaded_sql_completion = 100 let g:loaded_sql_completion = 120
" Maintains filename of dictionary " Maintains filename of dictionary
let s:sql_file_table = "" let s:sql_file_table = ""
@ -116,6 +131,10 @@ if !exists('g:omni_sql_include_owner')
endif endif
endif endif
endif endif
" Default type of completion used when <C-X><C-O> is pressed
if !exists('g:omni_sql_default_compl_type')
let g:omni_sql_default_compl_type = 'table'
endif
" This function is used for the 'omnifunc' option. " This function is used for the 'omnifunc' option.
function! sqlcomplete#Complete(findstart, base) function! sqlcomplete#Complete(findstart, base)
@ -202,7 +221,7 @@ function! sqlcomplete#Complete(findstart, base)
let compl_list = [] let compl_list = []
" Default to table name completion " Default to table name completion
let compl_type = 'table' let compl_type = g:omni_sql_default_compl_type
" Allow maps to specify what type of object completion they want " Allow maps to specify what type of object completion they want
if exists('b:sql_compl_type') if exists('b:sql_compl_type')
let compl_type = b:sql_compl_type let compl_type = b:sql_compl_type
@ -297,12 +316,41 @@ function! sqlcomplete#Complete(findstart, base)
" If the user has indicated not to use table owners at all and " If the user has indicated not to use table owners at all and
" the base ends in a '.' we know they are not providing a column " the base ends in a '.' we know they are not providing a column
" name, so we can shift the items appropriately. " name, so we can shift the items appropriately.
if found != -1 || (g:omni_sql_include_owner == 0 && base !~ '\.$') " if found != -1 || (g:omni_sql_include_owner == 0 && base !~ '\.$')
let owner = table " let owner = table
let table = column " let table = column
let column = '' " let column = ''
endif " endif
else else
" If no "." was provided and the user asked for
" column level completion, first attempt the match
" on any previous column lists. If the user asked
" for a list of columns comma separated, continue as usual.
if compl_type == 'column' && s:save_prev_table != ''
" The last time we displayed a column list we stored
" the table name. If the user selects a column list
" without a table name of alias present, assume they want
" the previous column list displayed.
let table = s:save_prev_table
let list_type = ''
let compl_list = s:SQLCGetColumns(table, list_type)
if ! empty(compl_list)
" If no column prefix has been provided and the table
" name was provided, append it to each of the items
" returned.
let compl_list = filter(deepcopy(compl_list), 'v:val=~"^'.base.'"' )
" If not empty, we have a match on columns
" return the list
if ! empty(compl_list)
return compl_list
endif
endif
endif
" Since no columns were found to match the base supplied
" assume the user is trying to complete the column list
" for a table (and or an alias to a table).
let table = base let table = base
endif endif
@ -327,11 +375,11 @@ function! sqlcomplete#Complete(findstart, base)
" If no column prefix has been provided and the table " If no column prefix has been provided and the table
" name was provided, append it to each of the items " name was provided, append it to each of the items
" returned. " returned.
let compl_list = map(compl_list, "table.'.'.v:val") let compl_list = map(compl_list, 'table.".".v:val')
if owner != '' if owner != ''
" If an owner has been provided append it to each of the " If an owner has been provided append it to each of the
" items returned. " items returned.
let compl_list = map(compl_list, "owner.'.'.v:val") let compl_list = map(compl_list, 'owner.".".v:val')
endif endif
else else
let base = '' let base = ''
@ -362,10 +410,14 @@ function! sqlcomplete#Complete(findstart, base)
if base != '' if base != ''
" Filter the list based on the first few characters the user entered. " Filter the list based on the first few characters the user entered.
" Check if the text matches at the beginning " Check if the text matches at the beginning
" \\(^.base.'\\)
" or " or
" Match to a owner.table or alias.column type match " Match to a owner.table or alias.column type match
" ^\\(\\w\\+\\.\\)\\?'.base.'\\)
" or " or
" Handle names with spaces "my table name" " Handle names with spaces "my table name"
" "\\(^'.base.'\\|^\\(\\w\\+\\.\\)\\?'.base.'\\)"'
"
let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\|^\\(\\w\\+\\.\\)\\?'.base.'\\)"' let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\|^\\(\\w\\+\\.\\)\\?'.base.'\\)"'
" let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\)"' " let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\)"'
" let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\|\\(\\.\\)\\?'.base.'\\)"' " let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\|\\(\\.\\)\\?'.base.'\\)"'
@ -711,6 +763,15 @@ function! s:SQLCGetColumns(table_name, list_type)
" \ '\(\<where\>\|$\)'. " \ '\(\<where\>\|$\)'.
" \ '.*' " \ '.*'
" \ ) " \ )
"
"
" ''\c\(\<from\>\|\<join\>\|,\)\s*' - Starting at the from clause (case insensitive)
" '\zs\(\("\|\[\)\?\w\+\("\|\]\)\?\.\)\?' - Get the owner name (optional)
" '\("\|\[\)\?\w\+\("\|\]\)\?\ze' - Get the table name
" '\s\+\%(as\s\+\)\?\<'.matchstr(table_name, '.\{-}\ze\.\?$').'\>' - Followed by the alias
" '\s*\.\@!.*' - Cannot be followed by a .
" '\(\<where\>\|$\)' - Must be followed by a WHERE clause
" '.*' - Exclude the rest of the line in the match
let table_name_new = matchstr(@y, let table_name_new = matchstr(@y,
\ '\c\(\<from\>\|\<join\>\|,\)\s*'. \ '\c\(\<from\>\|\<join\>\|,\)\s*'.
\ '\zs\(\("\|\[\)\?\w\+\("\|\]\)\?\.\)\?'. \ '\zs\(\("\|\[\)\?\w\+\("\|\]\)\?\.\)\?'.

View File

@ -1,12 +1,18 @@
" Vim completion script " Vim completion script
" Language: All languages, uses existing syntax highlighting rules " Language: All languages, uses existing syntax highlighting rules
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com> " Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
" Version: 7.0 " Version: 8.0
" Last Change: 2010 Jul 29 " Last Change: 2011 Nov 02
" Usage: For detailed help, ":help ft-syntax-omni" " Usage: For detailed help, ":help ft-syntax-omni"
" History " History
" "
" Version 8.0
" Updated SyntaxCSyntaxGroupItems()
" - Some additional syntax items were also allowed
" on nextgroup= lines which were ignored by default.
" Now these lines are processed independently.
"
" Version 7.0 " Version 7.0
" Updated syntaxcomplete#OmniSyntaxList() " Updated syntaxcomplete#OmniSyntaxList()
" - Looking up the syntax groups defined from a syntax file " - Looking up the syntax groups defined from a syntax file
@ -44,7 +50,7 @@ endif
if exists('g:loaded_syntax_completion') if exists('g:loaded_syntax_completion')
finish finish
endif endif
let g:loaded_syntax_completion = 70 let g:loaded_syntax_completion = 80
" Set ignorecase to the ftplugin standard " Set ignorecase to the ftplugin standard
" This is the default setting, but if you define a buffer local " This is the default setting, but if you define a buffer local
@ -72,7 +78,8 @@ endif
" This script will build a completion list based on the syntax " This script will build a completion list based on the syntax
" elements defined by the files in $VIMRUNTIME/syntax. " elements defined by the files in $VIMRUNTIME/syntax.
let s:syn_remove_words = 'match,matchgroup=,contains,'. let s:syn_remove_words = 'match,matchgroup=,contains,'.
\ 'links to,start=,end=,nextgroup=' \ 'links to,start=,end='
" \ 'links to,start=,end=,nextgroup='
let s:cache_name = [] let s:cache_name = []
let s:cache_list = [] let s:cache_list = []
@ -411,9 +418,25 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
\ , "\n", 'g' \ , "\n", 'g'
\ ) \ )
" Now strip off the newline + blank space + contained " Now strip off the newline + blank space + contained.
" Also include lines with nextgroup=@someName skip_key_words syntax_element
let syn_list = substitute( let syn_list = substitute(
\ syn_list, '\%(^\|\n\)\@<=\s*\<\(contained\)' \ syn_list, '\%(^\|\n\)\@<=\s*\<\(contained\|nextgroup=\)'
\ , "", 'g'
\ )
" This can leave lines like this
" =@vimMenuList skipwhite onoremenu
" Strip the special option keywords first
" :h :syn-skipwhite*
let syn_list = substitute(
\ syn_list, '\<\(skipwhite\|skipnl\|skipempty\)\>'
\ , "", 'g'
\ )
" Now remove the remainder of the nextgroup=@someName lines
let syn_list = substitute(
\ syn_list, '\%(^\|\n\)\@<=\s*\(@\w\+\)'
\ , "", 'g' \ , "", 'g'
\ ) \ )

View File

@ -1,7 +1,7 @@
" tar.vim: Handles browsing tarfiles " tar.vim: Handles browsing tarfiles
" AUTOLOAD PORTION " AUTOLOAD PORTION
" Date: May 31, 2011 " Date: Jan 17, 2012
" Version: 27 " Version: 28
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM> " Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
" License: Vim License (see vim's :help license) " License: Vim License (see vim's :help license)
" "
@ -22,7 +22,7 @@
if &cp || exists("g:loaded_tar") if &cp || exists("g:loaded_tar")
finish finish
endif endif
let g:loaded_tar= "v27" let g:loaded_tar= "v28"
if v:version < 702 if v:version < 702
echohl WarningMsg echohl WarningMsg
echo "***warning*** this version of tar needs vim 7.2" echo "***warning*** this version of tar needs vim 7.2"
@ -143,7 +143,7 @@ fun! tar#Browse(tarfile)
call setline(lastline+2,'" Browsing tarfile '.a:tarfile) call setline(lastline+2,'" Browsing tarfile '.a:tarfile)
call setline(lastline+3,'" Select a file with cursor and press ENTER') call setline(lastline+3,'" Select a file with cursor and press ENTER')
keepj $put ='' keepj $put =''
keepj 0d keepj sil! 0d
keepj $ keepj $
let tarfile= a:tarfile let tarfile= a:tarfile
@ -158,10 +158,10 @@ fun! tar#Browse(tarfile)
elseif tarfile =~# '\.lrp' elseif tarfile =~# '\.lrp'
" call Decho("2: exe silent r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - ") " call Decho("2: exe silent r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - ")
exe "sil! r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - " exe "sil! r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - "
elseif tarfile =~# '\.bz2$' elseif tarfile =~# '\.\(bz2\|tbz\|tb2\)$'
" call Decho("3: exe silent r! bzip2 -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ") " call Decho("3: exe silent r! bzip2 -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - " exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
elseif tarfile =~# '\.lzma$' elseif tarfile =~# '\.\(lzma\|tlz\)$'
" call Decho("3: exe silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ") " call Decho("3: exe silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
exe "sil! r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - " exe "sil! r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
elseif tarfile =~# '\.\(xz\|txz\)$' elseif tarfile =~# '\.\(xz\|txz\)$'

View File

@ -1,7 +1,7 @@
" vimball.vim : construct a file containing both paths and files " vimball.vim : construct a file containing both paths and files
" Author: Charles E. Campbell, Jr. " Author: Charles E. Campbell, Jr.
" Date: Apr 02, 2011 " Date: Jan 17, 2012
" Version: 33 " Version: 35
" GetLatestVimScripts: 1502 1 :AutoInstall: vimball.vim " GetLatestVimScripts: 1502 1 :AutoInstall: vimball.vim
" Copyright: (c) 2004-2011 by Charles E. Campbell, Jr. " Copyright: (c) 2004-2011 by Charles E. Campbell, Jr.
" The VIM LICENSE applies to Vimball.vim, and Vimball.txt " The VIM LICENSE applies to Vimball.vim, and Vimball.txt
@ -14,7 +14,7 @@
if &cp || exists("g:loaded_vimball") if &cp || exists("g:loaded_vimball")
finish finish
endif endif
let g:loaded_vimball = "v33" let g:loaded_vimball = "v35"
if v:version < 702 if v:version < 702
echohl WarningMsg echohl WarningMsg
echo "***warning*** this version of vimball needs vim 7.2" echo "***warning*** this version of vimball needs vim 7.2"
@ -220,7 +220,16 @@ fun! vimball#Vimball(really,...)
" go to vim plugin home " go to vim plugin home
if a:0 > 0 if a:0 > 0
" let user specify the directory where the vimball is to be unpacked.
" If, however, the user did not specify a full path, set the home to be below the current directory
let home= expand(a:1) let home= expand(a:1)
if has("win32") || has("win95") || has("win64") || has("win16")
if home !~ '^\a:[/\\]'
let home= getcwd().'/'.a:1
endif
elseif home !~ '^/'
let home= getcwd().'/'.a:1
endif
else else
let home= vimball#VimballHome() let home= vimball#VimballHome()
endif endif
@ -282,11 +291,14 @@ fun! vimball#Vimball(really,...)
" call Decho("making directories if they don't exist yet (fname<".fname.">)") " call Decho("making directories if they don't exist yet (fname<".fname.">)")
let fnamebuf= substitute(fname,'\\','/','g') let fnamebuf= substitute(fname,'\\','/','g')
let dirpath = substitute(home,'\\','/','g') let dirpath = substitute(home,'\\','/','g')
" call Decho("init: fnamebuf<".fnamebuf.">")
" call Decho("init: dirpath <".dirpath.">")
while fnamebuf =~ '/' while fnamebuf =~ '/'
let dirname = dirpath."/".substitute(fnamebuf,'/.*$','','') let dirname = dirpath."/".substitute(fnamebuf,'/.*$','','')
let dirpath = dirname let dirpath = dirname
let fnamebuf = substitute(fnamebuf,'^.\{-}/\(.*\)$','\1','') let fnamebuf = substitute(fnamebuf,'^.\{-}/\(.*\)$','\1','')
" call Decho("dirname<".dirname.">") " call Decho("dirname<".dirname.">")
" call Decho("dirpath<".dirpath.">")
if !isdirectory(dirname) if !isdirectory(dirname)
" call Decho("making <".dirname.">") " call Decho("making <".dirname.">")
if exists("g:vimball_mkdir") if exists("g:vimball_mkdir")
@ -569,9 +581,19 @@ endfun
fun! s:ChgDir(newdir) fun! s:ChgDir(newdir)
" call Dfunc("ChgDir(newdir<".a:newdir.">)") " call Dfunc("ChgDir(newdir<".a:newdir.">)")
if (has("win32") || has("win95") || has("win64") || has("win16")) if (has("win32") || has("win95") || has("win64") || has("win16"))
try
exe 'silent cd '.fnameescape(substitute(a:newdir,'/','\\','g')) exe 'silent cd '.fnameescape(substitute(a:newdir,'/','\\','g'))
catch /^Vim\%((\a\+)\)\=:E/
call mkdir(fnameescape(substitute(a:newdir,'/','\\','g')))
exe 'silent cd '.fnameescape(substitute(a:newdir,'/','\\','g'))
endtry
else else
try
exe 'silent cd '.fnameescape(a:newdir) exe 'silent cd '.fnameescape(a:newdir)
catch /^Vim\%((\a\+)\)\=:E/
call mkdir(fnameescape(a:newdir))
exe 'silent cd '.fnameescape(a:newdir)
endtry
endif endif
" call Dret("ChgDir : curdir<".getcwd().">") " call Dret("ChgDir : curdir<".getcwd().">")
endfun endfun
@ -745,6 +767,9 @@ fun! vimball#RestoreSettings()
" call Dret("RestoreSettings") " call Dret("RestoreSettings")
endfun endfun
let &cpo = s:keepcpo
unlet s:keepcpo
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" Modelines: {{{1 " Modelines: {{{1
" vim: fdm=marker " vim: fdm=marker

View File

@ -1,10 +1,10 @@
" zip.vim: Handles browsing zipfiles " zip.vim: Handles browsing zipfiles
" AUTOLOAD PORTION " AUTOLOAD PORTION
" Date: May 24, 2011 " Date: Jan 17, 2012
" Version: 24 " Version: 25
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM> " Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
" License: Vim License (see vim's :help license) " License: Vim License (see vim's :help license)
" Copyright: Copyright (C) 2005-2011 Charles E. Campbell, Jr. {{{1 " Copyright: Copyright (C) 2005-2012 Charles E. Campbell, Jr. {{{1
" Permission is hereby granted to use and distribute this code, " Permission is hereby granted to use and distribute this code,
" with or without modifications, provided that this copyright " with or without modifications, provided that this copyright
" notice is copied with it. Like anything else that's free, " notice is copied with it. Like anything else that's free,
@ -19,7 +19,7 @@
if &cp || exists("g:loaded_zip") if &cp || exists("g:loaded_zip")
finish finish
endif endif
let g:loaded_zip= "v24" let g:loaded_zip= "v25"
if v:version < 702 if v:version < 702
echohl WarningMsg echohl WarningMsg
echo "***warning*** this version of zip needs vim 7.2" echo "***warning*** this version of zip needs vim 7.2"
@ -109,7 +109,7 @@ fun! zip#Browse(zipfile)
keepj $ keepj $
" call Decho("exe silent r! ".g:zip_unzipcmd." -l -- ".s:Escape(a:zipfile,1)) " call Decho("exe silent r! ".g:zip_unzipcmd." -l -- ".s:Escape(a:zipfile,1))
exe "silent r! ".g:zip_unzipcmd." -Z -1 -- ".s:Escape(a:zipfile,1) exe "keepj sil! r! ".g:zip_unzipcmd." -Z -1 -- ".s:Escape(a:zipfile,1)
if v:shell_error != 0 if v:shell_error != 0
redraw! redraw!
echohl WarningMsg | echo "***warning*** (zip#Browse) ".fnameescape(a:zipfile)." is not a zip file" | echohl None echohl WarningMsg | echo "***warning*** (zip#Browse) ".fnameescape(a:zipfile)." is not a zip file" | echohl None

View File

@ -2,12 +2,14 @@
" Compiler: Microsoft Visual Studio C# " Compiler: Microsoft Visual Studio C#
" Maintainer: Zhou YiChao (broken.zhou@gmail.com) " Maintainer: Zhou YiChao (broken.zhou@gmail.com)
" Previous Maintainer: Joseph H. Yao (hyao@sina.com) " Previous Maintainer: Joseph H. Yao (hyao@sina.com)
" Last Change: 2011 Apr 21 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let current_compiler = "cs" let current_compiler = "cs"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -19,3 +21,6 @@ CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
\%tarning%*[^:]:\ %m \%tarning%*[^:]:\ %m
CompilerSet makeprg=csc\ % CompilerSet makeprg=csc\ %
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -15,11 +15,11 @@
" Help Page: compiler-decada " Help Page: compiler-decada
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------
if (exists("current_compiler") && if (exists("current_compiler") && current_compiler == "decada") || version < 700
\ current_compiler == "decada") ||
\ version < 700
finish finish
endif endif
let s:keepcpo= &cpo
set cpo&vim
let current_compiler = "decada" let current_compiler = "decada"
@ -44,6 +44,9 @@ endif
execute "CompilerSet makeprg=" . escape (g:decada.Make_Command, ' ') execute "CompilerSet makeprg=" . escape (g:decada.Make_Command, ' ')
execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ') execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ')
let &cpo = s:keepcpo
unlet s:keepcpo
finish " 1}}} finish " 1}}}
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------

View File

@ -0,0 +1,13 @@
" Vim compiler file
" Compiler: Erlang
" Maintainer: Dmitry Vasiliev <dima at hlabs dot org>
" Last Change: 2012-02-13
if exists("current_compiler")
finish
endif
let current_compiler = "erlang"
CompilerSet makeprg=erlc\ -Wall\ %
CompilerSet errorformat=%f:%l:\ %m

View File

@ -1,7 +1,7 @@
" Compiler: G95 " Compiler: G95
" Maintainer: H Xu <xuhdev@gmail.com> " Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.3 " Version: 0.1.3
" Last Change: 2011 Apr 01 " Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3492 " Homepage: http://www.vim.org/scripts/script.php?script_id=3492
" https://bitbucket.org/xuhdev/compiler-g95.vim " https://bitbucket.org/xuhdev/compiler-g95.vim
" License: Same as Vim " License: Same as Vim
@ -10,6 +10,8 @@ if exists('current_compiler')
finish finish
endif endif
let current_compiler = 'g95' let current_compiler = 'g95'
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -21,3 +23,6 @@ CompilerSet errorformat=
\%-Z%trror:\ %m, \%-Z%trror:\ %m,
\%-Z%tarning\ (%n):\ %m, \%-Z%tarning\ (%n):\ %m,
\%-C%.%# \%-C%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -9,7 +9,7 @@ endif
let current_compiler = "gcc" let current_compiler = "gcc"
let s:cpo_save = &cpo let s:cpo_save = &cpo
set cpo-=C set cpo&vim
CompilerSet errorformat= CompilerSet errorformat=
\%*[^\"]\"%f\"%*\\D%l:%c:\ %m, \%*[^\"]\"%f\"%*\\D%l:%c:\ %m,

View File

@ -1,7 +1,7 @@
" Compiler: GNU Fortran Compiler " Compiler: GNU Fortran Compiler
" Maintainer: H Xu <xuhdev@gmail.com> " Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.3 " Version: 0.1.3
" Last Change: 19 March 2011 " Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3496 " Homepage: http://www.vim.org/scripts/script.php?script_id=3496
" https://bitbucket.org/xuhdev/compiler-gfortran.vim " https://bitbucket.org/xuhdev/compiler-gfortran.vim
" License: Same as Vim " License: Same as Vim
@ -10,6 +10,8 @@ if exists('current_compiler')
finish finish
endif endif
let current_compiler = 'gfortran' let current_compiler = 'gfortran'
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -20,3 +22,6 @@ CompilerSet errorformat=
\%-Z%trror:\ %m, \%-Z%trror:\ %m,
\%-Z%tarning:\ %m, \%-Z%tarning:\ %m,
\%-C%.%# \%-C%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -17,11 +17,11 @@
" Help Page: compiler-gnat " Help Page: compiler-gnat
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------
if (exists("current_compiler") && if (exists("current_compiler")&& current_compiler == "gnat") || version < 700
\ current_compiler == "gnat") ||
\ version < 700
finish finish
endif endif
let s:keepcpo= &cpo
set cpo&vim
let current_compiler = "gnat" let current_compiler = "gnat"
@ -62,6 +62,9 @@ endif
execute "CompilerSet makeprg=" . escape (g:gnat.Get_Command('Make'), ' ') execute "CompilerSet makeprg=" . escape (g:gnat.Get_Command('Make'), ' ')
execute "CompilerSet errorformat=" . escape (g:gnat.Error_Format, ' ') execute "CompilerSet errorformat=" . escape (g:gnat.Error_Format, ' ')
let &cpo = s:keepcpo
unlet s:keepcpo
finish " 1}}} finish " 1}}}
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
" Compiler: HP aCC " Compiler: HP aCC
" Maintainer: Matthias Ulrich <matthias-ulrich@web.de> " Maintainer: Matthias Ulrich <matthias-ulrich@web.de>
" URL: http://www.subhome.de/vim/hp_acc.vim " URL: http://www.subhome.de/vim/hp_acc.vim
" Last Change: 2005 Nov 19 " Last Change: 2012 Apr 30
" "
" aCC --version says: "HP ANSI C++ B3910B A.03.13" " aCC --version says: "HP ANSI C++ B3910B A.03.13"
" This compiler has been tested on: " This compiler has been tested on:
@ -19,6 +19,8 @@ if exists("current_compiler")
finish finish
endif endif
let current_compiler = "hp_acc" let current_compiler = "hp_acc"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -30,4 +32,7 @@ CompilerSet errorformat=%A%trror\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m,
\%Z\ \ \ \ %p^%.%#, \%Z\ \ \ \ %p^%.%#,
\%-C%.%# \%-C%.%#
let &cpo = s:keepcpo
unlet s:keepcpo
" vim:ts=8:sw=4:cindent " vim:ts=8:sw=4:cindent

View File

@ -1,7 +1,7 @@
" Compiler: Intel Fortran Compiler " Compiler: Intel Fortran Compiler
" Maintainer: H Xu <xuhdev@gmail.com> " Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.1 " Version: 0.1.1
" Last Change: 19 March 2011 " Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3497 " Homepage: http://www.vim.org/scripts/script.php?script_id=3497
" https://bitbucket.org/xuhdev/compiler-ifort.vim " https://bitbucket.org/xuhdev/compiler-ifort.vim
" License: Same as Vim " License: Same as Vim
@ -10,6 +10,8 @@ if exists('current_compiler')
finish finish
endif endif
let current_compiler = 'ifort' let current_compiler = 'ifort'
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -20,3 +22,6 @@ CompilerSet errorformat=
\%A%f(%l):\ %tarning\ \#%n:\ %m, \%A%f(%l):\ %tarning\ \#%n:\ %m,
\%-Z%p^, \%-Z%p^,
\%-G%.%# \%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -1,12 +1,14 @@
" Vim compiler file " Vim compiler file
" Compiler: Intel C++ 7.1 " Compiler: Intel C++ 7.1
" Maintainer: David Harrison <david_jr@users.sourceforge.net> " Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 May 16 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let current_compiler = "intel" let current_compiler = "intel"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -19,3 +21,6 @@ CompilerSet errorformat=%E%f(%l):\ error:\ %m,
\%-Z\ \ %p^, \%-Z\ \ %p^,
\%-G\\s%#, \%-G\\s%#,
\%-G%.%# \%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -1,12 +1,14 @@
" Vim compiler file " Vim compiler file
" Compiler: SGI IRIX 5.3 cc " Compiler: SGI IRIX 5.3 cc
" Maintainer: David Harrison <david_jr@users.sourceforge.net> " Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let current_compiler = "irix5_c" let current_compiler = "irix5_c"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -19,3 +21,6 @@ CompilerSet errorformat=\%Ecfe:\ Error:\ %f\\,\ line\ %l:\ %m,
\%-Z\ %p^, \%-Z\ %p^,
\-G\\s%#, \-G\\s%#,
\%-G%.%# \%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -1,12 +1,14 @@
" Vim compiler file " Vim compiler file
" Compiler: SGI IRIX 5.3 CC or NCC " Compiler: SGI IRIX 5.3 CC or NCC
" Maintainer: David Harrison <david_jr@users.sourceforge.net> " Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let current_compiler = "irix5_cpp" let current_compiler = "irix5_cpp"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -19,3 +21,6 @@ CompilerSet errorformat=%E\"%f\"\\,\ line\ %l:\ error(%n):\ ,
\%-Z\ \ %p%^, \%-Z\ \ %p%^,
\%+C\ %\\{10}%.%#, \%+C\ %\\{10}%.%#,
\%-G%.%# \%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -1,12 +1,14 @@
" Vim compiler file " Vim compiler file
" Compiler: SGI IRIX 6.5 MIPS C (cc) " Compiler: SGI IRIX 6.5 MIPS C (cc)
" Maintainer: David Harrison <david_jr@users.sourceforge.net> " Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let current_compiler = "mips_c" let current_compiler = "mips_c"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -19,3 +21,6 @@ CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%-Z\ \ %p^, \%-Z\ \ %p^,
\%-G\\s%#, \%-G\\s%#,
\%-G%.%# \%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -1,12 +1,14 @@
" Vim compiler file " Vim compiler file
" Compiler: SGI IRIX 6.5 MIPSPro C (c89) " Compiler: SGI IRIX 6.5 MIPSPro C (c89)
" Maintainer: David Harrison <david_jr@users.sourceforge.net> " Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let current_compiler = "mipspro_c89" let current_compiler = "mipspro_c89"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -20,3 +22,6 @@ CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%+C\ \ %m, \%+C\ \ %m,
\%-G\\s%#, \%-G\\s%#,
\%-G%.%# \%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -1,12 +1,14 @@
" Vim compiler file " Vim compiler file
" Compiler: SGI IRIX 6.5 MIPSPro C++ (CC) " Compiler: SGI IRIX 6.5 MIPSPro C++ (CC)
" Maintainer: David Harrison <david_jr@users.sourceforge.net> " Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let current_compiler = "mipspro_cpp" let current_compiler = "mipspro_cpp"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -19,3 +21,6 @@ CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%-Z\ \ %p^, \%-Z\ \ %p^,
\%-G\\s%#, \%-G\\s%#,
\%-G%.%# \%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -9,7 +9,7 @@ endif
let current_compiler = "rst" let current_compiler = "rst"
let s:cpo_save = &cpo let s:cpo_save = &cpo
set cpo-=C set cpo&vim
setlocal errorformat= setlocal errorformat=
\%f:%l:\ (%tEBUG/0)\ %m, \%f:%l:\ (%tEBUG/0)\ %m,

View File

@ -1,11 +1,13 @@
" Vim compiler file " Vim compiler file
" Compiler: TeX " Compiler: TeX
" Maintainer: Artem Chuprina <ran@ran.pp.ru> " Maintainer: Artem Chuprina <ran@ran.pp.ru>
" Last Change: 2004 Mar 27 " Last Change: 2012 Apr 30
if exists("current_compiler") if exists("current_compiler")
finish finish
endif endif
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args> command -nargs=* CompilerSet setlocal <args>
@ -30,9 +32,6 @@ else
let current_compiler = 'make' let current_compiler = 'make'
endif endif
let s:cpo_save = &cpo
set cpo-=C
" Value errorformat are taken from vim help, see :help errorformat-LaTeX, with " Value errorformat are taken from vim help, see :help errorformat-LaTeX, with
" addition from Srinath Avadhanula <srinath@fastmail.fm> " addition from Srinath Avadhanula <srinath@fastmail.fm>
CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m, CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
@ -64,5 +63,5 @@ CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
\%+Q%*[^()])%r, \%+Q%*[^()])%r,
\%+Q[%\\d%*[^()])%r \%+Q[%\\d%*[^()])%r
let &cpo = s:cpo_save let &cpo = s:keepcpo
unlet s:cpo_save unlet s:keepcpo

View File

@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 7.3. Last change: 2011 May 19 *autocmd.txt* For Vim version 7.3. Last change: 2012 Feb 22
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -33,7 +33,7 @@ files matching *.c. You can also use autocommands to implement advanced
features, such as editing compressed files (see |gzip-example|). The usual features, such as editing compressed files (see |gzip-example|). The usual
place to put autocommands is in your .vimrc or .exrc file. place to put autocommands is in your .vimrc or .exrc file.
*E203* *E204* *E143* *E203* *E204* *E143* *E855*
WARNING: Using autocommands is very powerful, and may lead to unexpected side WARNING: Using autocommands is very powerful, and may lead to unexpected side
effects. Be careful not to destroy your text. effects. Be careful not to destroy your text.
- It's a good idea to do some testing on an expendable copy of a file first. - It's a good idea to do some testing on an expendable copy of a file first.
@ -448,6 +448,9 @@ BufWriteCmd Before writing the whole buffer to a file.
'modified' if successful, unless '+' is in 'modified' if successful, unless '+' is in
'cpo' and writing to another file |cpo-+|. 'cpo' and writing to another file |cpo-+|.
The buffer contents should not be changed. The buffer contents should not be changed.
When the command resets 'modified' the undo
information is adjusted to mark older undo
states as 'modified', like |:write| does.
|Cmd-event| |Cmd-event|
*BufWritePost* *BufWritePost*
BufWritePost After writing the whole buffer to a file BufWritePost After writing the whole buffer to a file
@ -508,6 +511,7 @@ CursorMoved After the cursor was moved in Normal mode.
not expect or that is slow. not expect or that is slow.
*CursorMovedI* *CursorMovedI*
CursorMovedI After the cursor was moved in Insert mode. CursorMovedI After the cursor was moved in Insert mode.
Not triggered when the popup menu is visible.
Otherwise the same as CursorMoved. Otherwise the same as CursorMoved.
*EncodingChanged* *EncodingChanged*
EncodingChanged Fires off after the 'encoding' option has been EncodingChanged Fires off after the 'encoding' option has been
@ -695,7 +699,10 @@ MenuPopup Just before showing the popup menu (under the
QuickFixCmdPre Before a quickfix command is run (|:make|, QuickFixCmdPre Before a quickfix command is run (|:make|,
|:lmake|, |:grep|, |:lgrep|, |:grepadd|, |:lmake|, |:grep|, |:lgrep|, |:grepadd|,
|:lgrepadd|, |:vimgrep|, |:lvimgrep|, |:lgrepadd|, |:vimgrep|, |:lvimgrep|,
|:vimgrepadd|, |:lvimgrepadd|, |:cscope|). |:vimgrepadd|, |:lvimgrepadd|, |:cscope|,
|:cfile|, |:cgetfile|, |:caddfile|, |:lfile|,
|:lgetfile|, |:laddfile|, |:helpgrep|,
|:lhelpgrep|).
The pattern is matched against the command The pattern is matched against the command
being run. When |:grep| is used but 'grepprg' being run. When |:grep| is used but 'grepprg'
is set to "internal" it still matches "grep". is set to "internal" it still matches "grep".
@ -706,7 +713,10 @@ QuickFixCmdPre Before a quickfix command is run (|:make|,
*QuickFixCmdPost* *QuickFixCmdPost*
QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
command is run, before jumping to the first command is run, before jumping to the first
location. See |QuickFixCmdPost-example|. location. For |:cfile| and |:lfile| commands
it is run after error file is read and before
moving to the first error.
See |QuickFixCmdPost-example|.
*RemoteReply* *RemoteReply*
RemoteReply When a reply from a Vim that functions as RemoteReply When a reply from a Vim that functions as
server was received |server2client()|. The server was received |server2client()|. The
@ -1048,7 +1058,7 @@ Note that the 'eventignore' option applies here too. Events listed in this
option will not cause any commands to be executed. option will not cause any commands to be executed.
*:do* *:doau* *:doautocmd* *E217* *:do* *:doau* *:doautocmd* *E217*
:do[autocmd] [group] {event} [fname] :do[autocmd] [<nomodeline>] [group] {event} [fname]
Apply the autocommands matching [fname] (default: Apply the autocommands matching [fname] (default:
current file name) for {event} to the current buffer. current file name) for {event} to the current buffer.
You can use this when the current file name does not You can use this when the current file name does not
@ -1057,8 +1067,8 @@ option will not cause any commands to be executed.
It's possible to use this inside an autocommand too, It's possible to use this inside an autocommand too,
so you can base the autocommands for one extension on so you can base the autocommands for one extension on
another extension. Example: > another extension. Example: >
:au Bufenter *.cpp so ~/.vimrc_cpp :au BufEnter *.cpp so ~/.vimrc_cpp
:au Bufenter *.cpp doau BufEnter x.c :au BufEnter *.cpp doau BufEnter x.c
< Be careful to avoid endless loops. See < Be careful to avoid endless loops. See
|autocmd-nested|. |autocmd-nested|.
@ -1067,14 +1077,17 @@ option will not cause any commands to be executed.
argument is included, Vim executes only the matching argument is included, Vim executes only the matching
autocommands for that group. Note: if you use an autocommands for that group. Note: if you use an
undefined group name, Vim gives you an error message. undefined group name, Vim gives you an error message.
*<nomodeline>*
After applying the autocommands the modelines are After applying the autocommands the modelines are
processed, so that their settings overrule the processed, so that their settings overrule the
settings from autocommands, like what happens when settings from autocommands, like what happens when
editing a file. editing a file. This is skipped when the <nomodeline>
argument is present. You probably want to use
<nomodeline> for events that are not used when loading
a buffer, such as |User|.
*:doautoa* *:doautoall* *:doautoa* *:doautoall*
:doautoa[ll] [group] {event} [fname] :doautoa[ll] [<nomodeline>] [group] {event} [fname]
Like ":doautocmd", but apply the autocommands to each Like ":doautocmd", but apply the autocommands to each
loaded buffer. Note that [fname] is used to select loaded buffer. Note that [fname] is used to select
the autocommands, not the buffers to which they are the autocommands, not the buffers to which they are

View File

@ -1,4 +1,4 @@
*change.txt* For Vim version 7.3. Last change: 2011 Jun 19 *change.txt* For Vim version 7.3. Last change: 2012 Apr 30
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -71,7 +71,7 @@ For inserting text see |insert.txt|.
"D" deletes the highlighted text plus all text until "D" deletes the highlighted text plus all text until
the end of the line. {not in Vi} the end of the line. {not in Vi}
*:d* *:de* *:del* *:delete* *:d* *:de* *:del* *:delete* *:dl*
:[range]d[elete] [x] Delete [range] lines (default: current line) [into :[range]d[elete] [x] Delete [range] lines (default: current line) [into
register x]. register x].
@ -80,15 +80,16 @@ For inserting text see |insert.txt|.
(default: current line |cmdline-ranges|) [into (default: current line |cmdline-ranges|) [into
register x]. register x].
These commands delete text. You can repeat them with the "." command These commands delete text. You can repeat them with the `.` command
(except ":d") and undo them. Use Visual mode to delete blocks of text. See (except `:d`) and undo them. Use Visual mode to delete blocks of text. See
|registers| for an explanation of registers. |registers| for an explanation of registers.
An exception for the d{motion} command: If the motion is not linewise, the An exception for the d{motion} command: If the motion is not linewise, the
start and end of the motion are not in the same line, and there are only start and end of the motion are not in the same line, and there are only
blanks before the start and after the end of the motion, the delete becomes blanks before the start and after the end of the motion, the delete becomes
linewise. This means that the delete also removes the line of blanks that you linewise. This means that the delete also removes the line of blanks that you
might expect to remain. might expect to remain. Use the |o_v| operator to force the motion to be
characterwise.
Trying to delete an empty region of text (e.g., "d0" in the first column) Trying to delete an empty region of text (e.g., "d0" in the first column)
is an error when 'cpoptions' includes the 'E' flag. is an error when 'cpoptions' includes the 'E' flag.
@ -131,7 +132,7 @@ gJ Join [count] lines, with a minimum of two lines.
See |ex-flags| for [flags]. See |ex-flags| for [flags].
These commands delete the <EOL> between lines. This has the effect of joining These commands delete the <EOL> between lines. This has the effect of joining
multiple lines into one line. You can repeat these commands (except ":j") and multiple lines into one line. You can repeat these commands (except `:j`) and
undo them. undo them.
These commands, except "gJ", insert one space in place of the <EOL> unless These commands, except "gJ", insert one space in place of the <EOL> unless
@ -259,6 +260,12 @@ r{char} Replace the character under the cursor with {char}.
<CR>. CTRL-V <NL> replaces with a <Nul>. <CR>. CTRL-V <NL> replaces with a <Nul>.
{Vi: CTRL-V <CR> still replaces with a line break, {Vi: CTRL-V <CR> still replaces with a line break,
cannot replace something with a <CR>} cannot replace something with a <CR>}
If {char} is CTRL-E or CTRL-Y the character from the
line below or above is used, just like with |i_CTRL-E|
and |i_CTRL-Y|. This also works with a count, thus
`10r<C-E>` copies 10 characters from the line below.
If you give a [count], Vim replaces [count] characters If you give a [count], Vim replaces [count] characters
with [count] {char}s. When {char} is a <CR> or <NL>, with [count] {char}s. When {char} is a <CR> or <NL>,
however, Vim inserts only one <CR>: "5r<CR>" replaces however, Vim inserts only one <CR>: "5r<CR>" replaces
@ -464,9 +471,9 @@ much as possible to make the indent. You can use ">><<" to replace an indent
made out of spaces with the same indent made out of <Tab>s (and a few spaces made out of spaces with the same indent made out of <Tab>s (and a few spaces
if necessary). If the 'expandtab' option is on, Vim uses only spaces. Then if necessary). If the 'expandtab' option is on, Vim uses only spaces. Then
you can use ">><<" to replace <Tab>s in the indent by spaces (or use you can use ">><<" to replace <Tab>s in the indent by spaces (or use
":retab!"). `:retab!`).
To move a line several 'shiftwidth's, use Visual mode or the ":" commands. To move a line several 'shiftwidth's, use Visual mode or the `:` commands.
For example: > For example: >
Vjj4> move three lines 4 indents to the right Vjj4> move three lines 4 indents to the right
:<<< move current line 3 indents to the left :<<< move current line 3 indents to the left
@ -486,7 +493,7 @@ Examples of filters are "sort", which sorts lines alphabetically, and
works like a filter; not all versions do). The 'shell' option specifies the works like a filter; not all versions do). The 'shell' option specifies the
shell Vim uses to execute the filter command (See also the 'shelltype' shell Vim uses to execute the filter command (See also the 'shelltype'
option). You can repeat filter commands with ".". Vim does not recognize a option). You can repeat filter commands with ".". Vim does not recognize a
comment (starting with '"') after the ":!" command. comment (starting with '"') after the `:!` command.
*!* *!*
!{motion}{filter} Filter {motion} text lines through the external !{motion}{filter} Filter {motion} text lines through the external
@ -573,34 +580,34 @@ For other systems the tmpnam() library function is used.
Repeat last :substitute with same search pattern and Repeat last :substitute with same search pattern and
substitute string, but without the same flags. You substitute string, but without the same flags. You
may add [flags], see |:s_flags|. may add [flags], see |:s_flags|.
Note that after ":substitute" the '&' flag can't be Note that after `:substitute` the '&' flag can't be
used, it's recognized as a pattern separator. used, it's recognized as a pattern separator.
The space between ":substitute" and the 'c', 'g' and The space between `:substitute` and the 'c', 'g' and
'r' flags isn't required, but in scripts it's a good 'r' flags isn't required, but in scripts it's a good
idea to keep it to avoid confusion. idea to keep it to avoid confusion.
:[range]~[&][flags] [count] *:~* :[range]~[&][flags] [count] *:~*
Repeat last substitute with same substitute string Repeat last substitute with same substitute string
but with last used search pattern. This is like but with last used search pattern. This is like
":&r". See |:s_flags| for [flags]. `:&r`. See |:s_flags| for [flags].
*&* *&*
& Synonym for ":s" (repeat last substitute). Note & Synonym for `:s` (repeat last substitute). Note
that the flags are not remembered, thus it might that the flags are not remembered, thus it might
actually work differently. You can use ":&&" to keep actually work differently. You can use `:&&` to keep
the flags. the flags.
*g&* *g&*
g& Synonym for ":%s//~/&" (repeat last substitute on all g& Synonym for `:%s//~/&` (repeat last substitute on all
lines with the same flags). lines with the same flags).
Mnemonic: global substitute. {not in Vi} Mnemonic: global substitute. {not in Vi}
*:snomagic* *:sno* *:snomagic* *:sno*
:[range]sno[magic] ... Same as ":substitute", but always use 'nomagic'. :[range]sno[magic] ... Same as `:substitute`, but always use 'nomagic'.
{not in Vi} {not in Vi}
*:smagic* *:sm* *:smagic* *:sm*
:[range]sm[agic] ... Same as ":substitute", but always use 'magic'. :[range]sm[agic] ... Same as `:substitute`, but always use 'magic'.
{not in Vi} {not in Vi}
*:s_flags* *:s_flags*
@ -610,7 +617,7 @@ The flags that you can use for the substitute commands:
command. Examples: > command. Examples: >
:&& :&&
:s/this/that/& :s/this/that/&
< Note that ":s" and ":&" don't keep the flags. < Note that `:s` and `:&` don't keep the flags.
{not in Vi} {not in Vi}
[c] Confirm each substitution. Vim highlights the matching string (with [c] Confirm each substitution. Vim highlights the matching string (with
@ -666,14 +673,14 @@ The flags that you can use for the substitute commands:
[l] Like [p] but print the text like |:list|. [l] Like [p] but print the text like |:list|.
[r] Only useful in combination with ":&" or ":s" without arguments. ":&r" [r] Only useful in combination with `:&` or `:s` without arguments. `:&r`
works the same way as ":~": When the search pattern is empty, use the works the same way as `:~`: When the search pattern is empty, use the
previously used search pattern instead of the search pattern from the previously used search pattern instead of the search pattern from the
last substitute or ":global". If the last command that did a search last substitute or `:global`. If the last command that did a search
was a substitute or ":global", there is no effect. If the last was a substitute or `:global`, there is no effect. If the last
command was a search command such as "/", use the pattern from that command was a search command such as "/", use the pattern from that
command. command.
For ":s" with an argument this already happens: > For `:s` with an argument this already happens: >
:s/blue/red/ :s/blue/red/
/green /green
:s//red/ or :~ or :&r :s//red/ or :~ or :&r
@ -690,9 +697,9 @@ reason is that the flags can only be found by skipping the pattern, and in
order to skip the pattern the "magicness" must be known. Catch 22! order to skip the pattern the "magicness" must be known. Catch 22!
If the {pattern} for the substitute command is empty, the command uses the If the {pattern} for the substitute command is empty, the command uses the
pattern from the last substitute or ":global" command. If there is none, but pattern from the last substitute or `:global` command. If there is none, but
there is a previous search pattern, that one is used. With the [r] flag, the there is a previous search pattern, that one is used. With the [r] flag, the
command uses the pattern from the last substitute, ":global", or search command uses the pattern from the last substitute, `:global`, or search
command. command.
If the {string} is omitted the substitute is done as if it's empty. Thus the If the {string} is omitted the substitute is done as if it's empty. Thus the
@ -847,7 +854,7 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
4.4 Changing tabs *change-tabs* 4.4 Changing tabs *change-tabs*
*:ret* *:retab* *:ret* *:retab* *:retab!*
:[range]ret[ab][!] [new_tabstop] :[range]ret[ab][!] [new_tabstop]
Replace all sequences of white-space containing a Replace all sequences of white-space containing a
<Tab> with new strings of white-space using the new <Tab> with new strings of white-space using the new
@ -866,7 +873,7 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
Careful: This command modifies any <Tab> characters Careful: This command modifies any <Tab> characters
inside of strings in a C program. Use "\t" to avoid inside of strings in a C program. Use "\t" to avoid
this (that's a good habit anyway). this (that's a good habit anyway).
":retab!" may also change a sequence of spaces by `:retab!` may also change a sequence of spaces by
<Tab> characters, which can mess up a printf(). <Tab> characters, which can mess up a printf().
{not in Vi} {not in Vi}
Not available when |+ex_extra| feature was disabled at Not available when |+ex_extra| feature was disabled at
@ -976,8 +983,12 @@ inside of strings can change! Also see 'softtabstop' option. >
current line). This always works |linewise|, thus current line). This always works |linewise|, thus
this command can be used to put a yanked block as new this command can be used to put a yanked block as new
lines. lines.
The cursor is left on the first non-blank in the last If no register is specified, it depends on the 'cb'
new line. option: If 'cb' contains "unnamedplus", paste from the
+ register |quoteplus|. Otherwise, if 'cb' contains
"unnamed", paste from the * register |quotestar|.
Otherwise, paste from the unnamed register
|quote_quote|.
The register can also be '=' followed by an optional The register can also be '=' followed by an optional
expression. The expression continues until the end of expression. The expression continues until the end of
the command. You need to escape the '|' and '"' the command. You need to escape the '|' and '"'
@ -1182,7 +1193,7 @@ nothing is returned. {not in Vi}
9. Last search pattern register "/ *quote_/* *quote/* 9. Last search pattern register "/ *quote_/* *quote/*
Contains the most recent search-pattern. This is used for "n" and 'hlsearch'. Contains the most recent search-pattern. This is used for "n" and 'hlsearch'.
It is writable with ":let", you can change it to have 'hlsearch' highlight It is writable with `:let`, you can change it to have 'hlsearch' highlight
other matches without actually searching. You can't yank or delete into this other matches without actually searching. You can't yank or delete into this
register. The search direction is available in |v:searchforward|. register. The search direction is available in |v:searchforward|.
Note that the valued is restored when returning from a function Note that the valued is restored when returning from a function
@ -1190,12 +1201,12 @@ Note that the valued is restored when returning from a function
{not in Vi} {not in Vi}
*@/* *@/*
You can write to a register with a ":let" command |:let-@|. Example: > You can write to a register with a `:let` command |:let-@|. Example: >
:let @/ = "the" :let @/ = "the"
If you use a put command without specifying a register, Vim uses the register If you use a put command without specifying a register, Vim uses the register
that was last filled (this is also the contents of the unnamed register). If that was last filled (this is also the contents of the unnamed register). If
you are confused, use the ":dis" command to find out what Vim will put (this you are confused, use the `:dis` command to find out what Vim will put (this
command displays all named and numbered registers; the unnamed register is command displays all named and numbered registers; the unnamed register is
labelled '"'). labelled '"').
@ -1511,6 +1522,12 @@ B When joining lines, don't insert a space between two multi-byte
characters. Overruled by the 'M' flag. characters. Overruled by the 'M' flag.
1 Don't break a line after a one-letter word. It's broken before it 1 Don't break a line after a one-letter word. It's broken before it
instead (if possible). instead (if possible).
j Where it makes sense, remove a comment leader when joining lines. For
example, joining:
int i; // the index ~
// in the list ~
Becomes:
int i; // the index in the list ~
With 't' and 'c' you can specify when Vim performs auto-wrapping: With 't' and 'c' you can specify when Vim performs auto-wrapping:
@ -1554,7 +1571,7 @@ Some examples:
:set fo=tcrq :set fo=tcrq
< <
Automatic formatting *auto-format* Automatic formatting *auto-format* *autoformat*
When the 'a' flag is present in 'formatoptions' text is formatted When the 'a' flag is present in 'formatoptions' text is formatted
automatically when inserting text or deleting text. This works nice for automatically when inserting text or deleting text. This works nice for
@ -1663,7 +1680,7 @@ found here: |sort()|.
last search pattern is used. This allows trying out last search pattern is used. This allows trying out
a pattern first. a pattern first.
Note that using ":sort" with ":global" doesn't sort the matching lines, it's Note that using `:sort` with `:global` doesn't sort the matching lines, it's
quite useless. quite useless.
The details about sorting depend on the library function used. There is no The details about sorting depend on the library function used. There is no

View File

@ -1,4 +1,4 @@
*cmdline.txt* For Vim version 7.3. Last change: 2011 Mar 27 *cmdline.txt* For Vim version 7.3. Last change: 2012 Feb 05
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -331,7 +331,7 @@ terminals)
:his[tory] [{name}] [{first}][, [{last}]] :his[tory] [{name}] [{first}][, [{last}]]
List the contents of history {name} which can be: List the contents of history {name} which can be:
c[md] or : command-line history c[md] or : command-line history
s[earch] or / search string history s[earch] or / or ? search string history
e[xpr] or = expression register history e[xpr] or = expression register history
i[nput] or @ input line history i[nput] or @ input line history
d[ebug] or > debug command history d[ebug] or > debug command history
@ -426,6 +426,8 @@ a previous version <Esc> was used). In the pattern standard wildcards '*' and
'?' are accepted when matching file names. '*' matches any string, '?' '?' are accepted when matching file names. '*' matches any string, '?'
matches exactly one character. matches exactly one character.
The 'wildignorecase' option can be set to ignore case in filenames.
If you like tcsh's autolist completion, you can use this mapping: If you like tcsh's autolist completion, you can use this mapping:
:cnoremap X <C-L><C-D> :cnoremap X <C-L><C-D>
(Where X is the command key to use, <C-L> is CTRL-L and <C-D> is CTRL-D) (Where X is the command key to use, <C-L> is CTRL-L and <C-D> is CTRL-D)

View File

@ -1,4 +1,4 @@
*debug.txt* For Vim version 7.3. Last change: 2010 Dec 22 *debug.txt* For Vim version 7.3. Last change: 2012 Feb 11
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -15,7 +15,7 @@ For debugging Vim scripts, functions, etc. see |debug-scripts|
============================================================================== ==============================================================================
1. Location of a crash, using gcc and gdb *debug-gcc* 1. Location of a crash, using gcc and gdb *debug-gcc* *gdb*
When Vim crashes in one of the test files, and you are using gcc for When Vim crashes in one of the test files, and you are using gcc for
compilation, here is what you can do to find out exactly where Vim crashes. compilation, here is what you can do to find out exactly where Vim crashes.

View File

@ -1,4 +1,4 @@
*develop.txt* For Vim version 7.3. Last change: 2008 Dec 17 *develop.txt* For Vim version 7.3. Last change: 2012 Jan 10
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -232,6 +232,17 @@ time shadows global declaration
new C++ reserved keyword new C++ reserved keyword
try Borland C++ doesn't like it to be used as a variable. try Borland C++ doesn't like it to be used as a variable.
clear Mac curses.h
echo Mac curses.h
instr Mac curses.h
meta Mac curses.h
newwin Mac curses.h
nl Mac curses.h
overwrite Mac curses.h
refresh Mac curses.h
scroll Mac curses.h
typeahead Mac curses.h
basename() GNU string function basename() GNU string function
dirname() GNU string function dirname() GNU string function
get_env_value() Linux system function get_env_value() Linux system function

View File

@ -1,4 +1,4 @@
*diff.txt* For Vim version 7.3. Last change: 2011 Apr 14 *diff.txt* For Vim version 7.3. Last change: 2012 May 18
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -178,7 +178,7 @@ buffer. If you don't want a buffer to remain used for the diff do ":set
nodiff" before hiding it. nodiff" before hiding it.
*:diffu* *:diffupdate* *:diffu* *:diffupdate*
:diffu[pdate] Update the diff highlighting and folds. :diffu[pdate][!] Update the diff highlighting and folds.
Vim attempts to keep the differences updated when you make changes to the Vim attempts to keep the differences updated when you make changes to the
text. This mostly takes care of inserted and deleted lines. Changes within a text. This mostly takes care of inserted and deleted lines. Changes within a
@ -187,6 +187,9 @@ To force the differences to be updated use: >
:diffupdate :diffupdate
If the ! is included Vim will check if the file was changed externally and
needs to be reloaded. It will prompt for each changed file, like `:checktime`
was used.
Vim will show filler lines for lines that are missing in one window but are Vim will show filler lines for lines that are missing in one window but are
present in another. These lines were inserted in another file or deleted in present in another. These lines were inserted in another file or deleted in

View File

@ -1,4 +1,4 @@
*editing.txt* For Vim version 7.3. Last change: 2011 Feb 26 *editing.txt* For Vim version 7.3. Last change: 2012 Apr 03
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -1159,8 +1159,10 @@ MULTIPLE WINDOWS AND BUFFERS *window-exit*
*:confirm* *:conf* *:confirm* *:conf*
:conf[irm] {command} Execute {command}, and use a dialog when an :conf[irm] {command} Execute {command}, and use a dialog when an
operation has to be confirmed. Can be used on the operation has to be confirmed. Can be used on the
":q", ":qa" and ":w" commands (the latter to over-ride |:q|, |:qa| and |:w| commands (the latter to override
a read-only setting). a read-only setting), and any other command that can
fail in such a way, such as |:only|, |:buffer|,
|:bdelete|, etc.
Examples: > Examples: >
:confirm w foo :confirm w foo
@ -1639,6 +1641,6 @@ There are three different types of searching:
Note that completion for ":find", ":sfind", and ":tabfind" commands do not Note that completion for ":find", ":sfind", and ":tabfind" commands do not
currently work with 'path' items that contain a url or use the double star currently work with 'path' items that contain a url or use the double star
(/usr/**2) or upward search (;) notations. > with depth limiter (/usr/**2) or upward search (;) notations.
vim:tw=78:ts=8:ft=help:norl: vim:tw=78:ts=8:ft=help:norl:

View File

@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.3. Last change: 2011 Jul 13 *eval.txt* For Vim version 7.3. Last change: 2012 May 18
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -39,7 +39,7 @@ done, the features in this document are not available. See |+eval| and
*E712* *E712*
There are six types of variables: There are six types of variables:
Number A 32 bit signed number. |expr-number| *Number* Number A 32 or 64 bit signed number. |expr-number| *Number*
Examples: -123 0x10 0177 Examples: -123 0x10 0177
Float A floating point number. |floating-point-format| *Float* Float A floating point number. |floating-point-format| *Float*
@ -615,7 +615,6 @@ Expression syntax summary, from least to most significant:
- expr7 unary minus - expr7 unary minus
+ expr7 unary plus + expr7 unary plus
|expr8| expr8[expr1] byte of a String or item of a |List| |expr8| expr8[expr1] byte of a String or item of a |List|
expr8[expr1 : expr1] substring of a String or sublist of a |List| expr8[expr1 : expr1] substring of a String or sublist of a |List|
expr8.name entry in a |Dictionary| expr8.name entry in a |Dictionary|
@ -801,11 +800,12 @@ expr6 . expr6 .. String concatenation *expr-.*
For |Lists| only "+" is possible and then both expr6 must be a list. The For |Lists| only "+" is possible and then both expr6 must be a list. The
result is a new list with the two lists Concatenated. result is a new list with the two lists Concatenated.
expr7 * expr7 .. number multiplication *expr-star* expr7 * expr7 .. Number multiplication *expr-star*
expr7 / expr7 .. number division *expr-/* expr7 / expr7 .. Number division *expr-/*
expr7 % expr7 .. number modulo *expr-%* expr7 % expr7 .. Number modulo *expr-%*
For all, except ".", Strings are converted to Numbers. For all, except ".", Strings are converted to Numbers.
For bitwise operators see |and()|, |or()| and |xor()|.
Note the difference between "+" and ".": Note the difference between "+" and ".":
"123" + "456" = 579 "123" + "456" = 579
@ -946,6 +946,7 @@ When expr8 is a |Funcref| type variable, invoke the function it refers to.
number number
------ ------
number number constant *expr-number* number number constant *expr-number*
*hex-number* *octal-number*
Decimal, Hexadecimal (starting with 0x or 0X), or Octal (starting with 0). Decimal, Hexadecimal (starting with 0x or 0X), or Octal (starting with 0).
@ -1543,15 +1544,18 @@ v:profiling Normally zero. Set to one after using ":profile start".
*v:progname* *progname-variable* *v:progname* *progname-variable*
v:progname Contains the name (with path removed) with which Vim was v:progname Contains the name (with path removed) with which Vim was
invoked. Allows you to do special initialisations for "view", invoked. Allows you to do special initialisations for |view|,
"evim" etc., or any other name you might symlink to Vim. |evim| etc., or any other name you might symlink to Vim.
Read-only. Read-only.
*v:register* *register-variable* *v:register* *register-variable*
v:register The name of the register in effect for the current normal mode v:register The name of the register in effect for the current normal mode
command. If none is supplied it is the default register '"', command (regardless of whether that command actually used a
unless 'clipboard' contains "unnamed" or "unnamedplus", then register). Or for the currently executing normal mode mapping
it is '*' or '+'. (use this in custom commands that take a register).
If none is supplied it is the default register '"', unless
'clipboard' contains "unnamed" or "unnamedplus", then it is
'*' or '+'.
Also see |getreg()| and |setreg()| Also see |getreg()| and |setreg()|
*v:scrollstart* *scrollstart-variable* *v:scrollstart* *scrollstart-variable*
@ -1687,6 +1691,7 @@ USAGE RESULT DESCRIPTION ~
abs( {expr}) Float or Number absolute value of {expr} abs( {expr}) Float or Number absolute value of {expr}
acos( {expr}) Float arc cosine of {expr} acos( {expr}) Float arc cosine of {expr}
add( {list}, {item}) List append {item} to |List| {list} add( {list}, {item}) List append {item} to |List| {list}
and( {expr}, {expr}) Number bitwise AND
append( {lnum}, {string}) Number append {string} below line {lnum} append( {lnum}, {string}) Number append {string} below line {lnum}
append( {lnum}, {list}) Number append lines {list} below line {lnum} append( {lnum}, {list}) Number append lines {list} below line {lnum}
argc() Number number of files in the argument list argc() Number number of files in the argument list
@ -1744,7 +1749,8 @@ exists( {expr}) Number TRUE if {expr} exists
extend( {expr1}, {expr2} [, {expr3}]) extend( {expr1}, {expr2} [, {expr3}])
List/Dict insert items of {expr2} into {expr1} List/Dict insert items of {expr2} into {expr1}
exp( {expr}) Float exponential of {expr} exp( {expr}) Float exponential of {expr}
expand( {expr} [, {flag}]) String expand special keywords in {expr} expand( {expr} [, {nosuf} [, {list}]])
any expand special keywords in {expr}
feedkeys( {string} [, {mode}]) Number add key sequence to typeahead buffer feedkeys( {string} [, {mode}]) Number add key sequence to typeahead buffer
filereadable( {file}) Number TRUE if {file} is a readable file filereadable( {file}) Number TRUE if {file} is a readable file
filewritable( {file}) Number TRUE if {file} is a writable file filewritable( {file}) Number TRUE if {file} is a writable file
@ -1766,7 +1772,7 @@ foldtext( ) String line displayed for closed fold
foldtextresult( {lnum}) String text for closed fold at {lnum} foldtextresult( {lnum}) String text for closed fold at {lnum}
foreground( ) Number bring the Vim window to the foreground foreground( ) Number bring the Vim window to the foreground
function( {name}) Funcref reference to function {name} function( {name}) Funcref reference to function {name}
garbagecollect( [at_exit]) none free memory, breaking cyclic references garbagecollect( [{atexit}]) none free memory, breaking cyclic references
get( {list}, {idx} [, {def}]) any get item {idx} from {list} or {def} get( {list}, {idx} [, {def}]) any get item {idx} from {list} or {def}
get( {dict}, {key} [, {def}]) any get item {key} from {dict} or {def} get( {dict}, {key} [, {def}]) any get item {key} from {dict} or {def}
getbufline( {expr}, {lnum} [, {end}]) getbufline( {expr}, {lnum} [, {end}])
@ -1798,7 +1804,8 @@ gettabwinvar( {tabnr}, {winnr}, {name})
getwinposx() Number X coord in pixels of GUI Vim window getwinposx() Number X coord in pixels of GUI Vim window
getwinposy() Number Y coord in pixels of GUI Vim window getwinposy() Number Y coord in pixels of GUI Vim window
getwinvar( {nr}, {varname}) any variable {varname} in window {nr} getwinvar( {nr}, {varname}) any variable {varname} in window {nr}
glob( {expr} [, {flag}]) String expand file wildcards in {expr} glob( {expr} [, {nosuf} [, {list}]])
any expand file wildcards in {expr}
globpath( {path}, {expr} [, {flag}]) globpath( {path}, {expr} [, {flag}])
String do glob({expr}) for all dirs in {path} String do glob({expr}) for all dirs in {path}
has( {feature}) Number TRUE if feature {feature} supported has( {feature}) Number TRUE if feature {feature} supported
@ -1825,6 +1832,7 @@ inputrestore() Number restore typeahead
inputsave() Number save and clear typeahead inputsave() Number save and clear typeahead
inputsecret( {prompt} [, {text}]) String like input() but hiding the text inputsecret( {prompt} [, {text}]) String like input() but hiding the text
insert( {list}, {item} [, {idx}]) List insert {item} in {list} [before {idx}] insert( {list}, {item} [, {idx}]) List insert {item} in {list} [before {idx}]
invert( {expr}) Number bitwise invert
isdirectory( {directory}) Number TRUE if {directory} is a directory isdirectory( {directory}) Number TRUE if {directory} is a directory
islocked( {expr}) Number TRUE if {expr} is locked islocked( {expr}) Number TRUE if {expr} is locked
items( {dict}) List key-value pairs in {dict} items( {dict}) List key-value pairs in {dict}
@ -1839,9 +1847,11 @@ lispindent( {lnum}) Number Lisp indent for line {lnum}
localtime() Number current time localtime() Number current time
log( {expr}) Float natural logarithm (base e) of {expr} log( {expr}) Float natural logarithm (base e) of {expr}
log10( {expr}) Float logarithm of Float {expr} to base 10 log10( {expr}) Float logarithm of Float {expr} to base 10
luaeval( {expr}[, {expr}]) any evaluate |Lua| expression
map( {expr}, {string}) List/Dict change each item in {expr} to {expr} map( {expr}, {string}) List/Dict change each item in {expr} to {expr}
maparg( {name}[, {mode} [, {abbr} [, {dict}]]]) maparg( {name}[, {mode} [, {abbr} [, {dict}]]])
String rhs of mapping {name} in mode {mode} String or Dict
rhs of mapping {name} in mode {mode}
mapcheck( {name}[, {mode} [, {abbr}]]) mapcheck( {name}[, {mode} [, {abbr}]])
String check for mappings matching {name} String check for mappings matching {name}
match( {expr}, {pat}[, {start}[, {count}]]) match( {expr}, {pat}[, {start}[, {count}]])
@ -1864,6 +1874,7 @@ mode( [expr]) String current editing mode
mzeval( {expr}) any evaluate |MzScheme| expression mzeval( {expr}) any evaluate |MzScheme| expression
nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum} nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum}
nr2char( {expr}) String single char with ASCII value {expr} nr2char( {expr}) String single char with ASCII value {expr}
or( {expr}, {expr}) Number bitwise OR
pathshorten( {expr}) String shorten directory names in a path pathshorten( {expr}) String shorten directory names in a path
pow( {x}, {y}) Float {x} to the power of {y} pow( {x}, {y}) Float {x} to the power of {y}
prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum} prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum}
@ -1987,6 +1998,7 @@ winsaveview() Dict save view of current window
winwidth( {nr}) Number width of window {nr} winwidth( {nr}) Number width of window {nr}
writefile( {list}, {fname} [, {binary}]) writefile( {list}, {fname} [, {binary}])
Number write list of lines to file {fname} Number write list of lines to file {fname}
xor( {expr}, {expr}) Number bitwise XOR
abs({expr}) *abs()* abs({expr}) *abs()*
Return the absolute value of {expr}. When {expr} evaluates to Return the absolute value of {expr}. When {expr} evaluates to
@ -2026,6 +2038,13 @@ add({list}, {expr}) *add()*
Use |insert()| to add an item at another position. Use |insert()| to add an item at another position.
and({expr}, {expr}) *and()*
Bitwise AND on the two arguments. The arguments are converted
to a number. A List, Dict or Float argument causes an error.
Example: >
:let flag = and(bits, 0x80)
append({lnum}, {expr}) *append()* append({lnum}, {expr}) *append()*
When {expr} is a |List|: Append each item of the |List| as a When {expr} is a |List|: Append each item of the |List| as a
text line below line {lnum} in the current buffer. text line below line {lnum} in the current buffer.
@ -2298,7 +2317,7 @@ col({expr}) The result is a Number, which is the byte index of the column
position given with {expr}. The accepted positions are: position given with {expr}. The accepted positions are:
. the cursor position . the cursor position
$ the end of the cursor line (the result is the $ the end of the cursor line (the result is the
number of characters in the cursor line plus one) number of bytes in the cursor line plus one)
'x position of mark x (if the mark is not set, 0 is 'x position of mark x (if the mark is not set, 0 is
returned) returned)
Additionally {expr} can be [lnum, col]: a |List| with the line Additionally {expr} can be [lnum, col]: a |List| with the line
@ -2729,13 +2748,15 @@ exp({expr}) *exp()*
{only available when compiled with the |+float| feature} {only available when compiled with the |+float| feature}
expand({expr} [, {flag}]) *expand()* expand({expr} [, {nosuf} [, {list}]]) *expand()*
Expand wildcards and the following special keywords in {expr}. Expand wildcards and the following special keywords in {expr}.
The result is a String. 'wildignorecase' applies. 'wildignorecase' applies.
When there are several matches, they are separated by <NL> If {list} is given and it is non-zero, a List will be returned.
characters. [Note: in version 5.0 a space was used, which Otherwise the result is a String and when there are several
caused problems when a file name contains a space] matches, they are separated by <NL> characters. [Note: in
version 5.0 a space was used, which caused problems when a
file name contains a space]
If the expansion fails, the result is an empty string. A name If the expansion fails, the result is an empty string. A name
for a non-existing file is not included. for a non-existing file is not included.
@ -2789,10 +2810,10 @@ expand({expr} [, {flag}]) *expand()*
When {expr} does not start with '%', '#' or '<', it is When {expr} does not start with '%', '#' or '<', it is
expanded like a file name is expanded on the command line. expanded like a file name is expanded on the command line.
'suffixes' and 'wildignore' are used, unless the optional 'suffixes' and 'wildignore' are used, unless the optional
{flag} argument is given and it is non-zero. Names for {nosuf} argument is given and it is non-zero.
non-existing files are included. The "**" item can be used to Names for non-existing files are included. The "**" item can
search in a directory tree. For example, to find all "README" be used to search in a directory tree. For example, to find
files in the current directory and below: > all "README" files in the current directory and below: >
:echo expand("**/README") :echo expand("**/README")
< <
Expand() can also be used to expand variables and environment Expand() can also be used to expand variables and environment
@ -3065,7 +3086,7 @@ function({name}) *function()* *E700*
{name} can be a user defined function or an internal function. {name} can be a user defined function or an internal function.
garbagecollect([at_exit]) *garbagecollect()* garbagecollect([{atexit}]) *garbagecollect()*
Cleanup unused |Lists| and |Dictionaries| that have circular Cleanup unused |Lists| and |Dictionaries| that have circular
references. There is hardly ever a need to invoke this references. There is hardly ever a need to invoke this
function, as it is automatically done when Vim runs out of function, as it is automatically done when Vim runs out of
@ -3075,7 +3096,7 @@ garbagecollect([at_exit]) *garbagecollect()*
This is useful if you have deleted a very big |List| and/or This is useful if you have deleted a very big |List| and/or
|Dictionary| with circular references in a script that runs |Dictionary| with circular references in a script that runs
for a long time. for a long time.
When the optional "at_exit" argument is one, garbage When the optional {atexit} argument is one, garbage
collection will also be done when exiting Vim, if it wasn't collection will also be done when exiting Vim, if it wasn't
done before. This is useful when checking for memory leaks. done before. This is useful when checking for memory leaks.
@ -3151,6 +3172,8 @@ getchar([expr]) *getchar()*
one-byte character it is the character itself as a number. one-byte character it is the character itself as a number.
Use nr2char() to convert it to a String. Use nr2char() to convert it to a String.
Use getcharmod() to obtain any additional modifiers.
When the user clicks a mouse button, the mouse event will be When the user clicks a mouse button, the mouse event will be
returned. The position can then be found in |v:mouse_col|, returned. The position can then be found in |v:mouse_col|,
|v:mouse_lnum| and |v:mouse_win|. This example positions the |v:mouse_lnum| and |v:mouse_win|. This example positions the
@ -3189,10 +3212,11 @@ getcharmod() *getcharmod()*
2 shift 2 shift
4 control 4 control
8 alt (meta) 8 alt (meta)
16 mouse double click 16 meta (when it's different from ALT)
32 mouse triple click 32 mouse double click
64 mouse quadruple click 64 mouse triple click
128 Macintosh only: command 96 mouse quadruple click (== 32 + 64)
128 command (Macintosh only)
Only the modifiers that have not been included in the Only the modifiers that have not been included in the
character itself are obtained. Thus Shift-a results in "A" character itself are obtained. Thus Shift-a results in "A"
without a modifier. without a modifier.
@ -3209,7 +3233,8 @@ getcmdpos() *getcmdpos()*
Return the position of the cursor in the command line as a Return the position of the cursor in the command line as a
byte count. The first column is 1. byte count. The first column is 1.
Only works when editing the command line, thus requires use of Only works when editing the command line, thus requires use of
|c_CTRL-\_e| or |c_CTRL-R_=|. Returns 0 otherwise. |c_CTRL-\_e| or |c_CTRL-R_=| or an expression mapping.
Returns 0 otherwise.
Also see |getcmdtype()|, |setcmdpos()| and |getcmdline()|. Also see |getcmdtype()|, |setcmdpos()| and |getcmdline()|.
getcmdtype() *getcmdtype()* getcmdtype() *getcmdtype()*
@ -3222,8 +3247,8 @@ getcmdtype() *getcmdtype()*
@ |input()| command @ |input()| command
- |:insert| or |:append| command - |:insert| or |:append| command
Only works when editing the command line, thus requires use of Only works when editing the command line, thus requires use of
|c_CTRL-\_e| or |c_CTRL-R_=|. Returns an empty string |c_CTRL-\_e| or |c_CTRL-R_=| or an expression mapping.
otherwise. Returns an empty string otherwise.
Also see |getcmdpos()|, |setcmdpos()| and |getcmdline()|. Also see |getcmdpos()|, |setcmdpos()| and |getcmdline()|.
*getcwd()* *getcwd()*
@ -3436,19 +3461,25 @@ getwinvar({winnr}, {varname}) *getwinvar()*
:let list_is_on = getwinvar(2, '&list') :let list_is_on = getwinvar(2, '&list')
:echo "myvar = " . getwinvar(1, 'myvar') :echo "myvar = " . getwinvar(1, 'myvar')
< <
glob({expr} [, {flag}]) *glob()* glob({expr} [, {nosuf} [, {list}]]) *glob()*
Expand the file wildcards in {expr}. See |wildcards| for the Expand the file wildcards in {expr}. See |wildcards| for the
use of special characters. use of special characters.
The result is a String.
When there are several matches, they are separated by <NL> Unless the optional {nosuf} argument is given and is non-zero,
characters.
Unless the optional {flag} argument is given and is non-zero,
the 'suffixes' and 'wildignore' options apply: Names matching the 'suffixes' and 'wildignore' options apply: Names matching
one of the patterns in 'wildignore' will be skipped and one of the patterns in 'wildignore' will be skipped and
'suffixes' affect the ordering of matches. 'suffixes' affect the ordering of matches.
'wildignorecase' always applies. 'wildignorecase' always applies.
If the expansion fails, the result is an empty string.
A name for a non-existing file is not included. When {list} is present and it is non-zero the result is a List
with all matching files. The advantage of using a List is,
you also get filenames containing newlines correctly.
Otherwise the result is a String and when there are several
matches, they are separated by <NL> characters.
If the expansion fails, the result is an empty String or List.
A name for a non-existing file is not included. A symbolic
link is only included if it points to an existing file.
For most systems backticks can be used to get files names from For most systems backticks can be used to get files names from
any external command. Example: > any external command. Example: >
@ -3782,6 +3813,11 @@ insert({list}, {item} [, {idx}]) *insert()*
Note that when {item} is a |List| it is inserted as a single Note that when {item} is a |List| it is inserted as a single
item. Use |extend()| to concatenate |Lists|. item. Use |extend()| to concatenate |Lists|.
invert({expr}) *invert()*
Bitwise invert. The argument is converted to a number. A
List, Dict or Float argument causes an error. Example: >
:let bits = invert(bits)
isdirectory({directory}) *isdirectory()* isdirectory({directory}) *isdirectory()*
The result is a Number, which is non-zero when a directory The result is a Number, which is non-zero when a directory
with the name {directory} exists. If {directory} doesn't with the name {directory} exists. If {directory} doesn't
@ -3920,11 +3956,12 @@ line2byte({lnum}) *line2byte()*
Return the byte count from the start of the buffer for line Return the byte count from the start of the buffer for line
{lnum}. This includes the end-of-line character, depending on {lnum}. This includes the end-of-line character, depending on
the 'fileformat' option for the current buffer. The first the 'fileformat' option for the current buffer. The first
line returns 1. line returns 1. 'encoding' matters, 'fileencoding' is ignored.
This can also be used to get the byte count for the line just This can also be used to get the byte count for the line just
below the last line: > below the last line: >
line2byte(line("$") + 1) line2byte(line("$") + 1)
< This is the file size plus one. < This is the buffer size plus one. If 'fileencoding' is empty
it is the file size plus one.
When {lnum} is invalid, or the |+byte_offset| feature has been When {lnum} is invalid, or the |+byte_offset| feature has been
disabled at compile time, -1 is returned. disabled at compile time, -1 is returned.
Also see |byte2line()|, |go| and |:goto|. Also see |byte2line()|, |go| and |:goto|.
@ -3964,6 +4001,20 @@ log10({expr}) *log10()*
< -2.0 < -2.0
{only available when compiled with the |+float| feature} {only available when compiled with the |+float| feature}
luaeval({expr}[, {expr}]) *luaeval()*
Evaluate Lua expression {expr} and return its result converted
to Vim data structures. Second {expr} may hold additional
argument accessible as _A inside first {expr}.
Strings are returned as they are.
Boolean objects are converted to numbers.
Numbers are converted to |Float| values if vim was compiled
with |+float| and to numbers otherwise.
Dictionaries and lists obtained by vim.eval() are returned
as-is.
Other objects are returned as zero without any errors.
See |lua-luaeval| for more details.
{only available when compiled with the |+lua| feature}
map({expr}, {string}) *map()* map({expr}, {string}) *map()*
{expr} must be a |List| or a |Dictionary|. {expr} must be a |List| or a |Dictionary|.
Replace each item in {expr} with the result of evaluating Replace each item in {expr} with the result of evaluating
@ -4288,7 +4339,7 @@ mode([expr]) Return a string that indicates the current mode.
mzeval({expr}) *mzeval()* mzeval({expr}) *mzeval()*
Evaluate MzScheme expression {expr} and return its result Evaluate MzScheme expression {expr} and return its result
convert to Vim data structures. converted to Vim data structures.
Numbers and strings are returned as they are. Numbers and strings are returned as they are.
Pairs (including lists and improper lists) and vectors are Pairs (including lists and improper lists) and vectors are
returned as Vim |Lists|. returned as Vim |Lists|.
@ -4347,6 +4398,13 @@ getpos({expr}) Get the position for {expr}. For possible values of {expr}
call setpos('.', save_cursor) call setpos('.', save_cursor)
< Also see |setpos()|. < Also see |setpos()|.
or({expr}, {expr}) *or()*
Bitwise OR on the two arguments. The arguments are converted
to a number. A List, Dict or Float argument causes an error.
Example: >
:let bits = or(bits, 0x80)
pathshorten({expr}) *pathshorten()* pathshorten({expr}) *pathshorten()*
Shorten directory names in the path {expr} and return the Shorten directory names in the path {expr} and return the
result. The tail, the file name, is kept as-is. The other result. The tail, the file name, is kept as-is. The other
@ -4785,6 +4843,10 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
Search for regexp pattern {pattern}. The search starts at the Search for regexp pattern {pattern}. The search starts at the
cursor position (you can use |cursor()| to set it). cursor position (you can use |cursor()| to set it).
If there is no match a 0 is returned and the cursor doesn't
move. No error message is given.
When a match has been found its line number is returned.
{flags} is a String, which can contain these character flags: {flags} is a String, which can contain these character flags:
'b' search backward instead of forward 'b' search backward instead of forward
'c' accept a match at the cursor position 'c' accept a match at the cursor position
@ -4818,9 +4880,6 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
giving the argument. giving the argument.
{only available when compiled with the |+reltime| feature} {only available when compiled with the |+reltime| feature}
If there is no match a 0 is returned and the cursor doesn't
move. No error message is given.
When a match has been found its line number is returned.
*search()-sub-match* *search()-sub-match*
With the 'p' flag the returned value is one more than the With the 'p' flag the returned value is one more than the
first sub-match in \(\). One if none of them matched but the first sub-match in \(\). One if none of them matched but the
@ -5039,7 +5098,8 @@ setcmdpos({pos}) *setcmdpos()*
line. line.
setline({lnum}, {text}) *setline()* setline({lnum}, {text}) *setline()*
Set line {lnum} of the current buffer to {text}. Set line {lnum} of the current buffer to {text}. To insert
lines use |append()|.
{lnum} is used like with |getline()|. {lnum} is used like with |getline()|.
When {lnum} is just below the last line the {text} will be When {lnum} is just below the last line the {text} will be
added as a new line. added as a new line.
@ -5050,7 +5110,7 @@ setline({lnum}, {text}) *setline()*
will be set to the items in the list. Example: > will be set to the items in the list. Example: >
:call setline(5, ['aaa', 'bbb', 'ccc']) :call setline(5, ['aaa', 'bbb', 'ccc'])
< This is equivalent to: > < This is equivalent to: >
:for [n, l] in [[5, 6, 7], ['aaa', 'bbb', 'ccc']] :for [n, l] in [[5, 'aaa'], [6, 'bbb'], [7, 'ccc']]
: call setline(n, l) : call setline(n, l)
:endfor :endfor
< Note: The '[ and '] marks are not set. < Note: The '[ and '] marks are not set.
@ -5739,9 +5799,9 @@ tabpagebuflist([{arg}]) *tabpagebuflist()*
omitted the current tab page is used. omitted the current tab page is used.
When {arg} is invalid the number zero is returned. When {arg} is invalid the number zero is returned.
To get a list of all buffers in all tabs use this: > To get a list of all buffers in all tabs use this: >
tablist = [] let buflist = []
for i in range(tabpagenr('$')) for i in range(tabpagenr('$'))
call extend(tablist, tabpagebuflist(i + 1)) call extend(buflist, tabpagebuflist(i + 1))
endfor endfor
< Note that a buffer may appear in more than one window. < Note that a buffer may appear in more than one window.
@ -5904,6 +5964,8 @@ undofile({name}) *undofile()*
the undo file exists. the undo file exists.
{name} is always expanded to the full path, since that is what {name} is always expanded to the full path, since that is what
is used internally. is used internally.
If {name} is empty undofile() returns an empty string, since a
buffer without a file name will not write an undo file.
Useful in combination with |:wundo| and |:rundo|. Useful in combination with |:wundo| and |:rundo|.
When compiled without the +persistent_undo option this always When compiled without the +persistent_undo option this always
returns an empty string. returns an empty string.
@ -5963,7 +6025,7 @@ virtcol({expr}) *virtcol()*
would be of unlimited width. When there is a <Tab> at the would be of unlimited width. When there is a <Tab> at the
position, the returned Number will be the column at the end of position, the returned Number will be the column at the end of
the <Tab>. For example, for a <Tab> in column 1, with 'ts' the <Tab>. For example, for a <Tab> in column 1, with 'ts'
set to 8, it returns 8. set to 8, it returns 8. |conceal| is ignored.
For the byte position use |col()|. For the byte position use |col()|.
For the use of {expr} see |col()|. For the use of {expr} see |col()|.
When 'virtualedit' is used {expr} can be [lnum, col, off], where When 'virtualedit' is used {expr} can be [lnum, col, off], where
@ -6121,8 +6183,16 @@ writefile({list}, {fname} [, {binary}])
To copy a file byte for byte: > To copy a file byte for byte: >
:let fl = readfile("foo", "b") :let fl = readfile("foo", "b")
:call writefile(fl, "foocopy", "b") :call writefile(fl, "foocopy", "b")
xor({expr}, {expr}) *xor()*
Bitwise XOR on the two arguments. The arguments are converted
to a number. A List, Dict or Float argument causes an error.
Example: >
:let bits = xor(bits, 0x80)
< <
*feature-list* *feature-list*
There are three types of features: There are three types of features:
1. Features that are only supported when they have been enabled when Vim 1. Features that are only supported when they have been enabled when Vim
@ -6226,6 +6296,7 @@ mouse_gpm Compiled with support for gpm (Linux console mouse)
mouse_netterm Compiled with support for netterm mouse. mouse_netterm Compiled with support for netterm mouse.
mouse_pterm Compiled with support for qnx pterm mouse. mouse_pterm Compiled with support for qnx pterm mouse.
mouse_sysmouse Compiled with support for sysmouse (*BSD console mouse) mouse_sysmouse Compiled with support for sysmouse (*BSD console mouse)
mouse_urxvt Compiled with support for urxvt mouse.
mouse_xterm Compiled with support for xterm mouse. mouse_xterm Compiled with support for xterm mouse.
mouseshape Compiled with support for 'mouseshape'. mouseshape Compiled with support for 'mouseshape'.
multi_byte Compiled with support for 'encoding' multi_byte Compiled with support for 'encoding'
@ -6302,6 +6373,7 @@ windows Compiled with support for more than one window.
writebackup Compiled with 'writebackup' default on. writebackup Compiled with 'writebackup' default on.
xfontset Compiled with X fontset support |xfontset|. xfontset Compiled with X fontset support |xfontset|.
xim Compiled with X input method support |xim|. xim Compiled with X input method support |xim|.
xpm_w32 Compiled with pixmap support for Win32.
xsmp Compiled with X session management support. xsmp Compiled with X session management support.
xsmp_interact Compiled with interactive X session management support. xsmp_interact Compiled with interactive X session management support.
xterm_clipboard Compiled with support for xterm clipboard. xterm_clipboard Compiled with support for xterm clipboard.
@ -6374,7 +6446,7 @@ last defined. Example: >
< <
See |:verbose-cmd| for more information. See |:verbose-cmd| for more information.
*E124* *E125* *E124* *E125* *E853*
:fu[nction][!] {name}([arguments]) [range] [abort] [dict] :fu[nction][!] {name}([arguments]) [range] [abort] [dict]
Define a new function by the name {name}. The name Define a new function by the name {name}. The name
must be made of alphanumeric characters and '_', and must be made of alphanumeric characters and '_', and
@ -6635,9 +6707,9 @@ Hint: If you distribute a bunch of scripts you can pack them together with the
============================================================================== ==============================================================================
6. Curly braces names *curly-braces-names* 6. Curly braces names *curly-braces-names*
Wherever you can use a variable, you can use a "curly braces name" variable. In most places where you can use a variable, you can use a "curly braces name"
This is a regular variable name with one or more expressions wrapped in braces variable. This is a regular variable name with one or more expressions
{} like this: > wrapped in braces {} like this: >
my_{adjective}_variable my_{adjective}_variable
When Vim encounters this, it evaluates the expression inside the braces, puts When Vim encounters this, it evaluates the expression inside the braces, puts
@ -6673,6 +6745,11 @@ Example: >
This would call the function "my_func_whizz(parameter)". This would call the function "my_func_whizz(parameter)".
This does NOT work: >
:let i = 3
:let @{i} = '' " error
:echo @{i} " error
============================================================================== ==============================================================================
7. Commands *expression-commands* 7. Commands *expression-commands*

View File

@ -54,3 +54,4 @@ Voir le menu Aide/Remerciements ou ":help credits" dans
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a <20>t<EFBFBD> traduite David Blanchet. Cette page de manuel a <20>t<EFBFBD> traduite David Blanchet.
<david.blanchet@free.fr> 2005-03-26. <david.blanchet@free.fr> 2005-03-26.
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>

View File

@ -54,3 +54,4 @@ Voir le menu Aide/Remerciements ou ":help credits" dans
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a été traduite David Blanchet. Cette page de manuel a été traduite David Blanchet.
<david.blanchet@free.fr> 2005-03-26. <david.blanchet@free.fr> 2005-03-26.
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>

View File

@ -1,4 +1,4 @@
*gui.txt* For Vim version 7.3. Last change: 2010 Nov 03 *gui.txt* For Vim version 7.3. Last change: 2011 Jul 22
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -147,6 +147,15 @@ task bar with the 'guiheadroom' option.
If you are running the X Window System, you can get information about the If you are running the X Window System, you can get information about the
window Vim is running in with this command: > window Vim is running in with this command: >
:!xwininfo -id $WINDOWID :!xwininfo -id $WINDOWID
<
*gui-IME* *iBus*
Input methods for international characters in X that rely on the XIM
framework, most notably iBus, have been known to produce undesirable results
in gVim. These may include an inability to enter spaces, or long delays
between typing a character and it being recognized by the application.
One workaround that has been successful, for unknown reasons, is to prevent
gvim from forking into the background by starting it with the |-f| argument.
============================================================================== ==============================================================================
2. Scrollbars *gui-scrollbars* 2. Scrollbars *gui-scrollbars*

View File

@ -1,4 +1,4 @@
*gui_w32.txt* For Vim version 7.3. Last change: 2010 Dec 19 *gui_w32.txt* For Vim version 7.3. Last change: 2011 Jul 23
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -137,6 +137,9 @@ options:
And if there already is a gvim running: And if there already is a gvim running:
"Edit with existing gvim" -- edit the file with the running gvim "Edit with existing gvim" -- edit the file with the running gvim
The "edit with existing Vim" entries can be disabled by adding an entry in the
registry under HKLM\Software\Vim\Gvim, named DisableEditWithExisting, and with
any value.
*install-registry* *install-registry*
You can add the "Edit with Vim" menu entry in an easy way by using the You can add the "Edit with Vim" menu entry in an easy way by using the
"install.exe" program. It will add several registry entries for you. "install.exe" program. It will add several registry entries for you.

View File

@ -1,4 +1,4 @@
*gui_x11.txt* For Vim version 7.3. Last change: 2010 Jul 20 *gui_x11.txt* For Vim version 7.3. Last change: 2011 Sep 14
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -53,6 +53,8 @@ When using "gvim -f" and then ":gui", Vim will run in the foreground. The
":gui -b". ":gui -b".
"gvim --nofork" does the same as "gvim -f". "gvim --nofork" does the same as "gvim -f".
*E851* *E852*
When starting the GUI fails Vim will try to continue running in the terminal.
If you want the GUI to run in the foreground always, include the 'f' If you want the GUI to run in the foreground always, include the 'f'
flag in 'guioptions'. |-f|. flag in 'guioptions'. |-f|.

View File

@ -1,4 +1,4 @@
*helphelp.txt* For Vim version 7.3. Last change: 2010 Sep 14 *helphelp.txt* For Vim version 7.3. Last change: 2012 May 18
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -221,6 +221,7 @@ At this moment translations are available for:
Chinese - multiple authors Chinese - multiple authors
French - translated by David Blanchet French - translated by David Blanchet
Italian - translated by Antonio Colombo Italian - translated by Antonio Colombo
Japanese - multiple authors
Polish - translated by Mikolaj Machowski Polish - translated by Mikolaj Machowski
Russian - translated by Vassily Ragosin Russian - translated by Vassily Ragosin
See the Vim website to find them: http://www.vim.org/translations.php See the Vim website to find them: http://www.vim.org/translations.php

View File

@ -1,4 +1,4 @@
*if_lua.txt* For Vim version 7.3. Last change: 2010 Jul 22 *if_lua.txt* For Vim version 7.3. Last change: 2012 Jan 16
VIM REFERENCE MANUAL by Luis Carvalho VIM REFERENCE MANUAL by Luis Carvalho
@ -8,8 +8,11 @@ The Lua Interface to Vim *lua* *Lua*
1. Commands |lua-commands| 1. Commands |lua-commands|
2. The vim module |lua-vim| 2. The vim module |lua-vim|
3. Buffer userdata |lua-buffer| 3. List userdata |lua-list|
4. Window userdata |lua-window| 4. Dict userdata |lua-dict|
5. Buffer userdata |lua-buffer|
6. Window userdata |lua-window|
7. The luaeval function |lua-luaeval|
{Vi does not have any of these commands} {Vi does not have any of these commands}
@ -56,13 +59,14 @@ Example:
< <
*:luado* *:luado*
:[range]luado {body} Execute Lua function "function (line) {body} end" for :[range]luado {body} Execute Lua function "function (line, linenr) {body}
each line in the [range], with the function argument end" for each line in the [range], with the function
being set to the text of each line in turn, without a argument being set to the text of each line in turn,
trailing <EOL>. If the value returned by the function without a trailing <EOL>, and the current line number.
is a string it becomes the text of the line in the If the value returned by the function is a string it
current turn. The default for [range] is the whole becomes the text of the line in the current turn. The
file: "1,$". {not in Vi} default for [range] is the whole file: "1,$".
{not in Vi}
Examples: Examples:
> >
@ -88,11 +92,9 @@ Examples:
All these commands execute a Lua chunk from either the command line (:lua and All these commands execute a Lua chunk from either the command line (:lua and
:luado) or a file (:luafile) with the given line [range]. Similarly to the Lua :luado) or a file (:luafile) with the given line [range]. Similarly to the Lua
interpreter, each chunk has its own scope and so only global variables are interpreter, each chunk has its own scope and so only global variables are
shared between command calls. Lua default libraries "table", "string", "math", shared between command calls. All Lua default libraries are available. In
and "package" are available, "io" and "debug" are not, and "os" is restricted addition, Lua "print" function has its output redirected to the Vim message
to functions "date", "clock", "time", "difftime", and "getenv". In addition, area, with arguments separated by a white space instead of a tab.
Lua "print" function has its output redirected to the Vim message area, with
arguments separated by a white space instead of a tab.
Lua uses the "vim" module (see |lua-vim|) to issue commands to Vim Lua uses the "vim" module (see |lua-vim|) to issue commands to Vim
and manage buffers (|lua-buffer|) and windows (|lua-window|). However, and manage buffers (|lua-buffer|) and windows (|lua-window|). However,
@ -108,9 +110,9 @@ input range are stored in "vim.firstline" and "vim.lastline" respectively. The
module also includes routines for buffer, window, and current line queries, module also includes routines for buffer, window, and current line queries,
Vim evaluation and command execution, and others. Vim evaluation and command execution, and others.
vim.isbuffer(value) Returns 'true' (boolean, not string) if vim.list() Returns an empty list (see |List|).
"value" is a buffer userdata and 'false'
otherwise (see |lua-buffer|). vim.dict() Returns an empty dictionary (see |Dictionary|).
vim.buffer([arg]) If "arg" is a number, returns buffer with vim.buffer([arg]) If "arg" is a number, returns buffer with
number "arg" in the buffer list or, if "arg" number "arg" in the buffer list or, if "arg"
@ -121,16 +123,21 @@ Vim evaluation and command execution, and others.
'true' returns the first buffer in the buffer 'true' returns the first buffer in the buffer
list or else the current buffer. list or else the current buffer.
vim.iswindow(value) Returns 'true' (boolean, not string) if
"value" is a window userdata and
'false' otherwise (see |lua-window|).
vim.window([arg]) If "arg" is a number, returns window with vim.window([arg]) If "arg" is a number, returns window with
number "arg" or 'nil' (nil value, not string) number "arg" or 'nil' (nil value, not string)
if not found. Otherwise, if "toboolean(arg)" if not found. Otherwise, if "toboolean(arg)"
is 'true' returns the first window or else the is 'true' returns the first window or else the
current window. current window.
vim.type({arg}) Returns the type of {arg}. It is equivalent to
Lua's "type" function, but returns "list",
"dict", "buffer", or "window" if {arg} is a
list, dictionary, buffer, or window,
respectively. Examples: >
:lua l = vim.list()
:lua print(type(l), vim.type(l))
:" userdata list
<
vim.command({cmd}) Executes the vim (ex-mode) command {cmd}. vim.command({cmd}) Executes the vim (ex-mode) command {cmd}.
Examples: > Examples: >
:lua vim.command"set tw=60" :lua vim.command"set tw=60"
@ -141,7 +148,7 @@ Vim evaluation and command execution, and others.
Vim strings and numbers are directly converted Vim strings and numbers are directly converted
to Lua strings and numbers respectively. Vim to Lua strings and numbers respectively. Vim
lists and dictionaries are converted to Lua lists and dictionaries are converted to Lua
tables (lists become integer-keyed tables). userdata (see |lua-list| and |lua-dict|).
Examples: > Examples: >
:lua tw = vim.eval"&tw" :lua tw = vim.eval"&tw"
:lua print(vim.eval"{'a': 'one'}".a) :lua print(vim.eval"{'a': 'one'}".a)
@ -157,7 +164,72 @@ Vim evaluation and command execution, and others.
============================================================================== ==============================================================================
3. Buffer userdata *lua-buffer* 3. List userdata *lua-list*
List userdata represent vim lists, and the interface tries to follow closely
Vim's syntax for lists. Since lists are objects, changes in list references in
Lua are reflected in Vim and vice-versa. A list "l" has the following
properties and methods:
Properties
----------
o "#l" is the number of items in list "l", equivalent to "len(l)"
in Vim.
o "l[k]" returns the k-th item in "l"; "l" is zero-indexed, as in Vim.
To modify the k-th item, simply do "l[k] = newitem"; in
particular, "l[k] = nil" removes the k-th item from "l".
o "l()" returns an iterator for "l".
Methods
-------
o "l:add(item)" appends "item" to the end of "l".
o "l:insert(item[, pos])" inserts "item" at (optional)
position "pos" in the list. The default value for "pos" is 0.
Examples:
>
:let l = [1, 'item']
:lua l = vim.eval('l') -- same 'l'
:lua l:add(vim.list())
:lua l[0] = math.pi
:echo l[0] " 3.141593
:lua l[0] = nil -- remove first item
:lua l:insert(true, 1)
:lua print(l, #l, l[0], l[1], l[-1])
:lua for item in l() do print(item) end
<
==============================================================================
4. Dict userdata *lua-dict*
Similarly to list userdata, dict userdata represent vim dictionaries; since
dictionaries are also objects, references are kept between Lua and Vim. A dict
"d" has the following properties:
Properties
----------
o "#d" is the number of items in dict "d", equivalent to "len(d)"
in Vim.
o "d.key" or "d['key']" returns the value at entry "key" in "d".
To modify the entry at this key, simply do "d.key = newvalue"; in
particular, "d.key = nil" removes the entry from "d".
o "d()" returns an iterator for "d" and is equivalent to "items(d)" in
Vim.
Examples:
>
:let d = {'n':10}
:lua d = vim.eval('d') -- same 'd'
:lua print(d, d.n, #d)
:let d.self = d
:lua for k, v in d() do print(d, k, v) end
:lua d.x = math.pi
:lua d.self = nil -- remove entry
:echo d
<
==============================================================================
5. Buffer userdata *lua-buffer*
Buffer userdata represent vim buffers. A buffer userdata "b" has the following Buffer userdata represent vim buffers. A buffer userdata "b" has the following
properties and methods: properties and methods:
@ -209,7 +281,7 @@ Examples:
< <
============================================================================== ==============================================================================
4. Window userdata *lua-window* 6. Window userdata *lua-window*
Window objects represent vim windows. A window userdata "w" has the following Window objects represent vim windows. A window userdata "w" has the following
properties and methods: properties and methods:
@ -241,4 +313,29 @@ Examples:
< <
============================================================================== ==============================================================================
vim:tw=78:ts=8:ft=help:norl: 7. The luaeval function *lua-luaeval*
The (dual) equivalent of "vim.eval" for passing Lua values to Vim is
"luaeval". "luaeval" takes an expression string and an optional argument and
returns the result of the expression. It is semantically equivalent in Lua to:
>
local chunkheader = "local _A = select(1, ...) return "
function luaeval (expstr, arg)
local chunk = assert(loadstring(chunkheader .. expstr, "luaeval"))
return chunk(arg) -- return typval
end
<
Note that "_A" receives the argument to "luaeval". Examples: >
:echo luaeval('math.pi')
:lua a = vim.list():add('newlist')
:let a = luaeval('a')
:echo a[0] " 'newlist'
:function Rand(x,y) " random uniform between x and y
: return luaeval('(_A.y-_A.x)*math.random()+_A.x', {'x':a:x,'y':a:y})
: endfunction
:echo Rand(1,10)
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -1,4 +1,4 @@
*if_pyth.txt* For Vim version 7.3. Last change: 2011 May 07 *if_pyth.txt* For Vim version 7.3. Last change: 2012 Feb 04
VIM REFERENCE MANUAL by Paul Moore VIM REFERENCE MANUAL by Paul Moore
@ -222,8 +222,9 @@ Buffer objects represent vim buffers. You can obtain them in a number of ways:
- from indexing vim.buffers (|python-buffers|) - from indexing vim.buffers (|python-buffers|)
- from the "buffer" attribute of a window (|python-window|) - from the "buffer" attribute of a window (|python-window|)
Buffer objects have one read-only attribute - name - the full file name for Buffer objects have two read-only attributes - name - the full file name for
the buffer. They also have three methods (append, mark, and range; see below). the buffer, and number - the buffer number. They also have three methods
(append, mark, and range; see below).
You can also treat buffer objects as sequence objects. In this context, they You can also treat buffer objects as sequence objects. In this context, they
act as if they were lists (yes, they are mutable) of strings, with each act as if they were lists (yes, they are mutable) of strings, with each
@ -380,7 +381,7 @@ To work around such problems there are these options:
*has-python* *has-python*
You can test what Python version is available with: > You can test what Python version is available with: >
if has('python') if has('python')
echo 'there is Pyton 2.x' echo 'there is Python 2.x'
elseif has('python3') elseif has('python3')
echo 'there is Python 3.x' echo 'there is Python 3.x'
endif endif

View File

@ -1,4 +1,4 @@
*indent.txt* For Vim version 7.3. Last change: 2011 Jul 15 *indent.txt* For Vim version 7.3. Last change: 2011 Sep 02
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -132,8 +132,8 @@ The 'cinoptions' option sets how Vim performs indentation. The value after
the option character can be one of these (N is any number): the option character can be one of these (N is any number):
N indent N spaces N indent N spaces
-N indent N spaces to the left -N indent N spaces to the left
Ns N times 'shiftwidth spaces Ns N times 'shiftwidth' spaces
-Ns N times 'shiftwidth spaces to the left -Ns N times 'shiftwidth' spaces to the left
In the list below, In the list below,
"N" represents a number of your choice (the number can be negative). When "N" represents a number of your choice (the number can be negative). When
@ -432,7 +432,7 @@ The examples below assume a 'shiftwidth' of 4.
c3 c3 c3 c3
) && c4; ) && c4; ) && c4; ) && c4;
< <
*cino-2* *cino-w*
wN When in unclosed parentheses and N is non-zero and either wN When in unclosed parentheses and N is non-zero and either
using "(0" or "u0", respectively, or using "U0" and the unclosed using "(0" or "u0", respectively, or using "U0" and the unclosed
parentheses is the first non-white character in its line, line parentheses is the first non-white character in its line, line
@ -459,6 +459,22 @@ The examples below assume a 'shiftwidth' of 4.
argument); argument); argument); argument);
a_short_line(argument, a_short_line(argument, a_short_line(argument, a_short_line(argument,
argument); argument); argument); argument);
<
*cino-k*
kN When in unclosed parentheses which follow "if", "for" or
"while" and N is non-zero, overrides the behaviour defined by
"(N": causes the indent to be N characters relative to the outer
context (i.e. the line where "if", "for" or "while" is). Has
no effect on deeper levels of nesting. Affects flags like "wN"
only for the "if", "for" and "while" conditions. If 0, defaults
to behaviour defined by the "(N" flag. (default: 0).
cino=(0 cino=(0,ks >
if (condition1 if (condition1
&& condition2) && condition2)
action(); action();
function(argument1 function(argument1
&& argument2); && argument2);
< <
*cino-m* *cino-m*
mN When N is non-zero, line up a line starting with a closing mN When N is non-zero, line up a line starting with a closing
@ -530,14 +546,14 @@ The examples below assume a 'shiftwidth' of 4.
*cino-#* *cino-#*
#N When N is non-zero recognize shell/Perl comments, starting with #N When N is non-zero recognize shell/Perl comments, starting with
'#'. Default N is zero: don't recognizes '#' comments. Note '#'. Default N is zero: don't recognize '#' comments. Note
that lines starting with # will still be seen as preprocessor that lines starting with # will still be seen as preprocessor
lines. lines.
The defaults, spelled out in full, are: The defaults, spelled out in full, are:
cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,ps,ts,is,+s, cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,ps,ts,is,+s,
c3,C0,/0,(2s,us,U0,w0,W0,m0,j0,J0,)20,*70,#0 c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0
Vim puts a line in column 1 if: Vim puts a line in column 1 if:
- It starts with '#' (preprocessor directives), if 'cinkeys' contains '#'. - It starts with '#' (preprocessor directives), if 'cinkeys' contains '#'.
@ -706,6 +722,43 @@ Indent for a continuation line: >
let g:pyindent_continue = '&sw * 2' let g:pyindent_continue = '&sw * 2'
R *ft-r-indent*
Function arguments are aligned if they span for multiple lines. If you prefer
do not have the arguments of functions aligned, put in your |vimrc|:
>
let r_indent_align_args = 0
<
All lines beginning with a comment character, #, get the same indentation
level of the normal R code. Users of Emacs/ESS may be used to have lines
beginning with a single # indented in the 40th column, ## indented as R code,
and ### not indented. If you prefer that lines beginning with comment
characters are aligned as they are by Emacs/ESS, put in your |vimrc|:
>
let r_indent_ess_comments = 1
<
If you prefer that lines beginning with a single # are aligned at a column
different from the 40th one, you should set a new value to the variable
r_indent_comment_column, as in the example below:
>
let r_indent_comment_column = 30
<
Any code after a line that ends with "<-" is indented. Emacs/ESS does not
indent the code if it is a top level function. If you prefer that the
Vim-R-plugin behaves like Emacs/ESS in this regard, put in your |vimrc|:
>
let r_indent_ess_compatible = 1
<
Below is an example of indentation with and without this option enabled:
>
### r_indent_ess_compatible = 1 ### r_indent_ess_compatible = 0
foo <- foo <-
function(x) function(x)
{ {
paste(x) paste(x)
} }
<
SHELL *ft-sh-indent* SHELL *ft-sh-indent*
The amount of indent applied under various circumstances in a shell file can The amount of indent applied under various circumstances in a shell file can

View File

@ -1,4 +1,4 @@
*index.txt* For Vim version 7.3. Last change: 2011 Jan 04 *index.txt* For Vim version 7.3. Last change: 2011 Aug 06
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -1261,7 +1261,7 @@ tag command action ~
|:k| :k set a mark |:k| :k set a mark
|:keepalt| :keepa[lt] following command keeps the alternate file |:keepalt| :keepa[lt] following command keeps the alternate file
|:keepmarks| :kee[pmarks] following command keeps marks where they are |:keepmarks| :kee[pmarks] following command keeps marks where they are
|:keepjumps| :keepj[jumps] following command keeps jumplist and marks |:keepjumps| :keepj[umps] following command keeps jumplist and marks
|:lNext| :lN[ext] go to previous entry in location list |:lNext| :lN[ext] go to previous entry in location list
|:lNfile| :lNf[ile] go to last entry in previous file |:lNfile| :lNf[ile] go to last entry in previous file
|:list| :l[ist] print lines |:list| :l[ist] print lines

View File

@ -1,4 +1,4 @@
*insert.txt* For Vim version 7.3. Last change: 2010 Nov 10 *insert.txt* For Vim version 7.3. Last change: 2012 May 18
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -383,8 +383,11 @@ 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. beware of the cursor possibly being beyond the end of the line.
The CTRL-O command takes you to Normal mode. If you then use a command enter The CTRL-O command takes you to Normal mode. If you then use a command enter
Insert mode again it doesn't nest. Thus when typing "a<C-O>a" and then <Esc> Insert mode again it normally doesn't nest. Thus when typing "a<C-O>a" and
takes you back to Normal mode, you do not need to type <Esc> twice. then <Esc> takes you back to Normal mode, you do not need to type <Esc> twice.
An exception is when not typing the command, e.g. when executing a mapping or
sourcing a script. This makes mappings work that briefly switch to Insert
mode.
The shifted cursor keys are not available on all terminals. The shifted cursor keys are not available on all terminals.
@ -398,7 +401,12 @@ An example for using CTRL-G u: >
This redefines the backspace key to start a new undo sequence. You can now This redefines the backspace key to start a new undo sequence. You can now
undo the effect of the backspace key, without changing what you typed before undo the effect of the backspace key, without changing what you typed before
that, with CTRL-O u. that, with CTRL-O u. Another example: >
:inoremap <CR> <C-]><C-G>u<CR>
This breaks undo at each line break. It also expands abbreviations before
this.
Using CTRL-O splits undo: the text typed before and after it is undone Using CTRL-O splits undo: the text typed before and after it is undone
separately. If you want to avoid this (e.g., in a mapping) you might be able separately. If you want to avoid this (e.g., in a mapping) you might be able
@ -1009,8 +1017,13 @@ The function must return the column where the completion starts. It must be a
number between zero and the cursor column "col('.')". This involves looking number between zero and the cursor column "col('.')". This involves looking
at the characters just before the cursor and including those characters that at the characters just before the cursor and including those characters that
could be part of the completed item. The text between this column and the could be part of the completed item. The text between this column and the
cursor column will be replaced with the matches. Return -1 if no completion cursor column will be replaced with the matches.
can be done.
Special return values:
-1 If no completion can be done, the completion will be cancelled with an
error message.
-2 To cancel silently and stay in completion mode.
-3 To cancel silently and leave completion mode.
On the second invocation the arguments are: On the second invocation the arguments are:
a:findstart 0 a:findstart 0
@ -1020,6 +1033,21 @@ On the second invocation the arguments are:
The function must return a List with the matching words. These matches The function must return a List with the matching words. These matches
usually include the "a:base" text. When there are no matches return an empty usually include the "a:base" text. When there are no matches return an empty
List. List.
In order to return more information than the matching words, return a Dict
that contains the List. The Dict can have these items:
words The List of matching words (mandatory).
refresh A string to control re-invocation of the function
(optional).
The only value currently recognized is "always", the
effect is that the function is called whenever the
leading text is changed.
Other items are ignored.
For example, the function can contain this: >
let matches = ... list of words ...
return {'words': matches, 'refresh': 'always'}
<
*complete-items* *complete-items*
Each list item can either be a string or a Dictionary. When it is a string it Each list item can either be a string or a Dictionary. When it is a string it
is used as the completion. When it is a Dictionary it can contain these is used as the completion. When it is a Dictionary it can contain these
@ -1040,9 +1068,10 @@ items:
empty when non-zero this match will be added even when it is empty when non-zero this match will be added even when it is
an empty string an empty string
All of these except 'icase' must be a string. If an item does not meet these All of these except 'icase', 'dup' and 'empty' must be a string. If an item
requirements then an error message is given and further items in the list are does not meet these requirements then an error message is given and further
not used. You can mix string and Dictionary items in the returned list. items in the list are not used. You can mix string and Dictionary items in
the returned list.
The "menu" item is used in the popup menu and may be truncated, thus it should The "menu" item is used in the popup menu and may be truncated, thus it should
be relatively short. The "info" item can be longer, it will be displayed in be relatively short. The "info" item can be longer, it will be displayed in

View File

@ -1,4 +1,4 @@
*map.txt* For Vim version 7.3. Last change: 2011 Jun 13 *map.txt* For Vim version 7.3. Last change: 2012 Apr 13
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -228,7 +228,7 @@ text before the cursor and start omni completion when some condition is met.
For abbreviations |v:char| is set to the character that was typed to trigger For abbreviations |v:char| is set to the character that was typed to trigger
the abbreviation. You can use this to decide how to expand the {lhs}. You the abbreviation. You can use this to decide how to expand the {lhs}. You
you should not either insert or change the v:char. should not either insert or change the v:char.
Be very careful about side effects! The expression is evaluated while Be very careful about side effects! The expression is evaluated while
obtaining characters, you may very well make the command dysfunctional. obtaining characters, you may very well make the command dysfunctional.
@ -237,11 +237,18 @@ For this reason the following is blocked:
- Editing another buffer. - Editing another buffer.
- The |:normal| command. - The |:normal| command.
- Moving the cursor is allowed, but it is restored afterwards. - Moving the cursor is allowed, but it is restored afterwards.
- You can use getchar(), but the existing typeahead isn't seen and new
typeahead is discarded.
If you want the mapping to do any of these let the returned characters do If you want the mapping to do any of these let the returned characters do
that. that.
You can use getchar(), it consumes typeahead if there is any. E.g., if you
have these mappings: >
inoremap <expr> <C-L> nr2char(getchar())
inoremap <expr> <C-L>x "foo"
If you now type CTRL-L nothing happens yet, Vim needs the next character to
decide what mapping to use. If you type 'x' the second mapping is used and
"foo" is inserted. If you type any other key the first mapping is used,
getchar() gets the typed key and returns it.
Here is an example that inserts a list number that increases: > Here is an example that inserts a list number that increases: >
let counter = 0 let counter = 0
inoremap <expr> <C-L> ListItem() inoremap <expr> <C-L> ListItem()
@ -520,7 +527,7 @@ mappings.
<LocalLeader> is just like <Leader>, except that it uses "maplocalleader" <LocalLeader> is just like <Leader>, except that it uses "maplocalleader"
instead of "mapleader". <LocalLeader> is to be used for mappings which are instead of "mapleader". <LocalLeader> is to be used for mappings which are
local to a buffer. Example: > local to a buffer. Example: >
:map <LocalLeader>q \DoItNow :map <buffer> <LocalLeader>A oanother line<Esc>
< <
In a global plugin <Leader> should be used and in a filetype plugin In a global plugin <Leader> should be used and in a filetype plugin
<LocalLeader>. "mapleader" and "maplocalleader" can be equal. Although, if <LocalLeader>. "mapleader" and "maplocalleader" can be equal. Although, if
@ -544,6 +551,7 @@ construct can be used:
<Char-123> character 123 <Char-123> character 123
<Char-033> character 27 <Char-033> character 27
<Char-0x7f> character 127 <Char-0x7f> character 127
<S-Char-114> character 114 ('r') shifted ('R')
This is useful to specify a (multi-byte) character in a 'keymap' file. This is useful to specify a (multi-byte) character in a 'keymap' file.
Upper and lowercase differences are ignored. Upper and lowercase differences are ignored.
@ -1180,7 +1188,7 @@ reported if any are supplied). However, it is possible to specify that the
command can take arguments, using the -nargs attribute. Valid cases are: command can take arguments, using the -nargs attribute. Valid cases are:
-nargs=0 No arguments are allowed (the default) -nargs=0 No arguments are allowed (the default)
-nargs=1 Exactly one argument is require, it includes spaces -nargs=1 Exactly one argument is required, it includes spaces
-nargs=* Any number of arguments are allowed (0, 1, or many), -nargs=* Any number of arguments are allowed (0, 1, or many),
separated by white space separated by white space
-nargs=? 0 or 1 arguments are allowed -nargs=? 0 or 1 arguments are allowed
@ -1211,6 +1219,7 @@ completion can be enabled:
-complete=augroup autocmd groups -complete=augroup autocmd groups
-complete=buffer buffer names -complete=buffer buffer names
-complete=behave :behave suboptions
-complete=color color schemes -complete=color color schemes
-complete=command Ex command (and arguments) -complete=command Ex command (and arguments)
-complete=compiler compilers -complete=compiler compilers
@ -1225,6 +1234,7 @@ completion can be enabled:
-complete=function function name -complete=function function name
-complete=help help subjects -complete=help help subjects
-complete=highlight highlight groups -complete=highlight highlight groups
-complete=history :history suboptions
-complete=locale locale names (as output of locale -a) -complete=locale locale names (as output of locale -a)
-complete=mapping mapping name -complete=mapping mapping name
-complete=menu menus -complete=menu menus

View File

@ -1,4 +1,4 @@
*mbyte.txt* For Vim version 7.3. Last change: 2011 Jul 18 *mbyte.txt* For Vim version 7.3. Last change: 2012 Feb 29
VIM REFERENCE MANUAL by Bram Moolenaar et al. VIM REFERENCE MANUAL by Bram Moolenaar et al.
@ -797,8 +797,8 @@ is suitable for complex input, such as CJK.
number of Hira-gana characters are 76. So, first, we pre-input text as number of Hira-gana characters are 76. So, first, we pre-input text as
pronounced in Hira-gana, second, we convert Hira-gana to Kanji or Kata-Kana, pronounced in Hira-gana, second, we convert Hira-gana to Kanji or Kata-Kana,
if needed. There are some Kana-Kanji conversion server: jserver if needed. There are some Kana-Kanji conversion server: jserver
(distributed with Wnn, see below) and canna. Canna could be found at: (distributed with Wnn, see below) and canna. Canna can be found at:
ftp://ftp.nec.co.jp/pub/Canna/ (no longer works). http://canna.sourceforge.jp/
There is a good input system: Wnn4.2. Wnn 4.2 contains, There is a good input system: Wnn4.2. Wnn 4.2 contains,
xwnmo (|IM-server|) xwnmo (|IM-server|)
@ -857,7 +857,7 @@ Use the RPM or port for your system.
USING XIM *multibyte-input* *E284* *E286* *E287* *E288* USING XIM *multibyte-input* *E284* *E286* *E287* *E288*
*E285* *E291* *E292* *E290* *E289* *E285* *E289*
Note that Display and Input are independent. It is possible to see your Note that Display and Input are independent. It is possible to see your
language even though you have no input method for it. But when your Display language even though you have no input method for it. But when your Display

View File

@ -1,4 +1,4 @@
*mlang.txt* For Vim version 7.3. Last change: 2010 Dec 11 *mlang.txt* For Vim version 7.3. Last change: 2012 Jan 15
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -59,7 +59,7 @@ use of "-" and "_".
system. Some systems accept aliases like "en" or system. Some systems accept aliases like "en" or
"en_US", but some only accept the full specification "en_US", but some only accept the full specification
like "en_US.ISO_8859-1". On Unix systems you can use like "en_US.ISO_8859-1". On Unix systems you can use
the this command to see what locales are supported: > this command to see what locales are supported: >
:!locale -a :!locale -a
< With the "messages" argument the language used for < With the "messages" argument the language used for
messages is set. This can be different when you want, messages is set. This can be different when you want,

View File

@ -1,4 +1,4 @@
*motion.txt* For Vim version 7.3. Last change: 2011 Jun 02 *motion.txt* For Vim version 7.3. Last change: 2011 Jul 19
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -1017,8 +1017,6 @@ CTRL-O Go to [count] Older cursor position in jump list
<Tab> or *CTRL-I* *<Tab>* <Tab> or *CTRL-I* *<Tab>*
CTRL-I Go to [count] newer cursor position in jump list CTRL-I Go to [count] newer cursor position in jump list
(not a motion command). (not a motion command).
In a |quickfix-window| it takes you to the position of
the error under the cursor.
{not in Vi} {not in Vi}
{not available without the |+jumplist| feature} {not available without the |+jumplist| feature}

View File

@ -1,4 +1,4 @@
*netbeans.txt* For Vim version 7.3. Last change: 2010 Sep 29 *netbeans.txt* For Vim version 7.3. Last change: 2012 Jan 26
VIM REFERENCE MANUAL by Gordon Prieur et al. 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
plain UTF-8 text this protocol could also be used with any other communication plain UTF-8 text this protocol could also be used with any other communication
mechanism. mechanism.
Netbeans messages are processed when Vim is idle, waiting for user input.
When Vim is run in non-interactive mode, for example when running an automated
test case that sources a Vim script, the idle loop may not be called often
enough. In that case, insert |:sleep| commands in the Vim script. The |:sleep|
command does invoke Netbeans messages processing.
6.1 Kinds of messages |nb-messages| 6.1 Kinds of messages |nb-messages|
6.2 Terms |nb-terms| 6.2 Terms |nb-terms|
6.3 Commands |nb-commands| 6.3 Commands |nb-commands|
@ -833,11 +839,16 @@ These errors occur when a message violates the protocol:
signs. signs.
*:nbkey* *:nbkey*
:nb[key] {key} Pass the {key} to the Vim Controller for processing :nb[key] {key} Pass the {key} to the Vim Controller for processing.
When a hot-key has been installed with the specialKeys
When a hot-key has been installed with the specialKeys command, this command command, this command can be used to generate a hotkey
can be used to generate a hotkey messages to the Vim Controller. The events message to the Vim Controller.
newDotAndMark, keyCommand and keyAtPos are generated (in this order). This command can also be used to pass any text to the
Vim Controller. It is used by Pyclewn, for example,
to build the complete set of gdb commands as Vim user
commands.
The events newDotAndMark, keyCommand and keyAtPos are
generated (in this order).
============================================================================== ==============================================================================

View File

@ -1,4 +1,4 @@
*options.txt* For Vim version 7.3. Last change: 2011 Jul 07 *options.txt* For Vim version 7.3. Last change: 2012 May 16
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -301,9 +301,8 @@ You will not get back the 'list' value as it was the last time you edited
copying the value. copying the value.
{not in Vi} {not in Vi}
:se[t] {option}< Set the local value of {option} to its global value by :se[t] {option}< For |global-local| options: Remove the local value of
making it empty. Only makes sense for |global-local| {option}, so that the global value will be used.
options.
{not in Vi} {not in Vi}
*:setg* *:setglobal* *:setg* *:setglobal*
@ -401,6 +400,9 @@ On Unix systems the form "${HOME}" can be used too. The name between {} can
contain non-id characters then. Note that if you want to use this for the contain non-id characters then. Note that if you want to use this for the
"gf" command, you need to add the '{' and '}' characters to 'isfname'. "gf" command, you need to add the '{' and '}' characters to 'isfname'.
On MS-Windows, if $HOME is not defined as an environment variable, then
at runtime Vim will set it to the expansion of $HOMEDRIVE$HOMEPATH.
NOTE: expanding environment variables and "~/" is only done with the ":set" NOTE: expanding environment variables and "~/" is only done with the ":set"
command, not when assigning a value to an option with ":let". command, not when assigning a value to an option with ":let".
@ -742,7 +744,7 @@ A jump table for the options with a short description can be found at |Q_op|.
- Reset the 'rightleft' option. - Reset the 'rightleft' option.
- Disable the use of 'keymap' (without changing its value). - Disable the use of 'keymap' (without changing its value).
Note that 'arabicshape' and 'delcombine' are not reset (it is a global Note that 'arabicshape' and 'delcombine' are not reset (it is a global
option. option).
Also see |arabic.txt|. Also see |arabic.txt|.
*'arabicshape'* *'arshape'* *'arabicshape'* *'arshape'*
@ -1045,6 +1047,11 @@ A jump table for the options with a short description can be found at |Q_op|.
When $TMPDIR, $TMP or $TEMP is not defined, it is not used for the When $TMPDIR, $TMP or $TEMP is not defined, it is not used for the
default value. "/tmp/*" is only used for Unix. default value. "/tmp/*" is only used for Unix.
WARNING: Not having a backup file means that when Vim fails to write
your buffer correctly and then, for whatever reason, Vim exits, you
lose both the original file and what you were writing. Only disable
backups if you don't care about losing the file.
Note that environment variables are not expanded. If you want to use Note that environment variables are not expanded. If you want to use
$HOME you must expand it explicitly, e.g.: > $HOME you must expand it explicitly, e.g.: >
:let backupskip = escape(expand('$HOME'), '\') . '/tmp/*' :let backupskip = escape(expand('$HOME'), '\') . '/tmp/*'
@ -1217,7 +1224,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|:bwipeout| |:bwipeout|
CAREFUL: when "unload", "delete" or "wipe" is used changes in a buffer CAREFUL: when "unload", "delete" or "wipe" is used changes in a buffer
are lost without a warning. are lost without a warning. Also, these values may break autocommands
that switch between buffers temporarily.
This option is used together with 'buftype' and 'swapfile' to specify This option is used together with 'buftype' and 'swapfile' to specify
special kinds of buffers. See |special-buffers|. special kinds of buffers. See |special-buffers|.
@ -2122,7 +2130,7 @@ A jump table for the options with a short description can be found at |Q_op|.
and the cursor is right in front of the searched and the cursor is right in front of the searched
character, the cursor won't move. When not included, character, the cursor won't move. When not included,
the cursor would skip over it and jump to the the cursor would skip over it and jump to the
following occurence. following occurrence.
POSIX flags. These are not included in the Vi default value, except POSIX flags. These are not included in the Vi default value, except
when $VIM_POSIX was set on startup. |posix| when $VIM_POSIX was set on startup. |posix|
@ -3554,8 +3562,8 @@ A jump table for the options with a short description can be found at |Q_op|.
screen. screen.
*'guioptions'* *'go'* *'guioptions'* *'go'*
'guioptions' 'go' string (default "gmrLtT" (MS-Windows), 'guioptions' 'go' string (default "egmrLtT" (MS-Windows),
"agimrLtT" (GTK, Motif and Athena)) "aegimrLtT" (GTK, Motif and Athena))
global global
{not in Vi} {not in Vi}
{only available when compiled with GUI enabled} {only available when compiled with GUI enabled}
@ -3769,9 +3777,10 @@ A jump table for the options with a short description can be found at |Q_op|.
'highlight' 'hl' string (default (as a single string): 'highlight' 'hl' string (default (as a single string):
"8:SpecialKey,@:NonText,d:Directory, "8:SpecialKey,@:NonText,d:Directory,
e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg, e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,
M:ModeMsg,n:LineNr,r:Question, M:ModeMsg,n:LineNr,N:CursorLineNr,
s:StatusLine,S:StatusLineNC,c:VertSplit, r:Question,s:StatusLine,S:StatusLineNC,
t:Title,v:Visual,w:WarningMsg,W:WildMenu, c:VertSplit, t:Title,v:Visual,
w:WarningMsg,W:WildMenu,
f:Folded,F:FoldColumn,A:DiffAdd, f:Folded,F:FoldColumn,A:DiffAdd,
C:DiffChange,D:DiffDelete,T:DiffText, C:DiffChange,D:DiffDelete,T:DiffText,
>:SignColumn,B:SpellBad,P:SpellCap, >:SignColumn,B:SpellBad,P:SpellCap,
@ -3797,6 +3806,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|hl-ModeMsg| M Mode (e.g., "-- INSERT --") |hl-ModeMsg| M Mode (e.g., "-- INSERT --")
|hl-LineNr| n line number for ":number" and ":#" commands, and |hl-LineNr| n line number for ":number" and ":#" commands, and
when 'number' or 'relativenumber' option is set. when 'number' or 'relativenumber' option is set.
|hl-CursorLineNr| N like n for when 'cursorline' is set.
|hl-Question| r |hit-enter| prompt and yes/no questions |hl-Question| r |hit-enter| prompt and yes/no questions
|hl-StatusLine| s status line of current window |status-line| |hl-StatusLine| s status line of current window |status-line|
|hl-StatusLineNC| S status lines of not-current windows |hl-StatusLineNC| S status lines of not-current windows
@ -3858,14 +3868,16 @@ A jump table for the options with a short description can be found at |Q_op|.
are not applied. are not applied.
See also: 'incsearch' and |:match|. See also: 'incsearch' and |:match|.
When you get bored looking at the highlighted matches, you can turn it When you get bored looking at the highlighted matches, you can turn it
off with |:nohlsearch|. As soon as you use a search command, the off with |:nohlsearch|. This does not change the option value, as
highlighting comes back. soon as you use a search command, the highlighting comes back.
'redrawtime' specifies the maximum time spent on finding matches. 'redrawtime' specifies the maximum time spent on finding matches.
When the search pattern can match an end-of-line, Vim will try to When the search pattern can match an end-of-line, Vim will try to
highlight all of the matched text. However, this depends on where the highlight all of the matched text. However, this depends on where the
search starts. This will be the first line in the window or the first search starts. This will be the first line in the window or the first
line below a closed fold. A match in a previous line which is not line below a closed fold. A match in a previous line which is not
drawn may not continue in a newly drawn line. drawn may not continue in a newly drawn line.
You can specify whether the highlight status is restored on startup
with the 'h' flag in 'viminfo' |viminfo-h|.
NOTE: This option is reset when 'compatible' is set. NOTE: This option is reset when 'compatible' is set.
*'history'* *'hi'* *'history'* *'hi'*
@ -4861,6 +4873,10 @@ A jump table for the options with a short description can be found at |Q_op|.
written. A ":set nomodified" command also resets the original written. A ":set nomodified" command also resets the original
values to the current values and the 'modified' option will be values to the current values and the 'modified' option will be
reset. reset.
This option is not set when a change is made to the buffer as the
result of a BufNewFile, BufRead/BufReadPost, BufWritePost,
FileAppendPost or VimLeave autocommand event. See |gzip-example| for
an explanation.
When 'buftype' is "nowrite" or "nofile" this option may be set, but When 'buftype' is "nowrite" or "nofile" this option may be set, but
will be ignored. will be ignored.
@ -5049,7 +5065,7 @@ A jump table for the options with a short description can be found at |Q_op|.
respectively; see |CTRL-A| for more info on these commands. respectively; see |CTRL-A| for more info on these commands.
alpha If included, single alphabetical characters will be alpha If included, single alphabetical characters will be
incremented or decremented. This is useful for a list with a incremented or decremented. This is useful for a list with a
letter index a), b), etc. *octal-number* letter index a), b), etc. *octal-nrformats*
octal If included, numbers that start with a zero will be considered octal If included, numbers that start with a zero will be considered
to be octal. Example: Using CTRL-A on "007" results in "010". to be octal. Example: Using CTRL-A on "007" results in "010".
hex If included, numbers starting with "0x" or "0X" will be hex If included, numbers starting with "0x" or "0X" will be
@ -5069,7 +5085,8 @@ A jump table for the options with a short description can be found at |Q_op|.
number. number.
When a long, wrapped line doesn't start with the first character, '-' When a long, wrapped line doesn't start with the first character, '-'
characters are put before the number. characters are put before the number.
See |hl-LineNr| for the highlighting used for the number. See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for
the number.
When setting this option, 'relativenumber' is reset. When setting this option, 'relativenumber' is reset.
*'numberwidth'* *'nuw'* *'numberwidth'* *'nuw'*
@ -5237,7 +5254,7 @@ A jump table for the options with a short description can be found at |Q_op|.
recognized as a compressed file. recognized as a compressed file.
Only normal file name characters can be used, "/\*?[|<>" are illegal. Only normal file name characters can be used, "/\*?[|<>" are illegal.
*'path'* *'pa'* *E343* *E345* *E347* *'path'* *'pa'* *E343* *E345* *E347* *E854*
'path' 'pa' string (default on Unix: ".,/usr/include,," 'path' 'pa' string (default on Unix: ".,/usr/include,,"
on OS/2: ".,/emx/include,," on OS/2: ".,/emx/include,,"
other systems: ".,,") other systems: ".,,")
@ -5468,7 +5485,8 @@ A jump table for the options with a short description can be found at |Q_op|.
number. number.
When a long, wrapped line doesn't start with the first character, '-' When a long, wrapped line doesn't start with the first character, '-'
characters are put before the number. characters are put before the number.
See |hl-LineNr| for the highlighting used for the number. See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for
the number.
When setting this option, 'number' is reset. When setting this option, 'number' is reset.
*'remap'* *'noremap'* *'remap'* *'noremap'*
@ -5890,16 +5908,20 @@ A jump table for the options with a short description can be found at |Q_op|.
security reasons. security reasons.
*'shellcmdflag'* *'shcf'* *'shellcmdflag'* *'shcf'*
'shellcmdflag' 'shcf' string (default: "-c", MS-DOS and Win32, when 'shell' 'shellcmdflag' 'shcf' string (default: "-c";
does not contain "sh" somewhere: "/c") MS-DOS and Win32, when 'shell' does not
contain "sh" somewhere: "/c")
global global
{not in Vi} {not in Vi}
Flag passed to the shell to execute "!" and ":!" commands; e.g., Flag passed to the shell to execute "!" and ":!" commands; e.g.,
"bash.exe -c ls" or "command.com /c dir". For the MS-DOS-like "bash.exe -c ls" or "command.com /c dir". For the MS-DOS-like
systems, the default is set according to the value of 'shell', to systems, the default is set according to the value of 'shell', to
reduce the need to set this option by the user. It's not used for reduce the need to set this option by the user. It's not used for
OS/2 (EMX figures this out itself). See |option-backslash| about OS/2 (EMX figures this out itself).
including spaces and backslashes. See |dos-shell|. On Unix it can have more than one flag. Each white space separated
part is passed as an argument to the shell command.
See |option-backslash| about including spaces and backslashes.
Also see |dos-shell| for MS-DOS and MS-Windows.
This option cannot be set from a |modeline| or in the |sandbox|, for This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons. security reasons.
@ -6027,8 +6049,18 @@ A jump table for the options with a short description can be found at |Q_op|.
0 and 2: use "shell 'shellcmdflag' cmd" to start external commands 0 and 2: use "shell 'shellcmdflag' cmd" to start external commands
1 and 3: use "shell cmd" to start external commands 1 and 3: use "shell cmd" to start external commands
*'shellxescape'* *'sxe'*
'shellxescape' 'sxe' string (default: "";
for MS-DOS and MS-Windows: "\"&|<>()@^")
global
{not in Vi}
When 'shellxquote' is set to "(" then the characters listed in this
option will be escaped with a '^' character. This makes it possible
to execute most external commands with cmd.exe.
*'shellxquote'* *'sxq'* *'shellxquote'* *'sxq'*
'shellxquote' 'sxq' string (default: ""; 'shellxquote' 'sxq' string (default: "";
for Win32, when 'shell' is cmd.exe: "("
for Win32, when 'shell' contains "sh" for Win32, when 'shell' contains "sh"
somewhere: "\"" somewhere: "\""
for Unix, when using system(): "\"") for Unix, when using system(): "\"")
@ -6038,11 +6070,15 @@ A jump table for the options with a short description can be found at |Q_op|.
the "!" and ":!" commands. Includes the redirection. See the "!" and ":!" commands. Includes the redirection. See
'shellquote' to exclude the redirection. It's probably not useful 'shellquote' to exclude the redirection. It's probably not useful
to set both options. to set both options.
This is an empty string by default. Known to be useful for When the value is '(' then ')' is appended. When the value is '"('
third-party shells when using the Win32 version, such as the MKS Korn then ')"' is appended.
Shell or bash, where it should be "\"". The default is adjusted When the value is '(' then also see 'shellxescape'.
according the value of 'shell', to reduce the need to set this option This is an empty string by default on most systems, but is known to be
by the user. See |dos-shell|. useful for on Win32 version, either for cmd.exe which automatically
strips off the first and last quote on a command, or 3rd-party shells
such as the MKS Korn Shell or bash, where it should be "\"". The
default is adjusted according the value of 'shell', to reduce the need
to set this option by the user. See |dos-shell|.
This option cannot be set from a |modeline| or in the |sandbox|, for This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons. security reasons.
@ -6263,7 +6299,7 @@ A jump table for the options with a short description can be found at |Q_op|.
Override the 'ignorecase' option if the search pattern contains upper Override the 'ignorecase' option if the search pattern contains upper
case characters. Only used when the search pattern is typed and case characters. Only used when the search pattern is typed and
'ignorecase' option is on. Used for the commands "/", "?", "n", "N", 'ignorecase' option is on. Used for the commands "/", "?", "n", "N",
":g" and ":s". Not used for "*", "#", "gd", tag search, etc.. After ":g" and ":s". Not used for "*", "#", "gd", tag search, etc. After
"*" and "#" you can make 'smartcase' used by doing a "/" command, "*" and "#" you can make 'smartcase' used by doing a "/" command,
recalling the search pattern from history and hitting <Enter>. recalling the search pattern from history and hitting <Enter>.
NOTE: This option is reset when 'compatible' is set. NOTE: This option is reset when 'compatible' is set.
@ -6536,6 +6572,9 @@ A jump table for the options with a short description can be found at |Q_op|.
evaluated and the result is used as the option value. Example: > evaluated and the result is used as the option value. Example: >
:set statusline=%!MyStatusLine() :set statusline=%!MyStatusLine()
< The result can contain %{} items that will be evaluated too. < The result can contain %{} items that will be evaluated too.
Note that the "%!" expression is evaluated in the context of the
current window and buffer, while %{} items are evaluated in the
context of the window that the statusline belongs to.
When there is error while evaluating the option then it will be made When there is error while evaluating the option then it will be made
empty to avoid further errors. Otherwise screen updating would loop. empty to avoid further errors. Otherwise screen updating would loop.
@ -6755,8 +6794,8 @@ A jump table for the options with a short description can be found at |Q_op|.
usetab Like "useopen", but also consider windows in other tab usetab Like "useopen", but also consider windows in other tab
pages. pages.
split If included, split the current window before loading split If included, split the current window before loading
a buffer. Otherwise: do not split, use current window. a buffer for a |quickfix| command that display errors.
Supported in |quickfix| commands that display errors. Otherwise: do not split, use current window.
newtab Like "split", but open a new tab page. Overrules newtab Like "split", but open a new tab page. Overrules
"split" when both are present. "split" when both are present.
@ -7085,8 +7124,8 @@ A jump table for the options with a short description can be found at |Q_op|.
the file should contain words with similar meaning, separated by the file should contain words with similar meaning, separated by
non-keyword characters (white space is preferred). Maximum line non-keyword characters (white space is preferred). Maximum line
length is 510 bytes. length is 510 bytes.
To obtain a file to be used here, check out the wordlist FAQ at To obtain a file to be used here, check out this ftp site:
http://www.hyphenologist.co.uk . ftp://ftp.ox.ac.uk/pub/wordlists/ First get the README file.
To include a comma in a file name precede it with a backslash. Spaces To include a comma in a file name precede it with a backslash. Spaces
after a comma are ignored, otherwise spaces are included in the file after a comma are ignored, otherwise spaces are included in the file
name. See |option-backslash| about using backslashes. name. See |option-backslash| about using backslashes.
@ -7361,6 +7400,8 @@ A jump table for the options with a short description can be found at |Q_op|.
jsbterm JSB term mouse handling. jsbterm JSB term mouse handling.
*pterm-mouse* *pterm-mouse*
pterm QNX pterm mouse handling. pterm QNX pterm mouse handling.
*urxvt-mouse*
urxvt Mouse handling for the urxvt (rxvt-unicode) terminal.
The mouse handling must be enabled at compile time |+mouse_xterm| The mouse handling must be enabled at compile time |+mouse_xterm|
|+mouse_dec| |+mouse_netterm|. |+mouse_dec| |+mouse_netterm|.
@ -7577,15 +7618,18 @@ A jump table for the options with a short description can be found at |Q_op|.
parameter. The following is a list of the identifying characters and parameter. The following is a list of the identifying characters and
the effect of their value. the effect of their value.
CHAR VALUE ~ CHAR VALUE ~
*viminfo-!*
! When included, save and restore global variables that start ! When included, save and restore global variables that start
with an uppercase letter, and don't contain a lowercase with an uppercase letter, and don't contain a lowercase
letter. Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis" letter. Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis"
and "_K_L_M" are not. Nested List and Dict items may not be and "_K_L_M" are not. Nested List and Dict items may not be
read back correctly, you end up with an empty item. read back correctly, you end up with an empty item.
*viminfo-quote*
" Maximum number of lines saved for each register. Old name of " Maximum number of lines saved for each register. Old name of
the '<' item, with the disadvantage that you need to put a the '<' item, with the disadvantage that you need to put a
backslash before the ", otherwise it will be recognized as the backslash before the ", otherwise it will be recognized as the
start of a comment! start of a comment!
*viminfo-%*
% When included, save and restore the buffer list. If Vim is % When included, save and restore the buffer list. If Vim is
started with a file name argument, the buffer list is not started with a file name argument, the buffer list is not
restored. If Vim is started without a file name argument, the restored. If Vim is started without a file name argument, the
@ -7595,38 +7639,48 @@ A jump table for the options with a short description can be found at |Q_op|.
When followed by a number, the number specifies the maximum When followed by a number, the number specifies the maximum
number of buffers that are stored. Without a number all number of buffers that are stored. Without a number all
buffers are stored. buffers are stored.
*viminfo-'*
' Maximum number of previously edited files for which the marks ' Maximum number of previously edited files for which the marks
are remembered. This parameter must always be included when are remembered. This parameter must always be included when
'viminfo' is non-empty. 'viminfo' is non-empty.
Including this item also means that the |jumplist| and the Including this item also means that the |jumplist| and the
|changelist| are stored in the viminfo file. |changelist| are stored in the viminfo file.
*viminfo-/*
/ Maximum number of items in the search pattern history to be / Maximum number of items in the search pattern history to be
saved. If non-zero, then the previous search and substitute saved. If non-zero, then the previous search and substitute
patterns are also saved. When not included, the value of patterns are also saved. When not included, the value of
'history' is used. 'history' is used.
*viminfo-:*
: Maximum number of items in the command-line history to be : Maximum number of items in the command-line history to be
saved. When not included, the value of 'history' is used. saved. When not included, the value of 'history' is used.
*viminfo-<*
< Maximum number of lines saved for each register. If zero then < Maximum number of lines saved for each register. If zero then
registers are not saved. When not included, all lines are registers are not saved. When not included, all lines are
saved. '"' is the old name for this item. saved. '"' is the old name for this item.
Also see the 's' item below: limit specified in Kbyte. Also see the 's' item below: limit specified in Kbyte.
*viminfo-@*
@ Maximum number of items in the input-line history to be @ Maximum number of items in the input-line history to be
saved. When not included, the value of 'history' is used. saved. When not included, the value of 'history' is used.
*viminfo-c*
c When included, convert the text in the viminfo file from the c When included, convert the text in the viminfo file from the
'encoding' used when writing the file to the current 'encoding' used when writing the file to the current
'encoding'. See |viminfo-encoding|. 'encoding'. See |viminfo-encoding|.
*viminfo-f*
f Whether file marks need to be stored. If zero, file marks ('0 f Whether file marks need to be stored. If zero, file marks ('0
to '9, 'A to 'Z) are not stored. When not present or when to '9, 'A to 'Z) are not stored. When not present or when
non-zero, they are all stored. '0 is used for the current non-zero, they are all stored. '0 is used for the current
cursor position (when exiting or when doing ":wviminfo"). cursor position (when exiting or when doing ":wviminfo").
*viminfo-h*
h Disable the effect of 'hlsearch' when loading the viminfo h Disable the effect of 'hlsearch' when loading the viminfo
file. When not included, it depends on whether ":nohlsearch" file. When not included, it depends on whether ":nohlsearch"
has been used since the last search command. has been used since the last search command.
*viminfo-n*
n Name of the viminfo file. The name must immediately follow n Name of the viminfo file. The name must immediately follow
the 'n'. Must be the last one! If the "-i" argument was the 'n'. Must be the last one! If the "-i" argument was
given when starting Vim, that file name overrides the one given when starting Vim, that file name overrides the one
given here with 'viminfo'. Environment variables are expanded given here with 'viminfo'. Environment variables are expanded
when opening the file, not when setting the option. when opening the file, not when setting the option.
*viminfo-r*
r Removable media. The argument is a string (up to the next r Removable media. The argument is a string (up to the next
','). This parameter can be given several times. Each ','). This parameter can be given several times. Each
specifies the start of a path for which no marks will be specifies the start of a path for which no marks will be
@ -7635,6 +7689,7 @@ A jump table for the options with a short description can be found at |Q_op|.
also use it for temp files, e.g., for Unix: "r/tmp". Case is also use it for temp files, e.g., for Unix: "r/tmp". Case is
ignored. Maximum length of each 'r' argument is 50 ignored. Maximum length of each 'r' argument is 50
characters. characters.
*viminfo-s*
s Maximum size of an item in Kbyte. If zero then registers are s Maximum size of an item in Kbyte. If zero then registers are
not saved. Currently only applies to registers. The default not saved. Currently only applies to registers. The default
"s10" will exclude registers with more than 10 Kbyte of text. "s10" will exclude registers with more than 10 Kbyte of text.
@ -8090,8 +8145,13 @@ A jump table for the options with a short description can be found at |Q_op|.
{not in Vi} {not in Vi}
Make a backup before overwriting a file. The backup is removed after Make a backup before overwriting a file. The backup is removed after
the file was successfully written, unless the 'backup' option is the file was successfully written, unless the 'backup' option is
also on. Reset this option if your file system is almost full. See also on.
|backup-table| for another explanation. WARNING: Switching this option off means that when Vim fails to write
your buffer correctly and then, for whatever reason, Vim exits, you
lose both the original file and what you were writing. Only reset
this option if your file system is almost full and it makes the write
fail (and make sure not to exit Vim until the write was successful).
See |backup-table| for another explanation.
When the 'backupskip' pattern matches, a backup is not made anyway. When the 'backupskip' pattern matches, a backup is not made anyway.
NOTE: This option is set to the default value when 'compatible' is NOTE: This option is set to the default value when 'compatible' is
set. set.

View File

@ -1,4 +1,4 @@
*os_vms.txt* For Vim version 7.3. Last change: 2010 Aug 16 *os_vms.txt* For Vim version 7.3. Last change: 2011 Aug 14
VIM REFERENCE MANUAL VIM REFERENCE MANUAL
@ -38,9 +38,6 @@ You can download the Vim source code by ftp from the official Vim site:
Or use one of the mirrors: Or use one of the mirrors:
ftp://ftp.vim.org/pub/vim/MIRRORS ftp://ftp.vim.org/pub/vim/MIRRORS
You will need both the Unix and Extra archives to build vim.exe for VMS.
For using Vim's full power you will need the runtime files as well.
You can download precompiled executables from: You can download precompiled executables from:
http://www.polarhome.com/vim/ http://www.polarhome.com/vim/
ftp://ftp.polarhome.com/pub/vim/ ftp://ftp.polarhome.com/pub/vim/
@ -75,7 +72,7 @@ See the file [.SRC]INSTALLVMS.TXT.
4. Problems *vms-problems* 4. Problems *vms-problems*
The code has been tested under Open VMS 6.2 - 8.2 on Alpha, VAX and IA64 The code has been tested under Open VMS 6.2 - 8.2 on Alpha, VAX and IA64
platforms with the DEC C compiler. It should work without bigger problems. platforms with the DEC C compiler. It should work without big problems.
If your system does not have some include libraries you can tune up in If your system does not have some include libraries you can tune up in
OS_VMS_CONF.H file. OS_VMS_CONF.H file.
@ -88,11 +85,11 @@ Also GTK, XPM library paths should be configured in MAKE_VMS.MMS
Note: Under VAX it should work with the DEC C compiler without problems. The Note: Under VAX it should work with the DEC C compiler without problems. The
VAX C compiler is not fully ANSI C compatible in pre-processor directives VAX C compiler is not fully ANSI C compatible in pre-processor directives
semantics, therefore you have to use a converter program what will do the lion semantics, therefore you have to use a converter program that will do the lion
part of the job. For detailed instructions read file INSTALLvms.txt part of the job. For detailed instructions read file INSTALLvms.txt
MMS_VIM.EXE is build together with VIM.EXE, but for XD.EXE you should MMS_VIM.EXE is build together with VIM.EXE, but for XXD.EXE you should
change to subdirectory and build it separately. change to a subdirectory and build it separately.
CTAGS is not part of the Vim source distribution anymore, however the OpenVMS CTAGS is not part of the Vim source distribution anymore, however the OpenVMS
specific source might contain CTAGS source files as described above. specific source might contain CTAGS source files as described above.
@ -184,9 +181,9 @@ You may want to create .vimrc and .gvimrc files in your home directory
The easiest way is just rename example files. You may leave the menu file The easiest way is just rename example files. You may leave the menu file
(MENU.VIM) and files vimrc and gvimrc in the original $VIM directory. It will (MENU.VIM) and files vimrc and gvimrc in the original $VIM directory. It will
be default setup for all users, and for users it is enough just to have their be the default setup for all users, and for users it is enough to just have
own additions or resetting in their home directory in files .vimrc and .gvimrc. their own additions or resetting in their home directory in files .vimrc and
It should work without problems. .gvimrc. It should work without problems.
Note: Remember, system rc files (default for all users) don't have a leading Note: Remember, system rc files (default for all users) don't have a leading
".". So, system rc files are: > ".". So, system rc files are: >
@ -200,7 +197,7 @@ and user customized rc files are: >
sys$login:.vimrc sys$login:.vimrc
sys$login:.gvimrc sys$login:.gvimrc
You can check that everything is on the right place with the :version command. You can check that everything is at the right place with the :version command.
Example LOGIN.COM: > Example LOGIN.COM: >
@ -209,15 +206,15 @@ Example LOGIN.COM: >
$ gv*im:== spawn/nowait/input=NLA0 mcr VIM:VIM.EXE -g -GEOMETRY 80x40 $ gv*im:== spawn/nowait/input=NLA0 mcr VIM:VIM.EXE -g -GEOMETRY 80x40
$ set disp/create/node=192.168.5.223/trans=tcpip $ set disp/create/node=192.168.5.223/trans=tcpip
Note: This set-up should be enough, if you are working on standalone server or Note: This set-up should be enough, if you are working on a standalone server or
clustered environment, but if you want to use Vim as internode editor in clustered environment, but if you want to use Vim as an internode editor in
DECNET environment, it will satisfy as well. DECNET environment, it will satisfy as well.
You just have to define the "whole" path: > You just have to define the "whole" path: >
$ define VIM "<server_name>[""user password""]::device:<path>" $ define VIM "<server_name>[""user password""]::device:<path>"
$ vi*m :== "mcr VIM:VIM.EXE" $ vi*m :== "mcr VIM:VIM.EXE"
As for example: > For example: >
$ define VIM "PLUTO::RF10:[UTIL.VIM]" $ define VIM "PLUTO::RF10:[UTIL.VIM]"
$ define VIM "PLUTO""ZAY mypass""::RF10:[UTIL.VIM]" ! if passwd required $ define VIM "PLUTO""ZAY mypass""::RF10:[UTIL.VIM]" ! if passwd required
@ -305,7 +302,7 @@ For more information type $help set disp in VMS prompt.
built-in DEC support. built-in DEC support.
Please note, that executables without GUI are slightly faster during startup Please note, that executables without GUI are slightly faster during startup
then with enabled GUI in character mode. Therefore, if you do not use GUI than with enabled GUI in character mode. Therefore, if you do not use GUI
features, it is worth to choose non GUI executables. features, it is worth to choose non GUI executables.
============================================================================== ==============================================================================
@ -360,7 +357,7 @@ number, try these settings. >
:set nowritebackup " does not have any purpose on VMS. It's the :set nowritebackup " does not have any purpose on VMS. It's the
" default. " default.
Recovery is working perfect as well from the default swap file. Recovery is working perfectly as well from the default swap file.
Read more with :help swapfile Read more with :help swapfile
(Claude Marinier <ClaudeMarinier@xwavesolutions.com> Vim 5.5, Zoltan Arpadffy (Claude Marinier <ClaudeMarinier@xwavesolutions.com> Vim 5.5, Zoltan Arpadffy
@ -445,14 +442,14 @@ Terminal entry not found in termcap
builtin_dumb builtin_dumb
defaulting to 'vt320' defaulting to 'vt320'
--- ---
The solution is to define default terminal name: > The solution is to define the default terminal name: >
$ ! unknown terminal name. Let us use vt320 or ansi instead. $ ! unknown terminal name. Let us use vt320 or ansi instead.
$ ! Note: it's case sensitive $ ! Note: it's case sensitive
$ define term "vt320" $ define term "vt320"
Terminals from VT100 to VT320 (as V300, VT220, VT200) do not need any extra Terminals from VT100 to VT320 (as V300, VT220, VT200) do not need any extra
keyboard mappings. They should work perfect as they are, including arrows, keyboard mappings. They should work perfectly as they are, including arrows,
Ins, Del buttons etc., except Backspace in GUI mode. To solve it, add to Ins, Del buttons etc., except Backspace in GUI mode. To solve it, add to
.gvimrc: > .gvimrc: >
@ -465,8 +462,8 @@ your .vimrc file: >
set ttyfast " set fast terminal set ttyfast " set fast terminal
Note: if you're using Vim on remote host or through very slow connection, it's Note: if you're using Vim on remote host or through a very slow connection, it's
recommended to avoid fast terminal option with: > recommended to avoid the fast terminal option with: >
set nottyfast " set terminal to slow mode set nottyfast " set terminal to slow mode
@ -483,8 +480,8 @@ special commands to execute executables: >
OpenVMS users always have to be aware that the Vim command :! "just" drop them OpenVMS users always have to be aware that the Vim command :! "just" drop them
to DCL prompt. This feature is possible to use without any problem with all to DCL prompt. This feature is possible to use without any problem with all
DCL commands, but if we want to execute some program as XXD, CTAGS, JTAGS etc. DCL commands, but if we want to execute some programs such as XXD, CTAGS, JTAGS,
we're running into trouble if we follow the Vim documentation (see: help etc. we're running into trouble if we follow the Vim documentation (see: help
xxd). xxd).
Solution: Execute with the MC command and add the full path to the executable. Solution: Execute with the MC command and add the full path to the executable.
@ -534,7 +531,7 @@ Example: >
$define SYS$PRINT HP5ANSI $define SYS$PRINT HP5ANSI
You can print out whole buffer or just the marked area. You can print out the whole buffer or just the marked area.
More info under :help hardcopy More info under :help hardcopy
(Zoltan Arpadffy, Vim 6.0c) (Zoltan Arpadffy, Vim 6.0c)
@ -561,15 +558,15 @@ will be confused after a window-resize.
From 6.0 diff functionality has been implemented, but OpenVMS does not use From 6.0 diff functionality has been implemented, but OpenVMS does not use
GNU/Unix like diff therefore built in diff does not work. GNU/Unix like diff therefore built in diff does not work.
There is a simple solution to solve this anomaly. Install a Unix like diff There is a simple solution to solve this anomaly. Install a Unix like diff
and Vim will work perfect in diff mode too. You just have to redefine your and Vim will work perfectly in diff mode too. You just have to redefine your
diff program as: > diff program as: >
define /nolog diff <GNU_PATH>diff.exe define /nolog diff <GNU_PATH>diff.exe
Another, more sophisticated solution is described below (8.12 diff-mode) Another, more sophisticated solution is described below (8.12 diff-mode)
There are some other programs as patch, make etc that may cause same problems. There are other programs such as patch, make etc that may cause the same
At www.polarhome.com is possible to download an GNU package for Alpha and VAX problems. At www.polarhome.com is possible to download an GNU package for
boxes that is meant to solve GNU problems on OpenVMS. Alpha and VAX boxes that is meant to solve GNU problems on OpenVMS.
(Zoltan Arpadffy, Vim 6.1) (Zoltan Arpadffy, Vim 6.1)
@ -657,20 +654,21 @@ C keywords since ctags version 5.1.)
8.14 VIMTUTOR for beginners 8.14 VIMTUTOR for beginners
It exits VIMTUTOR.COM DCL script that can help Vim beginners to learn/make The VIMTUTOR.COM DCL script can help Vim beginners to learn/make their first
first steps with Vim on OpenVMS. Depending of binary distribution you may steps with Vim on OpenVMS. Depending of binary distribution you may start it
start it with: > with: >
@vim:vimtutor @vim:vimtutor
(Thomas.R.Wyant III, Vim 6.1) (Thomas.R.Wyant III, Vim 6.1)
8.14 Slow start in console mode issue 8.16 Slow start in console mode issue
As GUI/GTK Vim works equally well in console mode, many administrators As GUI/GTK Vim works equally well in console mode, many administrators
deploy those executables system wide. deploy those executables system wide.
Unfortunately, on a remote slow connections GUI/GTK executables behave rather Unfortunately, on a remote slow connections GUI/GTK executables behave rather
slow when user wants to run Vim just in the console mode - because of X environment detection timeout. slow when user wants to run Vim just in the console mode - because of X
environment detection timeout.
Luckily, there is a simple solution for that. Administrators need to deploy Luckily, there is a simple solution for that. Administrators need to deploy
both GUI/GTK build and just console build executables, like below: > both GUI/GTK build and just console build executables, like below: >
@ -715,7 +713,7 @@ View of Cluster from system ID 11655 node: TOR
It is convenient to have a common VIM directory but execute different It is convenient to have a common VIM directory but execute different
executables. executables.
There are more solutions for this problem: There are several solutions for this problem:
Solution 1. All executables in the same directory with different names Solution 1. All executables in the same directory with different names
This is easily done with the following script that can be added This is easily done with the following script that can be added
@ -769,7 +767,7 @@ GNU_TOOLS.ZIP package downloadable from http://www.polarhome.com/vim/
Version 7.3 Version 7.3
- CTAGS 5.8 included - CTAGS 5.8 included
- VMS compile warnings fixed - floating-point overflow warning corrected on VAX - VMS compile warnings fixed - floating-point overflow warning corrected on VAX
- filepath completition corrected - too many chars were escaped in filename - filepath completion corrected - too many chars were escaped in filename
and shell commands and shell commands
- the following plugins are included into VMS runtime: - the following plugins are included into VMS runtime:
genutils 2.4, multiselect 2.2, multvals 3.1, selectbuf 4.3, genutils 2.4, multiselect 2.2, multvals 3.1, selectbuf 4.3,

View File

@ -1,4 +1,4 @@
*os_win32.txt* For Vim version 7.3. Last change: 2011 May 28 *os_win32.txt* For Vim version 7.3. Last change: 2012 May 18
VIM REFERENCE MANUAL by George Reilly VIM REFERENCE MANUAL by George Reilly
@ -314,13 +314,13 @@ A. When using :! to run an external command, you can run it with "start": >
not have to be closed before Vim. not have to be closed before Vim.
To avoid this special treatment, use ":! start". To avoid this special treatment, use ":! start".
There are two optional arguments (see the next Q): There are two optional arguments (see the next Q):
/min the window will be minimized. /min the window will be minimized
/b" no console window will be opened /b no console window will be opened
You can only one of these flags at a time. A second second one will be You can use only one of these flags at a time. A second one will be
treated as the start of the command. treated as the start of the command.
Q. How do I avoid getting a window for programs that I run asynchronously? Q. How do I avoid getting a window for programs that I run asynchronously?
A. You have two possible solutions depending on what exactly do you want: A. You have two possible solutions depending on what you want:
1) You may use the /min flag in order to run program in a minimized state 1) You may use the /min flag in order to run program in a minimized state
with no other changes. It will work equally for console and GUI with no other changes. It will work equally for console and GUI
applications. applications.
@ -328,7 +328,7 @@ A. You have two possible solutions depending on what exactly do you want:
console window for them (GUI applications are not affected). But you console window for them (GUI applications are not affected). But you
should use this flag only if the application you run doesn't require any should use this flag only if the application you run doesn't require any
input. Otherwise it will get an EOF error because its input stream input. Otherwise it will get an EOF error because its input stream
(stdin) would be redirected to \\.\NUL (stdoud and stderr too). (stdin) would be redirected to \\.\NUL (stdout and stderr too).
Example for a console application, run Exuberant ctags: > Example for a console application, run Exuberant ctags: >
:!start /min ctags -R . :!start /min ctags -R .

View File

@ -1,4 +1,4 @@
*pattern.txt* For Vim version 7.3. Last change: 2011 May 25 *pattern.txt* For Vim version 7.3. Last change: 2012 May 18
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -21,7 +21,7 @@ explanations are in chapter 27 |usr_27.txt|.
10. Highlighting matches |match-highlight| 10. Highlighting matches |match-highlight|
============================================================================== ==============================================================================
1. Search commands *search-commands* *E486* 1. Search commands *search-commands*
*/* */*
/{pattern}[/]<CR> Search forward for the [count]'th occurrence of /{pattern}[/]<CR> Search forward for the [count]'th occurrence of
@ -150,6 +150,11 @@ use <Esc> to abandon the search.
All matches for the last used search pattern will be highlighted if you set All matches for the last used search pattern will be highlighted if you set
the 'hlsearch' option. This can be suspended with the |:nohlsearch| command. the 'hlsearch' option. This can be suspended with the |:nohlsearch| command.
When no match is found you get the error: *E486* Pattern not found
Note that for the |:global| command this behaves like a normal message, for Vi
compatibility. For the |:s| command the "e" flag can be used to avoid the
error message |:s_flags|.
*search-offset* *{offset}* *search-offset* *{offset}*
These commands search for the specified pattern. With "/" and "?" an These commands search for the specified pattern. With "/" and "?" an
additional offset may be given. There are two types of offsets: line offsets additional offset may be given. There are two types of offsets: line offsets
@ -632,10 +637,10 @@ overview.
*/\@!* */\@!*
\@! Matches with zero width if the preceding atom does NOT match at the \@! Matches with zero width if the preceding atom does NOT match at the
current position. |/zero-width| {not in Vi} current position. |/zero-width| {not in Vi}
Like '(?!pattern)" in Perl. Like "(?!pattern)" in Perl.
Example matches ~ Example matches ~
foo\(bar\)\@! any "foo" not followed by "bar" foo\(bar\)\@! any "foo" not followed by "bar"
a.\{-}p\@! "a", "ap", "aap", "app", etc. not immediately a.\{-}p\@! "a", "ap", "app", "appp", etc. not immediately
followed by a "p" followed by a "p"
if \(\(then\)\@!.\)*$ "if " not followed by "then" if \(\(then\)\@!.\)*$ "if " not followed by "then"
@ -643,7 +648,7 @@ overview.
does not match. "a.*p\@!" will match from an "a" to the end of the does not match. "a.*p\@!" will match from an "a" to the end of the
line, because ".*" can match all characters in the line and the "p" line, because ".*" can match all characters in the line and the "p"
doesn't match at the end of the line. "a.\{-}p\@!" will match any doesn't match at the end of the line. "a.\{-}p\@!" will match any
"a", "ap", "aap", etc. that isn't followed by a "p", because the "." "a", "ap", "app", etc. that isn't followed by a "p", because the "."
can match a "p" and "p\@!" doesn't match after that. can match a "p" and "p\@!" doesn't match after that.
You can't use "\@!" to look for a non-match before the matching You can't use "\@!" to look for a non-match before the matching
@ -662,7 +667,7 @@ overview.
*/\@<=* */\@<=*
\@<= Matches with zero width if the preceding atom matches just before what \@<= Matches with zero width if the preceding atom matches just before what
follows. |/zero-width| {not in Vi} follows. |/zero-width| {not in Vi}
Like '(?<=pattern)" in Perl, but Vim allows non-fixed-width patterns. Like "(?<=pattern)" in Perl, but Vim allows non-fixed-width patterns.
Example matches ~ Example matches ~
\(an\_s\+\)\@<=file "file" after "an" and white space or an \(an\_s\+\)\@<=file "file" after "an" and white space or an
end-of-line end-of-line
@ -686,7 +691,7 @@ overview.
before what follows. Thus this matches if there is no position in the before what follows. Thus this matches if there is no position in the
current or previous line where the atom matches such that it ends just current or previous line where the atom matches such that it ends just
before what follows. |/zero-width| {not in Vi} before what follows. |/zero-width| {not in Vi}
Like '(?<!pattern)" in Perl, but Vim allows non-fixed-width patterns. Like "(?<!pattern)" in Perl, but Vim allows non-fixed-width patterns.
The match with the preceding atom is made to end just before the match The match with the preceding atom is made to end just before the match
with what follows, thus an atom that ends in ".*" will work. with what follows, thus an atom that ends in ".*" will work.
Warning: This can be slow (because many positions need to be checked Warning: This can be slow (because many positions need to be checked
@ -932,7 +937,7 @@ match ASCII characters, as indicated by the range.
\l lowercase character: [a-z] */\l* \l lowercase character: [a-z] */\l*
\L non-lowercase character: [^a-z] */\L* \L non-lowercase character: [^a-z] */\L*
\u uppercase character: [A-Z] */\u* \u uppercase character: [A-Z] */\u*
\U non-uppercase character [^A-Z] */\U* \U non-uppercase character: [^A-Z] */\U*
NOTE: Using the atom is faster than the [] form. NOTE: Using the atom is faster than the [] form.

View File

@ -1,15 +1,21 @@
*pi_getscript.txt* For Vim version 7.0. Last change: 2011 May 31 *pi_getscript.txt* For Vim version 7.0. Last change: 2011 Jun 23
> >
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell, Jr. GETSCRIPT REFERENCE MANUAL by Charles E. Campbell, Jr.
< <
Authors: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamilyA.Mbiz> Authors: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamilyA.Mbiz>
(remove NOSPAM from the email address) (remove NOSPAM from the email address)
*GetLatestVimScripts-copyright* *GetLatestVimScripts-copyright*
Copyright: (c) 2004-2010 by Charles E. Campbell, Jr. *glvs-copyright* Copyright: (c) 2004-2012 by Charles E. Campbell, Jr. *glvs-copyright*
The VIM LICENSE applies to getscript.vim and The VIM LICENSE (see |copyright|) applies to the files in this
pi_getscript.txt (see |copyright|) except use package, including getscriptPlugin.vim, getscript.vim,
"getscript" instead of "Vim". No warranty, express or implied. GetLatestVimScripts.dist, and pi_getscript.txt, except use "getscript"
Use At-Your-Own-Risk. instead of "VIM". Like anything else that's free, getscript and its
associated files are provided *as is* and comes with no warranty of
any kind, either expressed or implied. No guarantees of
merchantability. No guarantees of suitability for any purpose. By
using this plugin, you agree that in no event will the copyright
holder be liable for any damages resulting from the use of this
software. Use at your own risk!
Getscript is a plugin that simplifies retrieval of the latest versions of the Getscript is a plugin that simplifies retrieval of the latest versions of the
scripts that you yourself use! Typing |:GLVS| will invoke getscript; it will scripts that you yourself use! Typing |:GLVS| will invoke getscript; it will
@ -374,6 +380,8 @@ The AutoInstall process will:
============================================================================== ==============================================================================
9. GetLatestVimScripts History *getscript-history* *glvs-hist* {{{1 9. GetLatestVimScripts History *getscript-history* *glvs-hist* {{{1
v44 Jun 23, 2011 : * handles additional decompression options for tarballs
(tgz taz tbz txz)
v33 May 31, 2011 : * using fnameescape() instead of escape() v33 May 31, 2011 : * using fnameescape() instead of escape()
* *.xz support * *.xz support
v32 Jun 19, 2010 : * (Jan Steffens) added support for xz compression v32 Jun 19, 2010 : * (Jan Steffens) added support for xz compression

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
*pi_tar.txt* For Vim version 7.3. Last change: 2011 May 31 *pi_tar.txt* For Vim version 7.3. Last change: 2012 Jan 17
+====================+ +====================+
| Tar File Interface | | Tar File Interface |
@ -6,9 +6,16 @@
Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
(remove NOSPAM from Campbell's email first) (remove NOSPAM from Campbell's email first)
Copyright 2005-2010: The GPL (gnu public license) applies to *tar-copyright* Copyright 2005-2012: *tar-copyright*
tar.vim, tarPlugin.vim, and pi_tar.txt. The VIM LICENSE (see |copyright|) applies to the files in this
No warranty, express or implied. Use At-Your-Own-Risk. package, including tarPlugin.vim, tar.vim, and pi_tar.txt. Like
anything else that's except use "tar.vim" instead of "VIM". Like
anything else that's free, tar.vim and its associated files are
provided *as is* and comes with no warranty of any kind, either
expressed or implied. No guarantees of merchantability. No
guarantees of suitability for any purpose. By using this plugin, you
agree that in no event will the copyright holder be liable for any
damages resulting from the use of this software. Use at your own risk!
============================================================================== ==============================================================================
1. Contents *tar* *tar-contents* 1. Contents *tar* *tar-contents*
@ -83,6 +90,7 @@ Copyright 2005-2010: The GPL (gnu public license) applies to *tar-copyright*
4. History *tar-history* 4. History *tar-history*
v28 Jun 23, 2011 * a few more decompression options (tbz tb2 txz)
v27 May 31, 2011 * moved cygwin detection before g:tar_copycmd handling v27 May 31, 2011 * moved cygwin detection before g:tar_copycmd handling
* inserted additional |:keepj| modifiers * inserted additional |:keepj| modifiers
* changed silent to sil! (|:silent|) * changed silent to sil! (|:silent|)

View File

@ -1,4 +1,4 @@
*pi_vimball.txt* For Vim version 7.3. Last change: 2011 Apr 02 *pi_vimball.txt* For Vim version 7.3. Last change: 2012 Jan 17
---------------- ----------------
Vimball Archiver Vimball Archiver
@ -6,16 +6,22 @@
Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
(remove NOSPAM from Campbell's email first) (remove NOSPAM from Campbell's email first)
Copyright: (c) 2004-2011 by Charles E. Campbell, Jr. *Vimball-copyright* Copyright: (c) 2004-2012 by Charles E. Campbell, Jr. *Vimball-copyright*
The VIM LICENSE applies to Vimball.vim, and Vimball.txt The VIM LICENSE (see |copyright|) applies to the files in this
(see |copyright|) except use "Vimball" instead of "Vim". package, including vimballPlugin.vim, vimball.vim, and pi_vimball.txt.
No warranty, express or implied. except use "vimball" instead of "VIM". Like anything else that's free,
Use At-Your-Own-Risk! vimball.vim and its associated files are provided *as is* and comes with
no warranty of any kind, either expressed or implied. No guarantees
of merchantability. No guarantees of suitability for any purpose. By
using this plugin, you agree that in no event will the copyright
holder be liable for any damages resulting from the use of this
software. Use at your own risk!
============================================================================== ==============================================================================
1. Contents *vba* *vimball* *vimball-contents* 1. Contents *vba* *vimball* *vimball-contents*
1. Contents......................................: |vimball-contents| 1. Contents......................................: |vimball-contents|
2. Vimball Introduction..........................: |vimball-intro|
3. Vimball Manual................................: |vimball-manual| 3. Vimball Manual................................: |vimball-manual|
MkVimball.....................................: |:MkVimball| MkVimball.....................................: |:MkVimball|
UseVimball....................................: |:UseVimball| UseVimball....................................: |:UseVimball|
@ -176,6 +182,8 @@ WINDOWS *vimball-windows*
============================================================================== ==============================================================================
4. Vimball History *vimball-history* {{{1 4. Vimball History *vimball-history* {{{1
34 : Sep 22, 2011 * "UseVimball path" now supports a non-full path by
prepending the current directory to it.
33 : Apr 02, 2011 * Gave priority to *.vmb over *.vba 33 : Apr 02, 2011 * Gave priority to *.vmb over *.vba
* Changed silent! to sil! (shorter) * Changed silent! to sil! (shorter)
* Safed |'swf'| setting (during vimball extraction, * Safed |'swf'| setting (during vimball extraction,

View File

@ -1,4 +1,4 @@
*pi_zip.txt* For Vim version 7.3. Last change: 2011 May 24 *pi_zip.txt* For Vim version 7.3. Last change: 2012 Jan 17
+====================+ +====================+
| Zip File Interface | | Zip File Interface |
@ -7,14 +7,15 @@
Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
(remove NOSPAM from Campbell's email first) (remove NOSPAM from Campbell's email first)
Copyright: Copyright (C) 2005-2011 Charles E Campbell, Jr *zip-copyright* Copyright: Copyright (C) 2005-2011 Charles E Campbell, Jr *zip-copyright*
Permission is hereby granted to use and distribute this code, The VIM LICENSE (see |copyright|) applies to the files in this
with or without modifications, provided that this copyright package, including zipPlugin.vim, zip.vim, and pi_zip.vim. except use
notice is copied with it. Like anything else that's free, "zip.vim" instead of "VIM". Like anything else that's free, zip.vim
zip.vim, zipPlugin.vim, and pi_zip.txt are provided *as is* and its associated files are provided *as is* and comes with no
and it comes with no warranty of any kind, either expressed or warranty of any kind, either expressed or implied. No guarantees of
implied. By using this plugin, you agree that in no event will merchantability. No guarantees of suitability for any purpose. By
the copyright holder be liable for any damages resulting from using this plugin, you agree that in no event will the copyright
the use of this software. holder be liable for any damages resulting from the use of this
software. Use at your own risk!
============================================================================== ==============================================================================
1. Contents *zip* *zip-contents* 1. Contents *zip* *zip-contents*
@ -69,12 +70,11 @@ Copyright: Copyright (C) 2005-2011 Charles E Campbell, Jr *zip-copyright*
let g:loaded_zipPlugin= 1 let g:loaded_zipPlugin= 1
let g:loaded_zip = 1 let g:loaded_zip = 1
< <
<
============================================================================== ==============================================================================
3. Additional Extensions *zip-extension* 3. Additional Extensions *zip-extension*
Apparently there are a number of archivers who generate zip files that Apparently there are a number of archivers which generate zip files that
don't use the .zip extension (.jar, .xpi, etc). To handle such files, don't use the .zip extension (.jar, .xpi, etc). To handle such files,
place a line in your <.vimrc> file: > place a line in your <.vimrc> file: >
@ -85,6 +85,8 @@ Copyright: Copyright (C) 2005-2011 Charles E Campbell, Jr *zip-copyright*
============================================================================== ==============================================================================
4. History *zip-history* {{{1 4. History *zip-history* {{{1
v25 Jun 27, 2011 * using keepj with unzip -Z
(consistent with the -p variant)
v24 Jun 21, 2010 * (Cédric Bosdonnat) unzip seems to need its filenames v24 Jun 21, 2010 * (Cédric Bosdonnat) unzip seems to need its filenames
fnameescape'd as well as shellquote'd fnameescape'd as well as shellquote'd
* (Motoya Kurotsu) inserted keepj before 0d to protect * (Motoya Kurotsu) inserted keepj before 0d to protect

View File

@ -913,8 +913,8 @@ Basic items
%n error number (finds a number) %n error number (finds a number)
%m error message (finds a string) %m error message (finds a string)
%r matches the "rest" of a single-line file message %O/P/Q %r matches the "rest" of a single-line file message %O/P/Q
%p pointer line (finds a sequence of '-', '.' or ' ' and %p pointer line (finds a sequence of '-', '.', ' ' or
uses the length for the column number) tabs and uses the length for the column number)
%*{conv} any scanf non-assignable conversion %*{conv} any scanf non-assignable conversion
%% the single '%' character %% the single '%' character
%s search text (finds a string) %s search text (finds a string)

View File

@ -1,4 +1,4 @@
*quickref.txt* For Vim version 7.3. Last change: 2011 Jun 12 *quickref.txt* For Vim version 7.3. Last change: 2012 Feb 22
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -851,6 +851,7 @@ Short explanation of each option: *option-list*
'shellslash' 'ssl' use forward slash for shell file names 'shellslash' 'ssl' use forward slash for shell file names
'shelltemp' 'stmp' whether to use a temp file for shell commands 'shelltemp' 'stmp' whether to use a temp file for shell commands
'shelltype' 'st' Amiga: influences how to use a shell 'shelltype' 'st' Amiga: influences how to use a shell
'shellxescape' 'sxe' characters to escape when 'shellxquote' is (
'shellxquote' 'sxq' like 'shellquote', but include redirection 'shellxquote' 'sxq' like 'shellquote', but include redirection
'shiftround' 'sr' round indent to multiple of shiftwidth 'shiftround' 'sr' round indent to multiple of shiftwidth
'shiftwidth' 'sw' number of spaces to use for (auto)indent step 'shiftwidth' 'sw' number of spaces to use for (auto)indent step

View File

@ -1,4 +1,4 @@
*repeat.txt* For Vim version 7.3. Last change: 2011 Jan 06 *repeat.txt* For Vim version 7.3. Last change: 2012 Mar 23
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -109,7 +109,7 @@ q Stops recording. (Implementation note: The 'q' that
it was the result of a mapping) {Vi: no recording} it was the result of a mapping) {Vi: no recording}
*@* *@*
@{0-9a-z".=*} Execute the contents of register {0-9a-z".=*} [count] @{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} [count]
times. Note that register '%' (name of the current times. Note that register '%' (name of the current
file) and '#' (name of the alternate file) cannot be file) and '#' (name of the alternate file) cannot be
used. used.
@ -123,8 +123,8 @@ q Stops recording. (Implementation note: The 'q' that
*@@* *E748* *@@* *E748*
@@ Repeat the previous @{0-9a-z":*} [count] times. @@ Repeat the previous @{0-9a-z":*} [count] times.
:[addr]*{0-9a-z".=} *:@* *:star* :[addr]*{0-9a-z".=+} *:@* *:star*
:[addr]@{0-9a-z".=*} Execute the contents of register {0-9a-z".=*} as an Ex :[addr]@{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} as an Ex
command. First set cursor at line [addr] (default is command. First set cursor at line [addr] (default is
current line). When the last line in the register does current line). When the last line in the register does
not have a <CR> it will be added automatically when not have a <CR> it will be added automatically when

View File

@ -1,4 +1,4 @@
*sign.txt* For Vim version 7.3. Last change: 2010 Oct 14 *sign.txt* For Vim version 7.3. Last change: 2012 Jan 04
VIM REFERENCE MANUAL by Gordon Prieur VIM REFERENCE MANUAL by Gordon Prieur
@ -76,7 +76,7 @@ DEFINING A SIGN. *:sign-define* *E255* *E160* *E612*
Accepted arguments: Accepted arguments:
icon={pixmap} icon={bitmap}
Define the file name where the bitmap can be found. Should be Define the file name where the bitmap can be found. Should be
a full path. The bitmap should fit in the place of two a full path. The bitmap should fit in the place of two
characters. This is not checked. If the bitmap is too big it characters. This is not checked. If the bitmap is too big it
@ -86,6 +86,8 @@ DEFINING A SIGN. *:sign-define* *E255* *E160* *E612*
GTK 1 pixmap (.xpm) GTK 1 pixmap (.xpm)
GTK 2 many GTK 2 many
Motif pixmap (.xpm) Motif pixmap (.xpm)
Win32 .bmp, .ico, .cur
pixmap (.xpm) |+xpm_w32|
linehl={group} linehl={group}
Highlighting group used for the whole line the sign is placed Highlighting group used for the whole line the sign is placed

View File

@ -1,4 +1,4 @@
*starting.txt* For Vim version 7.3. Last change: 2010 Sep 18 *starting.txt* For Vim version 7.3. Last change: 2012 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -248,7 +248,8 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
{not in Vi} {not in Vi}
*-g* *-g*
-g Start Vim in GUI mode. See |gui|. {not in Vi} -g Start Vim in GUI mode. See |gui|. For the opposite see |-v|.
{not in Vi}
*-v* *-v*
-v Start Ex in Vi mode. Only makes a difference when the -v Start Ex in Vi mode. Only makes a difference when the
@ -424,12 +425,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
"-d con:30/10/600/150". But you can also use it to start "-d con:30/10/600/150". But you can also use it to start
editing on another device, e.g., AUX:. {not in Vi} editing on another device, e.g., AUX:. {not in Vi}
*-f* *-f*
-f Amiga: Do not restart Vim to open a new window. This -f GUI: Do not disconnect from the program that started Vim.
option should be used when Vim is started by a program that
will wait for the edit session to finish (e.g., mail or
readnews). See |amiga-window|.
GUI: Do not disconnect from the program that started Vim.
'f' stands for "foreground". If omitted, the GUI forks a new 'f' stands for "foreground". If omitted, the GUI forks a new
process and exits the current one. "-f" should be used when process and exits the current one. "-f" should be used when
gvim is started by a program that will wait for the edit gvim is started by a program that will wait for the edit
@ -437,8 +433,14 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
never to fork, include 'f' in 'guioptions' in your |gvimrc|. never to fork, include 'f' in 'guioptions' in your |gvimrc|.
Careful: You can use "-gf" to start the GUI in the foreground, Careful: You can use "-gf" to start the GUI in the foreground,
but "-fg" is used to specify the foreground color. |gui-fork| but "-fg" is used to specify the foreground color. |gui-fork|
Amiga: Do not restart Vim to open a new window. This
option should be used when Vim is started by a program that
will wait for the edit session to finish (e.g., mail or
readnews). See |amiga-window|.
{not in Vi} {not in Vi}
*--nofork* *--nofork*
--nofork GUI: Do not fork. Same as |-f|. --nofork GUI: Do not fork. Same as |-f|.
*-u* *E282* *-u* *E282*

View File

@ -1,4 +1,4 @@
*syntax.txt* For Vim version 7.3. Last change: 2011 Jul 18 *syntax.txt* For Vim version 7.3. Last change: 2012 Apr 06
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -199,7 +199,8 @@ REPLACING AN EXISTING SYNTAX FILE *mysyntaxfile-replace*
If you don't like a distributed syntax file, or you have downloaded a new If you don't like a distributed syntax file, or you have downloaded a new
version, follow the same steps as for |mysyntaxfile| above. Just make sure version, follow the same steps as for |mysyntaxfile| above. Just make sure
that you write the syntax file in a directory that is early in 'runtimepath'. that you write the syntax file in a directory that is early in 'runtimepath'.
Vim will only load the first syntax file found. Vim will only load the first syntax file found, assuming that it sets
b:current_syntax.
NAMING CONVENTIONS *group-name* *{group-name}* *E669* *W18* NAMING CONVENTIONS *group-name* *{group-name}* *E669* *W18*
@ -754,10 +755,12 @@ c_no_ansi don't do standard ANSI types and constants
c_ansi_typedefs ... but do standard ANSI types c_ansi_typedefs ... but do standard ANSI types
c_ansi_constants ... but do standard ANSI constants c_ansi_constants ... but do standard ANSI constants
c_no_utf don't highlight \u and \U in strings c_no_utf don't highlight \u and \U in strings
c_syntax_for_h use C syntax for *.h files, instead of C++ c_syntax_for_h for *.h files use C syntax instead of C++ and use objc
syntax instead of objcpp
c_no_if0 don't highlight "#if 0" blocks as comments c_no_if0 don't highlight "#if 0" blocks as comments
c_no_cformat don't highlight %-formats in strings c_no_cformat don't highlight %-formats in strings
c_no_c99 don't highlight C99 standard items c_no_c99 don't highlight C99 standard items
c_no_c11 don't highlight C11 standard items
When 'foldmethod' is set to "syntax" then /* */ comments and { } blocks will When 'foldmethod' is set to "syntax" then /* */ comments and { } blocks will
become a fold. If you don't want comments to become a fold use: > become a fold. If you don't want comments to become a fold use: >
@ -985,9 +988,9 @@ Example: >
or > or >
// vim:syntax=c.doxygen // vim:syntax=c.doxygen
It can also be done automatically for C, C++, C# and IDL files by setting the It can also be done automatically for C, C++, C#, IDL and PHP files by setting
global or buffer-local variable load_doxygen_syntax. This is done by adding the global or buffer-local variable load_doxygen_syntax. This is done by
the following to your .vimrc. > adding the following to your .vimrc. >
:let g:load_doxygen_syntax=1 :let g:load_doxygen_syntax=1
There are a couple of variables that have an effect on syntax highlighting, and There are a couple of variables that have an effect on syntax highlighting, and
@ -1155,14 +1158,12 @@ conditionals are LightBlue for better distinction.
FORTRAN *fortran.vim* *ft-fortran-syntax* FORTRAN *fortran.vim* *ft-fortran-syntax*
Default highlighting and dialect ~ Default highlighting and dialect ~
Highlighting appropriate for f95 (Fortran 95) is used by default. This choice Highlighting appropriate for Fortran 2008 is used by default. This choice
should be appropriate for most users most of the time because Fortran 95 is a should be appropriate for most users most of the time because Fortran 2008 is
superset of Fortran 90 and almost a superset of Fortran 77. Support for almost a superset of previous versions (Fortran 2003, 95, 90, and 77).
Fortran 2003 and Fortran 2008 features has been introduced and is
automatically available in the default (f95) highlighting.
Fortran source code form ~ Fortran source code form ~
Fortran 9x code can be in either fixed or free source form. Note that the Fortran code can be in either fixed or free source form. Note that the
syntax highlighting will not be correct if the form is incorrectly set. syntax highlighting will not be correct if the form is incorrectly set.
When you create a new fortran file, the syntax script assumes fixed source When you create a new fortran file, the syntax script assumes fixed source
@ -1243,52 +1244,54 @@ recognized, as will construct names at the end of a do, if, select or forall
construct. construct.
Non-default fortran dialects ~ Non-default fortran dialects ~
The syntax script supports five Fortran dialects: f95, f90, f77, the Lahey The syntax script supports two Fortran dialects: f08 and F. You will probably
subset elf90, and the Imagine1 subset F. find the default highlighting (f08) satisfactory. A few legacy constructs
deleted or declared obsolescent in the 2008 standard are highlighted as todo
items.
If you use f77 with extensions, even common ones like do/enddo loops, do/while If you use F, the advantage of setting the dialect appropriately is that
loops and free source form that are supported by most f77 compilers including other legacy features excluded from F will be highlighted as todo items and
g77 (GNU Fortran), then you will probably find the default highlighting that free source form will be assumed.
satisfactory. However, if you use strict f77 with no extensions, not even free
source form or the MIL STD 1753 extensions, then the advantages of setting the
dialect to f77 are that names such as SUM are recognized as user variable
names and not highlighted as f9x intrinsic functions, that obsolete constructs
such as ASSIGN statements are not highlighted as todo items, and that fixed
source form will be assumed.
If you use elf90 or F, the advantage of setting the dialect appropriately is The dialect can be selected in various ways. If all your fortran files use
that f90 features excluded from these dialects will be highlighted as todo the same dialect, set the global variable fortran_dialect in your .vimrc prior
items and that free source form will be assumed as required for these to your syntax on statement. The case-sensitive, permissible values of
dialects. fortran_dialect are "f08" or "F". Invalid values of fortran_dialect are
ignored.
The dialect can be selected by setting the variable fortran_dialect. The If the dialect depends upon the file extension, then it is most convenient to
permissible values of fortran_dialect are case-sensitive and must be "f95", set a buffer-local variable in a ftplugin file. For more information on
"f90", "f77", "elf" or "F". Invalid values of fortran_dialect are ignored. ftplugin files, see |ftplugin|. For example, if all your fortran files with
an .f90 extension are written in the F subset, your ftplugin file should
If all your fortran files use the same dialect, set fortran_dialect in your contain the code >
.vimrc prior to your syntax on statement. If the dialect depends upon the file
extension, then it is most convenient to set it in a ftplugin file. For more
information on ftplugin files, see |ftplugin|. For example, if all your
fortran files with an .f90 extension are written in the elf subset, your
ftplugin file should contain the code >
let s:extfname = expand("%:e") let s:extfname = expand("%:e")
if s:extfname ==? "f90" if s:extfname ==? "f90"
let fortran_dialect="elf" let b:fortran_dialect="F"
else else
unlet! fortran_dialect unlet! b:fortran_dialect
endif endif
Note that this will work only if the "filetype plugin indent on" command Note that this will work only if the "filetype plugin indent on" command
precedes the "syntax on" command in your .vimrc file. precedes the "syntax on" command in your .vimrc file.
Finer control is necessary if the file extension does not uniquely identify Finer control is necessary if the file extension does not uniquely identify
the dialect. You can override the default dialect, on a file-by-file basis, by the dialect. You can override the default dialect, on a file-by-file basis,
including a comment with the directive "fortran_dialect=xx" (where xx=f77 or by including a comment with the directive "fortran_dialect=xx" (where xx=F or
elf or F or f90 or f95) in one of the first three lines in your file. For f08) in one of the first three lines in your file. For example, your older .f
example, your older .f files may be written in extended f77 but your newer files may be legacy code but your newer ones may be F codes, and you would
ones may be F codes, and you would identify the latter by including in the identify the latter by including in the first three lines of those files a
first three lines of those files a Fortran comment of the form > Fortran comment of the form >
! fortran_dialect=F ! fortran_dialect=F
F overrides elf if both directives are present.
For previous versions of the syntax, you may have set fortran_dialect to the
now-obsolete values "f77", "f90", "f95", or "elf". Such settings will be
silently handled as "f08". Users of "elf" may wish to experiment with "F"
instead.
The syntax/fortran.vim script contains embedded comments that tell you how to
comment and/or uncomment some lines to (a) activate recognition of some
non-standard, vendor-supplied intrinsics and (b) to prevent features deleted
or declared obsolescent in the 2008 standard from being highlighted as todo
items.
Limitations ~ Limitations ~
Parenthesis checking does not catch too few closing parentheses. Hollerith Parenthesis checking does not catch too few closing parentheses. Hollerith
@ -1603,11 +1606,6 @@ which are used for the statement itself, special characters used in debug
strings, strings, boolean constants and types (this, super) respectively. I strings, strings, boolean constants and types (this, super) respectively. I
have opted to chose another background for those statements. have opted to chose another background for those statements.
In order to help you write code that can be easily ported between Java and
C++, all C++ keywords can be marked as an error in a Java program. To
have this add this line in your .vimrc file: >
:let java_allow_cpp_keywords = 0
Javadoc is a program that takes special comments out of Java program files and Javadoc is a program that takes special comments out of Java program files and
creates HTML pages. The standard configuration will highlight this HTML code creates HTML pages. The standard configuration will highlight this HTML code
similarly to HTML files (see |html.vim|). You can even add Javascript similarly to HTML files (see |html.vim|). You can even add Javascript
@ -1746,19 +1744,10 @@ instead, and the name of your source file should be *.pike
LUA *lua.vim* *ft-lua-syntax* LUA *lua.vim* *ft-lua-syntax*
This syntax file may be used for Lua 4.0, Lua 5.0 or Lua 5.1 (the latter is The Lua syntax file can be used for versions 4.0, 5.0, 5.1 and 5.2 (5.2 is
the default). You can select one of these versions using the global variables the default). You can select one of these versions using the global variables
lua_version and lua_subversion. For example, to activate Lua lua_version and lua_subversion. For example, to activate Lua
4.0 syntax highlighting, use this command: > 5.1 syntax highlighting, set the variables like this:
:let lua_version = 4
If you are using Lua 5.0, use these commands: >
:let lua_version = 5
:let lua_subversion = 0
To restore highlighting for Lua 5.1: >
:let lua_version = 5 :let lua_version = 5
:let lua_subversion = 1 :let lua_subversion = 1
@ -2605,8 +2594,41 @@ reduce this, the "sh_maxlines" internal variable can be set. Example: >
The default is to use the twice sh_minlines. Set it to a smaller number to The default is to use the twice sh_minlines. Set it to a smaller number to
speed up displaying. The disadvantage is that highlight errors may appear. speed up displaying. The disadvantage is that highlight errors may appear.
*g:sh_isk* *g:sh_noisk*
The shell languages appear to let "." be part of words, commands, etc;
consequently it should be in the isk for sh.vim. As of v116 of syntax/sh.vim,
syntax/sh.vim will append the "." to |'iskeyword'| by default; you may control
this behavior with: >
let g:sh_isk = '..whatever characters you want as part of iskeyword'
let g:sh_noisk= 1 " otherwise, if this exists, the isk will NOT chg
<
*sh-embed* *sh-awk*
Sh: EMBEDDING LANGUAGES~
SPEEDUP (AspenTech plant simulator) *spup.vim* *ft-spup-syntax* You may wish to embed languages into sh. I'll give an example courtesy of
Lorance Stinson on how to do this with awk as an example. Put the following
file into $HOME/.vim/after/syntax/sh/awkembed.vim: >
" AWK Embedding: {{{1
" ==============
" Shamelessly ripped from aspperl.vim by Aaron Hope.
if exists("b:current_syntax")
unlet b:current_syntax
endif
syn include @AWKScript syntax/awk.vim
syn region AWKScriptCode matchgroup=AWKCommand start=+[=\\]\@<!'+ skip=+\\'+ end=+'+ contains=@AWKScript contained
syn region AWKScriptEmbedded matchgroup=AWKCommand start=+\<awk\>+ skip=+\\$+ end=+[=\\]\@<!'+me=e-1 contains=@shIdList,@shExprList2 nextgroup=AWKScriptCode
syn cluster shCommandSubList add=AWKScriptEmbedded
hi def link AWKCommand Type
<
This code will then let the awk code in the single quotes: >
awk '...awk code here...'
be highlighted using the awk highlighting syntax. Clearly this may be
extended to other languages.
SPEEDUP *spup.vim* *ft-spup-syntax*
(AspenTech plant simulator)
The Speedup syntax file has some options: The Speedup syntax file has some options:
@ -2689,6 +2711,8 @@ sections, subsections, etc are supported. Put >
in your <.vimrc>, and :set fdm=syntax. I suggest doing the latter via a in your <.vimrc>, and :set fdm=syntax. I suggest doing the latter via a
modeline at the end of your LaTeX file: > modeline at the end of your LaTeX file: >
% vim: fdm=syntax % vim: fdm=syntax
If your system becomes too slow, then you might wish to look into >
http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text
< <
*tex-nospell* *tex-nospell*
Tex: Don't Want Spell Checking In Comments? ~ Tex: Don't Want Spell Checking In Comments? ~
@ -2697,7 +2721,14 @@ Some folks like to include things like source code in comments and so would
prefer that spell checking be disabled in comments in LaTeX files. To do prefer that spell checking be disabled in comments in LaTeX files. To do
this, put the following in your <.vimrc>: > this, put the following in your <.vimrc>: >
let g:tex_comment_nospell= 1 let g:tex_comment_nospell= 1
< The comment lines >
% nospell{
...
% nospell}
will suppress spell checking between them. These comment lines spelling
control are known to be fragile; for example, don't include any of the section
commands (\part, \chapter, \section, \paragraph, etc) inside nospell blocks
or interleave environments (such as math) across nospell blocks.
*tex-verb* *tex-verb*
Tex: Want Spell Checking in Verbatim Zones?~ Tex: Want Spell Checking in Verbatim Zones?~
@ -2729,6 +2760,9 @@ 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, 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?). if any, is the text at the top of the screen supposed to be in?).
Another cause of slow highlighting is due to syntax-driven folding; see
|tex-folding| for a way around this.
*tex-morecommands* *tex-package* *tex-morecommands* *tex-package*
Tex: Want To Highlight More Commands? ~ Tex: Want To Highlight More Commands? ~
@ -2737,7 +2771,9 @@ of specialized LaTeX commands, syntax, and fonts. If you're using such a
package you'll often wish that the distributed syntax/tex.vim would support package you'll often wish that the distributed syntax/tex.vim would support
it. However, clearly this is impractical. So please consider using the it. However, clearly this is impractical. So please consider using the
techniques in |mysyntaxfile-add| to extend or modify the highlighting provided techniques in |mysyntaxfile-add| to extend or modify the highlighting provided
by syntax/tex.vim. by syntax/tex.vim. Please consider uploading any extensions that you write,
which typically would go in $HOME/after/syntax/tex/[pkgname].vim, to
http://vim.sf.net/.
*tex-error* *tex-error*
Tex: Excessive Error Highlighting? ~ Tex: Excessive Error Highlighting? ~
@ -2799,6 +2835,7 @@ You may selectively use conceal mode by setting g:tex_conceal in your
following sets of characters: > following sets of characters: >
a = accents/ligatures a = accents/ligatures
b = bold and italic
d = delimiters d = delimiters
m = math symbols m = math symbols
g = Greek g = Greek
@ -2807,6 +2844,18 @@ following sets of characters: >
By leaving one or more of these out, the associated conceal-character By leaving one or more of these out, the associated conceal-character
substitution will not be made. substitution will not be made.
*g:tex_isk*
Tex: Controlling What's In A Keyword~
(La)Tex keywords normally use the characters 0-9,a-z,A-Z,192-255 only
but the "_" is the only one that causes problems. So, by default,
syntax/tex.vim overrides the usual |'iskeyword'| setting (using |:setlocal|)
with one that works for LaTeX.
However, one may override this iskeyword re-setting by setting the
variable, g:tex_isk, in one's .vimrc to whatever one wishes and
it will be used instead.
TF *tf.vim* *ft-tf-syntax* TF *tf.vim* *ft-tf-syntax*
@ -3881,7 +3930,7 @@ First syncing method: *:syn-sync-first*
The file will be parsed from the start. This makes syntax highlighting The file will be parsed from the start. This makes syntax highlighting
accurate, but can be slow for long files. Vim caches previously parsed text, accurate, but can be slow for long files. Vim caches previously parsed text,
so that it's only slow when parsing the text for the first time. However, so that it's only slow when parsing the text for the first time. However,
when making changes some part of the next needs to be parsed again (worst when making changes some part of the text needs to be parsed again (worst
case: to the end of the file). case: to the end of the file).
Using "fromstart" is equivalent to using "minlines" with a very large number. Using "fromstart" is equivalent to using "minlines" with a very large number.
@ -4394,6 +4443,8 @@ IncSearch 'incsearch' highlighting; also used for the text replaced with
*hl-LineNr* *hl-LineNr*
LineNr Line number for ":number" and ":#" commands, and when 'number' LineNr Line number for ":number" and ":#" commands, and when 'number'
or 'relativenumber' option is set. or 'relativenumber' option is set.
*hl-CursorLineNr*
CursorLineNr Like LineNr when 'cursorline' is set for the cursor line.
*hl-MatchParen* *hl-MatchParen*
MatchParen The character under the cursor or just before it, if it MatchParen The character under the cursor or just before it, if it
is a paired bracket, and its match. |pi_paren.txt| is a paired bracket, and its match. |pi_paren.txt|

View File

@ -783,6 +783,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
'shellslash' options.txt /*'shellslash'* 'shellslash' options.txt /*'shellslash'*
'shelltemp' options.txt /*'shelltemp'* 'shelltemp' options.txt /*'shelltemp'*
'shelltype' options.txt /*'shelltype'* 'shelltype' options.txt /*'shelltype'*
'shellxescape' options.txt /*'shellxescape'*
'shellxquote' options.txt /*'shellxquote'* 'shellxquote' options.txt /*'shellxquote'*
'shiftround' options.txt /*'shiftround'* 'shiftround' options.txt /*'shiftround'*
'shiftwidth' options.txt /*'shiftwidth'* 'shiftwidth' options.txt /*'shiftwidth'*
@ -852,6 +853,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
'swf' options.txt /*'swf'* 'swf' options.txt /*'swf'*
'switchbuf' options.txt /*'switchbuf'* 'switchbuf' options.txt /*'switchbuf'*
'sws' options.txt /*'sws'* 'sws' options.txt /*'sws'*
'sxe' options.txt /*'sxe'*
'sxq' options.txt /*'sxq'* 'sxq' options.txt /*'sxq'*
'syn' options.txt /*'syn'* 'syn' options.txt /*'syn'*
'synmaxcol' options.txt /*'synmaxcol'* 'synmaxcol' options.txt /*'synmaxcol'*
@ -1184,6 +1186,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
+mouse_netterm various.txt /*+mouse_netterm* +mouse_netterm various.txt /*+mouse_netterm*
+mouse_pterm various.txt /*+mouse_pterm* +mouse_pterm various.txt /*+mouse_pterm*
+mouse_sysmouse various.txt /*+mouse_sysmouse* +mouse_sysmouse various.txt /*+mouse_sysmouse*
+mouse_urxvt various.txt /*+mouse_urxvt*
+mouse_xterm various.txt /*+mouse_xterm* +mouse_xterm various.txt /*+mouse_xterm*
+mouseshape various.txt /*+mouseshape* +mouseshape various.txt /*+mouseshape*
+multi_byte various.txt /*+multi_byte* +multi_byte various.txt /*+multi_byte*
@ -1242,6 +1245,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
+writebackup various.txt /*+writebackup* +writebackup various.txt /*+writebackup*
+xfontset various.txt /*+xfontset* +xfontset various.txt /*+xfontset*
+xim various.txt /*+xim* +xim various.txt /*+xim*
+xpm_w32 various.txt /*+xpm_w32*
+xsmp various.txt /*+xsmp* +xsmp various.txt /*+xsmp*
+xsmp_interact various.txt /*+xsmp_interact* +xsmp_interact various.txt /*+xsmp_interact*
+xterm_clipboard various.txt /*+xterm_clipboard* +xterm_clipboard various.txt /*+xterm_clipboard*
@ -2092,6 +2096,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
:display change.txt /*:display* :display change.txt /*:display*
:dj tagsrch.txt /*:dj* :dj tagsrch.txt /*:dj*
:djump tagsrch.txt /*:djump* :djump tagsrch.txt /*:djump*
:dl change.txt /*:dl*
:dli tagsrch.txt /*:dli* :dli tagsrch.txt /*:dli*
:dlist tagsrch.txt /*:dlist* :dlist tagsrch.txt /*:dlist*
:do autocmd.txt /*:do* :do autocmd.txt /*:do*
@ -2612,6 +2617,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
:resize windows.txt /*:resize* :resize windows.txt /*:resize*
:ret change.txt /*:ret* :ret change.txt /*:ret*
:retab change.txt /*:retab* :retab change.txt /*:retab*
:retab! change.txt /*:retab!*
:retu eval.txt /*:retu* :retu eval.txt /*:retu*
:return eval.txt /*:return* :return eval.txt /*:return*
:rew editing.txt /*:rew* :rew editing.txt /*:rew*
@ -3203,6 +3209,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
<line1> map.txt /*<line1>* <line1> map.txt /*<line1>*
<line2> map.txt /*<line2>* <line2> map.txt /*<line2>*
<lt> intro.txt /*<lt>* <lt> intro.txt /*<lt>*
<nomodeline> autocmd.txt /*<nomodeline>*
<q-args> map.txt /*<q-args>* <q-args> map.txt /*<q-args>*
<reg> map.txt /*<reg>* <reg> map.txt /*<reg>*
<register> map.txt /*<register>* <register> map.txt /*<register>*
@ -3624,9 +3631,6 @@ E287 mbyte.txt /*E287*
E288 mbyte.txt /*E288* E288 mbyte.txt /*E288*
E289 mbyte.txt /*E289* E289 mbyte.txt /*E289*
E29 change.txt /*E29* E29 change.txt /*E29*
E290 mbyte.txt /*E290*
E291 mbyte.txt /*E291*
E292 mbyte.txt /*E292*
E293 message.txt /*E293* E293 message.txt /*E293*
E294 message.txt /*E294* E294 message.txt /*E294*
E295 message.txt /*E295* E295 message.txt /*E295*
@ -4233,6 +4237,11 @@ E848 syntax.txt /*E848*
E849 syntax.txt /*E849* E849 syntax.txt /*E849*
E85 options.txt /*E85* E85 options.txt /*E85*
E850 change.txt /*E850* E850 change.txt /*E850*
E851 gui_x11.txt /*E851*
E852 gui_x11.txt /*E852*
E853 eval.txt /*E853*
E854 options.txt /*E854*
E855 autocmd.txt /*E855*
E86 windows.txt /*E86* E86 windows.txt /*E86*
E87 windows.txt /*E87* E87 windows.txt /*E87*
E88 windows.txt /*E88* E88 windows.txt /*E88*
@ -4682,6 +4691,7 @@ alt intro.txt /*alt*
alt-input debugger.txt /*alt-input* alt-input debugger.txt /*alt-input*
alternate-file editing.txt /*alternate-file* alternate-file editing.txt /*alternate-file*
amiga-window starting.txt /*amiga-window* amiga-window starting.txt /*amiga-window*
and() eval.txt /*and()*
anonymous-function eval.txt /*anonymous-function* anonymous-function eval.txt /*anonymous-function*
ant.vim syntax.txt /*ant.vim* ant.vim syntax.txt /*ant.vim*
ap motion.txt /*ap* ap motion.txt /*ap*
@ -4736,6 +4746,7 @@ autocmds-kept version5.txt /*autocmds-kept*
autocommand autocmd.txt /*autocommand* autocommand autocmd.txt /*autocommand*
autocommand-events autocmd.txt /*autocommand-events* autocommand-events autocmd.txt /*autocommand-events*
autocommand-pattern autocmd.txt /*autocommand-pattern* autocommand-pattern autocmd.txt /*autocommand-pattern*
autoformat change.txt /*autoformat*
autoload eval.txt /*autoload* autoload eval.txt /*autoload*
autoload-functions eval.txt /*autoload-functions* autoload-functions eval.txt /*autoload-functions*
avoid-hit-enter version5.txt /*avoid-hit-enter* avoid-hit-enter version5.txt /*avoid-hit-enter*
@ -4784,6 +4795,7 @@ beval_col-variable eval.txt /*beval_col-variable*
beval_lnum-variable eval.txt /*beval_lnum-variable* beval_lnum-variable eval.txt /*beval_lnum-variable*
beval_text-variable eval.txt /*beval_text-variable* beval_text-variable eval.txt /*beval_text-variable*
beval_winnr-variable eval.txt /*beval_winnr-variable* beval_winnr-variable eval.txt /*beval_winnr-variable*
bitwise-function usr_41.txt /*bitwise-function*
blockwise-examples visual.txt /*blockwise-examples* blockwise-examples visual.txt /*blockwise-examples*
blockwise-operators visual.txt /*blockwise-operators* blockwise-operators visual.txt /*blockwise-operators*
blockwise-register change.txt /*blockwise-register* blockwise-register change.txt /*blockwise-register*
@ -4963,7 +4975,6 @@ cino-( indent.txt /*cino-(*
cino-) indent.txt /*cino-)* cino-) indent.txt /*cino-)*
cino-+ indent.txt /*cino-+* cino-+ indent.txt /*cino-+*
cino-/ indent.txt /*cino-\/* cino-/ indent.txt /*cino-\/*
cino-2 indent.txt /*cino-2*
cino-: indent.txt /*cino-:* cino-: indent.txt /*cino-:*
cino-= indent.txt /*cino-=* cino-= indent.txt /*cino-=*
cino-> indent.txt /*cino->* cino-> indent.txt /*cino->*
@ -4983,6 +4994,7 @@ cino-g indent.txt /*cino-g*
cino-h indent.txt /*cino-h* cino-h indent.txt /*cino-h*
cino-i indent.txt /*cino-i* cino-i indent.txt /*cino-i*
cino-j indent.txt /*cino-j* cino-j indent.txt /*cino-j*
cino-k indent.txt /*cino-k*
cino-l indent.txt /*cino-l* cino-l indent.txt /*cino-l*
cino-m indent.txt /*cino-m* cino-m indent.txt /*cino-m*
cino-n indent.txt /*cino-n* cino-n indent.txt /*cino-n*
@ -4990,6 +5002,7 @@ cino-p indent.txt /*cino-p*
cino-star indent.txt /*cino-star* cino-star indent.txt /*cino-star*
cino-t indent.txt /*cino-t* cino-t indent.txt /*cino-t*
cino-u indent.txt /*cino-u* cino-u indent.txt /*cino-u*
cino-w indent.txt /*cino-w*
cino-{ indent.txt /*cino-{* cino-{ indent.txt /*cino-{*
cino-} indent.txt /*cino-}* cino-} indent.txt /*cino-}*
cinoptions-values indent.txt /*cinoptions-values* cinoptions-values indent.txt /*cinoptions-values*
@ -5690,6 +5703,7 @@ ft-ptcap-syntax syntax.txt /*ft-ptcap-syntax*
ft-python-indent indent.txt /*ft-python-indent* ft-python-indent indent.txt /*ft-python-indent*
ft-python-syntax syntax.txt /*ft-python-syntax* ft-python-syntax syntax.txt /*ft-python-syntax*
ft-quake-syntax syntax.txt /*ft-quake-syntax* ft-quake-syntax syntax.txt /*ft-quake-syntax*
ft-r-indent indent.txt /*ft-r-indent*
ft-readline-syntax syntax.txt /*ft-readline-syntax* ft-readline-syntax syntax.txt /*ft-readline-syntax*
ft-rexx-syntax syntax.txt /*ft-rexx-syntax* ft-rexx-syntax syntax.txt /*ft-rexx-syntax*
ft-ruby-omni insert.txt /*ft-ruby-omni* ft-ruby-omni insert.txt /*ft-ruby-omni*
@ -5756,6 +5770,7 @@ g- undo.txt /*g-*
g0 motion.txt /*g0* g0 motion.txt /*g0*
g8 various.txt /*g8* g8 various.txt /*g8*
g:NetrwTopLvlMenu pi_netrw.txt /*g:NetrwTopLvlMenu* g:NetrwTopLvlMenu pi_netrw.txt /*g:NetrwTopLvlMenu*
g:Netrw_corehandler pi_netrw.txt /*g:Netrw_corehandler*
g:Netrw_funcref pi_netrw.txt /*g:Netrw_funcref* g:Netrw_funcref pi_netrw.txt /*g:Netrw_funcref*
g:ada#Comment ft_ada.txt /*g:ada#Comment* g:ada#Comment ft_ada.txt /*g:ada#Comment*
g:ada#Ctags_Kinds ft_ada.txt /*g:ada#Ctags_Kinds* g:ada#Ctags_Kinds ft_ada.txt /*g:ada#Ctags_Kinds*
@ -5814,6 +5829,7 @@ g:netrw_cygwin pi_netrw.txt /*g:netrw_cygwin*
g:netrw_dav_cmd pi_netrw.txt /*g:netrw_dav_cmd* g:netrw_dav_cmd pi_netrw.txt /*g:netrw_dav_cmd*
g:netrw_decompress pi_netrw.txt /*g:netrw_decompress* g:netrw_decompress pi_netrw.txt /*g:netrw_decompress*
g:netrw_dirhistmax pi_netrw.txt /*g:netrw_dirhistmax* g:netrw_dirhistmax pi_netrw.txt /*g:netrw_dirhistmax*
g:netrw_errorlvl pi_netrw.txt /*g:netrw_errorlvl*
g:netrw_fastbrowse pi_netrw.txt /*g:netrw_fastbrowse* g:netrw_fastbrowse pi_netrw.txt /*g:netrw_fastbrowse*
g:netrw_fetch_cmd pi_netrw.txt /*g:netrw_fetch_cmd* g:netrw_fetch_cmd pi_netrw.txt /*g:netrw_fetch_cmd*
g:netrw_fname_escape pi_netrw.txt /*g:netrw_fname_escape* g:netrw_fname_escape pi_netrw.txt /*g:netrw_fname_escape*
@ -5821,6 +5837,7 @@ g:netrw_ftp pi_netrw.txt /*g:netrw_ftp*
g:netrw_ftp_browse_reject pi_netrw.txt /*g:netrw_ftp_browse_reject* g:netrw_ftp_browse_reject pi_netrw.txt /*g:netrw_ftp_browse_reject*
g:netrw_ftp_cmd pi_netrw.txt /*g:netrw_ftp_cmd* g:netrw_ftp_cmd pi_netrw.txt /*g:netrw_ftp_cmd*
g:netrw_ftp_list_cmd pi_netrw.txt /*g:netrw_ftp_list_cmd* g:netrw_ftp_list_cmd pi_netrw.txt /*g:netrw_ftp_list_cmd*
g:netrw_ftp_options pi_netrw.txt /*g:netrw_ftp_options*
g:netrw_ftp_sizelist_cmd pi_netrw.txt /*g:netrw_ftp_sizelist_cmd* g:netrw_ftp_sizelist_cmd pi_netrw.txt /*g:netrw_ftp_sizelist_cmd*
g:netrw_ftp_timelist_cmd pi_netrw.txt /*g:netrw_ftp_timelist_cmd* g:netrw_ftp_timelist_cmd pi_netrw.txt /*g:netrw_ftp_timelist_cmd*
g:netrw_ftpextracmd pi_netrw.txt /*g:netrw_ftpextracmd* g:netrw_ftpextracmd pi_netrw.txt /*g:netrw_ftpextracmd*
@ -5835,17 +5852,19 @@ g:netrw_keepdir pi_netrw.txt /*g:netrw_keepdir*
g:netrw_list_cmd pi_netrw.txt /*g:netrw_list_cmd* g:netrw_list_cmd pi_netrw.txt /*g:netrw_list_cmd*
g:netrw_list_hide pi_netrw.txt /*g:netrw_list_hide* g:netrw_list_hide pi_netrw.txt /*g:netrw_list_hide*
g:netrw_liststyle pi_netrw.txt /*g:netrw_liststyle* g:netrw_liststyle pi_netrw.txt /*g:netrw_liststyle*
g:netrw_local_mkdir pi_netrw.txt /*g:netrw_local_mkdir*
g:netrw_local_rmdir pi_netrw.txt /*g:netrw_local_rmdir*
g:netrw_localcopycmd pi_netrw.txt /*g:netrw_localcopycmd* g:netrw_localcopycmd pi_netrw.txt /*g:netrw_localcopycmd*
g:netrw_localmkdir pi_netrw.txt /*g:netrw_localmkdir*
g:netrw_localmovecmd pi_netrw.txt /*g:netrw_localmovecmd* g:netrw_localmovecmd pi_netrw.txt /*g:netrw_localmovecmd*
g:netrw_localrmdir pi_netrw.txt /*g:netrw_localrmdir*
g:netrw_maxfilenamelen pi_netrw.txt /*g:netrw_maxfilenamelen* g:netrw_maxfilenamelen pi_netrw.txt /*g:netrw_maxfilenamelen*
g:netrw_menu pi_netrw.txt /*g:netrw_menu* g:netrw_menu pi_netrw.txt /*g:netrw_menu*
g:netrw_mkdir_cmd pi_netrw.txt /*g:netrw_mkdir_cmd* g:netrw_mkdir_cmd pi_netrw.txt /*g:netrw_mkdir_cmd*
g:netrw_mousemaps pi_netrw.txt /*g:netrw_mousemaps* g:netrw_mousemaps pi_netrw.txt /*g:netrw_mousemaps*
g:netrw_nobeval pi_netrw.txt /*g:netrw_nobeval*
g:netrw_nogx pi_netrw.txt /*g:netrw_nogx* g:netrw_nogx pi_netrw.txt /*g:netrw_nogx*
g:netrw_preview pi_netrw.txt /*g:netrw_preview* g:netrw_preview pi_netrw.txt /*g:netrw_preview*
g:netrw_rcp_cmd pi_netrw.txt /*g:netrw_rcp_cmd* g:netrw_rcp_cmd pi_netrw.txt /*g:netrw_rcp_cmd*
g:netrw_remote_mkdir pi_netrw.txt /*g:netrw_remote_mkdir*
g:netrw_retmap pi_netrw.txt /*g:netrw_retmap* g:netrw_retmap pi_netrw.txt /*g:netrw_retmap*
g:netrw_rm_cmd pi_netrw.txt /*g:netrw_rm_cmd* g:netrw_rm_cmd pi_netrw.txt /*g:netrw_rm_cmd*
g:netrw_rmdir_cmd pi_netrw.txt /*g:netrw_rmdir_cmd* g:netrw_rmdir_cmd pi_netrw.txt /*g:netrw_rmdir_cmd*
@ -5873,6 +5892,8 @@ g:netrw_use_nt_rcp pi_netrw.txt /*g:netrw_use_nt_rcp*
g:netrw_win95ftp pi_netrw.txt /*g:netrw_win95ftp* g:netrw_win95ftp pi_netrw.txt /*g:netrw_win95ftp*
g:netrw_winsize pi_netrw.txt /*g:netrw_winsize* g:netrw_winsize pi_netrw.txt /*g:netrw_winsize*
g:netrw_xstrlen pi_netrw.txt /*g:netrw_xstrlen* g:netrw_xstrlen pi_netrw.txt /*g:netrw_xstrlen*
g:sh_isk syntax.txt /*g:sh_isk*
g:sh_noisk syntax.txt /*g:sh_noisk*
g:syntax_on syntax.txt /*g:syntax_on* g:syntax_on syntax.txt /*g:syntax_on*
g:tar_browseoptions pi_tar.txt /*g:tar_browseoptions* g:tar_browseoptions pi_tar.txt /*g:tar_browseoptions*
g:tar_cmd pi_tar.txt /*g:tar_cmd* g:tar_cmd pi_tar.txt /*g:tar_cmd*
@ -5883,6 +5904,7 @@ g:tar_readoptions pi_tar.txt /*g:tar_readoptions*
g:tar_secure pi_tar.txt /*g:tar_secure* g:tar_secure pi_tar.txt /*g:tar_secure*
g:tar_writeoptions pi_tar.txt /*g:tar_writeoptions* g:tar_writeoptions pi_tar.txt /*g:tar_writeoptions*
g:tex_conceal syntax.txt /*g:tex_conceal* g:tex_conceal syntax.txt /*g:tex_conceal*
g:tex_isk syntax.txt /*g:tex_isk*
g:var eval.txt /*g:var* g:var eval.txt /*g:var*
g:vimball_home pi_vimball.txt /*g:vimball_home* g:vimball_home pi_vimball.txt /*g:vimball_home*
g:vimball_mkdir pi_vimball.txt /*g:vimball_mkdir* g:vimball_mkdir pi_vimball.txt /*g:vimball_mkdir*
@ -5933,6 +5955,7 @@ g`a motion.txt /*g`a*
ga various.txt /*ga* ga various.txt /*ga*
garbagecollect() eval.txt /*garbagecollect()* garbagecollect() eval.txt /*garbagecollect()*
gd pattern.txt /*gd* gd pattern.txt /*gd*
gdb debug.txt /*gdb*
ge motion.txt /*ge* ge motion.txt /*ge*
get() eval.txt /*get()* get() eval.txt /*get()*
get-ms-debuggers debug.txt /*get-ms-debuggers* get-ms-debuggers debug.txt /*get-ms-debuggers*
@ -6022,6 +6045,7 @@ gtk-tooltip-colors gui_x11.txt /*gtk-tooltip-colors*
gu change.txt /*gu* gu change.txt /*gu*
gugu change.txt /*gugu* gugu change.txt /*gugu*
gui gui.txt /*gui* gui gui.txt /*gui*
gui-IME gui.txt /*gui-IME*
gui-clipboard gui_w32.txt /*gui-clipboard* gui-clipboard gui_w32.txt /*gui-clipboard*
gui-colors syntax.txt /*gui-colors* gui-colors syntax.txt /*gui-colors*
gui-extras gui.txt /*gui-extras* gui-extras gui.txt /*gui-extras*
@ -6120,6 +6144,7 @@ helpfile_name.txt helphelp.txt /*helpfile_name.txt*
helphelp helphelp.txt /*helphelp* helphelp helphelp.txt /*helphelp*
helphelp.txt helphelp.txt /*helphelp.txt* helphelp.txt helphelp.txt /*helphelp.txt*
hex-editing tips.txt /*hex-editing* hex-editing tips.txt /*hex-editing*
hex-number eval.txt /*hex-number*
hidden-buffer windows.txt /*hidden-buffer* hidden-buffer windows.txt /*hidden-buffer*
hidden-changed version5.txt /*hidden-changed* hidden-changed version5.txt /*hidden-changed*
hidden-menus gui.txt /*hidden-menus* hidden-menus gui.txt /*hidden-menus*
@ -6161,6 +6186,7 @@ hl-Cursor syntax.txt /*hl-Cursor*
hl-CursorColumn syntax.txt /*hl-CursorColumn* hl-CursorColumn syntax.txt /*hl-CursorColumn*
hl-CursorIM syntax.txt /*hl-CursorIM* hl-CursorIM syntax.txt /*hl-CursorIM*
hl-CursorLine syntax.txt /*hl-CursorLine* hl-CursorLine syntax.txt /*hl-CursorLine*
hl-CursorLineNr syntax.txt /*hl-CursorLineNr*
hl-DiffAdd syntax.txt /*hl-DiffAdd* hl-DiffAdd syntax.txt /*hl-DiffAdd*
hl-DiffChange syntax.txt /*hl-DiffChange* hl-DiffChange syntax.txt /*hl-DiffChange*
hl-DiffDelete syntax.txt /*hl-DiffDelete* hl-DiffDelete syntax.txt /*hl-DiffDelete*
@ -6230,6 +6256,7 @@ i) motion.txt /*i)*
i< motion.txt /*i<* i< motion.txt /*i<*
i> motion.txt /*i>* i> motion.txt /*i>*
iB motion.txt /*iB* iB motion.txt /*iB*
iBus gui.txt /*iBus*
iW motion.txt /*iW* iW motion.txt /*iW*
i[ motion.txt /*i[* i[ motion.txt /*i[*
i] motion.txt /*i]* i] motion.txt /*i]*
@ -6425,6 +6452,7 @@ internet intro.txt /*internet*
intro intro.txt /*intro* intro intro.txt /*intro*
intro.txt intro.txt /*intro.txt* intro.txt intro.txt /*intro.txt*
inverse syntax.txt /*inverse* inverse syntax.txt /*inverse*
invert() eval.txt /*invert()*
ip motion.txt /*ip* ip motion.txt /*ip*
iquote motion.txt /*iquote* iquote motion.txt /*iquote*
is motion.txt /*is* is motion.txt /*is*
@ -6535,9 +6563,13 @@ lpc.vim syntax.txt /*lpc.vim*
lua if_lua.txt /*lua* lua if_lua.txt /*lua*
lua-buffer if_lua.txt /*lua-buffer* lua-buffer if_lua.txt /*lua-buffer*
lua-commands if_lua.txt /*lua-commands* lua-commands if_lua.txt /*lua-commands*
lua-dict if_lua.txt /*lua-dict*
lua-list if_lua.txt /*lua-list*
lua-luaeval if_lua.txt /*lua-luaeval*
lua-vim if_lua.txt /*lua-vim* lua-vim if_lua.txt /*lua-vim*
lua-window if_lua.txt /*lua-window* lua-window if_lua.txt /*lua-window*
lua.vim syntax.txt /*lua.vim* lua.vim syntax.txt /*lua.vim*
luaeval() eval.txt /*luaeval()*
m motion.txt /*m* m motion.txt /*m*
m' motion.txt /*m'* m' motion.txt /*m'*
m[ motion.txt /*m[* m[ motion.txt /*m[*
@ -6762,6 +6794,7 @@ netrw-browse-cmds pi_netrw.txt /*netrw-browse-cmds*
netrw-browse-maps pi_netrw.txt /*netrw-browse-maps* netrw-browse-maps pi_netrw.txt /*netrw-browse-maps*
netrw-browser pi_netrw.txt /*netrw-browser* netrw-browser pi_netrw.txt /*netrw-browser*
netrw-browser-options pi_netrw.txt /*netrw-browser-options* netrw-browser-options pi_netrw.txt /*netrw-browser-options*
netrw-browser-settings pi_netrw.txt /*netrw-browser-settings*
netrw-browser-var pi_netrw.txt /*netrw-browser-var* netrw-browser-var pi_netrw.txt /*netrw-browser-var*
netrw-browsing pi_netrw.txt /*netrw-browsing* netrw-browsing pi_netrw.txt /*netrw-browsing*
netrw-c pi_netrw.txt /*netrw-c* netrw-c pi_netrw.txt /*netrw-c*
@ -6810,6 +6843,7 @@ netrw-history pi_netrw.txt /*netrw-history*
netrw-horiz pi_netrw.txt /*netrw-horiz* netrw-horiz pi_netrw.txt /*netrw-horiz*
netrw-i pi_netrw.txt /*netrw-i* netrw-i pi_netrw.txt /*netrw-i*
netrw-incompatible pi_netrw.txt /*netrw-incompatible* netrw-incompatible pi_netrw.txt /*netrw-incompatible*
netrw-internal-variables pi_netrw.txt /*netrw-internal-variables*
netrw-intro-browse pi_netrw.txt /*netrw-intro-browse* netrw-intro-browse pi_netrw.txt /*netrw-intro-browse*
netrw-leftmouse pi_netrw.txt /*netrw-leftmouse* netrw-leftmouse pi_netrw.txt /*netrw-leftmouse*
netrw-list pi_netrw.txt /*netrw-list* netrw-list pi_netrw.txt /*netrw-list*
@ -6887,8 +6921,10 @@ netrw-rexplore pi_netrw.txt /*netrw-rexplore*
netrw-rightmouse pi_netrw.txt /*netrw-rightmouse* netrw-rightmouse pi_netrw.txt /*netrw-rightmouse*
netrw-s pi_netrw.txt /*netrw-s* netrw-s pi_netrw.txt /*netrw-s*
netrw-settings pi_netrw.txt /*netrw-settings* netrw-settings pi_netrw.txt /*netrw-settings*
netrw-settings-window pi_netrw.txt /*netrw-settings-window*
netrw-sexplore pi_netrw.txt /*netrw-sexplore* netrw-sexplore pi_netrw.txt /*netrw-sexplore*
netrw-sort pi_netrw.txt /*netrw-sort* netrw-sort pi_netrw.txt /*netrw-sort*
netrw-sort-sequence pi_netrw.txt /*netrw-sort-sequence*
netrw-sortsequence pi_netrw.txt /*netrw-sortsequence* netrw-sortsequence pi_netrw.txt /*netrw-sortsequence*
netrw-source pi_netrw.txt /*netrw-source* netrw-source pi_netrw.txt /*netrw-source*
netrw-ssh-hack pi_netrw.txt /*netrw-ssh-hack* netrw-ssh-hack pi_netrw.txt /*netrw-ssh-hack*
@ -6910,6 +6946,8 @@ netrw-v pi_netrw.txt /*netrw-v*
netrw-var pi_netrw.txt /*netrw-var* netrw-var pi_netrw.txt /*netrw-var*
netrw-variables pi_netrw.txt /*netrw-variables* netrw-variables pi_netrw.txt /*netrw-variables*
netrw-vexplore pi_netrw.txt /*netrw-vexplore* netrw-vexplore pi_netrw.txt /*netrw-vexplore*
netrw-windows-netrc pi_netrw.txt /*netrw-windows-netrc*
netrw-windows-s pi_netrw.txt /*netrw-windows-s*
netrw-write pi_netrw.txt /*netrw-write* netrw-write pi_netrw.txt /*netrw-write*
netrw-x pi_netrw.txt /*netrw-x* netrw-x pi_netrw.txt /*netrw-x*
netrw-xfer pi_netrw.txt /*netrw-xfer* netrw-xfer pi_netrw.txt /*netrw-xfer*
@ -7021,7 +7059,8 @@ objects index.txt /*objects*
obtaining-exted netbeans.txt /*obtaining-exted* obtaining-exted netbeans.txt /*obtaining-exted*
ocaml.vim syntax.txt /*ocaml.vim* ocaml.vim syntax.txt /*ocaml.vim*
octal eval.txt /*octal* octal eval.txt /*octal*
octal-number options.txt /*octal-number* octal-nrformats options.txt /*octal-nrformats*
octal-number eval.txt /*octal-number*
oldfiles-variable eval.txt /*oldfiles-variable* oldfiles-variable eval.txt /*oldfiles-variable*
ole-activation if_ole.txt /*ole-activation* ole-activation if_ole.txt /*ole-activation*
ole-eval if_ole.txt /*ole-eval* ole-eval if_ole.txt /*ole-eval*
@ -7046,6 +7085,7 @@ options options.txt /*options*
options-changed version5.txt /*options-changed* options-changed version5.txt /*options-changed*
options.txt options.txt /*options.txt* options.txt options.txt /*options.txt*
optwin options.txt /*optwin* optwin options.txt /*optwin*
or() eval.txt /*or()*
oracle ft_sql.txt /*oracle* oracle ft_sql.txt /*oracle*
os2 os_os2.txt /*os2* os2 os_os2.txt /*os2*
os2ansi os_os2.txt /*os2ansi* os2ansi os_os2.txt /*os2ansi*
@ -7442,6 +7482,8 @@ setuid change.txt /*setuid*
setwinvar() eval.txt /*setwinvar()* setwinvar() eval.txt /*setwinvar()*
sftp pi_netrw.txt /*sftp* sftp pi_netrw.txt /*sftp*
sgml.vim syntax.txt /*sgml.vim* sgml.vim syntax.txt /*sgml.vim*
sh-awk syntax.txt /*sh-awk*
sh-embed syntax.txt /*sh-embed*
sh.vim syntax.txt /*sh.vim* sh.vim syntax.txt /*sh.vim*
shell-window tips.txt /*shell-window* shell-window tips.txt /*shell-window*
shell_error-variable eval.txt /*shell_error-variable* shell_error-variable eval.txt /*shell_error-variable*
@ -8050,6 +8092,7 @@ unix os_unix.txt /*unix*
unlisted-buffer windows.txt /*unlisted-buffer* unlisted-buffer windows.txt /*unlisted-buffer*
up-down-motions motion.txt /*up-down-motions* up-down-motions motion.txt /*up-down-motions*
uppercase change.txt /*uppercase* uppercase change.txt /*uppercase*
urxvt-mouse options.txt /*urxvt-mouse*
use-cpo-save usr_41.txt /*use-cpo-save* use-cpo-save usr_41.txt /*use-cpo-save*
use-visual-cmds version4.txt /*use-visual-cmds* use-visual-cmds version4.txt /*use-visual-cmds*
useful-mappings tips.txt /*useful-mappings* useful-mappings tips.txt /*useful-mappings*
@ -8332,13 +8375,27 @@ vimdev intro.txt /*vimdev*
vimdiff diff.txt /*vimdiff* vimdiff diff.txt /*vimdiff*
vimfiles options.txt /*vimfiles* vimfiles options.txt /*vimfiles*
viminfo starting.txt /*viminfo* viminfo starting.txt /*viminfo*
viminfo-! options.txt /*viminfo-!*
viminfo-% options.txt /*viminfo-%*
viminfo-' options.txt /*viminfo-'*
viminfo-/ options.txt /*viminfo-\/*
viminfo-: options.txt /*viminfo-:*
viminfo-< options.txt /*viminfo-<*
viminfo-@ options.txt /*viminfo-@*
viminfo-c options.txt /*viminfo-c*
viminfo-encoding starting.txt /*viminfo-encoding* viminfo-encoding starting.txt /*viminfo-encoding*
viminfo-errors starting.txt /*viminfo-errors* viminfo-errors starting.txt /*viminfo-errors*
viminfo-f options.txt /*viminfo-f*
viminfo-file starting.txt /*viminfo-file* viminfo-file starting.txt /*viminfo-file*
viminfo-file-marks starting.txt /*viminfo-file-marks* viminfo-file-marks starting.txt /*viminfo-file-marks*
viminfo-file-name starting.txt /*viminfo-file-name* viminfo-file-name starting.txt /*viminfo-file-name*
viminfo-h options.txt /*viminfo-h*
viminfo-n options.txt /*viminfo-n*
viminfo-quote options.txt /*viminfo-quote*
viminfo-r options.txt /*viminfo-r*
viminfo-read starting.txt /*viminfo-read* viminfo-read starting.txt /*viminfo-read*
viminfo-read-write starting.txt /*viminfo-read-write* viminfo-read-write starting.txt /*viminfo-read-write*
viminfo-s options.txt /*viminfo-s*
viminfo-write starting.txt /*viminfo-write* viminfo-write starting.txt /*viminfo-write*
vimrc starting.txt /*vimrc* vimrc starting.txt /*vimrc*
vimrc-filetype usr_05.txt /*vimrc-filetype* vimrc-filetype usr_05.txt /*vimrc-filetype*
@ -8488,6 +8545,7 @@ xiterm syntax.txt /*xiterm*
xml-folding syntax.txt /*xml-folding* xml-folding syntax.txt /*xml-folding*
xml-omni-datafile insert.txt /*xml-omni-datafile* xml-omni-datafile insert.txt /*xml-omni-datafile*
xml.vim syntax.txt /*xml.vim* xml.vim syntax.txt /*xml.vim*
xor() eval.txt /*xor()*
xpm.vim syntax.txt /*xpm.vim* xpm.vim syntax.txt /*xpm.vim*
xterm-8-bit term.txt /*xterm-8-bit* xterm-8-bit term.txt /*xterm-8-bit*
xterm-8bit term.txt /*xterm-8bit* xterm-8bit term.txt /*xterm-8bit*

View File

@ -1,4 +1,4 @@
*tagsrch.txt* For Vim version 7.3. Last change: 2009 Feb 18 *tagsrch.txt* For Vim version 7.3. Last change: 2011 Oct 28
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -770,12 +770,12 @@ CTRL-W i Open a new window, with the cursor on the first line
{not in Vi} {not in Vi}
*:dli* *:dlist* *:dli* *:dlist*
:[range]dl[ist][!] [/]string[/] :[range]dli[st][!] [/]string[/]
Like "[D" and "]D", but search in [range] lines Like "[D" and "]D", but search in [range] lines
(default: whole file). (default: whole file).
See |:search-args| for [/] and [!]. {not in Vi} See |:search-args| for [/] and [!]. {not in Vi}
Note that ":dl" works like ":delete" with the "l" Note that ":dl" works like ":delete" with the "l"
flag. register.
*[_CTRL-D* *[_CTRL-D*
[ CTRL-D Jump to the first macro definition that contains the [ CTRL-D Jump to the first macro definition that contains the

View File

@ -1,4 +1,4 @@
*todo.txt* For Vim version 7.3. Last change: 2011 Jul 15 *todo.txt* For Vim version 7.3. Last change: 2012 Jun 01
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -36,24 +36,149 @@ not be repeated below, unless there is extra information.
Go through more coverity reports. Go through more coverity reports.
Crash in autocomplete, valgrind log. (Greg Weber, 2011 Apr 22)
Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10) Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10)
GTK: problem with 'L' in 'guioptions' changing the window width.
(Aaron Cornelius, 2012 Feb 6)
Patch: home_replace() does not work whtn 8.3 filename. (Yasuhiro
Matsumoto, 2012 Apr 18) Asked for another version of the patch.
Again May 18. Update May 29 on github. Does not handle multi-byte chars.
Javascript file where indent gets stuck on: GalaxyMaster, 2012 May 3.
Win32: When a directory name contains an exclamation mark, completion doesn't
complete the contents of the directory. No escaping for the "!"? (Jan
Stocker, 2012 Jan 5)
Patch for this request: (Lech Lorens, 2012 May 26)
7 Add 'j' flag to 'formatoptions': Remove comment leader when joining lines.
Issue 54: document behavior of -complete, also expands arg.
Cursor on wrong line after ":copen". (John Beckett, 2012 Apr 30)
Fix by Christian Brabandt, 2012 May 2. But calling changed_window_setting()
would be a simpler solution.
Syntax update problem in one buffer opened in two windows, bottom window is
not correctly updated. (Paul Harris, 2012 Feb 27)
Patch to add getsid(). (Tyru, 2011 Oct 2) Do we want this? Update Oct 4.
Or use expand('<sid>')?
Win32: When the taskbar is at the top of the screen creating the tabbar causes
the window to move unnecessarily. (William E. Skeith III, 2012 Jan 12)
Patch: 2012 Jan 13 Needs more work (2012 Feb 2)
ml_get error when using syntastic plugin. (Alex Efros, 2012 May 24)
Probably caused by recursive use of :lclose.
May also crash Vim (May 25)
Patch by Christian Brabandt, May 26. Is this right?
Help for b:undo_indent'. (Thilo Six, 2012 May 28)
Also question if examples are correct.
Docs patch for BufRead/BufReadPost. (Gary Johnson, 2012 May 28)
URXVT:
- will get stuck if byte sequence does not containe expected semicolon.
- Use urxvt mouse support also in xterm. Explanations:
http://www.midnight-commander.org/ticket/2662
Patch for IBM z/OS makefile. (Stephen Bovy, 2012 Apr 26)
Patch for configure (Stephen Bovy, 2012 Apr 28)
Updates later. Context diff May 7.
Patch to support browserfilter for GTK. (Christian Brabandt, 2012 May 22)
When running Vim in silent ex mode, an existing swapfile causes Vim to wait
for a user action without a prompt. (Maarten Billemont, 2012 Feb 3)
Do give the prompt? Quit with an error?
Patch for: (Christian Brabandt, 2011 Aug 24, updated patch)
8 ":sign unplace * file={filename}" should work. Also: ":sign unplace *
buffer={bufnr}". So one can remove all signs for one file/buffer.
Patch for auto copy selecting to + register. (by Christian Brabant, in email
from Sergey Vakulenko, 2012 Apr 27)
Patch to add "onselected" callback for completion. (Taro Muraoka, 2011 Sep 24)
Another for CompleteFuncOk. (Florian Klein, 2012 Jan 31)
Name it "CompleteFuncDone".
Patch for Make_mvc.mak and Make_ming.mak for Ruby support. (Yasuhiro
Matsumoto, 2012 Jan 30)
Patch for 'backupcopy' default behavior for symlinks on Windows. (David Pope,
2012 Mar 21, update Mar 31)
Patch to list user digraphs. (Christian Brabandt, 2012 Apr 14)
Patch for input method status. (Hirohito Higashi, 2012 Apr 18)
Problem with winfixheight and resizing. (Yukihiro Nakadaira, 2011 Sep 17)
Patch Sep 18.
Patch for has('unnamedplus') docs. (Tony Mechelynck, 2011 Sep 27)
And one for gui_x11.txt.
Patch for Python: add pyeval() and vim.bindeval() (zyx, 2012 Apr 15, update
Apr 16) Also changes for Lua. Update Apr 19. Update Apr 22.
":cd" doesn't work when current directory path contains "**".
finddir() has the same problem. (Yukihiro Nakadaira, 2012 Jan 10)
Requires a rewrite of the file_file_in_path code.
Problem with l: dictionary being locked in a function. (ZyX, 2011 Jul 21)
Issue 48: foldopen error can't be caught by try/catch
Patch to sort functions starting with '<' after others. Omit dict functions,
they can't be called. (Yasuhiro Matsumoto, 2011 Oct 11)
Patch to pass list to or(), and() and xor(). (Yasuhiro Matsumoto, 2012 Feb 8)
Patch to improve "it" and "at" text object matching. (Christian Brabandt, 2011
Nov 20)
Patch to improve GUI find/replace dialog. (Christian Brabandt, 2012 May 26)
Patch to add ":py3do". (Lilydjwg, 2012 Apr 7)
`[ moves to character after insert, instead of the last inserted character.
(Yukihiro Nakadaira, 2011 Dec 9)
Plugin for Modeleasy. (Massimiliano Tripoli, 2011 Nov 29)
When using remote-silent the -R flag is not passed on. (Axel Bender, 2012 May
31)
Updated syntax file for ssh_config, maintainer doesn't respond.
(Leonard Ehrenfried, 2011 Sep 26)
BufWinLeave triggers too late when quitting last window in a tab page. (Lech
Lorens, 2012 Feb 21)
Patch for 'transparency' option. (Sergiu Dotenco, 2011 Sep 17)
Only for MS-Windows. No documentation. Do we want this?
Patch to support cursor shape in Cygwin console. (Ben bgold, 2011 Dec 27)
Patch to support UTF-8 for Hangul. (Shawn Y.H. Kim, 2011 May 1) Patch to support UTF-8 for Hangul. (Shawn Y.H. Kim, 2011 May 1)
Needs more work. Needs more work. Pinged 2012 Jan 4.
With "unamedplus" in 'clipboard' pasting in Visual mode causes error for empty Issue 64: when 'incsearch' is on can't paste LF on command line.
register. (Michael Seiwald, 2011 Jun 28)
The :z command doesn't work exactly as it should. (ChangZhuo Chen, 2011 Mar 2)
Compare with how old Vi works and with posix spec. terminal is 80 x 24,
'scroll' option set to 11.
'cursorline' is displayed too short when there are concealed characters and 'cursorline' is displayed too short when there are concealed characters and
'list' is set. (Dennis Preiser) 'list' is set. (Dennis Preiser)
Patch 7.3.116 was the wrong solution. Patch 7.3.116 was the wrong solution.
Christian Brabandt has another incomplete patch. (2011 Jul 13) Christian Brabandt has another incomplete patch. (2011 Jul 13)
Also: Alignment in help with tabs gets messed up, esp. at ":help index".
Probably need to make a tab work like there was no concealing. Possibly with
an option. Like line wrapping works as if there is no concealing.
Patch by Dominique Pelle, Also fixes "fC" problem.
"fC" doesn't position the cursor correctly when there are concealed
characters. Patch by Christian Brabandt, 2011 Oct 11)
With concealed text mouse click doesn't put the cursor in the right position. With concealed text mouse click doesn't put the cursor in the right position.
(Herb Sitz) Fix by Christian Brabandt, 2011 Jun 16. Doesn't work properly, (Herb Sitz) Fix by Christian Brabandt, 2011 Jun 16. Doesn't work properly,
@ -63,29 +188,36 @@ Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set to 2,
only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug
21, Ben Fritz, 2010 Sep 14) 21, Ben Fritz, 2010 Sep 14)
When opening file from windows explorer, characters inside [] cause 'cursorline' is drawn incorrectly in diff mode. Patch by Christian Brabandt,
problems, even though double quotes are used. (Manuel Stol, 2011 Mar 9) 2012 Apr 2.
Patch to change the meaning of \n in substitute(). (motoya kurotsu, 2011 Mar 8) 'cursorline' works on a text line only. Add 'cursorscreenline' for
highlighting the screen line. (Christian Brabandt, 2012 Mar 31)
Gui menu edit/paste in block mode insert only inserts in one line (Bjorn Win32: Does building a 64 bit version with VC9 give warnings for int
Winckler, 2011 May 11) conversions? (Mike Williams)
Use function to set paste option and restore it, use CTRL-R+ to paste.
Help file foldexpr (ZyX) Win32: Patch to use task dialogs when available. (Sergiu Dotenco, 2011 Sep 17)
New feature, requires testing. Made some remarks.
Win32: Patch for alpha-blended icons and toolbar height. (Sergiu Dotenco, 2011
Sep 17) Asked for feedback from others.
Win32: Cannot cd into a directory that starts with a space. (Andy Wokula, 2012
Jan 19)
Win32: default for 'backupcopy' is wrong for a symbolic link. (mklink one
two). (Benjamin Fritz, 2012 Mar 15)
Need to escape $HOME on Windows? (ZyX, 2011 Jul 21)
"2" in 'formatopions' not working in comments. (Christian Corneliussen, 2011
Oct 26)
Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20) Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
Patch to automatically get version number into NSIS. (Guopeng Wen, 2011 May With "unamedplus" in 'clipboard' pasting in Visual mode causes error for empty
27) register. (Michael Seiwald, 2011 Jun 28) I can't reproduce it.
Patch to add more command completions (Dominique Pelle, 2011 Jun 25)
Patch to have GvimExt not use "edit with existing Vim" entries.
(Jerome Vuarand, 2011 Jun 22)
Patch to make character classes work with multi-byte characters.
(Dominique Pelle, 2011 May 31, update July 11)
In GTK Gvim, setting 'lines' and 'columns' to 99999 causes a crash (Tony In GTK Gvim, setting 'lines' and 'columns' to 99999 causes a crash (Tony
Mechelynck, 2011 Apr 25). Can reproduce the crash sometimes: Mechelynck, 2011 Apr 25). Can reproduce the crash sometimes:
@ -102,19 +234,9 @@ The error was 'RenderBadPicture (invalid Picture parameter)'.
backtrace from your debugger if you break on the gdk_x_error() function.) backtrace from your debugger if you break on the gdk_x_error() function.)
Check that number of pixels doesn't go above 65535? Check that number of pixels doesn't go above 65535?
8 Add an event like CursorHold that is triggered repeatedly, not just once
after typing something.
Need for CursorHold that retriggers. Use a key that doesn't do anything, or a
function that resets did_cursorhold.
Patch by Christian Brabandt, 2011 May 6.
popup completion menu closes quickly when there is a fold in the buffer. (Jan popup completion menu closes quickly when there is a fold in the buffer. (Jan
Christoph Ebersbach, 2011 Jul 3) Christoph Ebersbach, 2011 Jul 3)
CursorHold repeats typed key when it's the start of a mapping.
(Will Gray, 2011 Mar 23)
Christian Brabandt: problem is that OP_PENDING isn't set.
Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26) Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26)
This line hangs Vim, because of syntax HL: This line hangs Vim, because of syntax HL:
@ -123,18 +245,27 @@ call append(line, "INFO ....12....18....24....30....36....42....48....54....60.
When using a Vim server, a # in the path causes an error message. When using a Vim server, a # in the path causes an error message.
(Jeff Lanzarotta, 2011 Feb 17) (Jeff Lanzarotta, 2011 Feb 17)
Setting $HOME on MS-Windows is not very well documented. Suggestion by Ben
Fritz (2011 Oct 27).
Bug: E685 error for func_unref(). (ZyX, 2010 Aug 5) Bug: E685 error for func_unref(). (ZyX, 2010 Aug 5)
Bug: Windows 7 64 bit system freezes when 'clipboard' set to "unnamed" and Bug: Windows 7 64 bit system freezes when 'clipboard' set to "unnamed" and
doing ":g/test/d". Putting every delete on the clipboard? (Robert Chan, 2011 doing ":g/test/d". Putting every delete on the clipboard? (Robert Chan, 2011
Jun 17) Jun 17)
When there is a ">" in a line that "gq" wraps to the start of the next line,
then the following line will pick it up as a leader. Should get the leader
from the first line, not a wrapped line. (Matt Ackeret, 2012 Feb 27)
Using ":break" or something else that stops executing commands inside a Using ":break" or something else that stops executing commands inside a
":finally" does not rethrow a previously uncaught exception. (ZyX, 2010 Oct ":finally" does not rethrow a previously uncaught exception. (ZyX, 2010 Oct
15) 15)
Vim using lots of memory when joining lines. (John Little, 2010 Dec 3) Vim using lots of memory when joining lines. (John Little, 2010 Dec 3)
Changes to manpage plugin. (Elias Toivanen, 2011 Jul 25)
On 64 bit MS-Windows "long" is only 32 bits, but we sometimes need to store a On 64 bit MS-Windows "long" is only 32 bits, but we sometimes need to store a
64 bits value. Change all number options to use nropt_T and define it to the 64 bits value. Change all number options to use nropt_T and define it to the
right type. right type.
@ -142,18 +273,20 @@ right type.
string() can't parse back "inf" and "nan". Fix documentation or fix code? string() can't parse back "inf" and "nan". Fix documentation or fix code?
(ZyX, 2010 Aug 23) (ZyX, 2010 Aug 23)
Make 'formatprg' global-local. (Sung Pae)
When doing "redir => s:foo" in a script and then "redir END" somewhere else When doing "redir => s:foo" in a script and then "redir END" somewhere else
(e.g. in a function) it can't find s:foo. (e.g. in a function) it can't find s:foo.
When setqflist() uses a filename that triggers a BufReadCmd autocommand Vim
doesn't jump to the correct line with :cfirst. (ZyX, 2011 Sep 18)
7 Make "ga" show the digraph for a character, if it exists.
Patch from Christian Brabandt, 2011 Aug 19.
maparg() does not show the <script> flag. When temporarily changing a maparg() does not show the <script> flag. When temporarily changing a
mapping, how to restore the script ID? mapping, how to restore the script ID?
Patch to fix \%V item in regexp. (Christian Brabandt, 2010 Nov 8)
Update Nov 19. James Vega: still not right. Christian: it's difficult.
Patch to add up to 99 match groups. (Christian Brabandt, 2010 Dec 22)
Also add named groups: \%{name}(re) and \%{name}g
Bug in try/catch: return with invalid compare throws error that isn't caught. Bug in try/catch: return with invalid compare throws error that isn't caught.
(ZyX, 2011 Jan 26) (ZyX, 2011 Jan 26)
@ -171,16 +304,14 @@ Build problem with small features on Mac OS X 10.6. (Rainer, 2011 Jan 24)
"0g@$" puts '] on last byte of multi-byte. (ZyX, 2011 Jan 22) "0g@$" puts '] on last byte of multi-byte. (ZyX, 2011 Jan 22)
Deleting a linewise selection that includes the last line of the file leaves
an empty line. (Ben Schmidt, 2011 Mar 17)
Patch by Christian Brabandt, 2011 Mar 19.
Patch to support sorting on floating point number. (Alex Jakushev, 2010 Oct Patch to support sorting on floating point number. (Alex Jakushev, 2010 Oct
30) 30)
Patch to addd TextDeletePost and TextYankPost events. (Philippe Vaucher, 2011 Patch to addd TextDeletePost and TextYankPost events. (Philippe Vaucher, 2011
May 24) Update May 26. May 24) Update May 26.
Patch for :tabrecently. (Hirokazu Yoshida, 2012 Jan 30)
When a script contains "redir => s:foo" but doesn't end redirection, a When a script contains "redir => s:foo" but doesn't end redirection, a
following "redir" command gives an error for not being able to access s:foo. following "redir" command gives an error for not being able to access s:foo.
(ZyX, 2011 Mar 27) (ZyX, 2011 Mar 27)
@ -194,6 +325,29 @@ With a filler line in diff mode, it isn't displayed in the column with line
number, but it is in the sign column. Doesn't look right. (ZyX 2011 Jun 5) number, but it is in the sign column. Doesn't look right. (ZyX 2011 Jun 5)
Patch by Christian Brabandt, 2011 Jun 5. Introduces new problems. Patch by Christian Brabandt, 2011 Jun 5. Introduces new problems.
8 Add a command to jump to the next character highlighted with "Error".
Patch by Christian Brabandt, uses ]e [e ]t and [t. 2011 Aug 9.
8 Add an event like CursorHold that is triggered repeatedly, not just once
after typing something.
Need for CursorHold that retriggers. Use a key that doesn't do anything, or a
function that resets did_cursorhold.
Patch by Christian Brabandt, 2011 May 6.
7 Use "++--", "+++--" for different levels instead of "+---" "+----".
Patch by Christian Brabandt, 2011 Jul 27.
Update by Ben Fritz, with fix for TOhtml. (2011 Jul 30)
9 Add %F to 'errorformat': file name without spaces. Useful on Unix to
avoid matching something up to a time 11:22:33.
Patch by Christian Brabandt, 2011 Jul 27.
Patch to fix \%V item in regexp. (Christian Brabandt, 2010 Nov 8)
Update Nov 19. James Vega: still not right. Christian: it's difficult.
Patch to add up to 99 match groups. (Christian Brabandt, 2010 Dec 22)
Also add named groups: \%{name}(re) and \%{name}g
In the sandbox it's not allowed to do many things, but it's possible to change In the sandbox it's not allowed to do many things, but it's possible to change
or set variables. Add a way to prevent variables from being changed in the or set variables. Add a way to prevent variables from being changed in the
sandbox? E.g.: ":protect g:restore_settings". sandbox? E.g.: ":protect g:restore_settings".
@ -223,15 +377,13 @@ New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30)
"L'Italie" noted as a spell error at start of the sentence. (Dominique Pelle, "L'Italie" noted as a spell error at start of the sentence. (Dominique Pelle,
2011 Feb 27) 2011 Feb 27)
Patch to fail if configure can't find an interface, such as Python.
(Shlomi Fish, 2011 Jul 11)
Copy/paste between Vim and Google chrome doesn't work well for multi-byte Copy/paste between Vim and Google chrome doesn't work well for multi-byte
characters. (Ben Haskell, 2010 Sep 17) characters. (Ben Haskell, 2010 Sep 17)
When putting text in the cut buffer (when exiting) and conversion doesn't work When putting text in the cut buffer (when exiting) and conversion doesn't work
properly, Prepend "ENC==={value of 'enc'}:" to the text and don't convert? properly, Prepend "ENC==={value of 'enc'}:" to the text and don't convert?
Then it should at least work from Vim to Vim and in other applications it's Then it should at least work from Vim to Vim and in other applications it's
clear why it doesn't work. clear why it doesn't work.
Experimental patch by Christian Brabandt, 2012 Apr 19.
Editing a file with a ^M with 'ff' set to "mac", opening a help file, then the Editing a file with a ^M with 'ff' set to "mac", opening a help file, then the
^M is displayed as ^J sometimes. Getting 'ff' value from wrong window/buffer? ^M is displayed as ^J sometimes. Getting 'ff' value from wrong window/buffer?
@ -257,6 +409,8 @@ the system encoding (usually utf-8).
Problem producing tags file when hebrew.frx is present. It has a BOM. Problem producing tags file when hebrew.frx is present. It has a BOM.
Results in E670. (Tony Mechelynck, 2010 May 2) Results in E670. (Tony Mechelynck, 2010 May 2)
'beval' option should be global-local.
Ruby: ":ruby print $buffer.number" returns zero. Ruby: ":ruby print $buffer.number" returns zero.
setpos() does not restore cursor position after :normal. (Tyru, 2010 Aug 11) setpos() does not restore cursor position after :normal. (Tyru, 2010 Aug 11)
@ -289,6 +443,10 @@ mkdir().
'cindent' not correct when 'list' is set. (Zdravi Korusef, 2010 Apr 15) 'cindent' not correct when 'list' is set. (Zdravi Korusef, 2010 Apr 15)
C-indenting: A matching { in a comment is ignored, but intermediate { are not
checked to be in a comment. Implement FM_SKIPCOMM flag of findmatchlimit().
Issue 46.
When 'paste' is changed with 'pastetoggle', the ruler doesn't reflect this When 'paste' is changed with 'pastetoggle', the ruler doesn't reflect this
right away. (Samuel Ferencik, 2010 Dec 7) right away. (Samuel Ferencik, 2010 Dec 7)
@ -309,26 +467,20 @@ Echo starts in the wrong column:
Patch for GVimExt to show an icon. (Dominik Riebeling, 2010 Nov 7) Patch for GVimExt to show an icon. (Dominik Riebeling, 2010 Nov 7)
GvimExt sets $LANG in the wrong way. Patch by Yasuhiro Matsumoto, 2011 Jun
15. This will fix issue no 11.
When writing a file > 2Gbyte, the reported number of bytes is negative. When writing a file > 2Gbyte, the reported number of bytes is negative.
(Antonio Colombo, 2010 Dec 18) (Antonio Colombo, 2010 Dec 18)
Patch: Let rare word highlighting overrule good word highlighting. Patch: Let rare word highlighting overrule good word highlighting.
(Jakson A. Aquino, 2010 Jul 30, again 2011 Jul 2) (Jakson A. Aquino, 2010 Jul 30, again 2011 Jul 2)
Patch to make more characters work in dialogs. (Yankwei Jia, 2010 Aug 4)
Patch for VisVim, pass file name to VimOpenFile. (Jiri Sedlak, 2010 Nov 12)
When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines
instead of one. (Constantin Pan, 2010 Sep 10) instead of one. (Constantin Pan, 2010 Sep 10)
Crash in setqflist(). (Benoit Mortgat, 2010 Nov 18) Crash in setqflist(). (Benoit Mortgat, 2010 Nov 18)
Patch to handle resizing when tab is opened, when at full size. (Yukihiro Gui menu edit/paste in block mode insert only inserts in one line (Bjorn
Nakadaira, 2010 Jan 6) Winckler, 2011 May 11)
Requires a map mode for Insert mode started from blockwise Visual mode.
Writing nested List and Dict in viminfo gives error message and can't be read Writing nested List and Dict in viminfo gives error message and can't be read
back. (Yukihiro Nakadaira, 2010 Nov 13) back. (Yukihiro Nakadaira, 2010 Nov 13)
@ -374,6 +526,8 @@ path.
Test 51 fails when language set to German. (Marco, 2011 Jan 9) Test 51 fails when language set to German. (Marco, 2011 Jan 9)
Dominique can't reproduc it. Dominique can't reproduc it.
'ambiwidth' should be global-local.
":function f(x) keepjumps" creates a function where every command is executed ":function f(x) keepjumps" creates a function where every command is executed
like it has ":keepjumps" before it. like it has ":keepjumps" before it.
@ -386,10 +540,6 @@ Patch to support :undo absolute jump to file save number. (Christian Brabandt,
Patch to use 'foldnextmax' also for "marker" foldmethod. (Arnaud Lacombe, 2011 Patch to use 'foldnextmax' also for "marker" foldmethod. (Arnaud Lacombe, 2011
Jan 7) Jan 7)
When setting 'undofile' while the file is already loaded, but unchanged, try
to read the undo file. Requires computing a checksum of the text. (Andy
Wokula)
Bug with 'incsearch' going to wrong line. (Wolfram Kresse, 2009 Aug 17) Bug with 'incsearch' going to wrong line. (Wolfram Kresse, 2009 Aug 17)
Only with "vim -u NONE". Only with "vim -u NONE".
@ -417,25 +567,18 @@ it. Caused by "syntax sync fromstart" in combination with patch 7.2.274.
Generally, folding with 'foldmethod' set to "syntax" is slow. Do profiling to Generally, folding with 'foldmethod' set to "syntax" is slow. Do profiling to
find out why. find out why.
Syntax priority problem. (Charles Campbell, 2011 Sep 15)
When completion inserts the first match, it may trigger the line to be folded. When completion inserts the first match, it may trigger the line to be folded.
Disable updating folds while completion is active? (Peter Odding, 2010 Jun 9) Disable updating folds while completion is active? (Peter Odding, 2010 Jun 9)
Using ":call foo#d.f()" doesn't autoload the "foo.vim" file. Works OK for Using ":call foo#d.f()" doesn't autoload the "foo.vim" file. Works OK for
echo, just not for ":call" and ":call call()". (Ted, 2011 Mar 17) echo, just not for ":call" and ":call call()". (Ted, 2011 Mar 17)
Cannot use getchar() inside :normal and using an expression mapping. Is this
supposed to work? (XyX, 2010 Sep 22)
When using an expression mapping with a multi-byte character each byte is
converted to a utf-8 character. (ZyX, 2011 Jan 4)
Patch for possible solution. (Yukihiro Nakadaira, 2011 Jan 5)
When a:base in 'completefunc' starts with a number it's passed as a number, When a:base in 'completefunc' starts with a number it's passed as a number,
not a string. (Sean Ma) Need to add flag to call_func_retlist() to force a not a string. (Sean Ma) Need to add flag to call_func_retlist() to force a
string value. string value.
There is no command line completion for ":lmap".
":e ~br<Tab>" does not complete to ":e /home/bram/". Would need to use ":e ~br<Tab>" does not complete to ":e /home/bram/". Would need to use
getpwent() to find all the matches. getpwent() to find all the matches.
@ -473,6 +616,8 @@ Win32: Expanding 'path' runs into a maximum size limit. (bgold12, 2009 Nov 15)
Win32: Patch for enabling quick edit mode in console. (Craig Barkhouse, 2010 Win32: Patch for enabling quick edit mode in console. (Craig Barkhouse, 2010
Sep 1) Sep 1)
Win32: Patch for using .png files for icons. (Charles Peacech, 2012 Feb 5)
Putting a Visual block while 'visualedit' is "all" does not leave the cursor Putting a Visual block while 'visualedit' is "all" does not leave the cursor
on the first character. (John Beckett, 2010 Aug 7) on the first character. (John Beckett, 2010 Aug 7)
@ -698,8 +843,6 @@ the buffer to be unmodified.
Unfinished patch by Ian Kelling, 2008 Jul 11. Followup Jul 14, need to have Unfinished patch by Ian Kelling, 2008 Jul 11. Followup Jul 14, need to have
another look at it. another look at it.
Patch for c.vim and cpp.vim syntax files. (Chung-chieh Shan, 2008 Nov 26)
c.vim: XXX in a comment is colored yellow, but not when it's after "#if 0". c.vim: XXX in a comment is colored yellow, but not when it's after "#if 0".
(Ilya Dogolazky, 2009 Aug 7) (Ilya Dogolazky, 2009 Aug 7)
@ -756,11 +899,6 @@ an alternate solution, also for src/ex_getln.c.
This also fails when the file or directory name contains "%". (Thoml, 2008 This also fails when the file or directory name contains "%". (Thoml, 2008
July 7) July 7)
The str2special() function doesn't handle multi-byte characters properly.
Patch from Vladimir Vichniakov, 2007 Apr 24.
Should clean up the whole function. Also allow modifiers like <S-Char-32>?
find_special_key() also has this problem.
Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull, Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull,
2008 May 14) 2008 May 14)
@ -836,14 +974,9 @@ try/catch not working for argument of return. (Matt Wozniski, 2008 Sep 15)
try/catch not working when inside a for loop. (ZyX, 2011 Jan 25) try/catch not working when inside a for loop. (ZyX, 2011 Jan 25)
Recognize and ignore BOM in error file. (Aleksey Baibarin)
":tab help" always opens a new tab, while ":help" re-uses an existing window. ":tab help" always opens a new tab, while ":help" re-uses an existing window.
Would be more consistent when an existing tab is re-used. (Tony Mechelynck) Would be more consistent when an existing tab is re-used. (Tony Mechelynck)
":tab drop filename" doesn't work nicely when "filename" is open in a window
in another tab. (Tony Mechelynck, 2009 Feb 13)
Add ":nofold". Range will apply without expanding to closed fold. Add ":nofold". Range will apply without expanding to closed fold.
Including NFA regexp code: Including NFA regexp code:
@ -854,6 +987,7 @@ Performance tests:
- ~/vim/test/slowsearch - ~/vim/test/slowsearch
- ~/vim/test/rgb.vim - ~/vim/test/rgb.vim
- ~/vim/text/FeiqCfg.xml (file from Netjune) - ~/vim/text/FeiqCfg.xml (file from Netjune)
- ~/vim/text/edl.svg (also XML)
- search for a.*e*exn in the vim executable. Go to last line to use - search for a.*e*exn in the vim executable. Go to last line to use
'hlsearch'. 'hlsearch'.
@ -871,9 +1005,6 @@ Can't easily close the help window, like ":pc" closes the preview window and
":ccl" closes the quickfix window. Add ":hclose". (Chris Gaal) ":ccl" closes the quickfix window. Add ":hclose". (Chris Gaal)
Patch for :helpclose, Christian Brabandt, 2010 Sep 6. Patch for :helpclose, Christian Brabandt, 2010 Sep 6.
Patch for :lmake not updating the quickfix window title. (Lech Lorens, 2011
Mar 26)
When 'diffopt' has "context:0" a single deleted line causes two folds to merge When 'diffopt' has "context:0" a single deleted line causes two folds to merge
and mess up syncing. (Austin Jennings, 2008 Jan 31) and mess up syncing. (Austin Jennings, 2008 Jan 31)
@ -934,9 +1065,6 @@ popup menu over it, first draw the new popup menu, remember its position and
size and then redraw the text, skipping the characters under the popup menu. size and then redraw the text, skipping the characters under the popup menu.
This should avoid flicker. Other solution by A.Politz, 2007 Aug 22. This should avoid flicker. Other solution by A.Politz, 2007 Aug 22.
When the popup menu is close to the edge of the window it is truncated. Patch
to anchor the popup menu in a different way. (James Vega, 2008 Jul 30)
Windows 98: pasting from the clipboard with text from another application has Windows 98: pasting from the clipboard with text from another application has
a trailing NUL. (Joachim Hofmann) Perhaps the length specified for CF_TEXT a trailing NUL. (Joachim Hofmann) Perhaps the length specified for CF_TEXT
isn't right? isn't right?
@ -988,6 +1116,16 @@ Latest version: 2011 May 18
8 Windows install with NSIS: make it possible to do a silent install, see 8 Windows install with NSIS: make it possible to do a silent install, see
http://nsis.sourceforge.net/Docs/Chapter4.html#4.12 http://nsis.sourceforge.net/Docs/Chapter4.html#4.12
Version from Guopeng Wen that does this (2010 Dec 27) Version from Guopeng Wen that does this (2010 Dec 27)
Alternative: MSI installer: https://github.com/petrkle/vim-msi/
Windows installer should install 32-bit version of right-click handler also on
64-bit systems. (Brian Cunningham, 2011 Dec 28)
Windows installer could add a "open in new tab of existing Vim" menu entry.
Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
Just have two choices, always using one Vim and selecting between using an
argument list or opening each file in a separate tab.
(Erik Falor, 2008 May 21, 2008 Jun 26)
Windows installer: licence text should not use indent, causes bad word wrap. Windows installer: licence text should not use indent, causes bad word wrap.
(Benjamin Fritz, 2010 Aug 16) (Benjamin Fritz, 2010 Aug 16)
@ -1042,12 +1180,6 @@ pointer in long and seek offset in 64 bit var.
Win32: patch for fullscreen mode. (Liushaolin, 2008 April 17) Win32: patch for fullscreen mode. (Liushaolin, 2008 April 17)
Win32: When 'shell' is cmd.exe this command fails:
echo system('"c:/path/echo.exe" "foo bar"')
Should we set the default for 'shellxquote' to a double quote, when 'shell'
contains "cmd" in the tail? (Benjamin Fritz, 2008 Oct 13)
Also set 'shellcmdflag' to include /s.
Win32: When there is 4 Gbyte of memory mch_avail_mem() doesn't work properly. Win32: When there is 4 Gbyte of memory mch_avail_mem() doesn't work properly.
Unfinished patch by Jelle Geerts, 2008 Aug 24. Unfinished patch by Jelle Geerts, 2008 Aug 24.
Let mch_avail_mem() return Kbyte instead? Let mch_avail_mem() return Kbyte instead?
@ -1075,9 +1207,6 @@ If the variable "g:x#y#z" exists completion after ":echo g:x#" doesn't work.
Feature request: Command to go to previous tab, like what CTRL-W p does for Feature request: Command to go to previous tab, like what CTRL-W p does for
windows. (Adam George) windows. (Adam George)
When using input() in a loop and then ":echo" the display column isn't right.
(Benjamin Fritz, 2008 Aug 28) Patch by Ben Schmidt, 2008 Sep 2.
F1 - F4 in an xterm produce a different escape sequence when used with a F1 - F4 in an xterm produce a different escape sequence when used with a
modifier key. Need to catch three different sequences. Use K_ZF1, like modifier key. Need to catch three different sequences. Use K_ZF1, like
K_ZHOME? (Dickey, 2007 Dec 2) K_ZHOME? (Dickey, 2007 Dec 2)
@ -1158,12 +1287,6 @@ When unloading a buffer in a BufHidden autocommand the hidden flag is reset?
Substituting an area with a line break with almost the same area does change Substituting an area with a line break with almost the same area does change
the Visual area. Can this be fixed? (James Vega, 2006 Sept 15) the Visual area. Can this be fixed? (James Vega, 2006 Sept 15)
Windows installer could add a "open in new tab of existing Vim" menu entry.
Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
Just have two choices, always using one Vim and selecting between using an
argument list or opening each file in a separate tab.
(Erik Falor, 2008 May 21, 2008 Jun 26)
GUI: When combining fg en bg make sure they are not equal. GUI: When combining fg en bg make sure they are not equal.
Spell checking: Add a way to specify punctuation characters. Add the Spell checking: Add a way to specify punctuation characters. Add the
@ -1438,6 +1561,8 @@ Patch to support horizontal scroll wheel in GTK. Untested. (Bjorn Winckler,
At next release: At next release:
- Rename src/Makefile and create a new one like toplevel Makefile that - Rename src/Makefile and create a new one like toplevel Makefile that
creates auto/config.mk when it's not there? (Ben Schmidt, 2011 Feb 11) creates auto/config.mk when it's not there? (Ben Schmidt, 2011 Feb 11)
- Improve plugin handling: Automatic updates, handle dependencies?
E.g. Vundle: https://github.com/gmarik/vundle
More patches: More patches:
@ -1504,6 +1629,7 @@ Awaiting updated patches:
Smilauer, 2004 Sep 13, fix Oct 31, update 2007 May 30) Smilauer, 2004 Sep 13, fix Oct 31, update 2007 May 30)
Version for latest MacVim: Tobia Conforto, 2009 Nov 23 Version for latest MacVim: Tobia Conforto, 2009 Nov 23
More recent version: https://retracile.net/wiki/VimBreakIndent More recent version: https://retracile.net/wiki/VimBreakIndent
Posted to vim-dev by Taylor Hedberg, 2011 Nov 25
8 Add a few more command names to the menus. Patch from Jiri Brezina 8 Add a few more command names to the menus. Patch from Jiri Brezina
(28 feb 2002). Will mess the translations... (28 feb 2002). Will mess the translations...
7 ATTENTION dialog choices are more logical when "Delete it' appears 7 ATTENTION dialog choices are more logical when "Delete it' appears
@ -1659,18 +1785,6 @@ Win32 GUI known bugs:
the wide functions. the wide functions.
8 On Windows 98 the unicows library is needed to support functions with UCS2 8 On Windows 98 the unicows library is needed to support functions with UCS2
file names. Can we load unicows.dll dynamically? file names. Can we load unicows.dll dynamically?
8 Win32: With two monitors, gvim partly on both, and adding/removing a
scrollbar Vim resizes and moves to one of the monitors. (Chris Monkiewicz,
2008 Oct)
8 When the primary monitor is below or right of the secondary monitor and
Vim is on the secondary monitor it will often move to the primary monitor.
Window position coordinates can be negative. (James Harvey)
When the primary monitor is on the right, coordinates on the left monitor
are negative. Clamping to zero means gvim jups to the primary monitor.
(Michael Wookey, 2010 Aug 17)
Probably the same issue: When the GUI tab pages line is displayed Vim
jumps from the secondary to the primary monitor. (Afton Lewis, 2007 Mar 9)
Possible solution using GetSystemMetrics() (Sergey Khorev, 2010 Aug 18)
8 The -P argument doesn't work very well with many MDI applications. 8 The -P argument doesn't work very well with many MDI applications.
The last argument of CreateWindowEx() should be used, see MSDN docs. The last argument of CreateWindowEx() should be used, see MSDN docs.
Tutorial: http://win32assembly.online.fr/tut32.html Tutorial: http://win32assembly.online.fr/tut32.html
@ -2662,7 +2776,6 @@ Folding:
8 Add "z/" and "z?" for searching in not folded text only. 8 Add "z/" and "z?" for searching in not folded text only.
9 Add search pattern item to only match in closed or open fold and/or fold 9 Add search pattern item to only match in closed or open fold and/or fold
with certain level. Allows doing ":g/pat/cmd" to work on closed folds. with certain level. Allows doing ":g/pat/cmd" to work on closed folds.
7 Use "++--", "+++--" for different levels instead of "+---" "+----".
8 When a closed fold is displayed open because of 'foldminlines', the 8 When a closed fold is displayed open because of 'foldminlines', the
behavior of commands is still like the fold is closed. How to make the behavior of commands is still like the fold is closed. How to make the
user aware of this? user aware of this?
@ -2842,7 +2955,6 @@ Syntax highlighting:
8 Highlight the text between two matching parens (e.g., with a grey 8 Highlight the text between two matching parens (e.g., with a grey
background) when on one of the parens or in between them. background) when on one of the parens or in between them.
Option for the matchparen plugin? Option for the matchparen plugin?
8 Add a command to jump to the next character highlighted with "Error".
8 When using a cterm, and no ctermfg or ctermbg are defined, use start/stop 8 When using a cterm, and no ctermfg or ctermbg are defined, use start/stop
sequences. Add remark in docs that :if 'term' == "term-name" should be sequences. Add remark in docs that :if 'term' == "term-name" should be
used. used.
@ -3143,10 +3255,6 @@ Performance:
Add command to compile a vim script and add it to the file in-place. Add command to compile a vim script and add it to the file in-place.
Split Ex command executing into a parsing and executing phase. Split Ex command executing into a parsing and executing phase.
Use compiled code for functions, while loops, etc. Use compiled code for functions, while loops, etc.
8 When editing a file with extremely long lines (e.g., an executable), the
"linerest" in readfile() is allocated twice to be able to copy what was
read so far. Use realloc() instead? Or split the line when allocating
memory fails and "linerest" is big (> 100000)?
8 When defining autocommands (e.g., from $VIMRUNTIME/filetype.vim), need to 8 When defining autocommands (e.g., from $VIMRUNTIME/filetype.vim), need to
compare each pattern with all existing patterns. Use a hash code to avoid compare each pattern with all existing patterns. Use a hash code to avoid
using strcmp() too often? using strcmp() too often?
@ -3842,7 +3950,6 @@ Insert mode:
- Add option to 'cindent' to set indent for comments outside of {}? - Add option to 'cindent' to set indent for comments outside of {}?
- Make a command to line up a comment after a code line with a previous - Make a command to line up a comment after a code line with a previous
comment after a code line. Can 'cindent' do this automatically? comment after a code line. Can 'cindent' do this automatically?
7 Add 'j' flag to 'formatoptions': Remove comment leader when joining lines.
- When 'cindent'ing a '}', showmatch is done before fixing the indent. It - When 'cindent'ing a '}', showmatch is done before fixing the indent. It
looks better when the indent is fixed before the showmatch. (Webb) looks better when the indent is fixed before the showmatch. (Webb)
- Add option to make indenting work in comments too (for commented-out - Add option to make indenting work in comments too (for commented-out
@ -4395,9 +4502,6 @@ Sessions:
Options: Options:
7 ":with option=value | command": temporarily set an option value and 7 ":with option=value | command": temporarily set an option value and
restore it after the command has executed. restore it after the command has executed.
7 Setting an option always sets "w_set_curswant", while this is only
required for a few options. Only do it for those options to avoid the
side effect.
8 Make "old" number options that really give a number of effects into string 8 Make "old" number options that really give a number of effects into string
options that are a comma separated list. The old number values should options that are a comma separated list. The old number values should
also be supported. also be supported.
@ -4479,11 +4583,8 @@ Marks:
Digraphs: Digraphs:
7 Make "ga" show the digraph for a character, if it exists. 7 Make "ga" show the keymap for a character, if it exists.
Also the keymap?
Also show the code of the character after conversion to 'filenecoding'. Also show the code of the character after conversion to 'filenecoding'.
- Make it possible to enter "r<C-E>" and "r<C-Y>" (get character from line
below/above).
- Use digraph table to tell Vim about the collating sequence of special - Use digraph table to tell Vim about the collating sequence of special
characters? characters?
8 Add command to remove one or more (all) digraphs. (Brown) 8 Add command to remove one or more (all) digraphs. (Brown)
@ -4601,8 +4702,6 @@ Debug mode:
Various improvements: Various improvements:
9 Python: be able to define a Python function that can be called directly 9 Python: be able to define a Python function that can be called directly
from Vim script. Requires converting the arguments and return value. from Vim script. Requires converting the arguments and return value.
8 ":sign unplace * file={filename}" should work. Also: ":sign unplace *
buffer={bufnr}". So one can remove all signs for one file/buffer.
7 Add plugins for formatting? Should be able to make a choice depending on 7 Add plugins for formatting? Should be able to make a choice depending on
the language of a file (English/Korean/Japanese/etc.). the language of a file (English/Korean/Japanese/etc.).
Setting the 'langformat' option to "chinese" would load the Setting the 'langformat' option to "chinese" would load the
@ -4620,8 +4719,6 @@ Various improvements:
7 Instead of filtering errors with a shell script it should be possible to 7 Instead of filtering errors with a shell script it should be possible to
do this with Vim script. A function that filters the raw text that comes do this with Vim script. A function that filters the raw text that comes
from the 'makeprg'? from the 'makeprg'?
9 Add %F to 'errorformat': file name without spaces. Useful on Unix to
avoid matching something up to a time 11:22:33.
- Add %b to 'errorformat': buffer number. (Yegappan Lakshmanan / Suresh - Add %b to 'errorformat': buffer number. (Yegappan Lakshmanan / Suresh
Govindachar) Govindachar)
7 Add a command that goes back to the position from before jumping to the 7 Add a command that goes back to the position from before jumping to the

View File

@ -1,4 +1,4 @@
*uganda.txt* For Vim version 7.3. Last change: 2010 Aug 07 *uganda.txt* For Vim version 7.3. Last change: 2012 May 28
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -266,7 +266,7 @@ Credit Card: You can use PayPal to send money with a Credit card. This is
Others: Transfer to one of these accounts if possible: Others: Transfer to one of these accounts if possible:
Postbank, account 4548774 Postbank, account 4548774
Swift code: INGB NL 2A Swift code: INGB NL 2A
IBAN: NL47 PSTB 0004 5487 74 IBAN: NL95 INGB 0004 5487 74
under the name "stichting ICCF Holland", Lisse under the name "stichting ICCF Holland", Lisse
If that doesn't work: If that doesn't work:
Rabobank Lisse, account 3765.05.117 Rabobank Lisse, account 3765.05.117

View File

@ -1,4 +1,4 @@
*undo.txt* For Vim version 7.3. Last change: 2010 Dec 19 *undo.txt* For Vim version 7.3. Last change: 2012 Mar 04
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -35,8 +35,10 @@ CTRL-R Redo [count] changes which were undone. {Vi: redraw
:red[o] Redo one change which was undone. {Vi: no redo} :red[o] Redo one change which was undone. {Vi: no redo}
*U* *U*
U Undo all latest changes on one line. {Vi: while not U Undo all latest changes on one line, the line where
moved off of it} the latest change was made. |U| itself also counts as
a change, and thus |U| undoes a previous |U|.
{Vi: while not moved off of the last modified line}
The last changes are remembered. You can use the undo and redo commands above The last changes are remembered. You can use the undo and redo commands above
to revert the text to how it was before each change. You can also apply the to revert the text to how it was before each change. You can also apply the
@ -248,7 +250,7 @@ detect if an undo file is no longer synchronized with the file it was written
for (with a hash of the file contents) and ignore it when the file was changed for (with a hash of the file contents) and ignore it when the file was changed
after the undo file was written, to prevent corruption. An undo file is also after the undo file was written, to prevent corruption. An undo file is also
ignored if its owner differs from the owner of the edited file. Set 'verbose' ignored if its owner differs from the owner of the edited file. Set 'verbose'
to get a message about that. to get a message about that when opening a file.
Undo files are normally saved in the same directory as the file. This can be Undo files are normally saved in the same directory as the file. This can be
changed with the 'undodir' option. changed with the 'undodir' option.
@ -265,7 +267,12 @@ respectively:
(the magic number at the start of the file is wrong), then (the magic number at the start of the file is wrong), then
this fails, unless the ! was added. this fails, unless the ! was added.
If it exists and does look like an undo file it is If it exists and does look like an undo file it is
overwritten. overwritten. If there is no undo-history, nothing will be
written.
Implementation detail: Overwriting happens by first deleting
the existing file and then creating a new file with the same
name. So it is not possible to overwrite an existing undofile
in a write-protected directory.
{not in Vi} {not in Vi}
:rundo {file} Read undo history from {file}. :rundo {file} Read undo history from {file}.

View File

@ -1,4 +1,4 @@
*usr_41.txt* For Vim version 7.3. Last change: 2011 Jun 19 *usr_41.txt* For Vim version 7.3. Last change: 2012 Mar 16
VIM USER MANUAL - by Bram Moolenaar VIM USER MANUAL - by Bram Moolenaar
@ -670,6 +670,12 @@ Floating point computation: *float-functions*
cosh() hyperbolic cosine cosh() hyperbolic cosine
tanh() hyperbolic tangent tanh() hyperbolic tangent
Other computation: *bitwise-function*
and() bitwise AND
invert() bitwise invert
or() bitwise OR
xor() bitwise XOR
Variables: *var-functions* Variables: *var-functions*
type() type of a variable type() type of a variable
islocked() check if a variable is locked islocked() check if a variable is locked
@ -1704,6 +1710,7 @@ make the script work for most people. It is done like this: >
12 set cpo&vim 12 set cpo&vim
.. ..
42 let &cpo = s:save_cpo 42 let &cpo = s:save_cpo
43 unlet s:save_cpo
We first store the old value of 'cpoptions' in the s:save_cpo variable. At We first store the old value of 'cpoptions' in the s:save_cpo variable. At
the end of the plugin this value is restored. the end of the plugin this value is restored.
@ -1950,6 +1957,7 @@ Here is the resulting complete example: >
40 endif 40 endif
41 41
42 let &cpo = s:save_cpo 42 let &cpo = s:save_cpo
43 unlet s:save_cpo
Line 33 wasn't explained yet. It applies the new correction to the word under Line 33 wasn't explained yet. It applies the new correction to the word under
the cursor. The |:normal| command is used to use the new abbreviation. Note the cursor. The |:normal| command is used to use the new abbreviation. Note

View File

@ -1,4 +1,4 @@
*various.txt* For Vim version 7.3. Last change: 2011 May 19 *various.txt* For Vim version 7.3. Last change: 2012 Jan 15
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -136,6 +136,9 @@ g8 Print the hex values of the bytes used in the
then twice the value of the 'scroll' option is used, then twice the value of the 'scroll' option is used,
otherwise the current window height minus 3 is used. otherwise the current window height minus 3 is used.
If there is a {count} the 'window' option is set to
its value.
:z can be used either alone or followed by any of :z can be used either alone or followed by any of
several punctuation marks. These have the following several punctuation marks. These have the following
effect: effect:
@ -352,6 +355,7 @@ N *+mouse_gpm* Unix only: Linux console mouse handling |gpm-mouse|
B *+mouse_netterm* Unix only: netterm mouse handling |netterm-mouse| B *+mouse_netterm* Unix only: netterm mouse handling |netterm-mouse|
N *+mouse_pterm* QNX only: pterm mouse handling |qnx-terminal| N *+mouse_pterm* QNX only: pterm mouse handling |qnx-terminal|
N *+mouse_sysmouse* Unix only: *BSD console mouse handling |sysmouse| N *+mouse_sysmouse* Unix only: *BSD console mouse handling |sysmouse|
N *+mouse_urxvt* Unix only: urxvt mouse handling |urxvt-mouse|
N *+mouse_xterm* Unix only: xterm mouse handling |xterm-mouse| N *+mouse_xterm* Unix only: xterm mouse handling |xterm-mouse|
B *+multi_byte* 16 and 32 bit characters |multibyte| B *+multi_byte* 16 and 32 bit characters |multibyte|
*+multi_byte_ime* Win32 input method for multibyte chars |multibyte-ime| *+multi_byte_ime* Win32 input method for multibyte chars |multibyte-ime|
@ -411,6 +415,7 @@ S *+windows* more than one window
m *+writebackup* |'writebackup'| is default on m *+writebackup* |'writebackup'| is default on
m *+xim* X input method |xim| m *+xim* X input method |xim|
*+xfontset* X fontset support |xfontset| *+xfontset* X fontset support |xfontset|
m *+xpm_w32* Win32 GUI only: pixmap support |:sign-define|
*+xsmp* XSMP (X session management) support *+xsmp* XSMP (X session management) support
*+xsmp_interact* interactive XSMP (X session management) support *+xsmp_interact* interactive XSMP (X session management) support
N *+xterm_clipboard* Unix only: xterm clipboard handling N *+xterm_clipboard* Unix only: xterm clipboard handling
@ -602,6 +607,10 @@ K Run a program to lookup the keyword under the
"gs" stands for "goto sleep". "gs" stands for "goto sleep".
While sleeping the cursor is positioned in the text, While sleeping the cursor is positioned in the text,
if at a visible position. {not in Vi} if at a visible position. {not in Vi}
Also process the received netbeans messages. {only
available when compiled with the |+netbeans_intg|
feature}
*g_CTRL-A* *g_CTRL-A*
g CTRL-A Only when Vim was compiled with MEM_PROFILING defined g CTRL-A Only when Vim was compiled with MEM_PROFILING defined

View File

@ -2452,7 +2452,7 @@ differently.
":n *.c" ":cd .." ":n" didn't use the original directory of the file. Vi only ":n *.c" ":cd .." ":n" didn't use the original directory of the file. Vi only
does it for the current file (looks like a bug). Now remember the buffer used does it for the current file (looks like a bug). Now remember the buffer used
for the entry in the argument list and use it's name (adjusted when doing for the entry in the argument list and use its name (adjusted when doing
":cd"), unless it's deleted. ":cd"), unless it's deleted.
When inserting a special key as its name ("<F8>" as four characters) after When inserting a special key as its name ("<F8>" as four characters) after
@ -9091,7 +9091,7 @@ Files: src/Make_w16.mak, src/testdir/Make_dos.mak
Patch 6.1.402 Patch 6.1.402
Problem: When evaluating a function name with curly braces, an error Problem: When evaluating a function name with curly braces, an error
is not handled consistently. is not handled consistently.
Solution: Accept the result of an curly braces expression when an Solution: Accept the result of a curly braces expression when an
error was encountered. Skip evaluating an expression in curly error was encountered. Skip evaluating an expression in curly
braces when skipping. (Servatius Brandt) braces when skipping. (Servatius Brandt)
Files: src/eval.c Files: src/eval.c

View File

@ -9072,7 +9072,7 @@ Patch 7.2.280
Problem: A redraw in a custom statusline with %! may cause a crash. Problem: A redraw in a custom statusline with %! may cause a crash.
(Yukihiro Nakadaira) (Yukihiro Nakadaira)
Solution: Make a copy of 'statusline'. Also fix typo in function name Solution: Make a copy of 'statusline'. Also fix typo in function name
redraw_custum_statusline. (partly by Dominique Pelle) redraw_custom_statusline. (partly by Dominique Pelle)
Files: src/screen.c Files: src/screen.c
Patch 7.2.281 Patch 7.2.281

View File

@ -1,4 +1,4 @@
*vi_diff.txt* For Vim version 7.3. Last change: 2010 Oct 11 *vi_diff.txt* For Vim version 7.3. Last change: 2011 Aug 29
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -88,8 +88,8 @@ Maximum display width Unix and Win32: 1024 characters, otherwise 255
characters characters
Maximum lhs of a mapping 50 characters. Maximum lhs of a mapping 50 characters.
Number of different highlighting types: over 30000 Number of different highlighting types: over 30000
Range of a Number variable: -2147483648 to 2147483647 (more on 64 bit Range of a Number variable: -2147483648 to 2147483647 (might be more on 64
systems) bit systems)
Maximum length of a line in a tags file: 512 bytes. Maximum length of a line in a tags file: 512 bytes.
Information for undo and text in registers is kept in memory, thus when making Information for undo and text in registers is kept in memory, thus when making

View File

@ -586,3 +586,4 @@ Cette page de manuel a
.br .br
Cette page de manuel a <20>t<EFBFBD> mise <20> jour par David Blanchet. Cette page de manuel a <20>t<EFBFBD> mise <20> jour par David Blanchet.
<david.blanchet@free.fr> 2006-04-10. <david.blanchet@free.fr> 2006-04-10.
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>

View File

@ -586,3 +586,4 @@ Cette page de manuel a été traduite par Richard Hitier.
.br .br
Cette page de manuel a été mise à jour par David Blanchet. Cette page de manuel a été mise à jour par David Blanchet.
<david.blanchet@free.fr> 2006-04-10. <david.blanchet@free.fr> 2006-04-10.
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>

View File

@ -14,7 +14,7 @@ d
.B Vim .B Vim
avec deux (ou trois ou quatre) fichiers. avec deux (ou trois ou quatre) fichiers.
Chaque fichier est ouvert dans sa propre fen<65>tre. Chaque fichier est ouvert dans sa propre fen<65>tre.
Les diff<66>rences entres ces fichiers sont mises en surbrillance. Les diff<66>rences entre ces fichiers sont mises en surbrillance.
C'est un outil tr<74>s pratique pour visualiser et reporter les C'est un outil tr<74>s pratique pour visualiser et reporter les
changements entre deux versions d'un m<>me fichier. changements entre deux versions d'un m<>me fichier.
.PP .PP
@ -51,3 +51,4 @@ Voir ":help credits" dans
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a <20>t<EFBFBD> traduite par David Blanchet Cette page de manuel a <20>t<EFBFBD> traduite par David Blanchet
<david.blanchet@free.fr> 2005-03-12. <david.blanchet@free.fr> 2005-03-12.
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>

View File

@ -14,7 +14,7 @@ démarre
.B Vim .B Vim
avec deux (ou trois ou quatre) fichiers. avec deux (ou trois ou quatre) fichiers.
Chaque fichier est ouvert dans sa propre fenêtre. Chaque fichier est ouvert dans sa propre fenêtre.
Les différences entres ces fichiers sont mises en surbrillance. Les différences entre ces fichiers sont mises en surbrillance.
C'est un outil très pratique pour visualiser et reporter les C'est un outil très pratique pour visualiser et reporter les
changements entre deux versions d'un même fichier. changements entre deux versions d'un même fichier.
.PP .PP
@ -51,3 +51,4 @@ Voir ":help credits" dans
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a été traduite par David Blanchet Cette page de manuel a été traduite par David Blanchet
<david.blanchet@free.fr> 2005-03-12. <david.blanchet@free.fr> 2005-03-12.
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>

View File

@ -3,7 +3,7 @@
vimtutor \- tutoriel Vim vimtutor \- tutoriel Vim
.SH SYNOPSIS .SH SYNOPSIS
.br .br
.B vimtutor [-g] [langue] .B vimtutor [\-g] [langue]
.SH DESCRIPTION .SH DESCRIPTION
.B Vimtutor .B Vimtutor
lance le tutoriel lance le tutoriel
@ -17,7 +17,7 @@ est utile pour les personnes souhaitant apprendre leurs premi
.B Vim .B Vim
\. \.
.PP .PP
L'argument optionnel -g lance vimtutor avec gvim plut<75>t qu'avec vim, si l'IHM L'argument optionnel \-g lance vimtutor avec gvim plut<75>t qu'avec vim, si l'IHM
graphique de vim est disponible, ou le lance avec vim si gvim n'est pas graphique de vim est disponible, ou le lance avec vim si gvim n'est pas
disponible. disponible.
.PP .PP
@ -57,3 +57,4 @@ vim(1)
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a <20>t<EFBFBD> traduite par David Blanchet Cette page de manuel a <20>t<EFBFBD> traduite par David Blanchet
<david.blanchet@free.fr> 2004-12-27. <david.blanchet@free.fr> 2004-12-27.
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>

View File

@ -3,7 +3,7 @@
vimtutor \- tutoriel Vim vimtutor \- tutoriel Vim
.SH SYNOPSIS .SH SYNOPSIS
.br .br
.B vimtutor [-g] [langue] .B vimtutor [\-g] [langue]
.SH DESCRIPTION .SH DESCRIPTION
.B Vimtutor .B Vimtutor
lance le tutoriel lance le tutoriel
@ -17,7 +17,7 @@ est utile pour les personnes souhaitant apprendre leurs premières commandes
.B Vim .B Vim
\. \.
.PP .PP
L'argument optionnel -g lance vimtutor avec gvim plutôt qu'avec vim, si l'IHM L'argument optionnel \-g lance vimtutor avec gvim plutôt qu'avec vim, si l'IHM
graphique de vim est disponible, ou le lance avec vim si gvim n'est pas graphique de vim est disponible, ou le lance avec vim si gvim n'est pas
disponible. disponible.
.PP .PP
@ -57,3 +57,4 @@ vim(1)
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a été traduite par David Blanchet Cette page de manuel a été traduite par David Blanchet
<david.blanchet@free.fr> 2004-12-27. <david.blanchet@free.fr> 2004-12-27.
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>

View File

@ -1,4 +1,4 @@
*visual.txt* For Vim version 7.3. Last change: 2010 Feb 17 *visual.txt* For Vim version 7.3. Last change: 2012 May 25
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -61,15 +61,20 @@ position.
2. Starting and stopping Visual mode *visual-start* 2. Starting and stopping Visual mode *visual-start*
*v* *characterwise-visual* *v* *characterwise-visual*
v start Visual mode per character. [count]v Start Visual mode per character.
With [count] select that many characters, like moving
the cursor right [count] characters. One less when
'selection' is not "exclusive".
*V* *linewise-visual* *V* *linewise-visual*
V start Visual mode linewise. [count]V Start Visual mode linewise.
With [count] select that many lines.
*CTRL-V* *blockwise-visual* *CTRL-V* *blockwise-visual*
CTRL-V start Visual mode blockwise. Note: Under Windows [count]CTRL-V Start Visual mode blockwise. Note: Under Windows
CTRL-V could be mapped to paste text, it doesn't work CTRL-V could be mapped to paste text, it doesn't work
to start Visual mode then, see |CTRL-V-alternative|. to start Visual mode then, see |CTRL-V-alternative|.
[count] is used as with `v` above.
If you use <Esc>, click the left mouse button or use any command that If you use <Esc>, click the left mouse button or use any command that
does a jump to another buffer while in Visual mode, the highlighting stops does a jump to another buffer while in Visual mode, the highlighting stops

View File

@ -1,4 +1,4 @@
*windows.txt* For Vim version 7.3. Last change: 2010 Aug 15 *windows.txt* For Vim version 7.3. Last change: 2012 Apr 13
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -174,7 +174,8 @@ CTRL-W CTRL_N *CTRL-W_CTRL-N*
2. WinEnter for the new window 2. WinEnter for the new window
3. BufLeave for the current buffer 3. BufLeave for the current buffer
4. BufEnter for the new buffer 4. BufEnter for the new buffer
This behaves like a ":split" first, and then a ":e" command. This behaves like a ":split" first, and then an ":enew"
command.
:[N]vne[w] [++opt] [+cmd] [file] *:vne* *:vnew* :[N]vne[w] [++opt] [+cmd] [file] *:vne* *:vnew*
Like |:new|, but split vertically. If 'equalalways' is set Like |:new|, but split vertically. If 'equalalways' is set
@ -183,7 +184,8 @@ CTRL-W CTRL_N *CTRL-W_CTRL-N*
:[N]new [++opt] [+cmd] {file} :[N]new [++opt] [+cmd] {file}
:[N]sp[lit] [++opt] [+cmd] {file} *:split_f* :[N]sp[lit] [++opt] [+cmd] {file} *:split_f*
Create a new window and start editing file {file} in it. Create a new window and start editing file {file} in it. This
behaves like a ":split" first, and then an ":e" command.
If [+cmd] is given, execute the command when the file has been If [+cmd] is given, execute the command when the file has been
loaded |+cmd|. loaded |+cmd|.
Also see |++opt|. Also see |++opt|.
@ -246,7 +248,7 @@ window will appear.
These command modifiers can be combined to make a vertically split window These command modifiers can be combined to make a vertically split window
occupy the full height. Example: > occupy the full height. Example: >
:vertical topleft edit tags :vertical topleft split tags
Opens a vertically split, full-height window on the "tags" file at the far Opens a vertically split, full-height window on the "tags" file at the far
left of the Vim window. left of the Vim window.

View File

@ -393,3 +393,4 @@ Modifications mineures par Bram Moolenaar.
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a <20>t<EFBFBD> traduite par David Blanchet Cette page de manuel a <20>t<EFBFBD> traduite par David Blanchet
<david.blanchet@free.fr> 2004-12-24. <david.blanchet@free.fr> 2004-12-24.
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>

View File

@ -393,3 +393,4 @@ Modifications mineures par Bram Moolenaar.
.SH TRADUCTION .SH TRADUCTION
Cette page de manuel a été traduite par David Blanchet Cette page de manuel a été traduite par David Blanchet
<david.blanchet@free.fr> 2004-12-24. <david.blanchet@free.fr> 2004-12-24.
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>

View File

@ -1,7 +1,7 @@
" Vim support file to detect file types " Vim support file to detect file types
" "
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2011 Jul 17 " Last Change: 2012 May 18
" Listen very carefully, I will say this only once " Listen very carefully, I will say this only once
if exists("did_load_filetypes") if exists("did_load_filetypes")
@ -17,7 +17,7 @@ augroup filetypedetect
" Ignored extensions " Ignored extensions
if exists("*fnameescape") if exists("*fnameescape")
au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.dpkg-dist,?\+.dpkg-old,?\+.rpmsave,?\+.rpmnew au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.dpkg-dist,?\+.dpkg-old,?\+.dpkg-new,?\+.dpkg-bak,?\+.rpmsave,?\+.rpmnew
\ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r")) \ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r"))
au BufNewFile,BufRead *~ au BufNewFile,BufRead *~
\ let s:name = expand("<afile>") | \ let s:name = expand("<afile>") |
@ -239,8 +239,8 @@ func! s:FTVB(alt)
endif endif
endfunc endfunc
" Visual Basic Script (close to Visual Basic) " Visual Basic Script (close to Visual Basic) or Visual Basic .NET
au BufNewFile,BufRead *.vbs,*.dsm,*.ctl setf vb au BufNewFile,BufRead *.vb,*.vbs,*.dsm,*.ctl setf vb
" IBasic file (similar to QBasic) " IBasic file (similar to QBasic)
au BufNewFile,BufRead *.iba,*.ibi setf ibasic au BufNewFile,BufRead *.iba,*.ibi setf ibasic
@ -367,7 +367,11 @@ au BufNewFile,BufRead *.h call s:FTheader()
func! s:FTheader() func! s:FTheader()
if match(getline(1, min([line("$"), 200])), '^@\(interface\|end\|class\)') > -1 if match(getline(1, min([line("$"), 200])), '^@\(interface\|end\|class\)') > -1
if exists("g:c_syntax_for_h")
setf objc setf objc
else
setf objcpp
endif
elseif exists("g:c_syntax_for_h") elseif exists("g:c_syntax_for_h")
setf c setf c
elseif exists("g:ch_syntax_for_h") elseif exists("g:ch_syntax_for_h")
@ -566,7 +570,10 @@ au BufNewFile,BufRead *.d call s:DtraceCheck()
func! s:DtraceCheck() func! s:DtraceCheck()
let lines = getline(1, min([line("$"), 100])) let lines = getline(1, min([line("$"), 100]))
if match(lines, '^#!\S\+dtrace\|#pragma\s\+D\s\+option\|:\S\{-}:\S\{-}:') > -1 if match(lines, '^module\>\|^import\>') > -1
" D files often start with a module and/or import statement.
setf d
elseif match(lines, '^#!\S\+dtrace\|#pragma\s\+D\s\+option\|:\S\{-}:\S\{-}:') > -1
setf dtrace setf dtrace
else else
setf d setf d
@ -730,6 +737,8 @@ au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom
" Git " Git
au BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit au BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit
au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
au BufNewFile,BufRead *.git/modules/**/COMMIT_EDITMSG setf gitcommit
au BufNewFile,BufRead *.git/modules/**/config setf gitconfig
au BufNewFile,BufRead git-rebase-todo setf gitrebase au BufNewFile,BufRead git-rebase-todo setf gitrebase
au BufNewFile,BufRead .msg.[0-9]* au BufNewFile,BufRead .msg.[0-9]*
\ if getline(1) =~ '^From.*# This line is ignored.$' | \ if getline(1) =~ '^From.*# This line is ignored.$' |
@ -754,6 +763,11 @@ au BufNewFile,BufRead */usr/**/gnupg/options.skel setf gpg
" gnash(1) configuration files " gnash(1) configuration files
au BufNewFile,BufRead gnashrc,.gnashrc,gnashpluginrc,.gnashpluginrc setf gnash au BufNewFile,BufRead gnashrc,.gnashrc,gnashpluginrc,.gnashpluginrc setf gnash
" Gitolite
au BufNewFile,BufRead gitolite.conf setf gitolite
au BufNewFile,BufRead */gitolite-admin/conf/* call s:StarSetf('gitolite')
au BufNewFile,BufRead {,.}gitolite.rc,example.gitolite.rc setf perl
" Gnuplot scripts " Gnuplot scripts
au BufNewFile,BufRead *.gpi setf gnuplot au BufNewFile,BufRead *.gpi setf gnuplot
@ -922,7 +936,7 @@ au BufNewFile,BufRead *.java,*.jav setf java
au BufNewFile,BufRead *.jj,*.jjt setf javacc au BufNewFile,BufRead *.jj,*.jjt setf javacc
" JavaScript, ECMAScript " JavaScript, ECMAScript
au BufNewFile,BufRead *.js,*.javascript,*.es,*.jsx setf javascript au BufNewFile,BufRead *.js,*.javascript,*.es,*.jsx,*.json setf javascript
" Java Server Pages " Java Server Pages
au BufNewFile,BufRead *.jsp setf jsp au BufNewFile,BufRead *.jsp setf jsp
@ -1209,6 +1223,9 @@ au BufNewFile,BufRead *.NS[ACGLMNPS] setf natural
" Netrc " Netrc
au BufNewFile,BufRead .netrc setf netrc au BufNewFile,BufRead .netrc setf netrc
" Ninja file
au BufNewFile,BufRead *.ninja setf ninja
" Novell netware batch files " Novell netware batch files
au BufNewFile,BufRead *.ncf setf ncf au BufNewFile,BufRead *.ncf setf ncf
@ -1250,10 +1267,10 @@ endfunc
au BufNewFile,BufRead *.nqc setf nqc au BufNewFile,BufRead *.nqc setf nqc
" NSIS " NSIS
au BufNewFile,BufRead *.nsi setf nsis au BufNewFile,BufRead *.nsi,*.nsh setf nsis
" OCAML " OCAML
au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly setf ocaml au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit setf ocaml
" Occam " Occam
au BufNewFile,BufRead *.occ setf occam au BufNewFile,BufRead *.occ setf occam
@ -1825,7 +1842,7 @@ au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump* call s:StarSetf('zsh')
au BufNewFile,BufRead *.zsh setf zsh au BufNewFile,BufRead *.zsh setf zsh
" Scheme " Scheme
au BufNewFile,BufRead *.scm,*.ss setf scheme au BufNewFile,BufRead *.scm,*.ss,*.rkt setf scheme
" Screen RC " Screen RC
au BufNewFile,BufRead .screenrc,screenrc setf screen au BufNewFile,BufRead .screenrc,screenrc setf screen
@ -2127,6 +2144,9 @@ au BufNewFile,BufReadPost *.tssop setf tssop
" TSS - Command Line (temporary) " TSS - Command Line (temporary)
au BufNewFile,BufReadPost *.tsscl setf tsscl au BufNewFile,BufReadPost *.tsscl setf tsscl
" TWIG files
au BufNewFile,BufReadPost *.twig setf twig
" Motif UIT/UIL files " Motif UIT/UIL files
au BufNewFile,BufRead *.uit,*.uil setf uil au BufNewFile,BufRead *.uit,*.uil setf uil
@ -2306,6 +2326,9 @@ au BufNewFile,BufRead fglrxrc setf xml
au BufNewFile,BufRead *.xlf setf xml au BufNewFile,BufRead *.xlf setf xml
au BufNewFile,BufRead *.xliff setf xml au BufNewFile,BufRead *.xliff setf xml
" XML User Interface Language
au BufNewFile,BufRead *.xul setf xml
" X11 xmodmap (also see below) " X11 xmodmap (also see below)
au BufNewFile,BufRead *Xmodmap setf xmodmap au BufNewFile,BufRead *Xmodmap setf xmodmap
@ -2345,6 +2368,12 @@ endfunc
" Yaml " Yaml
au BufNewFile,BufRead *.yaml,*.yml setf yaml au BufNewFile,BufRead *.yaml,*.yml setf yaml
" yum conf (close enough to dosini)
au BufNewFile,BufRead */etc/yum.conf setf dosini
" Zimbu
au BufNewFile,BufRead *.zu setf zimbu
" Zope " Zope
" dtml (zope dynamic template markup language), pt (zope page template), " dtml (zope dynamic template markup language), pt (zope page template),
" cpt (zope form controller page template) " cpt (zope form controller page template)
@ -2515,26 +2544,35 @@ au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap')
" Xinetd conf " Xinetd conf
au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd') au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd')
" yum conf (close enough to dosini)
au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini')
" Z-Shell script " Z-Shell script
au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh') au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh')
" Plain text files, needs to be far down to not override others. This avoids
" the "conf" type being used if there is a line starting with '#'.
au BufNewFile,BufRead *.txt,*.text setf text
" Use the filetype detect plugins. They may overrule any of the previously " Use the filetype detect plugins. They may overrule any of the previously
" detected filetypes. " detected filetypes.
runtime! ftdetect/*.vim runtime! ftdetect/*.vim
" NOTE: The above command could have ended the filetypedetect autocmd group
" and started another one. Let's make sure it has ended to get to a consistent
" state.
augroup END
" Generic configuration file (check this last, it's just guessing!) " Generic configuration file (check this last, it's just guessing!)
au BufNewFile,BufRead,StdinReadPost * au filetypedetect BufNewFile,BufRead,StdinReadPost *
\ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat \ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat
\ && (getline(1) =~ '^#' || getline(2) =~ '^#' || getline(3) =~ '^#' \ && (getline(1) =~ '^#' || getline(2) =~ '^#' || getline(3) =~ '^#'
\ || getline(4) =~ '^#' || getline(5) =~ '^#') | \ || getline(4) =~ '^#' || getline(5) =~ '^#') |
\ setf conf | \ setf conf |
\ endif \ endif
augroup END
" If the GUI is already running, may still need to install the Syntax menu. " If the GUI is already running, may still need to install the Syntax menu.
" Don't do it when the 'M' flag is included in 'guioptions'. " Don't do it when the 'M' flag is included in 'guioptions'.

View File

@ -1,7 +1,7 @@
" Vim filetype plugin file " Vim filetype plugin file
" Language: Abaqus finite element input file (www.abaqus.com) " Language: Abaqus finite element input file (www.abaqus.com)
" Maintainer: Carl Osterwisch <osterwischc@asme.org> " Maintainer: Carl Osterwisch <osterwischc@asme.org>
" Last Change: 2008 Oct 5 " Last Change: 2012 Apr 30
" Only do this when not done yet for this buffer " Only do this when not done yet for this buffer
if exists("b:did_ftplugin") | finish | endif if exists("b:did_ftplugin") | finish | endif
@ -51,7 +51,7 @@ if has("gui_win32") && !exists("b:browsefilter")
\ "Abaqus Results (*.dat)\t*.dat\n" . \ "Abaqus Results (*.dat)\t*.dat\n" .
\ "Abaqus Messages (*.pre *.msg *.sta)\t*.pre;*.msg;*.sta\n" . \ "Abaqus Messages (*.pre *.msg *.sta)\t*.pre;*.msg;*.sta\n" .
\ "All Files (*.*)\t*.*\n" \ "All Files (*.*)\t*.*\n"
let b:undo_ftplugin .= "|unlet b:browsefilter" let b:undo_ftplugin .= "|unlet! b:browsefilter"
endif endif
" Define patterns for the matchit plugin " Define patterns for the matchit plugin
@ -62,7 +62,7 @@ if exists("loaded_matchit") && !exists("b:match_words")
\ '\*assembly:\*end\s*assembly,' . \ '\*assembly:\*end\s*assembly,' .
\ '\*instance:\*end\s*instance,' . \ '\*instance:\*end\s*instance,' .
\ '\*step:\*end\s*step' \ '\*step:\*end\s*step'
let b:undo_ftplugin .= "|unlet b:match_ignorecase b:match_words" let b:undo_ftplugin .= "|unlet! b:match_ignorecase b:match_words"
endif endif
" Define keys used to move [count] keywords backward or forward. " Define keys used to move [count] keywords backward or forward.
@ -85,5 +85,13 @@ endfunction
let b:undo_ftplugin .= "|unmap <buffer> [[|unmap <buffer> ]]" let b:undo_ftplugin .= "|unmap <buffer> [[|unmap <buffer> ]]"
\ . "|unmap <buffer> <LocalLeader><LocalLeader>" \ . "|unmap <buffer> <LocalLeader><LocalLeader>"
" Undo must be done in nocompatible mode for <LocalLeader>.
let b:undo_ftplugin = "let s:cpo_save = &cpoptions|"
\ . "set cpoptions&vim|"
\ . b:undo_ftplugin
\ . "|let &cpoptions = s:cpo_save"
\ . "|unlet s:cpo_save"
" Restore saved compatibility options " Restore saved compatibility options
let &cpoptions = s:cpo_save let &cpoptions = s:cpo_save
unlet s:cpo_save

View File

@ -41,3 +41,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin
" Restore the saved compatibility options. " Restore the saved compatibility options.
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo

View File

@ -12,5 +12,4 @@ endif
run ftplugin/lisp.vim run ftplugin/lisp.vim
setl lw-=if setl lw-=if
setl lw+=def-art-fun,deffacts,defglobal,defrule,defschema, setl lw+=def-art-fun,deffacts,defglobal,defrule,defschema,for,schema,while
\for,schema,while

View File

@ -57,3 +57,4 @@ let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase b:browsefilter |
" Restore the saved compatibility options. " Restore the saved compatibility options.
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo

View File

@ -1,7 +1,7 @@
" Vim filetype plugin file " Vim filetype plugin file
" Language: C " Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2007 Sep 25 " Last Change: 2011 Aug 04
" Only do this when not done yet for this buffer " Only do this when not done yet for this buffer
if exists("b:did_ftplugin") if exists("b:did_ftplugin")
@ -36,7 +36,7 @@ endif
" When the matchit plugin is loaded, this makes the % command skip parens and " When the matchit plugin is loaded, this makes the % command skip parens and
" braces in comments. " braces in comments.
let b:match_words = &matchpairs let b:match_words = &matchpairs . ',^\s*#\s*if\(\|def\|ndef\)\>:^\s*#\s*elif\>:^\s*#\s*else\>:^\s*#\s*endif\>'
let b:match_skip = 's:comment\|string\|character' let b:match_skip = 's:comment\|string\|character'
" Win32 can filter files in the browse dialog " Win32 can filter files in the browse dialog

View File

@ -39,3 +39,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . b:undo_ftplugin
" Restore the saved compatibility options. " Restore the saved compatibility options.
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo

View File

@ -10,6 +10,8 @@ endif
" Don't load another plugin for this buffer " Don't load another plugin for this buffer
let b:did_ftplugin = 1 let b:did_ftplugin = 1
let s:keepcpo= &cpo
set cpo&vim
" Set 'formatoptions' to break comment lines but not other lines, " Set 'formatoptions' to break comment lines but not other lines,
" and insert the comment leader when hitting <CR> or using "o". " and insert the comment leader when hitting <CR> or using "o".
@ -22,3 +24,6 @@ if has("gui_win32") && !exists("b:browsefilter")
let b:browsefilter = "C# Source Files (*.cs)\t*.cs\n" . let b:browsefilter = "C# Source Files (*.cs)\t*.cs\n" .
\ "All Files (*.*)\t*.*\n" \ "All Files (*.*)\t*.*\n"
endif endif
let &cpo = s:keepcpo
unlet s:keepcpo

View File

@ -24,3 +24,4 @@ let b:undo_ftplugin = "unlet! b:match_words"
" Restore the saved compatibility options. " Restore the saved compatibility options.
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo

View File

@ -45,3 +45,4 @@ let b:undo_ftplugin = "setlocal commentstring< formatoptions<" .
" Restore the saved compatibility options. " Restore the saved compatibility options.
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo

Some files were not shown because too many files have changed in this diff Show More