Commit Graph
128 Commits
Author SHA1 Message Date
Bruno Michel 6a29a7bfb0 vim-patch:7f2e9d7c9cdf
Update runtime files.
https://github.com/vim/vim/commit/7f2e9d7c9cdfc5201a899b7b610edf64bf80c45f
2018-10-07 17:35:24 +02:00
Doron Behar 9081cad514 man.vim: Ignore $MANWIDTH, use soft wrap #9023
fix #9017
close #9023
2018-09-21 10:17:37 +02:00
Felipe Morales a5e3f4da34 tutor: don't set statusline (#8844)
also, remove unused function tutor#InfoText()

fixes #8842
2018-08-10 19:01:17 +02:00
Justin M. Keyes 94f4469638 man.vim: infer $MANPAGER invocation in more cases
This should handle most cases where Nvim was invoked as $MANPAGER.

Ultimately the stakes are low: :quit will prompt if there are unsaved
changes.

fix #7873
2018-01-19 02:05:23 +01:00
Justin M. Keyes 4175dfac9a vim-patch:01164a6546b4
Long overdue runtime update.

https://github.com/vim/vim/commit/01164a6546b4c635daf96a1f17d1cb2d07f32a66
2017-11-07 23:07:03 +01:00
Justin M. Keyes 8c6168565c vim-patch:37c64c78fd87
Note: Ignored changes to matchit.vim in favor of faca814116.

---

Update runtime files.

https://github.com/vim/vim/commit/37c64c78fd87e086b5a945ad7032787c274e2dcb
2017-11-07 20:03:24 +01:00
Justin M. Keyes 8c3377ee76 vim-patch:c572da5f67aa
Update runtime files

https://github.com/vim/vim/commit/c572da5f67aa5cdbbc127fc6f1d0a42e38468325
2017-11-07 03:23:37 +01:00
Justin M. Keyes 39fa278216 vim-patch:f55e4c867f77
Updated runtime files

https://github.com/vim/vim/commit/f55e4c867f774d1f27973d06b07b97c0a4d6b968
2017-11-07 03:14:31 +01:00
Justin M. Keyes 78223bc97f vim-patch:b4d6c3ea4a59
Update runtime files.

https://github.com/vim/vim/commit/b4d6c3ea4a59c6d8d4e0e52120596866f0edd510
2017-11-07 01:27:14 +01:00
Justin M. Keyes 0312fc2ddb vim-patch:3c2881dc1195
Update runtime files.  Add Rust support.

https://github.com/vim/vim/commit/3c2881dc1195f53ebafc387378399ddd6cb677a7
2017-11-07 01:04:17 +01:00
Justin M. Keyes c348f84f21 vim-patch:036986f1507d
Update runtime files.

https://github.com/vim/vim/commit/036986f1507d223549d110af300144468bd3a1f7
2017-11-06 05:35:32 +01:00
Justin M. Keyes 93fb7383a3 vim-patch:214641f77df6
Runtime file updates.

https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4

