aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* man.vim: doc fixes #5171Anmol Sethi2016-08-13
| | | | | | | | | | | | | | - Weird tab+space combination used for alignment. All spaces now - Added back <C-T> mapping (somehow we missed that completely) - Fixed mistake that <Plug>(Man) opens in a new tab. Also added note at top on how the window is chosen/opened. - Clarified q local mapping - Removed section that shows an example autocmd to add desired folding style. - Removed random line in `usr_12.txt` about `<Leader>` and backslash. - :Man supports completion, not auto-completion. Closes #5171
* Restore ":browse oldfiles" behavior from VimJames McCoy2016-08-11
| | | | | | | | | | | | In 3b12bb225adda2aac40a55f7009cae05311b2a43, ":oldfiles" was taught to behave like Vim's ":browse oldfiles" if ":oldfiles!" was used. However, this conflates the use of ! for abandoning a modified buffer with choosing one file out of a list of oldfiles. Now that ":browse" is supported again, ":browse oldfiles" will allow the user to select an old file, while still complaining if that would cause a modified buffer to be abandoned. ":browse oldfiles!" will just abandon the buffer, as expected.
* docJustin M. Keyes2016-08-10
|
* man.vim: use -range instead of -count (#5203)Anmol Sethi2016-08-09
| | | | | | | | | | | | With -count, if the first argument is a number, it is made available with <count>. Problem is, there is always a default count it is impossible to tell whether the user set it. Since v:count and v:count1 still work with 'keywordprg', -count is unnecessary. But 'keywordprg' still calls ':Man' with a count prefixed. So it must still accept a count in the line number position, but not consume the first argument. This is done with -range. Fixes #5202.
* man.vim: handle empty identifier from mapping (#5187)Anmol Sethi2016-08-08
| | | | | Regression from #5168. Also changed the Man command's nargs to '+' so that man#open_page does not need to handle 0 arguments, because that will never occur.
* Merge #5025 'input.c: Restore double click'Justin M. Keyes2016-08-07
|\
| * test: mouse_specJustin M. Keyes2016-08-07
| | | | | | | | | | | | | | - Use the default buffer text provided by before_each (avoids extra steps and makes the tests more consistent with each other) - Indent - Adjust help doc
* | doc: Add if_ruby.txt to doc/help.txt (#5186)Alex Genco2016-08-07
| |
* | man.vim: handle 'gdefault' (#5182)Anmol Sethi2016-08-07
| | | | | | Fixes #5181
* | man.vim: buffers are now listedAnmol Sethi2016-08-07
| | | | | | | | | | - Since the names are set and ':vsplit printf(3)' work, there is no need to unlist them.
* | man.vim: refactoring and autocmd fixAnmol Sethi2016-08-07
| | | | | | | | | | | | - man#open_page_command and man#open_page_mapping are now a single function - New autocmd to fix #5172
* | man.vim: default K mappingAnmol Sethi2016-08-06
|/ | | | - Also some small improvements in other parts.
* man.vim: small syntax improvements (#5170)Anmol Sethi2016-08-06
|
* man.vim: doc, UX tweaksJustin M. Keyes2016-08-04
| | | | s:error: Convention is to highlight the entire message, so stick to that.
* man.vim: rewriteAnmol Sethi2016-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Smart autocomplete. It's automatically sorted, filtered for duplicates and even formats the candidates based on what is needed. For example, `:Man 1 printf<TAB>` will show the pages that are in section 1m as 'page(sect)' to let you know they are in a more specific section. - Instead of trying to unset $MANPAGER we use the -P flag to set the pager to cat - Always use the section arg '-s', it makes the code much simpler (see comment in s:man-args). - A manpage name starting with '-' is invalid. It's fine for sections because of the use of '-s'. - The tagstack is an actual stack now, makes it much simpler. - By using v:count and v:count1, the plugin can explicitly check whether the user set a count, instead of relying on a default value (0) that is actually a real manpage section. - Extraction of a manpage reference is much more simple. No giant long complicated regexes. Now, the plugin lets `man` handle the actual validation. We merely extract the section and page. Syntax regexes are a bit more specific though to prevent highlighting everything. - Multilingual support in the syntax file. Removed the cruft that was only relevent to vim. Also simplified and improved many of the regexes. - Using shellescape when sending the page and sect as arguments - In general, the code flow is much more obvious. - man#get_page has been split up into smaller functions with explicit responsibilties - ':help' behavior in opening splits and manpages - Comments explaining anything that needs explaining and isn't immediately obvious. - If a manpage has already been loaded but if it were to reloaded at the current width which is the same as the width at which it was loaded at previously, it is not reloaded. - Use substitute to remove the backspaced instead of `col -b`, as the latter doesn't work with other languages. - Open paths to manpages - It uses cWORD instead of cword to get the manpage under the cursor, this helps with files that do not have (,) in iskeyword. It also means the plugin does not set iskeyword locally anymore. - <Plug>(Man) mapping for easy remapping - Switched to single quotes wherever possible. - Updated docs in $VIMRUNTIME/doc/filetype.txt (still need to update user-manual) - Always call tolower on section name. See comment in s:extract_page_and_sect_fpage - Formatting/consistency cleanup - Automatically map q to ':q<CR>' when invoked as $MANPAGER - It also fully supports being used as $MANPAGER. Setting the name and stuff automatically. - Split up the setlocals into multiple lines for easier readability - Better detection of errors by redirecting stderr to /dev/null. If an error occured, stdout will be empty. - Functions return [sect, page] not [page, sect]. Makes more sense with how man takes the arguments as sect and then page. - Pretty prints errors on a single line. - If no section is given, automatically finds the correct section for the buffer name. It also gets the correct page. See the comment in s:get_page - If $MANWIDTH is not set, do not assign directly to $MANWIDTH because then $MANWIDTH will always stay set to the same value as we only use winwidth(0) when the global $MANWIDTH is empty. Instead we set it locally for the command. - Maintainer notes on all files.
* vim-patch:7.4.1557 (#5117)prollings2016-08-04
| | | | | | Problem: Windows cannot be identified. Solution: Add a unique window number to each window and functions to use it. https://github.com/vim/vim/commit/86edef664efccbfe685906c854b9cdd04e56f2d5
* vim-patch:7.4.1673 (#5141)Panashe Fundira2016-08-03
| | | | | | | | | | | Problem: The justify plugin has to be copied or sourced to be used. Solution: Turn it into a package. https://github.com/vim/vim/commit/2946d0236dc9e23ec0050feacdb959b9ae5672a8 Justification for changes that do not carry over - `Filelist` does not exist in neovim - neovim does not have a `README.txt` in `runtime/macros`
* doc: mention tnoremapJustin M. Keyes2016-08-01
| | | | Closes #5097
* [RFC] vim-patch:7.4.2011, vim-patch:7.4.2012, vim-patch:7.4.2066 #5106Shougo Matsushita2016-08-01
| | | | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.2011 Problem: It is not easy to get a list of command arguments. Solution: Add getcompletion(). (Yegappan Lakshmanan) https://github.com/vim/vim/commit/aa4d73235bf4deee167aa5314b89ae3d3db334b7 vim-patch:7.4.2012 Problem: Test for getcompletion() does not pass on all systems. Solution: Only test what is supported. https://github.com/vim/vim/commit/0d3e24be5686c0710aa3c6671e4c626d6cb21a5f vim-patch:7.4.2066 Problem: getcompletion() not well tested. Solution: Add more testing. https://github.com/vim/vim/commit/c1fb763184c8ae82300357867fa2070aa94366e9
* vim-patch:7.4.1676 #5143Panashe M. Fundira2016-08-01
| | | | | | | | | | | | Problem: The shellmenu plugin has to be copied or sourced to be used. Solution: Turn it into a package. https://github.com/vim/vim/commit/fead3ac9a35e0fc358141d3eb19574cd8a3ecb55 Justification for changes that do not carry over - `Filelist` does not exist in neovim - neovim does not have a `README.txt` in `runtime/macros`
* vim-patch:7.4.1675 #5142Panashe M. Fundira2016-08-01
| | | | | | | | | | | | Problem: The swapmous plugin has to be copied or sourced to be used. Solution: Turn it into the swapmouse package. https://github.com/vim/vim/commit/e101204906e10f1e100e2f9017985c61f26b03ac Justification for changes that do not carry over - `Filelist` does not exist in neovim - neovim does not have a `README.txt` in `runtime/macros`
* eval.c: rename capture() to execute() (#5132)Justin M. Keyes2016-07-31
|
* matchit.vim: preserve jumplist (#5124)Tommy Allen2016-07-30
|
* doc: gentle transition steps; stub XDG sectionJustin M. Keyes2016-07-29
| | | | Closes #4951
* vim-patch:7.4.1703James McCoy2016-07-23
| | | | | | | Problem: Can't assert for not equal and not matching. Solution: Add assert_notmatch() and assert_notequal(). https://github.com/vim/vim/commit/b50e5f56861deb867478997397f7c784a7043233
* vim-patch:7.4.1663James McCoy2016-07-23
| | | | | | | Problem: In tests it's often useful to check if a pattern matches. Solution: Add assert_match(). https://github.com/vim/vim/commit/ea6553bec340920d8a09c7210cdc2d218e25ace2
* Merge #5058Justin M. Keyes2016-07-18
|\
| * vim-patch:7.4.1546Patrick2016-07-13
| | | | | | | | | | | | | | | | | | | | Problem: Sticky type checking is more annoying than useful. Solution: Remove the error for changing a variable type. https://github.com/vim/vim/commit/f6f32c38bf3319144a84a01a154c8c91939e7acf Note: There are a bunch of other changes to eval.txt that I believe are N/A and not related to this patch.
* | Merge pull request #5042 from bfredl/unnamedunnamedplusBjörn Linse2016-07-13
|\ \ | | | | | | clipboard: make v:register=='+' when clipboard=unnamed,unnamedplus
| * | clipboard: fix v:register when clipboard=unnamed,unnamedplusBjörn Linse2016-07-12
| |/
* | Merge #5026 from joshtriplett/term-title-statuslineJustin M. Keyes2016-07-13
|\ \ | |/ |/| Please support setting terminal title in :terminal
| * Document terminal buffer-local variablesJosh Triplett2016-07-12
| | | | | | | | Include an example of using them in 'statusline'.
* | install: Include *.rb in runtime files.Justin M. Keyes2016-07-10
| |
* | Merge #4980 'Support legacy `:ruby` commands'.Justin M. Keyes2016-07-10
|\ \ | |/ |/|
| * Remove if_ruby from list of unimplemented featuresAlex Genco2016-07-09
| |
| * Add documentation around Ruby providerAlex Genco2016-07-08
| |
| * Add Ruby diagnosis to :CheckHealth commandAlex Genco2016-07-08
| |
| * Add :ruby, :rubyfile, and :rubydo ex commandsAlex Genco2016-07-02
| |
* | vim-patch:03413f4James McCoy2016-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/03413f44167c4b5cd0012def9bb331e2518c83cf Ignore changes to * doc/Makefile, doc/help.txt: Related to Vim's version8 documentation * doc/gui_x11.txt, doc/todo.txt, doc/vim.1, gvim.desktop, vim.desktop: Irrelevant to Neovim * doc/quickref.txt, doc/options.txt: As of yet unported 'emoji' * doc/tags, syntax/vim.vim: Generated at build time
* | vim-patch:7db8f6fJames McCoy2016-07-08
| | | | | | | | | | | | | | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/7db8f6f4f85e5d0526d23107b2a5e2334dc23354 Ignore changes to * doc/tags: Generated at build time * doc/channel.txt, doc/todo.txt: Irrelevant to Neovim * pack/dist/opt/matchit/doc/matchit.txt: matchit is enabled by default, so description of how to enable isn't needed.
* | Generate tags and install docs for included packagesJames McCoy2016-07-08
| |
* | Reword §05.4 to describe using the new vimball packageJames McCoy2016-07-08
| |
* | Move vimball plugin into an optional packageJames McCoy2016-07-08
| |
* | vim-patch:7.4.1649James McCoy2016-07-08
| | | | | | | | | | | | | | | | | | | | | | | | Problem: The matchit plugin needs to be copied to be used. Solution: Put the matchit plugin in an optional package. https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087 Ignore changes to * Filelist, src/Makefile: Irrelevant to NeoVim * runtime/vimrc_example.vim, runtime/macros/*, runtime/pack/*: matchit is enabled by default in Neovim.
* | vim-patch:4f3f668James McCoy2016-07-08
| | | | | | | | | | | | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/4f3f668c8486444e53163c29d2fc79bf47eb3c82 Ignore changes to * doc/channel.txt: Channel related docs * doc/tags: Generated at build time * doc/todo.txt: Irrelevant to Neovim
* | vim-patch:e18c0b3James McCoy2016-07-08
| | | | | | | | | | | | | | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/e18c0b39815c5a746887a509c2cd9f11fadaba07 Ignore changes to * doc/channel.txt, runtime/tools/demoserver.py: Channel related changes * doc/if_lua.txt, doc/if_perl.txt, doc/if_pyth.txt, doc/if_ruby.txt, doc/if_tcl.txt, doc/todo.txt: Irrelevant to Neovim * doc/tags: Generated at build time
* | vim-patch:7.4.1553James McCoy2016-07-08
| | | | | | | | | | | | | | Problem: ":runtime" does not use 'packpath'. Solution: Add "what" argument. https://github.com/vim/vim/commit/8dcf259d904cfb965d31841dc74a5cfaf5a351d9
* | vim-patch:77cdfd1James McCoy2016-07-08
| | | | | | | | | | | | | | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151 Ignore changes to: * doc/channel.txt, doc/eval.txt: Channel related docs * doc/options.txt: GUI related docs * doc/tags: Generated at build time * doc/todo.txt: Irrelevant for Neovim
* | vim-patch:7.4.1528James McCoy2016-07-08
| | | | | | | | | | | | | | Problem: Using "ever" for packages is confusing. Solution: Use "start", as it's related to startup. https://github.com/vim/vim/commit/af1a0e371e739f8dff337fd31da0ff8ffb347b43
* | vim-patch:5f148ecJames McCoy2016-07-08
| | | | | | | | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/5f148ec0b5a6cedd9129b3abac351034b83cc4f7 Ignore changes to * doc/channel.txt, doc/eval.txt: Channel related docs * doc/tags: Generated at build time * doc/todo.txt: Irrelevant to Neovim