vim/vim-default-editor.fish
2020-10-09 14:42:37 +02:00

9 lines
270 B
Fish

# Ensure vim is set as EDITOR if it isn't already set
# This is set as a universal variable so that any other definition
# by the user would win
# Cf. https://fishshell.com/docs/current/index.html#variables-scope
if ! set -q EDITOR;
set -Ux EDITOR /usr/bin/vim
end