diff --git a/ftplugin/python/behave.vim b/ftplugin/python/behave.vim new file mode 100644 index 0000000..c7cb7a4 --- /dev/null +++ b/ftplugin/python/behave.vim @@ -0,0 +1,24 @@ +" +" Loads mapping for python files. +" + +" Only do this when not done yet for this buffer +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +" To use line continuation, remove 'C' from 'cpoptions' +let s:cpo_save = &cpo +set cpo&vim + +" :help undo_ftplugin +" What should be stored depends on what will be changed in the ftplugin. +let b:undo_ftplugin = 'setl com< cms< fo<' + +" Loads mapping for gherkin files. +nnoremap b :call behave#find_usages() + +" Restore 'cpoptions' +let &cpo = s:cpo_save +unlet s:cpo_save