Skip to content

Instantly share code, notes, and snippets.

@mrmrs
Created June 7, 2013 00:34
Show Gist options
  • Save mrmrs/5726252 to your computer and use it in GitHub Desktop.
Save mrmrs/5726252 to your computer and use it in GitHub Desktop.
.vimrc mappings for super easy front-end file management. When your cursor is over a class name, press fj to step to the first definition of that class in your css/sass. Subsequently press cn to step through the quick-fix list results. These can obviously be mapped to anything you want. I like this combo personally.
map fj :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnext<CR>
map cn :cn<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment