Commit Graph
831 Commits
Author SHA1 Message Date
James McCoy 7bd97127b4 vim-patch:7.4.2244
Problem:    Adding pattern to ":oldfiles" is not a generic solution.
Solution:   Add the ":filter /pat/ cmd" command modifier.  Only works for some
            commands right now.

https://github.com/vim/vim/commit/7b668e83d0635d082b7ec90d7d2aa30a9d7d8928
2017-04-29 23:48:27 -04:00
James McCoy dbdc2d40bb vim-patch:7.4.2231
Problem:    ":oldfiles" output is a very long list.
Solution:   Add a pattern argument. (Coot, closes vim/vim#575)

https://github.com/vim/vim/commit/e11d61a3b1cdedf3144de697a2b38af62c3a78d8
2017-04-29 21:46:12 -04:00
Justin M. Keyes 0df1b6655b doc: Removed t_XX options/keycodes. (#6616)
Closes #4482

TODO: revisit find_key_option_len()
2017-04-29 16:56:40 +02:00
Justin M. Keyes 024ff6b808 vim-patch:25de4c232d58
Updated runtime files.

https://github.com/vim/vim/commit/25de4c232d580583feadae11ab34e3cc6333c350
2017-04-29 01:53:42 +02:00
Justin M. Keyes 789c46934b vim-patch:b4ada79aa7d0
Runtime file updates.

https://github.com/vim/vim/commit/b4ada79aa7d0d1e5da3a659b1a203d7cae9f7f59

Closes #5055
2017-04-29 01:51:56 +02:00
Justin M. Keyes 8d3f8f639b vim-patch:46fceaaa8d14
Updated runtime files.

https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
2017-04-29 01:47:36 +02:00
Justin M. Keyes 60e68f3096 vim-patch:dc08328821a2
Updated runtime files.

https://github.com/vim/vim/commit/dc08328821a2c11e33dfb1980332e4923ec64fca

NA patches:
vim-patch:8.0.0028
vim-patch:8.0.0029
vim-patch:8.0.0030
2017-04-29 01:01:51 +02:00
Justin M. Keyes 460d5971f6 vim-patch:2ec618c9feac
Updated runtime files.

https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
2017-04-28 23:49:16 +02:00
Justin M. Keyes 40fb96c76a vim-patch:3e496b0ea319
Updated runtime files.

https://github.com/vim/vim/commit/3e496b0ea31996b665824f45664dee1fdd73c4d0

NA patches:
vim-patch:8.0.0015
vim-patch:8.0.0016
vim-patch:177778575148
2017-04-28 23:39:24 +02:00
Justin M. Keyes a5e9974ed7 vim-patch:50ba526fbf3e
Updated runtime files.

https://github.com/vim/vim/commit/50ba526fbf3e9e5e0e6b0b3086a4d5df581ebc7e

vim-patch:20eeb6129d12
2017-04-28 23:26:55 +02:00
Justin M. Keyes 2e64752250 vim-patch:64d8e25bf6ef
Updated runtime files.

https://github.com/vim/vim/commit/64d8e25bf6efe5f18b032563521c3ce278c316ab

Closes #6611
2017-04-28 23:14:36 +02:00
Justin M. Keyes 06879e2e89 vim-patch:d07969093a9b
Updated runtime files.

https://github.com/vim/vim/commit/d07969093a9b3051511c478d71c36de6fc33c0d6
2017-04-28 22:51:30 +02:00
Justin M. Keyes 00bdf9ae83 vim-patch:8.0.0000
https://github.com/vim/vim/commit/bb76f24af2010943387ce696a7092175b4ecccf2

vim-patch:8.0.0001

Problem:    Intro screen still mentions version7. (Paul)
Solution:   Change it to version8.

https://github.com/vim/vim/commit/6401024869dcd722ee1b98b4ba58e6caa215201b
2017-04-28 22:34:16 +02:00
Justin M. Keyes 0d565d62ae vim-patch:220adb1e9f9e
A few more runtime updates.

https://github.com/vim/vim/commit/220adb1e9f9e0b27d28185167d2730bf2f93057d
2017-04-28 21:41:10 +02:00
Justin M. Keyes 9f7e1cec05 vim-patch:7e1479b86c59
Updated runtime files, Japanese translations.

https://github.com/vim/vim/commit/7e1479b86c590a66b63a274c079b7f18907d45a4
2017-04-28 21:39:48 +02:00
Justin M. Keyes 2648c3579a vim-patch:abd468ed0fbc
Updated runtime files

https://github.com/vim/vim/commit/abd468ed0fbcba391e7833feeaa7de3ced841455
2017-04-28 21:38:07 +02:00
Justin M. Keyes 86b596dc7a vim-patch:f37506f60f87
Updated runtime files.  Remove HiLink commands.

https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
2017-04-28 21:25:15 +02:00
Justin M. Keyes a53409b564 vim-patch:89bcfda6834a
Updated runtime files.  Remove version checks for Vim older than 6.0.

https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
2017-04-28 21:13:55 +02:00
Justin M. Keyes f09651ea78 vim-patch:36f44c21da2e
Updated runtime files.

https://github.com/vim/vim/commit/36f44c21da2e912c008683a0c4447fca2a071e9a
2017-04-28 21:06:07 +02:00
Justin M. Keyes 409e56b139 vim-patch:818078ddfbb8
Updated runtime files and translations.

https://github.com/vim/vim/commit/818078ddfbb8cc2546f697c5675a251d095722ec
2017-04-28 21:01:25 +02:00
Justin M. Keyes 3ea1007753 api: nvim_get_mode()
Asynchronous API functions are served immediately, which means pending
input could change the state of Nvim shortly after an async API function
result is returned.

nvim_get_mode() is different:
  - If RPCs are known to be blocked, it responds immediately (without
    flushing the input/event queue)
  - else it is handled just-in-time before waiting for input, after
    pending input was processed. This makes the result more reliable
    (but not perfect).

Internally this is handled as a special case, but _semantically_ nothing
has changed: API users never know when input flushes, so this internal
special-case doesn't violate that. As far as API users are concerned,
nvim_get_mode() is just another asynchronous API function.

In all cases nvim_get_mode() never blocks for more than the time it
takes to flush the input/event queue (~µs).

Note: This doesn't address #6166; nvim_get_mode() will provoke #6166 if
e.g. `d` is operator-pending.

Closes #6159
2017-04-28 19:14:34 +02:00
Justin M. Keyes 6944abad2f api/ext_tabline: List of Dicts. 2017-04-26 03:41:24 +02:00
Justin M. Keyes c8e1af93de api: nvim_ui_attach(): Flatten ext_* options. 2017-04-26 03:41:24 +02:00
Justin M. Keyes 00843902d3 api/ui: externalize tabline
- Work with a bool[] array parallel to the UIWidget enum.
- Rename some functions.
- Documentation.
2017-04-26 03:41:24 +02:00
Dongdong Zhou 88023d5123 api/ui: externalize tabline 2017-04-26 02:15:31 +02:00
Drew Neil a0acb2e195 doc: Revise nvim-from-vim advice (#6505) 2017-04-25 11:04:32 +02:00
Justin M. Keyes 10f119ab87 Merge #6539 'More cursor shape modes' 2017-04-21 19:09:50 +02:00
Björn Linse 9cc9789681 ui: document new mode index and add note about forward-compatibility 2017-04-21 12:32:38 +02:00
Justin M. Keyes d55fd9588f doc: Recommend :silent! for :loadview.
ex_loadview() was changed in 9b1c939370 to check the file open result.

If user doesn't care about failure to open, using :silent! instead of
:silent is a reasonable, conventional approach.

Closes #3196
2017-04-20 13:13:39 +02:00
Justin M. Keyes d194380de9 vim-patch:e4a3bcf28d92
Updated runtime files.  Add Scala files.

https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
2017-04-19 21:26:17 +02:00
Justin M. Keyes c1edb4c39a vim-patch:7571d55f7dcc
Updated runtime files.

https://github.com/vim/vim/commit/7571d55f7dcc009a375b2124cce2c8b21f361234
2017-04-19 21:26:16 +02:00
Justin M. Keyes 5da8bb92fc vim-patch:dc1f1645cb49
Updated runtime files.

https://github.com/vim/vim/commit/dc1f1645cb495fa6bfbe216d7359f23539a0e25d
2017-04-19 21:26:16 +02:00
Justin M. Keyes 6bc6d94ec8 doc: api-contract, CONTRIBUTING.md 2017-04-19 13:48:12 +02:00
Justin M. Keyes 77a4f8f235 Merge #6219 from jbradaric/vim-7.4.2170
vim-patch:7.4.{2170,2180,2240,2241,2242}
2017-04-16 16:49:14 +02:00
Justin M. Keyes 7c4e5dfd27 win: os_shell_is_cmdexe() + tests 2017-04-12 02:28:43 +02:00
Rui Abreu Ferreira d31d177a0c win: default shellxescape, shellxquote to empty
Calling cmd.exe in Windows follows a very different pattern from Vim.
The primary difference is that Vim does a nested call to cmd.exe, e.g.
the following call in Vim

    system('echo a 2>&1')

spawns the following processes

    "C:\Program Files (x86)\Vim\vim80\vimrun" -s C:\Windows\system32\cmd.exe /c (echo a 2^>^&1
        ^>C:\Users\dummy\AppData\Local\Temp\VIoC169.tmp 2^>^&1)
    C:\Windows\system32\cmd.exe /c C:\Windows\system32\cmd.exe /c (echo a 2^>^&1
        ^>C:\Users\dummy\AppData\Local\Temp\VIo3C6C.tmp 2^>^&1)
    C:\Windows\system32\cmd.exe  /c (echo a 2>&1
        >C:\Users\dummy\AppData\Local\Temp\VIo3C6C.tmp 2>&1)

The escaping with ^ is needed because cmd.exe calls itself and needs to
preserve the special metacharacters for the last call. However in nvim
no nested call is made, system('') spawns a single cmd.exe process.
Setting shellxescape to "" disables escaping with ^.

The previous default for shellxquote=( wrapped any command in
parenthesis, in Vim this is more meaningful due to the use of tempfiles
to store the output and redirection (also see &shellquote). There is
a slight benefit in having the default be empty because some expressions
that run in console will not run within parens e.g. due to unbalanced
double quotes

    system('echo "a b')
2017-04-12 02:10:34 +02:00
Rui Abreu Ferreira f3cc843755 win: libuv_process_spawn(): special-case cmd.exe
Disable CommandLineToArgvW-standard quoting for cmd.exe.

libuv assumes spawned processes follow the convention expected by
CommandLineToArgvW(). But cmd.exe is non-conformant, so for cmd.exe:
- With system([]), the caller has full control (and responsibility) to
  quote arguments correctly.
- With system(''), shell* options are used.

libuv quoting is disabled if argv[0] is:
- cmd.exe
- cmd
- $COMSPEC resolving to a path with filename cmd.exe

Closes #6329
References #6387
2017-04-12 02:10:34 +02:00
Justin M. Keyes d6e5f94ae9 win: defaults: 'shellredir', 'shellxquote', 'shellxescape' 2017-04-12 01:35:49 +02:00
ZyX 467a02f88d doc: Update documentation 2017-04-08 19:34:01 +03:00
James McCoy 20dc04470e vim-patch:8.0.0499
Problem:    taglist() does not prioritize tags for a buffer.
Solution:   Add an optional buffer argument. (Duncan McDougall, closes vim/vim#1194)

https://github.com/vim/vim/commit/c6aafbaf3ea755e3ab4ee2e3045911126a08b038
2017-04-07 16:18:04 -04:00
James McCoy bb54d921aa Merge remote-tracking branch 'origin/master' into vim-7.4.2170 2017-04-05 22:39:40 -04:00
Justin M. Keyes a7f34e1991 options: remove 'guiheadroom' 2017-04-04 14:19:26 +02:00
Justin M. Keyes e348e256f3 'guicursor': Disable by default for unknown terminals.
User can still set guicursor explicitly in init.vim.

Closes #5990
Closes #6403
2017-04-04 14:19:26 +02:00
Yichao Zhou bc6d868d00 'listchars': Whitespace highlight group #6367 2017-04-03 14:10:40 +02:00
ZyX 97a7f4745d eval: Add s flag, use p_fs by default, error out on unknown flag 2017-04-03 02:11:27 +03:00
ZyX 364709bedb fileio: Refactor errmsg handling
Adds os_strerror() result to a number of places. Also since I could not track 
where err\* variables are NULL and where they are not, using macros to make sure 
that all three variables are set at once.

Removes #ifdef UNIX around the use of os_fsync, makes it use os_close in place 
of close in some places.
2017-04-03 00:35:29 +03:00
ZyX b10880dadc eval: Make writefile() able to disable fsync() 2017-04-02 22:11:35 +03:00
Justin M. Keyes c2826a7830 'guicursor': Empty means "block cursor in all modes".
Also: update default 'guicursor' to match the documentation.
2017-04-01 23:14:05 +02:00
Matthieu Coudron 54bab0019b tui: 'guicursor' color
For now only supports valid hex colors (does not check for the validity
the hex color) when termguicolors is set, otherwise it won't attempt to
change the cursor color.
2017-04-01 23:14:05 +02:00
Justin M. Keyes 33ff29fc74 Merge #6344 'vim-patch:7.4.2236,7.4.2306' 2017-04-01 17:42:15 +02:00