aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
Commit message (Collapse)AuthorAge
* man.vim: do not assume ftplugin is sourced before syntaxAnmol Sethi2016-11-19
| | | | Fixes #5574
* man.vim: no guarantee that the first line contains anything usefulAnmol Sethi2016-11-18
| | | | Fixes #5628
* Merge #5483 from Shougo/vim-0648142Justin M. Keyes2016-10-24
|\ | | | | vim-patch 0648142, 91c4937, 06d2d38, 2685212, 269f595
| * vim-patch:2685212Shougo Matsushita2016-10-15
| | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
* | 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)`
* [RFC] man.vim: remove <Plug> mappings (#5290)Anmol Sethi2016-09-04
| | | | | | - :Man with no arguments opens the manapage for the <cWORD> (man buffers) or <cword> (non-man buffers). - remove now irrelevent comment about -P flag
* man.vim #5249Anmol Sethi2016-09-03
| | | | | | | | | | | - fix synopsis highlighting in other locales. Cannot always rely on the first line for the section in some locales; instead, use the file path and explicitly set b:man_sect to the actual section. - eliminate separate s:man_args function - simplify logic: do not reuse buffer content - introduce b:man_default_sects Fixes #5233 - introduce <Plug>(man_vsplit), <Plug>(man_tab) - simplify regexps
* man.vim: set window local options when reusing bufferAnmol Sethi2016-08-24
| | | | | | This is necessary incase the buffer was previously opened in a different tab, in which the window options there do not carry over. It is not explicitly documented in ':help local-options' but that is how it works.
* man.vim: Avoid error in legacy vimrcs.Justin M. Keyes2016-08-19
| | | | | | | | The old man.vim ftplugin advises users to add this to vimrc: runtime ftplugin/man.vim Make this a no-op to avoid sending users on a debugging quest.
* 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
* 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: default K mappingAnmol Sethi2016-08-06
| | | | - Also some small improvements in other parts.
* 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: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:f391327James McCoy2016-07-08
| | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/f391327adbbffb11180cf6038a92af1ed144e907 Ignore changes to * doc/todo.txt: Irrelevant for Neovim * doc/channel.txt: Channel docs * doc/tags, syntax/vim.vim: Generated at build time
* vim-patch:acb4f22James McCoy2016-05-25
| | | | | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/acb4f221c715a333f4c49a2235a8006c6ac6e4d5 Ignored changes to: * doc/eval.txt since alloc_fail isn't relevant for neovim * doc/index.txt for unmerge :smile command * doc/tags, syntax/vim.vim since they're generated at build time * doc/todo.txt
* vim-patch:256972aKillTheMule2016-05-03
| | | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b Missing files in runtime/doc: todo.txt, tags. Patch to runtime/doc/syntax.txt was applied manually in part, for no discernible reason.
* vim-patch:d042dc8KillTheMule2016-05-03
| | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9 Missing in runtime/doc: hangulin.txt, tags, todo.txt. The changes to options.txt do not apply for nvim. man.vim is very different in nvim, some changes applied manually, others discarded.
* vim-patch:d7464beKillTheMule2016-05-03
| | | | | | | | Updated runtime files. https://github.com/vim/vim/commit/d7464be9747fcaa8e6210e1f00a3882932df76e2 Applied cleanly except for runtime/docs/todo.txt and runtime/docs/tags.
* vim-patch:60cce2fDavid Barnett2016-04-18
| | | | | | Update runtime files. https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
* vim-patch:f2571cDavid Barnett2016-04-11
| | | | | | Updated runtime files. https://github.com/vim/vim/commit/f2571c61d5aa05682ae4d358e625348b61adc861
* man.vim: fixes to argument handling and parsingNoah Frederick2016-03-05
| | | | | | | | | | | - Define a collection of legal characters when parsing page and section in `s:parse_page_and_section()` instead of relying on 'iskeyword', which is unreliable. - Allow non-numeric section names (e.g., `3c`). - Simplify argument handling in `man#get_page()` to accommodate non-numeric section names. Fixes #4165.
* vim-patch:5a5f459Nicolas Dumazet2016-01-27
| | | | | | | | | | | | | | Original commit: https://github.com/vim/vim/commit/5a5f459 commit 5a5f45917dbf542cb00617fa5ef70a14898495dd Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 13 12:43:06 2015 +0200 Updated runtime files. (1) Merged manually vimrc_example.vim (2) Left out README.txt, doc/tags, doc/todo.txt, tutor/tutor.de, tutor.de.utf-8, ga.po
* vim-patch:2b8388bJustin Gassner2016-01-14
| | | | | | Updated runtime files. https://github.com/vim/vim/commit/2b8388bd0175835eb751e6c58cd0b0b69465f0d9
* vim-patch:83caecfJustin M. Keyes2015-12-17
| | | | | | Updated runtime files. https://github.com/vim/vim/commit/83caecf31437c1e1af342186514f2a073ee1427e
* Merge pull request #3675 from fmoralesc/update-vim-tutorFelipe Morales2015-11-28
|\ | | | | tutor: Update vim-tutor to 0.2.1
| * tutor: Update vim-tutor to 0.2.1Felipe Morales2015-11-28
| | | | | | | | Also, some tweaks based on input by @fdinoff on gitter.
* | Merge pull request #3270 from ZyX-I/shada-supportFelipe Morales2015-11-23
|\ \ | |/ |/| Add plugin for editing ShaDa files
| * runtime: Add [ft]plugin/shada.vim files that automatically open .shadaZyX2015-11-01
| |
* | vim-patch:f2571c6Marco Hinz2015-11-08
|/ | | | | | Update runtime files. References #3625.
* vim-patch:8feef4f #3444rosston2015-10-11
| | | | | | Update runtime files. https://github.com/vim/vim/commit/8feef4ff6253afb9dcc61c40082ed4fbb96b685c
* tutor-mode: update pluginFelipe Morales2015-09-27
|
* man.vim: Prevent sourcing in startup.Justin M. Keyes2015-09-25
| | | | | | | It is common practice for Vim users to :runtime! ftplugin/man.vim in order to get the :Man command. That will cause weird settings for non-man files.
* man.vim: window-local optionsJustin M. Keyes2015-09-23
| | | | | Set window-local options only on a newly-created "man" tab or if we're already in one.
* man.vim: man#get_page(): parse page and section.Justin M. Keyes2015-09-23
| | | | | - Eliminate man#pre_get_page(). - Temporarily remove () from 'iskeyword' to avoid spurious \k match.
* man.vim: convert ftplugin to actual plugin.Justin M. Keyes2015-09-23
| | | | | | | | | | | | | - do not create leader maps - :norm! instead of :norm - :keepjumps during layout - use blackhole reg to avoid polluting unnamed reg - format buffer name as "man://foo(2)" - simulate behavior of `man` - buffer-local mapping of q to quit - open in new tab instead of new window - set 'nolist' - set tabstop=8
* 'keywordprg': support ex commandsJustin M. Keyes2015-09-23
| | | | | | - new feature: if the first character of 'keywordprg' is ":", the command is invoked as a Vim ex-command prefixed with [count]. - change default 'keywordprg' to :Man
* runtime: Include vim-tutor-modeFelipe Morales2015-08-15
| | | | | | | | | | | vim-tutor-mode provides a mechanism to write and read interactive tutorials in vim. It's aim is to replace the venerable vimtutor with a more modern system. The plugin's development is maintained at https://github.com/fmoralesc /vim-tutor-mode Closes #2351.
* vim-patch:c5d53d4 #2695Florian Walch2015-05-19
| | | | | | Update runtime files. https://code.google.com/p/vim/source/detail?r=c5d53d4c3e2e24e23fc4272bf91be3c031ccb598
* vim-patch:37c2403Florian Walch2015-01-04
| | | | | | Update runtime files. https://code.google.com/p/vim/source/detail?r=37c24033b2601a4a0953970a0ec85d5537101915
* vim-patch:6921742Florian Walch2015-01-04
| | | | | | Update runtime files. https://code.google.com/p/vim/source/detail?r=6921742f396a4abd21d7f69843b804ca0b96059c
* vim-patch:1e8ebf8Florian Walch2014-12-30
| | | | | | Updated runtime files. https://code.google.com/p/vim/source/detail?r=1e8ebf870720e7b671f98f22d653009826304c4f
* Remove VMS remnantsMichael Reed2014-12-19
|
* re-integrate runtime/ vim-patch:0 #938Justin M. Keyes2014-07-29
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7 Excluding: Amiga icons (*.info, icons/) doc/hangulin.txt tutor/ spell/ lang/ (only used for menu translations) macros/maze/, macros/hanoi/, macros/life/, macros/urm/ These were used to test vi compatibility. termcap "Demonstration of a termcap file (for the Amiga and Archimedes)" Helped-by: Rich Wareham <rjw57@cam.ac.uk> Helped-by: John <john.schmidt.h@gmail.com> Helped-by: Yann <yann@yann-salaun.com> Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com> Helped-by: drasill <github@tof2k.com> Helped-by: Tae Sandoval Murgan <taecilla@gmail.com> Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>