aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
Commit message (Collapse)AuthorAge
...
* | | | Merge pull request #17245 from zeertzjq/vim-8.2.3219zeertzjq2022-02-02
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.3219: :find searches non-existing directories
| * | | | vim-patch:8.2.3219: :find searches non-existing directorieszeertzjq2022-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :find searches non-existing directories. Solution: Check the path is not "..". Update help. (Christian Brabandt, closes vim/vim#8612, closes vim/vim#8533) https://github.com/vim/vim/commit/7a4ca32175bef0f9a177052796bd9addd10dc218 Change STRNCAT to STRLCAT as clint doesn't like the former. Include a typo fix from https://github.com/vim/vim/commit/2f0936cb9a2eb026acac03e6a8fd0b2a5d97508b#diff-7e9292cae1f2ba70dd5b17d2d162693a91044ada6ac99e9c3e8917f32878c097
* | | | | Merge pull request #17113 from zeertzjq/vim-8.2.2569zeertzjq2022-02-01
|\ \ \ \ \ | |/ / / / |/| | | | feat(statusline): support multibyte fillchar
| * | | | feat(statusline): support multibyte fillcharzeertzjq2022-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a partial port of Vim patch 8.2.2569 and some changes to nvim_eval_statusline() to allow a multibyte fillchar. Literally every line of C code touched by that patch has been refactored in Nvim, and that patch contains some irrelevant foldcolumn tests I'm not sure how to port (as Nvim's foldcolumn behavior has diverged from Vim's).
* | | | | vim-patch:c4573eb12dba (#17258)Christian Clason2022-01-31
| | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/c4573eb12dba6a062af28ee0b8938d1521934ce4
* | | | | vim-patch:partial:f10911e5db16 (#17248)Christian Clason2022-01-31
| |/ / / |/| | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/f10911e5db16f1fe6ab519c5d091ad0c1df0d063
* | | | vim-patch:8.2.3433: :delcommand does not take a -buffer optionSean Dewar2022-01-30
| | | | | | | | | | | | | | | | | | | | | | | | Problem: :delcommand does not take a -buffer option. Solution: Add the -buffer option. https://github.com/vim/vim/commit/bdcba24d8597abd5af509c2fb9206e64e713c711
* | | | chore: typo fixes (#16921)dundargoc2022-01-29
| | | | | | | | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | | | vim-patch:partial:04fb916Daniel Steinberg2022-01-29
| | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/04fb916684829f6aa12f33f14d0d0023b458f200
* | | | vim-patch:8.2.3917: the eval.txt help file is way too bigDaniel Steinberg2022-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The eval.txt help file is way too big. Solution: Move the builtin function details to a separate file. https://github.com/vim/vim/commit/1cae5a0a034d0545360387407a7a409310f1efe2 Note: Neovim-specific references to |functions| were changed to |builtin-functions|. This included updates to: 1. test/functional/vimscript/functions_spec.lua 2. test/functional/vimscript/eval_spec.lua 3. runtime/doc/lua.txt
* | | | feat(provider)!: remove support for python2 and python3.[3-5]Björn Linse2022-01-29
| | | | | | | | | | | | | | | | | | | | | | | | These versions of python has reached End-of-life. getting rid of python2 support removes a lot of logic to support two incompatible python versions in the same version.
* | | | vim-patch:8.2.4052: not easy to resize a window from a plugin (#17028)Daniel Steinberg2022-01-29
| | | |
* | | | docs(helphelp): remove extra backtick interference (#17201)dundargoc2022-01-27
| | | | | | | | | | | | | | | | | | | | An extra backtick was explicitly written to show what a backtick looked like, but it interferes with the syntax highlighting which thinks that it's a part of a concealed group and couples it with the wrong backtick.
* | | | Merge pull request #17166 from Shougo/vim-8.2.4160bfredl2022-01-27
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.4160: cannot change the register used for Select mode d…
| * | | | vim-patch:8.2.4160: cannot change the register used for Select mode deleteShougo Matsushita2022-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot change the register used for Select mode delete. Solution: Make CTRL-R set the register to be used when deleting text for Select mode. (Shougo Matsushita, closes vim/vim#9531) https://github.com/vim/vim/commit/4ede01f18884961f2e008880b4964e5d61ea5c36
* | | | | Merge pull request #17145 from zeertzjq/vim-8.2.0128bfredl2022-01-27
|\ \ \ \ \ | | | | | | | | | | | | vim-patch:8.2.0128: cannot list options one per line
| * | | | | vim-patch:8.2.0128: cannot list options one per linezeertzjq2022-01-20
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot list options one per line. Solution: Use ":set!" to list one option per line. https://github.com/vim/vim/commit/6b915c0c0ee7ef82f8d3d310a4345e098cb929b0
* | | | | Merge pull request #17095 from zeertzjq/vim-8.2.3227bfredl2022-01-27
|\ \ \ \ \ | | | | | | | | | | | | vim-patch:8.2.{3227,3280,4094}: global-local 'virtualedit'
| * | | | | vim-patch:8.2.3280: 'virtualedit' local to buffer is not the best solutionzeertzjq2022-01-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'virtualedit' local to buffer is not the best solution. Solution: Make it window-local. (Gary Johnson, closes vim/vim#8685) https://github.com/vim/vim/commit/51ad850f5fbafa7aa3f60affa74ec9c9f992c6cc
| * | | | | vim-patch:8.2.3227: 'virtualedit' can only be set globallyzeertzjq2022-01-15
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'virtualedit' can only be set globally. Solution: Make 'virtualedit' global-local. (Gary Johnson, closes vim/vim#8638) https://github.com/vim/vim/commit/53ba05b09075f14227f9be831a22ed16f7cc26b2 I changed some macros to unsigned integer literals to avoid compiler warnings.
* | | | | Merge pull request #17156 from zeertzjq/vim-8.2.3584bfredl2022-01-23
|\ \ \ \ \ | | | | | | | | | | | | vim-patch:8.2.{3584,3586,3587}: :command "-keepscript" argument
| * | | | | vim-patch:8.2.3584: "verbose set efm" reports location of the :compiler commandzeertzjq2022-01-21
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: "verbose set efm" reports the location of the :compiler command. (Gary Johnson) Solution: Add the "-keepscript" argument to :command and use it when defining CompilerSet. https://github.com/vim/vim/commit/58ef8a31d7087d495ab1582be5b7a22796ac2451
* | | | | vim-patch:6f4754b9f725 (#17179)Christian Clason2022-01-23
| | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/6f4754b9f7253d7e4ba527064a24aff1acdb1e8f
* | | | | refactor: remove the <xCSI> keyzeertzjq2022-01-21
|/ / / / | | | | | | | | | | | | CSI typed directly is now just <CSI>. The <xCSI> key is obsolete.
* | | | refactor: source ftplugin.vim separately from filetype.vim (#17129)Gregory Anders2022-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow-on to #17040. The real benefit of #17040 was ensuring that the ftplugin FileType autocommand was defined first and thus always fired first. A side effect of the implementation in #17040 was that setting variables that modified the state of filetype detection (such as g:did_load_filetypes or g:do_filetype_lua) could no longer be set in the user's init file. Filetype detection can also no longer be prevented from loading by using `:filetype off`. This PR addresses both of those side effects by unconditionally sourcing ftplugin.vim and indent.vim before the user's init file (which ensures that these autocommands run first) and sourcing filetype.vim *after* the user's init file (thus allowing it to be blocked or modified).
* | | | refactor: enable filetype detection before user startup scripts (#17040)Gregory Anders2022-01-17
| | | |
* | | | docs: regenerate [skip ci]marvim2022-01-17
| | | |
* | | | vim-patch:fd31be29b822 (#17114)Christian Clason2022-01-17
|/ / / | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/fd31be29b8220ee1cb0b3460c82f2634ae3cc370
* | | feat(diagnostic): allow retrieving current diagnostic configGregory Anders2022-01-11
| | |
* | | vim-patch:2f0936cb9a2e (#17007)Christian Clason2022-01-11
| | | | | | | | | | | | | | | | | | * vim-patch:2f0936cb9a2e Update runtime files https://github.com/vim/vim/commit/2f0936cb9a2eb026acac03e6a8fd0b2a5d97508b
* | | fix(lua): print multiple return values with =expr (#16933)Shadman2022-01-06
| | |
* | | feat(lua): add notify_once() (#16956)Gregory Anders2022-01-06
| | | | | | | | | Like vim.notify(), but only displays the notification once.
* | | Merge pull request #16591 from shadmansaleh/feat/lua_keymaps2Björn Linse2022-01-06
|\ \ \ | | | | | | | | feat(lua): add support for lua keymaps
| * | | feat(lua): add vim.keymapshadmansaleh2022-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces two new functions `vim.keymap.set` & `vim.keymap.del` differences compared to regular set_keymap: - remap is used as opposite of noremap. By default it's true for <Plug> keymaps and false for others. - rhs can be lua function. - mode can be a list of modes. - replace_keycodes option for lua function expr maps. (Default: true) - handles buffer specific keymaps Examples: ```lua vim.keymap.set('n', 'asdf', function() print("real lua function") end) vim.keymap.set({'n', 'v'}, '<leader>lr', vim.lsp.buf.references, {buffer=true}) vim.keymap.set('n', '<leader>w', "<cmd>w<cr>", {silent = true, buffer = 5 }) vim.keymap.set('i', '<Tab>', function() return vim.fn.pumvisible() == 1 and "<C-n>" or "<Tab>" end, {expr = true}) vim.keymap.set('n', '[%', '<Plug>(MatchitNormalMultiBackward)') vim.keymap.del('n', 'asdf') vim.keymap.del({'n', 'i', 'v'}, '<leader>w', {buffer = 5 }) ```
* | | | feat(lsp): enable default debounce of 150 ms (#16908)Michael Lingelbach2022-01-05
| | | |
* | | | feat(autocmd): populate v:event in RecordingLeave (#16828)Axel Dahlberg2022-01-04
| | | |
* | | | fix(api): force redefinition of user commands by default (#16918)Gregory Anders2022-01-04
| | | |
* | | | chore: fix typos (#16816)dundargoc2022-01-04
|/ / / | | | | | | | | | | | | | | | | | | Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Sebastian Volland <seb@baunz.net> Co-authored-by: Lewis Russell <lewis6991@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | | feat: filetype.lua (#16600)Gregory Anders2022-01-04
| | | | | | | | | | | | Adds a new vim.filetype module that provides support for filetype detection in Lua.
* | | feat(lua): make =expr print result of exprshadmansaleh2022-01-04
| | |
* | | docs(usr_05): fix section numbers (#16886)Sean Dewar2022-01-03
| | | | | | | | | | | | | | | Other refs to 05.3 don't need to be updated as they refer to the simple mappings section anyway. Seems they weren't updated when the defaults.vim section was added as 05.3 instead.
* | | feat(lua): add support for multiple optional types in vim.validate (#16864)Shadman2022-01-01
| | |
* | | vim-patch:partial 04fb91668482 (#16852)Christian Clason2022-01-01
| | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/04fb916684829f6aa12f33f14d0d0023b458f200 omits doc/usr_41.txt (rewritten to focus on vim9script)
* | | feat(api): add support for lua function & description in keymapshadmansaleh2022-01-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Behavioral changes: 1. Added support for lua function in keymaps in -------------------------------------------- - nvim_set_keymap Can set lua function as keymap rhs like following: ```lua vim.api.nvim_{buf_}set_keymap('n', '<leader>lr', '', {callback = vim.lsp.buf.references}) ``` Note: lua function can only be set from lua . If api function being called from viml or over rpc this option isn't available. - nvim_{buf_}get_keymap When called from lua, lua function is returned is `callback` key . But in other cases callback contains number of the function ref. - :umap, nvim_del_keymap & nvim_buf_del_keymap clears lua keymaps correctly. - :map commands for displaing rhs . For lua keymaps rhs is displayed as <Lua function ref_no> Note: lua keymap cannot be set through viml command / functions. - mapargs() When dict is false it returns string in `<Lua function ref_no>` format (same format as :map commands). When dict is true it returns ref_no number in `callback` key. - mapcheck() returns string in `<Lua function ref_no>` format (same format as :map commands). 2. Added support for keymap description --------------------------------------- - nvim_{buf_}set_keymap: added `desc` option in opts table . ```lua vim.api.nvim_set_keymap('n', '<leader>w', '<cmd>w<cr>', {desc='Save current file'}) ``` - nvim_{buf_}get_keymap: contains `desc` in returned list. - commands like `:nmap <leader>w` will show description in a new line below rhs. - `maparg()` return dict contains `desc`.
* | | Merge pull request #16752 from gpanders/lua-user-commandsBjörn Linse2021-12-28
|\ \ \ | | | | | | | | feat(api): implement nvim_{add,del}_user_command
| * | | feat(api): implement nvim_{add,del}_user_commandGregory Anders2021-12-28
| |/ / | | | | | | | | | | | | Add support for adding and removing custom user commands with the Nvim API.
* / / chore: fix typos (#16506)dundargoc2021-12-28
|/ / | | | | | | | | | | | | | | | | Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com> Co-authored-by: Alef Pereira <ealefpereira@gmail.com> Co-authored-by: AusCyber <willp@outlook.com.au> Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
* | vim-patch:partial fa3b72348d88 (#16780)Christian Clason2021-12-26
| | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2 omit doc/eval.txt (needs 8.2.3864) doc/map.txt (needs 8.2.3619) menu.vim (needs 8.2.0413)
* | Merge pull request #16774 from zeertzjq/vim-8.2.2468Jan Edmund Lazo2021-12-25
|\ \ | | | | | | vim-patch:8.2.2468: not easy to get the full command name from a shortened one
| * | vim-patch:partial:6c391a74fe90zeertzjq2021-12-25
| | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7