Justin M. Keyes
a90beeadbb
defaults: 'showcmd', 'belloff', 'ruler'
...
- Vim "unix default" of 'noshowcmd' is serving few users. And it's
inconsistent.
- 'ruler' and 'belloff=all' improve the out-of-the-box experience.
- Continue to use 'noshowcmd' and 'noruler' by default in the functional
tests to keep them fast.
TODO: Add a "disable slow stuff" command or mapping to address the
use-case of a very slow terminal connection.
2017-03-16 18:44:10 +01:00
Justin M. Keyes
ec4e84210b
Merge #6254 'vim-patch:7.4.2135,7.4.2144,7.4.2151'
2017-03-15 14:10:56 +01:00
Justin M. Keyes
36fd879b25
doc: eval.txt fixup, README.md
2017-03-13 15:50:50 +01:00
Justin M. Keyes
b2b15e6e13
win/package: nvim-qt v0.2.6 ( #6258 )
2017-03-11 16:00:26 +01:00
Justin M. Keyes
d1afd434f3
rplugin: Call s:LoadRemotePlugins() on startup.
...
Dispense with the FuncUndefined/CmdUndefined quasi-optimization.
If there are no rplugins, plugin/rplugin.vim takes less than 1ms.
Closes #5821
Closes #6250
Helped-by: Qiming zhao <chemzqm@gmail.com >
2017-03-11 12:26:22 +01:00
lonerover
3de3340132
vim-patch:7.4.2135
...
Problem: Various tiny issues.
Solution: Update comments, white space, etc.
https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
2017-03-11 18:26:03 +08:00
raichoo
1743df82f9
'cpoptions': "_" flag to toggle cw behaviour #6235
...
`cw` and `cW` behave like `ce` and `cE` respectively. This is
inconsistent compared to `dw` and `dW`.
Introduce a new cpoptions flag "_" to toggle the Vi behavior.
Closes #6234
Patch-by: Christian Brabandt <cblists@256bit.org >
References:
https://github.com/chrisbra/vim-mq-patches/blob/master/cpo_changeword
https://groups.google.com/d/msg/vim_use/aaBqT6ECkA4/ALf4odKzEDgJ
https://groups.google.com/d/msg/vim_dev/Dpn3xtUF16I/T6JcOPKN6usJ
http://www.reddit.com/r/vim/comments/26nut8/why_does_cw_work_like_ce/
2017-03-10 19:24:04 +01:00
Justin M. Keyes
483e8257e5
vim_getenv: $VIMRUNTIME fallback: ../share/nvim/runtime ( #6223 )
...
Do this on all systems, so that portable builds work everywhere. This
allows us to ship archives with this folder structure:
bin/nvim
share/nvim/runtime
then ./bin/nvim works without the user needing to explicitly set VIMRUNTIME.
2017-03-06 04:04:25 +01:00
Justin M. Keyes
e5be3aaaef
health.vim: tmux $TERM, default-terminal
2017-03-06 03:17:40 +01:00
Justin M. Keyes
af63f32129
doc: quotes.txt was removed
2017-03-04 04:13:31 +01:00
Justin M. Keyes
985bc6c6e0
doc/api.txt: Merge with api-funcs.txt
...
It's important that users have a single, easy-to-remember place for
reading about the API. So this commit changes gen_api_vimdoc.py so that
the generated section is appended to api.txt instead of creating
a separate document.
Also remove the section numbering and ToC: it's a maintenance cost, and
it will be unnecessary when #5169 is integrated.
2017-03-01 23:14:45 +01:00
Justin M. Keyes
2c408c0c94
Merge #6185 from justinmk/term-cursor
...
terminal: Keep cursor position; Disable 'cursorline'
2017-03-01 18:28:45 +01:00
Tommy Allen
4e4c785063
scripts: Annotate API functions in generated docs ( #6199 )
2017-03-01 17:55:34 +01:00
Justin M. Keyes
937e54f865
terminal: Keep cursor position.
...
Let the terminal dictate the normal-mode cursor position. This will be
disorienting sometimes, but it is closer to what users expect vs always
going to the last line.
2017-03-01 14:47:49 +01:00
Justin M. Keyes
5c421080f8
win/package: runtime files
...
runtime/plugin/gui_shim.vim is from Neovim-Qt. This is a temporary
measure, we will add real UI events which obviate gui_shim.vim.
Closes #6145
2017-03-01 14:03:58 +01:00
James McCoy
adc6e636fe
vim-patch:7.4.2095
...
Problem: Man test fails when run with the GUI.
Solution: Adjust for different behavior of GUI. Add assert_inrange().
https://github.com/vim/vim/commit/61c04493b00f85d0b97436260a9ef9ab82143b78
Only changes related to assert_inrange() were included, since we have a
distinct man plugin.
2017-02-27 21:40:16 -05:00
James McCoy
1371e19e2b
vim-patch:42ebd06
...
Update runtime files.
https://github.com/vim/vim/commit/42ebd066422d73cdb7bda6a1dc828a3dd022dec8
2017-02-27 20:49:01 -05:00
James McCoy
e0705021c1
Merge pull request #6190 from jamessan/vim-7.4.1991
...
vim-patch:7.4.1991,7.4.1992,7.4.1993,7.4.1994
2017-02-27 20:33:43 -05:00
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
Anmol Sethi
c8ee0be745
man.vim: use 'eventignore' instead of :noautocmd #6149
...
We only need to ignore BufReadCmd (from runtime/plugin/man.vim).
Closes #6144
2017-02-27 18:16:37 +01:00
James McCoy
c9c3f92b49
vim-patch:7.4.2200
...
Problem: Cannot get all information about a quickfix list.
Solution: Add an optional argument to get/set loc/qf list(). (Yegappan
Lakshmanan)
https://github.com/vim/vim/commit/d823fa910cca43fec3c31c030ee908a14c272640
2017-02-27 11:39:41 -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
Justin M. Keyes
2f38ed11c9
providers: Disable if g:loaded_* exists.
...
The exists('g:loaded_foo') convention is rather common, and may be
relied upon in some cases. It's also very unlikely that a user or plugin
has any reason to set g:loaded_foo to zero, so the principle of least
surprise can be brushed aside here.
https://github.com/neovim/neovim/issues/6107#issuecomment-279532143
2017-02-14 00:02:50 +01:00
Justin M. Keyes
9451647d9b
health.vim: Do not check intentionally disabled providers.
...
Closes #6107
2017-02-13 22:21:23 +01:00
Justin M. Keyes
f50de5be41
health.vim: ruby provider advice
2017-02-12 12:51:54 +01:00
Justin M. Keyes
c43ba671c3
health.vim: Reduce visual noise.
...
- SUCCESS should be extra green, regardless of colorscheme.
- Do not highlight INFO and SUGGESTIONS, they should not demand the
user's attention.
2017-02-12 11:38:28 +01: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
611411bf85
CheckHealth: choose correct $PATH separator
2017-02-04 11:07:49 +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
Anmol Sethi
3d3b1641d0
man.vim: more robust s:verify_exists #6043
...
Closes #6039
Also: close the window if we could not get the page from man but only if
we opened it ourselves.
2017-02-04 10:02:59 +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