I started using Vim to do my editing in Ruby on Rails, so I installed the Rails.vim plugin. I really like this plugin, but I have a few issues with it:
If you have any solutions or suggestions, please let me know. Thank you for your help!
You can use :cabbrev
to make exactly the shortcut you're asking for:
:cabbrev ec Econtroller
This way, when typing ec<space>
, this will expand to Econtroller<space>
anywhere on the command line. See :help abbreviations
for more details.
As for capitalization, I don't actually think you need to capitalize the controller. At least on my installation of rails.vim, :Econtroller users
works just fine to get me to the UsersController
. Maybe you should update your rails.vim plugin?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.