Dirty hack for a bar custor after using vim.

This commit is contained in:
Bartek Stalewski 2024-12-29 16:46:13 +01:00
parent 3308c8d735
commit b4f183cfdf
Signed by: ftpd
SSH Key Fingerprint: SHA256:vGQiaNJcfUMLt3wF58+Zx15C6SpRDA9spUeggjVY8Yo

View File

@ -45,10 +45,16 @@ if [[ $(command -v fd) ]]; then
fi
if [ $(command -v nvim) ]; then
export EDITOR=nvim
export MANPAGER="nvim +Man!"
alias vim=nvim
alias vimdiff="nvim -d"
ftpd-nvim() {
nvim $*; printf "\e[6 q"
}
ftpd-vimdiff() {
nvim -d $*; printf "\e[6 q"
}
export EDITOR=ftpd-nvim
export MANPAGER="ftpd-nvim +Man!"
alias vim=ftpd-nvim
alias vimdiff=ftpd-vimdiff
elif [ $(command -v vim) ] ; then
export EDITOR=vim
else