neovim for vim if installed

This commit is contained in:
Luke Smith 2019-02-09 17:51:05 -05:00
parent 4087e2229e
commit f03a02bdc6
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -23,7 +23,7 @@ alias ka="killall" \
upc="sudo pacman -Syu; pkill -RTMIN+8 i3blocks" \
lsp="pacman -Qett --color=always | less"
command -v nvim >/dev/null && alias vimdiff="nvim -d" # Use neovim for vimdiff if present.
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
shdl() { curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) ;}
se() { du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf | xargs -r $EDITOR ;}