diff options
author | gregstallings <gregstallings@gmail.com> | 2013-09-21 16:26:53 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2013-09-21 16:27:13 +0200 |
commit | 25cddf650425d785e8b75869ef1dec6b438d150e (patch) | |
tree | 6b6636145416b019184e37e8cf9571b02fe69e73 /.functions | |
parent | 6dd0179645326ff59cb2268bd5aab99f2c403443 (diff) | |
download | dotfiles-25cddf650425d785e8b75869ef1dec6b438d150e.tar.gz dotfiles-25cddf650425d785e8b75869ef1dec6b438d150e.tar.bz2 dotfiles-25cddf650425d785e8b75869ef1dec6b438d150e.zip |
.functions: Add `v` to open stuff in Vim
Closes #251.
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -261,8 +261,9 @@ function m() { mate "$@" fi } -# `s` with no arguments opens the current directory in Sublime, otherwise opens -# the given location + +# `s` with no arguments opens the current directory in Sublime Text, otherwise +# opens the given location function s() { if [ $# -eq 0 ]; then subl . @@ -270,3 +271,13 @@ function s() { subl "$@" fi } + +# `v` with no arguments opens the current directory in Vim, otherwise opens the +# given location +function v() { + if [ $# -eq 0 ]; then + vim . + else + vim "$@" + fi +} |