summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zshrc9
1 files changed, 4 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index a4311da..3a12f11 100644
--- a/.zshrc
+++ b/.zshrc
@@ -338,7 +338,6 @@ device="desktop" # can be either "desktop" (default when empty), "server" or "an
alias combinepdf="gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=temp.pdf"
alias lg="lazygit"
- alias v="vim"
alias ydl="youtube-dl -o '%(title)s.%(ext)s'"
alias ydlba="youtube-dl -o '%(title)s.%(ext)s' --audio-format best -x"
@@ -381,13 +380,13 @@ device="desktop" # can be either "desktop" (default when empty), "server" or "an
if [[ device != "server" && device != "android" ]]; then
- if [[ -x "$(command -v vimx)" ]]; then
+ if [[ -x "$(command -v vim)" ]]; then
# Open vim with .vim-session file, if it exists and the vim command doesn't have any parameters
- vim () {
+ v () {
if [ -f ".vim-session" ] && [ -z "$1" ]; then
- vimx -S .vim-session
+ vim -S .vim-session
else
- vimx $@
+ vim $@
fi
}
fi