James McCoy
2f5aee561e
vim-patch:7.4.1992
...
Problem: Values for true and false can be confusing.
Solution: Update the documentation. Add a test. Make v:true evaluate to
TRUE for a non-zero-arg.
https://github.com/vim/vim/commit/e381d3d5e098546854b008e01ca1d28ba1a4a057
2017-02-27 15:00:18 -05:00
Justin M. Keyes
c318d8e672
Merge #6112 from ZyX-I/split-eval'/buf_get_changedtick
...
Better b:changedtick support
2017-02-27 10:29:46 +01:00
Justin M. Keyes
e7bbd35c81
terminal: 'scrollback'
...
Closes #2637
2017-02-26 11:57:52 +01:00
Justin M. Keyes
300eca3d30
options: 'scrollback'
2017-02-26 11:57:52 +01:00
lonerover
0ef2b07d69
vim-patch:7.4.2230 ( #6080 )
...
Problem: There is no equivalent of 'smartcase' for a tag search.
Solution: Add value "followscs" and "smart" to 'tagcase'. (Christian
Brabandt, closes vim/vim#712 ) Turn tagcase test into new style.
https://github.com/vim/vim/commit/66e29d7112e437b2b50efe1f82c7e892736d23e4
2017-02-25 15:42:25 +01:00
ZyX
d8a7e5fdbb
eval: Forbid (un)locking b:changedtick
...
Port of vim-patch:8.0.0343
2017-02-23 19:48:41 +03:00
James McCoy
bc76ce2c4f
Merge remote-tracking branch 'origin/master' into lambda
2017-02-22 19:23:20 -05:00
Justin M. Keyes
22337b1c01
Merge #6137 from justinmk/cmdline-ctrl-r
...
cmdline: CTRL-R: Omit trailing ^M character
2017-02-19 14:20:52 +01:00
Justin M. Keyes
baab49ee89
cmdline: CTRL-R: Omit trailing <CR>.
...
The "technically correct" interpretation is to execute the first line
that is seen (and this is what happens on middle-click paste in Vim).
^M is only intended to "defuse" the newline, so the user can review it.
The parent commit changed the behavior to insert <Space> between lines,
but that's a higher-risk change: it is arguably possible that some user
*wants* the literal ^M chars when e.g. assigning to a register:
:let @a='<C-R>b'
To avoid that risk, keep the old behavior and only omit the last ^M.
This makes `yy:<C-R>0` nicer at no cost.
2017-02-18 23:24:35 +01:00
Justin M. Keyes
308ccb6f5e
cmdline: CTRL-R: <Space> instead of CR between lines.
...
^M isn't any more "correct" than space: the "technically correct"
interpretation is to execute the first line that is seen (and this is
what happens on middle-click paste in Vim). ^M is only intended to
defuse the newline, so that the user can review the command. We can do
that with a space instead, and then the command can be executed without
having to fix it up first.
2017-02-18 14:49:05 +01:00
Justin M. Keyes
158ea52854
options: Remove 'esckeys' ( #6138 )
...
This was never supported and it does not make sense for Nvim.
2017-02-18 14:01:20 +01:00
timeyyy
f017ae6115
doc/provider: python virtualenvs #6135
...
Closes #1887
Helped-by: Tommy Allen <tommy@esdf.io >
2017-02-17 03:44:05 +01:00
Michael Ennen
53fad45115
vim-patch:7.4.2137
...
Problem: Using function() with a name will find another function when it is
redefined.
Solution: Add funcref(). Refer to lambda using a partial. Fix several
reference counting issues.
https://github.com/vim/vim/commit/437bafe4c8a83ed71ee006eda7f54b65a90f0d4c
2017-02-14 17:38:18 -07:00
Michael Ennen
f59321e319
vim-patch:7.4.2120
...
Problem: User defined functions can't be a closure.
Solution: Add the "closure" argument. Allow using :unlet on a bound
variable. (Yasuhiro Matsumoto, Ken Takata)
https://github.com/vim/vim/commit/10ce39a0d52272a3dfff2feb8c631529f29e6740
2017-02-14 17:38:17 -07:00
Michael Ennen
9f6f7fe26d
vim-patch:7.4.2119
...
Problem: Closures are not supported.
Solution: Capture variables in lambdas from the outer scope. (Yasuhiro
Matsumoto, Ken Takata)
https://github.com/vim/vim/commit/1e96d9bf98f9ab84d5af7f98d6a961d91b17364f
2017-02-14 17:38:17 -07:00
Michael Ennen
7f4848aff4
vim-patch:7.4.2090
...
Problem: Using submatch() in a lambda passed to substitute() is verbose.
Solution: Use a static list and pass it as an optional argument to the
function. Fix memory leak.
https://github.com/vim/vim/commit/df48fb456fb6bf63d94cad9b302ff01d8ee8d311
2017-02-14 17:38:17 -07:00
Michael Ennen
bb7d0deb2f
vim-patch:7.4.2044
...
Problem: filter() and map() either require a string or defining a function.
Solution: Support lambda, a short way to define a function that evaluates an
expression. (Yasuhiro Matsumoto, Ken Takata)
https://github.com/vim/vim/commit/069c1e7fa9f45a665064f7f2c17da84d6a48f544
2017-02-14 17:38:16 -07:00
Michael Ennen
bb2afeb026
vim-patch:7.4.1989
...
Problem: filter() and map() only accept a string argument.
Solution: Implement using a Funcref argument (Yasuhiro Matsumoto, Ken
Takata)
https://github.com/vim/vim/commit/b33c7eb5b813cb631b2b0ca5c4029e1788a09bde
2017-02-14 17:38:16 -07:00
Michael Ennen
b0fc6108c9
vim-patch:7.4.1727
...
Problem: Cannot detect a crash in tests when caused by garbagecollect().
Solution: Add garbagecollect_for_testing(). Do not free a job if is still
useful.
https://github.com/vim/vim/commit/ebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e
2017-02-14 17:38:15 -07:00
Nikolai Aleksandrovich Pavlov
abdbfd26bc
eval: Add id() function and make printf("%p") return something useful ( #6095 )
2017-02-11 19:47:02 +01:00
Manuel
3aa8795469
doc: Fix section reference ( #6079 )
2017-02-08 18:09:27 +01:00
Justin M. Keyes
224f99b85d
win: Append process dir to $PATH
...
This allows executables to be found by :!, system(), and executable() if
they live next to ("sibling" to) nvim.exe. This is what gvim on Windows
does, and also matches the behavior of Win32 SearchPath().
https://github.com/vim/vim/blob/c4a249a736d40ec54794827ef95804c225d0e38f/src/os_win32.c#L354-L370
2017-02-04 11:07:49 +01:00
James McCoy
8c09dbf082
vim-patch:063b9d1
...
Updated runtime files.
https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
2017-02-01 18:35:12 -05:00
James McCoy
a5b875fe86
vim-patch:e18dbe8
...
Updated runtime files.
https://github.com/vim/vim/commit/e18dbe865d190e74fb5d43ac8bc6ac22507d0223
2017-02-01 18:34:58 -05:00
James McCoy
4e47568f89
vim-patch:802a0d9
...
Updated runtime files.
https://github.com/vim/vim/commit/802a0d902fca423acb15f835d7b09183883d79a0
2017-02-01 18:34:57 -05:00
James McCoy
cb0eead4ee
vim-patch:a02a551
...
Updated runtime files.
https://github.com/vim/vim/commit/a02a551e18209423584fcb923e93c6be18f3aa45
2017-02-01 18:34:52 -05:00
Justin M. Keyes
81525dc5c3
defaults: Revert 'mouse=a' ( #6022 )
...
This default causes too much confusion for terminal users. Until
a better approach is implemented, revert to the traditional default.
Better solution would be:
- Implement a right-click menu for TUI
- Set 'mouse=a' *only* if clipboard is working.
Closes #5938
2017-01-28 14:30:57 +01:00
Justin M. Keyes
73da522d73
errors: Introduce "E856: Filename too long"
2017-01-23 15:49:37 +01:00
Justin M. Keyes
be4c896845
DirChanged: set <amatch> ( #5961 )
...
Also:
- test that DirChanged is not recursive
- fix 'not trigger if :cd fails' test on Windows
2017-01-17 10:47:20 +01:00
Marco Hinz
340f79b4b8
Merge #5928 'New event: DirChanged'
2017-01-16 13:36:16 +01:00
Justin M. Keyes
3ba5e43d2e
Merge #5918 'vim-patch: 7.4.2006, 7.4.2075, 7.4.2077, 7.4.2117, 7.4.2300, 7.4.2313, 7.4.2314'.
2017-01-16 00:59:50 +01:00
Marco Hinz
20867e6319
Document DirChanged
2017-01-13 15:30:01 +01:00
Rui Abreu Ferreira
a05ebf4a2d
Windows: libuv_process_spawn(): Allow libuv argument quoting/escaping.
...
Closes #5360
References #3305
Reverts commit dc9652e68d .
Disabling the quoting was does not solve the problem in general, and
we would end up having to handle the quoting ourselves.
See: https://github.com/JuliaLang/julia/issues/13776
2017-01-10 23:34:04 +01:00
James McCoy
6520517e22
vim-patch:7.4.2008
...
Problem: evalcmd() has a confusing name.
Solution: Rename to execute(). Make silent optional. Support a list of
commands.
https://github.com/vim/vim/commit/79815f1ec77406f2f21a618c053e5793b597db7a
2017-01-10 07:14:12 -05:00
James McCoy
8f32c04df4
vim-patch:c95a302
...
Updated runtime files.
https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
2017-01-09 20:24:08 -05:00
James McCoy
492f2cfeff
vim-patch:7.4.1925
...
Problem: Viminfo does not merge file marks properly.
Solution: Use a timestamp. Add the :clearjumps command.
https://github.com/vim/vim/commit/2d35899721da0e9359a9fe1059554f8c4ea7f0c1
2017-01-09 20:23:41 -05:00
James McCoy
282109c51b
vim-patch:82af871
...
Updated runtime files.
https://github.com/vim/vim/commit/82af8710bf8d1caeeceafb1370a052cb7d92f076
2017-01-09 20:23:41 -05:00
James McCoy
60e306368d
vim-patch:aa3b15d
...
Updated runtime files.
https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
2017-01-09 20:23:41 -05:00
rover
f5d06c52a2
vim-patch:7.4.2077
...
Problem: Cannot update 'tabline' when a tab was closed.
Solution: Add the TabClosed autocmd event. (partly by Felipe Morales)
https://github.com/vim/vim/commit/12c11d553053f5a9eae9eb3c518279b12fa928c2
2017-01-08 23:16:39 +08:00
rover
c2344f3d31
vim-patch:7.4.2075
...
Problem: No autocommand event to initialize a window or tab page.
Solution: Add WinNew and TabNew events. (partly by Felipe Morales)
https://github.com/vim/vim/commit/c917da4b3e8801a255dbefea8e4ed19c1c716dd8
2017-01-08 22:46:08 +08:00
lonerover
bef645e5e4
vim-patch:7.4.2103
...
Problem: Can't have "augroup END" right after ":au!".
Solution: Check for the bar character before the command argument.
https://github.com/vim/vim/commit/e99e84497b89e5f91df519790802770920ecf4fe
2017-01-05 13:33:56 +08:00
ZyX
a934144e04
doc: Document that character constants are supported
2017-01-04 14:52:13 +03:00
Justin M. Keyes
6f9be2464c
Merge #5872 justinmk/test_autochdir
2017-01-04 08:24:36 +01:00
Justin M. Keyes
e43f7425ee
refactor: Remove VimL function test()
...
vim-patch:7.4.1838
2017-01-04 07:23:13 +01:00
Justin M. Keyes
097c8dccca
refactor: Remove VimL function test_autochdir()
...
- Eliminate global test_autochdir.
- Eliminate VimL function test_autochdir()
- Use a lua test instead. Fails correctly after reverting
0c43479979 / vim-patch:7.4.2015.
2017-01-04 07:23:13 +01:00
Tommy Allen
fd9cc8b0b2
automation: Generate API documentation ( #5798 )
...
runtime: Add underscore to {} helpSpecial syntax pattern
docs: Added generated api-funcs.txt
2017-01-03 13:11:19 +01:00
Shougo Matsushita
6ba3b85382
vim-patch:6f1d9a
...
Updated runtime files.
https://github.com/vim/vim/commit/6f1d9a096bf22d50c727dca73abbfb8e3ff55176
2017-01-02 10:45:10 +09:00
James McCoy
fe03ce23bf
vim-patch:7.4.2273
...
Problem: getwininfo() and getbufinfo() are inefficient.
Solution: Do not make a copy of all window/buffer-local options. Make it
possible to get them with gettabwinvar() or getbufvar().
https://github.com/vim/vim/commit/3056735ae8a366aa7fcb51872520895251858637
2016-12-28 14:57:39 -05:00
James McCoy
c4c894b2fa
vim-patch:7.4.2226
...
Problem: The field names used by getbufinfo(), gettabinfo() and
getwininfo() are not consistent.
Solution: Use bufnr, winnr and tabnr. (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/339288377072f66ec88e21903e75a82d23ffbf4f
2016-12-28 14:57:39 -05:00
James McCoy
4453aa0d29
vim-patch:7.4.2215
...
Problem: It's not easy to find out if a window is a quickfix or location
list window.
Solution: Add "loclist" and "quickfix" entries to the dict returnec by
getwininfo(). (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/386600f0cbcb8add099c723cf84634f46df2f788
2016-12-28 14:57:38 -05:00