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