X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=f53c672f68b858243b4d7805f7b6ec4e082e6b71;hb=85e2b9fbc85614af53e38c997b32b731b9dec888;hp=b0b5c1e875df527a159c3206ecb5f58f2c192b8b;hpb=c1ce4507366085448f95c3d5f20109df3b2892c8;p=grml-etc-core.git 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