diff options
author | Rob Pilling <robpilling@gmail.com> | 2019-11-28 05:01:04 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-27 21:01:04 -0800 |
commit | 33beeed4d9c2bda79d48a58ec10e8b05e7de5122 (patch) | |
tree | 4aee5ba943e1557041120f7eef3ef402536401df | |
parent | 5f9209389b95c03f22c660e9f36d0158b0f664e3 (diff) | |
download | rneovim-33beeed4d9c2bda79d48a58ec10e8b05e7de5122.tar.gz rneovim-33beeed4d9c2bda79d48a58ec10e8b05e7de5122.tar.bz2 rneovim-33beeed4d9c2bda79d48a58ec10e8b05e7de5122.zip |
man.vim: Improve ft=man 'iskeyword' #11457
This addresses a minor quality problem with the recent `'tagfunc'`
changes for `man.vim` (see [link]).
Currently, with the cursor on a parenthese, hitting `K` will jump us to
the man page of the next mentioned entry, instead of the one to which
the parenthese (or section number) belongs.
```
pcrepattern(3), terminfo(5), glob(7), regex(7).
e.g. ^ e.g. ^
```
Adding the parentheses to `'iskeyword'` means we correctly handle these cases too.
[link]: https://github.com/neovim/neovim/pull/11280#discussion_r348342357
-rw-r--r-- | runtime/autoload/man.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 809e4a19d8..e4c0080ae9 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -151,6 +151,8 @@ function! s:put_page(page) abort setlocal modifiable setlocal noreadonly setlocal noswapfile + " git-ls-files(1) is all one keyword/tag-target + setlocal iskeyword+=(,) silent keepjumps %delete _ silent put =a:page while getline(1) =~# '^\s*$' |