2011-06-29 67 views
2

我使用蒂姆教皇rails.vim插件,在大多數情況下它強調了幾乎所有我想要的,除了水豚的新的DSL包含了像feature關鍵字,scenariobackground如何將capybara dsl語法高亮添加到vim語法higlighting?

我不希望創建一個僅用於這兩個關鍵字的新語法文件,只需將它們添加到現有的文件中即可。

任何幫助表示讚賞。

回答

0

找到rails.vim保存語法內容並添加關鍵字的文件。

elseif buffer.type_name('spec') syn keyword rubyRailsTestMethod describe context it its specify shared_examples_for it_should_behave_like before after subject fixtures controller_name helper_name feature scenario background 

這樣的回答給我的暗示在哪裏看:Automate rails.vim