From 610f4c570123510f2d6f4c5799d880d8581126cf Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 15 Apr 2014 01:05:44 +0200 Subject: Update --- ftplugin/cucumber.vim | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'ftplugin/cucumber.vim') diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim index 1c1f0f25..f52a1b21 100644 --- a/ftplugin/cucumber.vim +++ b/ftplugin/cucumber.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: Cucumber " Maintainer: Tim Pope -" Last Change: 2010 Aug 09 +" Last Change: 2013 Jun 01 " Only do this when not done yet for this buffer if (exists("b:did_ftplugin")) @@ -9,6 +9,9 @@ if (exists("b:did_ftplugin")) endif let b:did_ftplugin = 1 +let s:keepcpo= &cpo +set cpo&vim + setlocal formatoptions-=t formatoptions+=croql setlocal comments=:# commentstring=#\ %s setlocal omnifunc=CucumberComplete @@ -18,25 +21,17 @@ let b:undo_ftplugin = "setl fo< com< cms< ofu<" let b:cucumber_root = expand('%:p:h:s?.*[\/]\%(features\|stories\)\zs[\/].*??') if !exists("g:no_plugin_maps") && !exists("g:no_cucumber_maps") - nnoremap :exe jump('edit',v:count) nnoremap [ :exe jump('edit',v:count) nnoremap ] :exe jump('edit',v:count) - nnoremap ] :exe jump('split',v:count) - nnoremap :exe jump('split',v:count) nnoremap d :exe jump('split',v:count) nnoremap :exe jump('split',v:count) - nnoremap } :exe jump('pedit',v:count) nnoremap [d :exe jump('pedit',v:count) nnoremap ]d :exe jump('pedit',v:count) let b:undo_ftplugin .= - \ "|sil! nunmap " . \ "|sil! nunmap [" . \ "|sil! nunmap ]" . - \ "|sil! nunmap ]" . - \ "|sil! nunmap " . \ "|sil! nunmap d" . \ "|sil! nunmap " . - \ "|sil! nunmap }" . \ "|sil! nunmap [d" . \ "|sil! nunmap ]d" endif @@ -145,4 +140,7 @@ function! CucumberComplete(findstart,base) abort return sort(steps) endfunction +let &cpo = s:keepcpo +unlet s:keepcpo + " vim:set sts=2 sw=2: -- cgit v1.2.3