aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/man.vim
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2015-05-18 18:45:20 +0300
committerMichael Reed <m.reed@mykolab.com>2015-05-19 12:31:44 -0400
commite211362a6daec463902f5f4f1bd124c106b3350e (patch)
tree1b83c7fbce4fc76736b603cef58eb334810d119c /runtime/ftplugin/man.vim
parent5bbd182a3e02cf078e4bede693199c94943f4848 (diff)
downloadrneovim-e211362a6daec463902f5f4f1bd124c106b3350e.tar.gz
rneovim-e211362a6daec463902f5f4f1bd124c106b3350e.tar.bz2
rneovim-e211362a6daec463902f5f4f1bd124c106b3350e.zip
vim-patch:c5d53d4 #2695
Update runtime files. https://code.google.com/p/vim/source/detail?r=c5d53d4c3e2e24e23fc4272bf91be3c031ccb598
Diffstat (limited to 'runtime/ftplugin/man.vim')
-rw-r--r--runtime/ftplugin/man.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index c6e1e9d4f7..11b2b0a665 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: man
" Maintainer: SungHyun Nam <goweol@gmail.com>
-" Last Change: 2013 Jul 17
+" Last Change: 2014 Nov 12
" To make the ":Man" command available before editing a manual page, source
" this script from your startup vimrc file.
@@ -63,7 +63,9 @@ endtry
func <SID>PreGetPage(cnt)
if a:cnt == 0
let old_isk = &iskeyword
- setl iskeyword+=(,)
+ if &ft == 'man'
+ setl iskeyword+=(,)
+ endif
let str = expand("<cword>")
let &l:iskeyword = old_isk
let page = substitute(str, '(*\(\k\+\).*', '\1', '')