aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@glootie.lan.tomvanderlee.com>2026-09-04 15:36:24 +0200
committerGravatar Tom van der Lee <tom@glootie.lan.tomvanderlee.com>2026-09-04 15:37:03 +0200
commit2255d63d21494271abb7500e814262075cf7086f (patch)
treea1b96340a42e2d68377cacdeffd6cd2881eb306c /bash
parentd4581693cc0c6120c98c1ee2f99122b9634bc71e (diff)
downloaddotfiles-2255d63d21494271abb7500e814262075cf7086f.tar.gz
dotfiles-2255d63d21494271abb7500e814262075cf7086f.tar.bz2
dotfiles-2255d63d21494271abb7500e814262075cf7086f.zip
Disable vim function
Diffstat (limited to 'bash')
-rwxr-xr-xbash/.bashrc22
1 files changed, 11 insertions, 11 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 9ba47fd..9ccd0e3 100755
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -110,17 +110,17 @@ elif exists vi; then
110 export EDITOR="vi" 110 export EDITOR="vi"
111fi 111fi
112 112
113vim() { 113# vim() {
114 vim_bin=$(which $EDITOR) 114# vim_bin=$(which $EDITOR)
115 if [[ -z "$@" ]]; then 115# if [[ -z "$@" ]]; then
116 $vim_bin 116# $vim_bin
117 elif [[ -d "$@" ]]; then 117# elif [[ -d "$@" ]]; then
118 dir=$(pwd) 118# dir=$(pwd)
119 cd $@ && $vim_bin && cd $dir 119# cd $@ && $vim_bin && cd $dir
120 else 120# else
121 $vim_bin $@ 121# $vim_bin $@
122 fi 122# fi
123} 123# }
124 124
125# Programming language specifics 125# Programming language specifics
126if exists go; then 126if exists go; then