aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
...
* | | vim-patch:7.4.1894James McCoy2016-11-15
|/ / | | | | | | | | | | | | Problem: Cannot get the window ID for a mouse click. Solution: Add v:mouse_winid. https://github.com/vim/vim/commit/511972d810ea490955161ff5097ec2f57919ceaf
* | CheckHealth: Fix version comparison.Justin M. Keyes2016-11-15
| | | | | | | | Compare numbers instead of strings.
* | Merge #5607 from justinmk/icmJustin M. Keyes2016-11-15
|\ \ | | | | | | 'inccommand': auto-disable if too slow; fix other behaviors
| * | 'inccommand': Detect "non-interactive", "too slow".Justin M. Keyes2016-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command_line_changed: - Check (current_SID == 0) instead of KeyTyped - We want to update during mappings (KeyTyped is false then). - Check vpeekc_any() - Avoids unnecessary work. - Avoids triggering live preview during macros. - Caveat: This makes the redraw "stutter" if user spams (holds a key) in the replace pattern. But that scenario is not important. - Update screen if the command is changed to a non-live command. (`s->live` goes from true => false) => clears the preview command_line_execute: - Let CTRL-C cancel live preview do_sub: - Enforce a time limit ('redrawtime'). - Unset 'inccommand' if time limit is reached. Closes #5602 Closes #5585
* | | vim-patch:7.4.1658James McCoy2016-11-14
|/ / | | | | | | | | | | | | | | Problem: A plugin does not know when VimEnter autocommands were already triggered. Solution: Add the v:vim_did_enter variable. https://github.com/vim/vim/commit/1473551a4457d4920b235eeeb9f279e196ee7225
* | Merge #5582 from justinmk/icmJustin M. Keyes2016-11-12
|\ \ | | | | | | 'inccommand': Support :smagic/:snomagic. Less jumping around.
| * | 'inccommand': buftype=nofile, restore cursor/viewJustin M. Keyes2016-11-10
| | | | | | | | | | | | | | | | | | | | | - Use a standard scratch buffer instead of a new 'buftype', functions like curbufIsChanged() already have special handling for scratch bufs. - Cleanup some stuff from the previous merge. - Add support for :smagic, :snomagic. Closes #5578
* | | CheckHealth: Include v:throwpoint in error message (#5575)Tommy Allen2016-11-12
|/ / | | | | | | | | | | | | | | | | | | * health.vim: Include v:throwpoint in error message * health/provider.vim: Check for ruby executable * health/provider.vim: Combine subprocess stdout and stderr * test: Updated CheckHealth test
* | Merge #5561 'inccommand'Justin M. Keyes2016-11-09
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial work by: Robin Elrharbi-Fleury (Robinhola) Audrey Rayé (Adrey06) Philémon Hullot (DesbyP) Aymeric Collange (aym7) Clément Guyomard (Clement0) Major revisions by: KillTheMule Björn Linse <bjorn.linse@gmail.com> Justin M. Keyes <justinkz@gmail.com>
| * | 'inccommand': rename 'incsubstitute'Justin M. Keyes2016-11-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | 'inccommand' allows us to expand the feature to other commands, such as: :cdo :cfdo :global Also rename "IncSubstitute" highlight group to "Substitute".
| * | 'inccommand': disable 'cursorline', 'spell' in previewJustin M. Keyes2016-11-08
| | |
| * | 'inccommand': reworkJustin M. Keyes2016-11-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Eliminate/isolate static/global variables - Remove special-case parameter from buflist_new() - Remove special-case ECMD_RESERVED_BUFNR - To determine when u_undo_and_forget() should be done, check b_changedtick instead of a heuristic. - use mb_string2cells() instead of strlen() to measure the :sub patterns - call ml_close() before buf_clear_file(). Avoids leaks caught by ASan. Original patch by: Robin Elrharbi-Fleury (Robinhola) Audrey Rayé (Adrey06) Philémon Hullot (DesbyP) Aymeric Collange (aym7) Clément Guyomard (Clement0)
| * | Incsubsitution featureKillTheMule2016-10-30
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally implemented by * Clement0 * DesbyP * aym7 * Adrey06 * Robinhola in #4811. Major reworkings and bug fixes by * bfredl Most tests suggested by ZyX-l, suggestions for improvements by oni-link.
* | CheckHealth: ignore non-existing markdownCodeBlock group (#5570)Marco Hinz2016-11-08
| | | | | | | | | | | | | | | | People using [1] would experience an error, because their markdown syntax doesn't define the markdownCodeBlock group. [1]: https://github.com/plasticboy/vim-markdown Closes #5569
* | CheckHealth: timeout system() calls (#5565)Tommy Allen2016-11-08
| |
* | encoding: update documentationBjörn Linse2016-11-05
| |
* | Health: introduce help links (#5557)Marco Hinz2016-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can now use help links like in normal help pages. The bars around them will be concealed as well. * Health: link string "SUCCESS" to ModeMsg So far we linked "SUCCESS" to the Function highlight group. The newly introduced healthHelp group links to Idenfifier as it does for links in normal help pages. Now the problem is that the Function group links again to Identifier as well, so both, "SUCCESS" and help links, would use the same colors. * Health: don't use Markdown code blocks Every line indented by more than 4 spaces would lose its highlighting otherwise. * Health: add helper health#help_to_link()
* | provider/clipboard.vim: never show a warning on sourcingMarco Hinz2016-11-02
| | | | | | | | | | | | Never throw an error when provider/clipboard.vim is sourced for the first time. Save the error instead and expose it via `provider#clipboard#Error()`, mimicking provider/python.vim.
* | health/provider.vim: add clipboard checkMarco Hinz2016-11-02
| |
* | provider/clipboard.vim: refactorMarco Hinz2016-11-02
| |
* | doc: Remove features from vim_diff which have been merged upstream (#5554)James McCoy2016-10-31
|/ | | | - TabNew/TabClosed: Introduced in 7.4.2075 and 7.4.2077 - hl-EndOfBuffer: Introduced in 7.4.2213
* CheckHealth: fix check for tmux escape-time (#5545)J Phani Mahesh2016-10-29
|
* Merge #5535 from justinmk/api_levelJustin M. Keyes2016-10-28
|\ | | | | api: Nvim version + API level
| * api: api_info()['version']Justin M. Keyes2016-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API level is disconnected from NVIM version. The API metadata holds the current API level, and the lowest backwards-compatible level supported by this instance. Release 0.1.6 is the first release that reports the Nvim version and API level. metadata['version'] = { major: 0, minor: 1, patch: 6, api_level: 1, api_compatible: 0, api_prerelease: false, } The API level may remain unchanged across Nvim releases if the API has not changed. When changing the API, - set NVIM_API_PRERELEASE to true - increment NVIM_API_LEVEL (at most once per Nvim version) - adjust NVIM_API_LEVEL_COMPAT if backwards-compatibility was broken api_level_0.mpack was generated from Nvim 0.1.5 with: nvim --api-info
| * api: Nvim version, API level #5386Rui Abreu Ferreira2016-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API level is disconnected from the NVIM version. The API metadata holds the current API level, and the lowest backwards-compatible level supported by this instance. Release 0.1.6 will be the first release reporting the Nvim version and API level. metadata['version'] = { major: 0, minor: 1, patch: 6, prerelease: true, api_level: 1, api_compatible: 0, } The API level may remain unchanged across Neovim releases if the API has not changed. When changing the API the CMake variable NVIM_API_PRERELEASE is set to true, and NVIM_API_CURRENT/NVIM_API_COMPATIBILITY are incremented accordingly. The functional tests check the API table against fixtures of past versions of Neovim. It compares all the functions in the old table with the new one, it does ignore some metadata attributes that do not alter the function signature or were removed since 0.1.5. Currently the only fixture is 0.mpack, generated from Neovim 0.1.5 with nvim --api-info.
* | CheckHealth: check for sensible.vimJustin M. Keyes2016-10-28
|/
* Merge #5500Justin M. Keyes2016-10-26
|\ | | | | | | Closes #5246
| * vim-patch:7.4.2237Grzegorz Milka2016-10-23
| | | | | | | | | | | | | | Problem: Can't use "." and "$" with ":tab". Solution: Support a range for ":tab". (Hirohito Higashi) https://github.com/vim/vim/commit/9b7f8ce9eb3cb704f8cc14ab659bf86b1d6dc13c
* | modeline: Handle version number overflow. #5450Florian Larysch2016-10-26
| | | | | | | | | | | | | | | | | | | | | | Closes #5449 A file containing the string "vim" followed by a very large number in a modeline location will trigger an overflow in getdigits() which is called by chk_modeline() when trying to parse the version number. Add getdigits_safe(), which does not assert overflows, but reports them to the caller.
* | vim-patch:7.4.2109 (#5518)Michael Ennen2016-10-25
| | | | | | | | | | | | | | | | | | | | vim-patch:7.4.2109 Problem: Setting 'display' to "lastline" is a drastic change, while omitting it results in lots of "@" lines. Solution: Add "truncate" to show "@@@" for a truncated line. https://github.com/vim/vim/commit/ad9c2a08f0509294269a2f11a59a438b944bdd5a
* | CheckHealth: more checksJustin M. Keyes2016-10-25
| |
* | version: has("nvim-1.2.3")Justin M. Keyes2016-10-25
| | | | | | | | Helped-by: Daniel Hahler <git@thequod.de>
* | doc; vim-patch.shJustin M. Keyes2016-10-24
| | | | | | | | | | | | Also include missing changes from: https://github.com/vim/vim/commit/06d2d38ab7564e1f784b1058a4ef4580cd6d1810 https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
* | Merge #5483 from Shougo/vim-0648142Justin M. Keyes2016-10-24
|\ \ | |/ |/| vim-patch 0648142, 91c4937, 06d2d38, 2685212, 269f595
| * vim-patch:269f595Shougo Matsushita2016-10-15
| | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/269f595f9eef584937e7eae70fde68cdd7da5bcf
| * vim-patch:2685212Shougo Matsushita2016-10-15
| | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
| * vim-patch:06d2d38Shougo Matsushita2016-10-15
| | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/06d2d38ab7564e1f784b1058a4ef4580cd6d1810
| * vim-patch:91c4937Shougo Matsushita2016-10-15
| | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/91c4937be15b0b743b6bc495df602c1abbff6b87
| * vim-patch:0648142Shougo Matsushita2016-10-15
| | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/06481427005a9dae39721087df94855f7d4d1feb
* | man.vim: silence `file` call (#5509)Colin Caine2016-10-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a file is opened by nvim with ft=man already set, and "has('vim_starting')", ftplugin/man.vim calls 'execute 'file man://'.ref', this causes nvim to display something like this: ```` "<name of original file>" 977, 41017C "man://foo(1)" [Not edited] 977 lines --0%-- Press ENTER or type command to continue ```` This is annoying, because nothing of note has actually happened. Use cases why you might want to read a man page from a file: `MANPAGER='bash -c "nvim -c \"set ft=man\" </dev/tty <(col -bx)"' man git` `nvim -c 'set ft=man' <(man -P cat git)`
* | system('foo &', 'bar'): Show error, don't crash.Justin M. Keyes2016-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #3529 Closes #5241 In Vim, :echo system('cat - &', 'foo') works because for both system() and :! Vim writes input to a temp file and uses shell syntax to redirect the file to the backgrounded `cat` (get_cmd_output() .. make_filter_cmd()). In Nvim, :echo system('cat - &', 'foo') fails because we write the input directly via pipes (shell.c:do_os_system()), but (per POSIX[1]) backgrounded process input stream is redirected from /dev/null (unless overridden by shell redirection; supported only by some shells [2]), so our writes are ignored, the process exits quickly, and if we are writing data larger than the buffer size we'll see EPIPE. This still works: :%w !tee > foo1358.txt & but this does not: :%w !tee foo1358.txt & though it *should* (why doesn't it?) because we still do the temp file dance in do_bang() .. do_filter(). [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02 [2] http://unix.stackexchange.com/a/71218
* | test: system(): backgrounded shell commandJustin M. Keyes2016-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests are essentially affirming a regression vs Vim. In Vim, :echo system('cat - &', 'foo') returns "foo", because Vim internally wraps the command with shell-specific syntax to redirect the streams from /dev/null[1]. That can't work in Nvim because we use pipes directly (instead of temp files) and don't wrap the command with shell-specific redirection syntax. References #3529 References #5241 [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02
* | rplugin: resolve paths in manifest file (#5501)Marco Hinz2016-10-18
| | | | | | | | | | | | | | `:CheckHealth nvim` would always report an outdated manifest if symlinks were used, because the manifest file contains unresolved paths that get compared against resolved paths. Now we resolve paths before they get written to the manifest file.
* | Doc: Ruby omni-completion works (#5497)Marco Hinz2016-10-17
| |
* | CheckHealth: check terminfoJustin M. Keyes2016-10-16
| |
* | CheckHealth: check tmux configurationJustin M. Keyes2016-10-16
| |
* | docJustin M. Keyes2016-10-16
|/
* health/provider.vim: Pass errors through. Give more feedback.Justin M. Keyes2016-10-13
|
* health/provider.vim: Fix system([]) invocations.Justin M. Keyes2016-10-13
| | | | Closes #5435
* Merge #5257 from jbradaric/vim-7.4.1893Justin M. Keyes2016-10-13
|\ | | | | vim-patch:7.4.{1893,1895}