Cheatography
https://cheatography.com
commands for developing rails in vim
ctags inside vim
ctrl+] jump to definition
ctrl+t jump back |
ag.vim
:Ag search [directory]
e to open file and close the quickfix window
o to open (same as enter)
t to open in new tab
h to open in horizontal split
q to close the quickfix window |
|
|
Vundle
:BundleInstall installs plugins
Bundle 'gituser/gitrepo' to add new plugin in .vimrc |
rails.vim
gf jump to defining code for function/class under cursor
:R Open Related File
:RS Open Related File in Split view
:DBExecSQL Execute SQL Query on db (defined by config/database.yml and environment)
:X,YRextract filename Extracts piece of Rails code to partial
:Rlog Opens Rails log |
:help rails-integration
|
|
dbext
:Rdbext {environment}
:Select * from users |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets