diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-03-09 10:03:33 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-03-09 10:03:33 +1300 |
commit | c3d4f097a7282f81d4c0efc702efdb6e99cb218c (patch) | |
tree | 14487758fd655d5c09a910ab1908bf1a29cd03bc /sh/shrc.d | |
parent | Update submodules (diff) | |
download | dotfiles-c3d4f097a7282f81d4c0efc702efdb6e99cb218c.tar.gz dotfiles-c3d4f097a7282f81d4c0efc702efdb6e99cb218c.zip |
Use env vars not shell funcs for vim check
Set EDITOR and VISUAL appropriately based on what's on the system.
We can't assume ed(1) unfortunately, but ex(1) should be there.
Diffstat (limited to 'sh/shrc.d')
-rw-r--r-- | sh/shrc.d/vim.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sh/shrc.d/vim.sh b/sh/shrc.d/vim.sh deleted file mode 100644 index e9174082..00000000 --- a/sh/shrc.d/vim.sh +++ /dev/null @@ -1,13 +0,0 @@ -# If Vim exists on the system, use it instead of ex, vi, and view -command -v vim >/dev/null 2>&1 || return - -# Define functions proper -ex() { - vim -e "$@" -} -vi() { - vim "$@" -} -view() { - vim -R "$@" -} |