From 33beeed4d9c2bda79d48a58ec10e8b05e7de5122 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Thu, 28 Nov 2019 05:01:04 +0000 Subject: 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 --- runtime/autoload/man.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime') 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*$' -- cgit