X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fvim-interaction%2Fvim-interaction.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fvim-interaction%2Fvim-interaction.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=b73f9b4da5b2d9fe4d5c6600982901b89880f6d0;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/vim-interaction/vim-interaction.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/vim-interaction/vim-interaction.plugin.zsh deleted file mode 100644 index b73f9b4..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/vim-interaction/vim-interaction.plugin.zsh +++ /dev/null @@ -1,69 +0,0 @@ -# -# See README.md -# -# Derek Wyatt (derek@{myfirstnamemylastname}.org -# - -function callvim { - if [[ $# == 0 ]]; then - cat <, append it - [[ ${after} = :* && ${after} != *\ ]] && after+="" - [[ ${before} = :* && ${before} != *\ ]] && before+="" - # Open files passed (:A means abs path resolving symlinks, :q means quoting special chars) - [[ $# -gt 0 ]] && files=':args! '"${@:A:q}" - # Pass the built vim command to gvim - cmd="$before$files$after" - - # Run the gvim command - gvim --servername "$name" --remote-send "$cmd" || return $? - - # Run postCallVim if defined (maybe to bring focus to gvim, see README) - (( ! $+functions[postCallVim] )) || postCallVim -} - -alias v=callvim -alias vvsp="callvim -b':vsp'" -alias vhsp="callvim -b':sp'" -alias vk="callvim -b':wincmd k'" -alias vj="callvim -b':wincmd j'" -alias vl="callvim -b':wincmd l'" -alias vh="callvim -b':wincmd h'"