Added nvr alias for 'nvim' and 'n' inside nvim
This commit is contained in:
parent
5d826d7ead
commit
6f553fda86
16
init.zsh
16
init.zsh
@ -26,13 +26,19 @@ zstyle ':completion:*' menu select
|
|||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
SAVEHIST=10000
|
SAVEHIST=10000
|
||||||
|
|
||||||
# Set some basic variables
|
# Set some random stuff
|
||||||
export EDITOR=nvim
|
|
||||||
export VISUAL="${EDITOR}"
|
|
||||||
export BROWSER=firefox
|
export BROWSER=firefox
|
||||||
|
|
||||||
# Neovim aliases
|
# Neovim stuff
|
||||||
alias n=nvim
|
if [[ -v NVIM ]]; then
|
||||||
|
export EDITOR=nvr
|
||||||
|
alias n=nvr
|
||||||
|
alias nvim=nvr
|
||||||
|
else
|
||||||
|
export EDITOR=nvim
|
||||||
|
alias n=nvim
|
||||||
|
fi
|
||||||
|
export VISUAL="${EDITOR}"
|
||||||
alias se=sudoedit
|
alias se=sudoedit
|
||||||
|
|
||||||
# I mess this up a lot
|
# I mess this up a lot
|
||||||
|
Loading…
Reference in New Issue
Block a user