From: Joerg Woelke Date: Thu, 26 Nov 2009 14:12:44 +0000 (+0100) Subject: zshrc: Remove function j2v(). X-Git-Tag: v0.3.79~6 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=85e2b9fbc85614af53e38c997b32b731b9dec888;hp=c1ce4507366085448f95c3d5f20109df3b2892c8;p=grml-etc-core.git zshrc: Remove function j2v(). Acked-by: Michael Prokop Acked-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b0b5c1e..f53c672 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3982,16 +3982,6 @@ exirename() { fi } -# open file in vim and jump to line -# http://www.downgra.de/archives/2007/05/08/T19_21_11/ -j2v() { - emulate -L zsh - local -a params - params=(${*//(#m):[0-9]*:/\\n+${MATCH//:/}}) # replace ':23:' to '\n+23' - params=(${(s|\n|)${(j|\n|)params}}) # join array using '\n', then split on all '\n' - vim ${params} -} - # get_ic() - queries imap servers for capabilities; real simple. no imaps ic_get() { emulate -L zsh