diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 19:34:37 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 20:03:24 +0100 |
commit | 8c6168565cb5dade92f9da51c1c9e96882029eaa (patch) | |
tree | c6734e0d30bd065c32a2b0d1ab6a531b127c885f /runtime/ftplugin/perl.vim | |
parent | ae569ea57b1df1b450803b6d23ab8c315dd72e72 (diff) | |
download | rneovim-8c6168565cb5dade92f9da51c1c9e96882029eaa.tar.gz rneovim-8c6168565cb5dade92f9da51c1c9e96882029eaa.tar.bz2 rneovim-8c6168565cb5dade92f9da51c1c9e96882029eaa.zip |
vim-patch:37c64c78fd87
Note: Ignored changes to matchit.vim in favor of faca81411628.
---
Update runtime files.
https://github.com/vim/vim/commit/37c64c78fd87e086b5a945ad7032787c274e2dcb
Diffstat (limited to 'runtime/ftplugin/perl.vim')
-rw-r--r-- | runtime/ftplugin/perl.vim | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/runtime/ftplugin/perl.vim b/runtime/ftplugin/perl.vim index 741cfae047..e7acf654f3 100644 --- a/runtime/ftplugin/perl.vim +++ b/runtime/ftplugin/perl.vim @@ -3,7 +3,7 @@ " Maintainer: vim-perl <vim-perl@googlegroups.com> " Homepage: http://github.com/vim-perl/vim-perl " Bugs/requests: http://github.com/vim-perl/vim-perl/issues -" Last Change: 2013-07-21 +" Last Change: 2015-02-09 if exists("b:did_ftplugin") | finish | endif let b:did_ftplugin = 1 @@ -33,14 +33,14 @@ endif setlocal include=\\<\\(use\\\|require\\)\\> setlocal includeexpr=substitute(substitute(substitute(v:fname,'::','/','g'),'->\*','',''),'$','.pm','') setlocal define=[^A-Za-z_] +setlocal iskeyword+=: " The following line changes a global variable but is necessary to make -" gf and similar commands work. The change to iskeyword was incorrect. -" Thanks to Andrew Pimlott for pointing out the problem. If this causes a -" problem for you, add an after/ftplugin/perl.vim file that contains +" gf and similar commands work. Thanks to Andrew Pimlott for pointing +" out the problem. If this causes a problem for you, add an +" after/ftplugin/perl.vim file that contains " set isfname-=: set isfname+=: -set iskeyword+=: " Set this once, globally. if !exists("perlpath") @@ -77,11 +77,12 @@ endif "--------------------------------------------- " Undo the stuff we changed. -let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp< path<" . +let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isk< isf< kp< path<" . \ " | unlet! b:browsefilter" " proper matching for matchit plugin let b:match_skip = 's:comment\|string\|perlQQ\|perlShellCommand\|perlHereDoc\|perlSubstitution\|perlTranslation\|perlMatch\|perlFormatField' +let b:match_words = '\<if\>:\<elsif\>:\<else\>' " Restore the saved compatibility options. let &cpo = s:save_cpo |