File tree 1 file changed +8
-14
lines changed
1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 2
2
cite ' about-alias'
3
3
about-alias ' vim abbreviations'
4
4
5
- if _command_exists vim; then
6
- alias v= ' $VIM '
7
- # open the vim help in fullscreen incorporated from
8
- # https://stackoverflow.com/a/4687513
9
- alias vimh= ' ${VIM} -c ":h | only" '
10
- fi
5
+ _command_exists vim || return
6
+
7
+ alias v= ' vim'
8
+ # open the vim help in fullscreen incorporated from
9
+ # https://stackoverflow.com/a/4687513
10
+ alias vimh= ' vim -c ":h | only" '
11
11
12
12
# open vim in new tab is taken from
13
13
# http://stackoverflow.com/questions/936501/let-gvim-always-run-a-single-instancek
14
- case $OSTYPE in
15
- darwin* )
16
- _command_exists mvim && function mvimt { command mvim --remote-tab-silent " $@ " || command mvim " $@ " ; }
17
- ;;
18
- * )
19
- _command_exists gvim && function gvimt { command gvim --remote-tab-silent " $@ " || command gvim " $@ " ; }
20
- ;;
21
- esac
14
+ _command_exists mvim && function mvimt { command mvim --remote-tab-silent " $@ " || command mvim " $@ " ; }
15
+ _command_exists gvim && function gvimt { command gvim --remote-tab-silent " $@ " || command gvim " $@ " ; }
You can’t perform that action at this time.
0 commit comments