Friday, September 9, 2011

Useful VIM command that I still can't remember



  • “0p - pastes the last explicitly copied text
  • :reg - Show a list of registers
  • J - Merge current line With Next Line
  • =, == - Fix indention
  • u,U(in visual mode) - lower, uppercase
  • q: - list command history
  • q/ - list search history
  • Ctrl ^ - go to previous buffer
  • :w !sudo tee % - save readonly file
  • diw - delete a word
  • di(, da( - delete text inside/include ()
  • di", da" - delete text inside/include ""
For rails.vim
  • gf - open file from cursor
  • :R{view,model,controller,spec} {file}

No comments:

Clojure how to get JVM options from inside application

(.getInputArguments (java.lang.management.ManagementFactory/getRuntimeMXBean)) Credit:  How to get vm arguments from inside of java applic...