about summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-02-23 16:30:49 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-02-23 16:30:49 +0100
commite6e48c7f6c77ed0001684507285d809c30c37611 (patch)
treeaa7356f147826f407e17e18cbf314bf713d73c28 /contrib
parent95d82b1fd953a01bc8dadd0c277b79de17b64797 (diff)
downloadlr-e6e48c7f6c77ed0001684507285d809c30c37611.tar.gz
lr-e6e48c7f6c77ed0001684507285d809c30c37611.tar.xz
lr-e6e48c7f6c77ed0001684507285d809c30c37611.zip
add lr.vim
Diffstat (limited to 'contrib')
-rw-r--r--contrib/lr.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/lr.vim b/contrib/lr.vim
new file mode 100644
index 0000000..2b4bcb8
--- /dev/null
+++ b/contrib/lr.vim
@@ -0,0 +1,5 @@
+" :Lr <lr-args> to browse lr(1) results in a new window,
+"               press return to open file in new window.
+command! -nargs=* -complete=file Lr
+	\ new | setl bt=nofile noswf | silent exe "0r!lr -Q " <q-args> |
+	\ 0 | res | map <buffer><C-M> $<C-W>F<C-W>_