From cc9935fcac9cdec1d34e132c135783438f538db6 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 8 Aug 2018 16:23:00 -0400 Subject: [PATCH] add vim -> nvim wrapper function --- fish/.config/fish/functions/vim.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fish/.config/fish/functions/vim.fish diff --git a/fish/.config/fish/functions/vim.fish b/fish/.config/fish/functions/vim.fish new file mode 100644 index 0000000..f97be80 --- /dev/null +++ b/fish/.config/fish/functions/vim.fish @@ -0,0 +1,7 @@ +function vim + if test -x (which nvim) +nvim $argv +else +vim $argv +end +end