zshrc: Remove function j2v().
authorJoerg Woelke <joewoe@fsmail.de>
Thu, 26 Nov 2009 14:12:44 +0000 (15:12 +0100)
committerFrank Terbeck <ft@bewatermyfriend.org>
Thu, 26 Nov 2009 17:37:07 +0000 (18:37 +0100)
Acked-by: Michael Prokop <mika@grml.org>
Acked-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc

index b0b5c1e..f53c672 100644 (file)
@@ -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