feat(lint): lint vim.aliases

pull/1734/head
Ron Green 2020-12-23 10:19:06 +02:00
parent 5eb023cf51
commit d74cc615be
2 changed files with 10 additions and 7 deletions

View File

@ -9,15 +9,15 @@ MVIM=$(command -v mvim)
# https://stackoverflow.com/a/4687513
alias vimh='${VIM} -c ":h | only"'
[[ -n $VIM ]] && alias v=$VIM
[[ -n $VIM ]] && alias v='$VIM'
# open vim in new tab is taken from
# http://stackoverflow.com/questions/936501/let-gvim-always-run-a-single-instancek
case $OSTYPE in
darwin*)
[[ -n $MVIM ]] && function mvimt { command mvim --remote-tab-silent "$@" || command mvim "$@"; }
;;
*)
[[ -n $GVIM ]] && function gvimt { command gvim --remote-tab-silent "$@" || command gvim "$@"; }
;;
darwin*)
[[ -n $MVIM ]] && function mvimt { command mvim --remote-tab-silent "$@" || command mvim "$@"; }
;;
*)
[[ -n $GVIM ]] && function gvimt { command gvim --remote-tab-silent "$@" || command gvim "$@"; }
;;
esac

View File

@ -34,3 +34,6 @@ completion/available/cargo.completion.bash
completion/available/knife.completion.bash
completion/available/pipx.completion.bash
completion/available/rustup.completion.bash
# aliases
aliases/available/vim.aliases.bash