Recognizing cucumber in vim
Cucumber feature files (.feature) are not recognized by default in vim, so you can add make this happen by adding the following commands in your .vimrc
filetype plugin on
augroup filetypedetect
au! BufReadPre,BufReadPost,BufRead,BufNewFile *.feature setfiletype cucumber
augroup END
" For example load external scripts
autocmd FileType cucumber source ~/.vim/ftplugin/cucumber.vim
Written by Fabrizio Soppelsa
Related protips
1 Response
You could just use the plugin https://github.com/tpope/vim-cucumber via pathogen (https://github.com/tpope/vim-pathogen). ;-)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#