mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-23 14:46:31 +00:00
Make nvim default editor if available
This commit is contained in:
parent
d5faf831b5
commit
b10cbb5247
@ -92,8 +92,12 @@ fi
|
|||||||
# Increase memory sizes for java using Ant
|
# Increase memory sizes for java using Ant
|
||||||
export ANT_OPTS="-Xmx2048m -Xms512m"
|
export ANT_OPTS="-Xmx2048m -Xms512m"
|
||||||
|
|
||||||
# Set vim to default editor
|
# Set vim or nvim to default editor
|
||||||
export EDITOR=vim
|
if type nvim &> /dev/null ; then
|
||||||
|
export EDITOR=nvim
|
||||||
|
else
|
||||||
|
export EDITOR=vim
|
||||||
|
fi
|
||||||
export VISUAL="$EDITOR"
|
export VISUAL="$EDITOR"
|
||||||
|
|
||||||
# Set file as having been loaded to avoid looping
|
# Set file as having been loaded to avoid looping
|
||||||
|
@ -158,8 +158,12 @@ if [ -n "$FZF_DEFAULT_COMMAND" ]; then
|
|||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND \$dir"
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND \$dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set vim to default editor
|
# Set vim or nvim to default editor
|
||||||
export EDITOR=vim
|
if type nvim &> /dev/null ; then
|
||||||
|
export EDITOR=nvim
|
||||||
|
else
|
||||||
|
export EDITOR=vim
|
||||||
|
fi
|
||||||
export VISUAL="$EDITOR"
|
export VISUAL="$EDITOR"
|
||||||
|
|
||||||
# vim: set filetype=zsh:
|
# vim: set filetype=zsh:
|
||||||
|
@ -6,8 +6,12 @@ set -gx XDG_CACHE_HOME "$HOME/.cache"
|
|||||||
# Increase memory sizes for java using Ant
|
# Increase memory sizes for java using Ant
|
||||||
set -gx ANT_OPTS "-Xmx2048m -Xms512m"
|
set -gx ANT_OPTS "-Xmx2048m -Xms512m"
|
||||||
|
|
||||||
# Set default editor to vim
|
# Set default editor to vim or nvim
|
||||||
set -gx EDITOR vim
|
if type -q nvim
|
||||||
|
set -gx EDITOR nvim
|
||||||
|
else
|
||||||
|
set -gx EDITOR vim
|
||||||
|
end
|
||||||
set -gx VISUAL "$EDITOR"
|
set -gx VISUAL "$EDITOR"
|
||||||
|
|
||||||
# Interractive env variables
|
# Interractive env variables
|
||||||
|
Loading…
Reference in New Issue
Block a user