zshuper/modules/editor.zsh

13 lines
332 B
Bash
Raw Normal View History

2018-02-03 02:29:33 +02:00
#
# Default editor and pager
#
# cool people use neovim :>
export EDITOR=$(if __zspr_has_command nvim; then echo -n "nvim"; else echo -n "vim"; fi)
export VISUAL="${EDITOR}"
export PAGER=less
export MANPAGER=less
# less options
2018-02-03 02:55:00 +02:00
export LESS="--no-init --LONG-PROMPT --quit-if-one-screen --RAW-CONTROL-CHARS --tabs=4 --ignore-case"