-
powerline vim, NameError, invalid expression error on the latest update.
I have vim with pathogen and on the latest update of the powerline.vim, everything broke. It turns out that my old default config files are incompatible with the new version of powerline. See GitHub issue. When I ran vim with –cmd ‘let g:powerline_config_overrides={“common”:{“log_file”:”/tmp/powerline.log”}}’ as suggested, a bunch of config mapping errors showed up: 2014-09-03 15:36:33,992:ERROR:vim:matcher_generator:Failed…
-
Moving back to the last cursor position in line in vim
Ever have a stray keystroke in vim that jumped to somewhere you didn’t intend to go? Two backticks “ will jump to the exact position of where you were. Two single quotes ” will jump to the first non-blank character where you were. This also works for moving to the beginning of a line/cursor position…
-
Using vim-rails to help navigate the rails project.
In the interest of being able to quickly navigate my Rails projects, I decided to dive a little deeper into the vim-rails plugin. This helpfile describes the commands in detail, but some of the quick commands are :Econtroller, :Emodel, :Eview, which pretty reliably jump between corresponding controller, model, and view. :Espec needs a little more…