N/A:
vim-patch:26a280c47a1c
2017-11-06 05:26:16 +01:00
Justin M. Keyes 7068370560 help, man.vim: change "outline" map to gO (#7405) 2017-10-21 02:33:58 +02:00
Felipe Morales 8e48d7c19e tutor: disable old method for setting "expect" regions
tutor: remove movement mappings
2017-07-15 11:01:45 -04:00
Felipe Morales c235ee3f05 tutor: don't enable folds by default 2017-07-15 11:01:45 -04:00
Felipe Morales ec67d07065 tutor: allow metadata to exist outside of the documents.
this makes 'expect' regions simpler to handle.
2017-07-15 11:01:45 -04:00
Peter Renström 6720fe253e runtime: K: prefer Vim help instead of man #3104 2017-07-08 15:11:56 +02:00
Tommy Allen bc4a2e1576 help, man.vim: "outline" (TOC) feature #5169 2017-05-01 17:45:54 +02:00
Justin M. Keyes deccd843ed vim-patch:3df0173fa6d0
Updated runtime files.

https://github.com/vim/vim/commit/3df0173fa6d0418e89ef4e9c1d04a97c92eec27c
2017-05-01 13:32:51 +02:00
Justin M. Keyes 789c46934b vim-patch:b4ada79aa7d0
Runtime file updates.

https://github.com/vim/vim/commit/b4ada79aa7d0d1e5da3a659b1a203d7cae9f7f59

Closes #5055
2017-04-29 01:51:56 +02:00
Justin M. Keyes 8d3f8f639b vim-patch:46fceaaa8d14
Updated runtime files.

https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
2017-04-29 01:47:36 +02:00
Justin M. Keyes 60e68f3096 vim-patch:dc08328821a2
Updated runtime files.

https://github.com/vim/vim/commit/dc08328821a2c11e33dfb1980332e4923ec64fca

NA patches:
vim-patch:8.0.0028
vim-patch:8.0.0029
vim-patch:8.0.0030
2017-04-29 01:01:51 +02:00
Justin M. Keyes 460d5971f6 vim-patch:2ec618c9feac
Updated runtime files.

https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
2017-04-28 23:49:16 +02:00
Justin M. Keyes 2e64752250 vim-patch:64d8e25bf6ef
Updated runtime files.

https://github.com/vim/vim/commit/64d8e25bf6efe5f18b032563521c3ce278c316ab

Closes #6611
2017-04-28 23:14:36 +02:00
Justin M. Keyes 2648c3579a vim-patch:abd468ed0fbc
Updated runtime files

https://github.com/vim/vim/commit/abd468ed0fbcba391e7833feeaa7de3ced841455
2017-04-28 21:38:07 +02:00
Justin M. Keyes a53409b564 vim-patch:89bcfda6834a
Updated runtime files.  Remove version checks for Vim older than 6.0.

https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
2017-04-28 21:13:55 +02:00
Justin M. Keyes d194380de9 vim-patch:e4a3bcf28d92
Updated runtime files.  Add Scala files.

https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
2017-04-19 21:26:17 +02: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
James McCoy 8f32c04df4 vim-patch:c95a302
Updated runtime files.

https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
2017-01-09 20:24:08 -05:00
James McCoy 282109c51b vim-patch:82af871
Updated runtime files.

https://github.com/vim/vim/commit/82af8710bf8d1caeeceafb1370a052cb7d92f076
2017-01-09 20:23:41 -05:00
Shougo Matsushita 6ba3b85382 vim-patch:6f1d9a
Updated runtime files.

https://github.com/vim/vim/commit/6f1d9a096bf22d50c727dca73abbfb8e3ff55176
2017-01-02 10:45:10 +09:00
Marco Hinz c8c296557b Man: use non-recursive mappings for :Man (#5777)
This is a regression introduced by:

  https://github.com/neovim/neovim/pull/5290/files#diff-8691c83194ea5f1342ecc9f17b4c51d8R46

When the <plug> mappings were changed to using :Man, they should have changed to
use `nnoremap` as well.

Fixes #5776.
2016-12-15 17:36:55 +01:00
James McCoy 9337e98b16 ftplugin/man: Finish early if &filetype is not man
Many people have `runtime ftplugin/man.vim` in their init file, as was
required in Vim to have the `:Man` command generally available.
7a4d069b removed the &filetype check, which caused these setups to
always create a blank `man://` buffer.
2016-12-03 21:27:43 -05:00
Anmol Sethi 7a4d069bcc man.vim: do not assume ftplugin is sourced before syntax
Fixes #5574
2016-11-19 13:41:04 -05:00
Anmol Sethi cf52b881d9 man.vim: no guarantee that the first line contains anything useful
Fixes #5628
2016-11-18 14:06:42 -05:00
Justin M. Keyes fb503d73da Merge #5483 from Shougo/vim-0648142
vim-patch 0648142, 91c4937, 06d2d38, 2685212, 269f595
2016-10-24 13:17:41 +02:00
Colin Caine e19234f391 man.vim: silence file call (#5509)
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)`
2016-10-20 08:35:48 +02:00
Shougo Matsushita f3efb724af vim-patch:2685212
Update runtime files.

https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
2016-10-15 12:15:36 +09:00
Anmol Sethi 9bba8ba372 [RFC] man.vim: remove <Plug> mappings (#5290)
- :Man with no arguments opens the manapage for the
  <cWORD> (man buffers) or <cword> (non-man buffers).
- remove now irrelevent comment about -P flag
2016-09-04 03:53:58 +02:00
Anmol Sethi f8fc8f51c0 man.vim #5249
- 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
2016-09-03 12:57:41 -04:00
Anmol Sethi 10b014ca7b man.vim: set window local options when reusing buffer
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.
2016-08-24 11:51:59 -04:00
Justin M. Keyes 1b825a9ada man.vim: Avoid error in legacy vimrcs.
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.
2016-08-19 22:57:24 -04:00
Anmol Sethi 79ef4b72d7 man.vim: doc fixes #5171
- 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
2016-08-13 08:58:21 -04:00
Anmol Sethi 6050d3f15d man.vim: handle 'gdefault' (#5182)
Fixes #5181
2016-08-07 17:30:05 -04:00
Anmol Sethi e8a3477dc7 man.vim: buffers are now listed
- Since the names are set and ':vsplit printf(3)' work, there is no need
to unlist them.
2016-08-07 15:53:31 -04:00
Anmol Sethi f665bde183 man.vim: default K mapping
- Also some small improvements in other parts.
2016-08-06 19:49:29 -04:00
Anmol Sethi 42e9606c23 man.vim: rewrite
- 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.
2016-08-04 22:46:53 -04:00
James McCoy ea18b4a60f vim-patch:77cdfd1
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
2016-07-08 01:43:36 -04:00
James McCoy 28300a1293 vim-patch:f391327
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
2016-07-08 01:38:21 -04:00
James McCoy d693a22de3 vim-patch:acb4f22
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
2016-05-25 21:05:01 -04:00