LegacyCollector

Home | Legacy Firefox Extensions | Content Policy | Contact

mxr-vim

Author(s):



Old workflow: Search MXR for identifier -> click on a result (nsISomething.cpp
line 500) -> wait for a 6000-line file to load -> decide that you want to edit
this file -> open this file in vim

New workflow: Search MXR for identifier -> click on a result -> result opens in vim.

Setup
mxr-vim needs to know three things:
  1. where the source tree on your disk is located (no default)
  2. where your shell is located (default /bin/sh)
  3. where vim is located (default /usr/local/bin/mvim)
These pieces of information can be set via about:config. They are located under
`extensions.mxr-vim.*`

To complete the circle of mxr-vim integration, I use the following mappings in
my .vimrc, which fire off a search of MXR for the word under the cursor:

nnoremap <c-f>i :! open -a Aurora.app 'http://mxr.mozilla.org/mozilla-central/ident?i=<cword>'<cr><cr>
nnoremap <c-f>f :! open -a Aurora.app 'http://mxr.mozilla.org/mozilla-central/search?string=<cword>'<cr><cr>

Download files:

mxr-vim-0.1.1-signed.1-signed-linux.xpi
mxr-vim-0.1.1-signed.1-signed-mac.xpi
mxr-vim-0.1.2.1-signed.1-signed-mac.xpi
mxr-vim-0.1.sdk.1.0.1-signed.1-signed-mac.xpi




This page is part of the LegacyCollector website.
Disclaimer: All material on this site is property of their respective owners and available under
open licenses to the best of our knowledge. If you are an author and would like anything removed,
then please write an e-mail to legacy [at] collector dot org.