|
|
|
|
|
by godelski
273 days ago
|
|
I recently migrated from vim to neovim and you can just migrate everything. I forgot where I found this but put this in ~/.config/nvim/init.vim " Load vim configs
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrcThen in my zshrc (well... I organize differently) I have the function function _exists() {
command -v "$1" &> /dev/null
}
alias_vim() {
if (_exists nvim)
then
alias vi='nvim'
alias vim='nvim'
elif (_exists vim)
then
alias vi='vim'
fi
}
|
|