feat(system): configure nano (-FEDSMAGic/max%_T2) as EDITOR, less -RXF as PAGER, add ed/rlwrap/less, and remove vim
This commit is contained in:
@@ -71,11 +71,15 @@ export SXMO_RINGNUMBER=10
|
||||
export SXMO_DEFAULT_DRAFT="Enter new message here."
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export EDITOR="nano"
|
||||
export VISUAL="nano"
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export SXMO_WM="dwm"
|
||||
export SXMO_MENU="dmenu"
|
||||
export SXMO_TERMINAL="st"
|
||||
export DMENU_WRAP_AROUND=1
|
||||
export SXMO_DMENU_PORTRAIT_LINES=12
|
||||
export SXMO_DMENU_PORTRAIT_LINES=9
|
||||
export SXMO_DMENU_LANDSCAPE_LINES=8
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# Bananarchy Linux system-wide nano configuration
|
||||
# Equivalent to: nano -FEDSMAGic/max%_T2
|
||||
|
||||
set newbuffer
|
||||
set tabstospaces
|
||||
set boldtext
|
||||
set softwrap
|
||||
set trimblanks
|
||||
set smarthome
|
||||
set locking
|
||||
set autoindent
|
||||
set constantshow
|
||||
set mouse
|
||||
set atblanks
|
||||
set nohelp
|
||||
set stateflags
|
||||
set minibar
|
||||
set tabsize 2
|
||||
|
||||
# Modern keybindings (-/ / --modernbindings)
|
||||
bind ^X cut main
|
||||
bind ^C copy main
|
||||
bind ^V paste all
|
||||
bind ^Q exit all
|
||||
bind ^S savefile main
|
||||
bind ^W writeout main
|
||||
bind ^O insert main
|
||||
bind ^H help all
|
||||
bind ^H exit help
|
||||
bind ^F whereis all
|
||||
bind ^G findnext all
|
||||
bind ^B wherewas all
|
||||
bind ^D findprevious all
|
||||
bind ^R replace main
|
||||
unbind ^U all
|
||||
unbind ^N main
|
||||
unbind ^Y all
|
||||
unbind M-J main
|
||||
unbind M-T main
|
||||
bind ^A mark main
|
||||
bind ^P location main
|
||||
bind ^T gotoline main
|
||||
bind ^T gotodir browser
|
||||
bind ^T cutrestoffile execute
|
||||
bind ^L linter execute
|
||||
bind ^E execute main
|
||||
bind ^K "{mark}{end}{zap}" main
|
||||
bind ^U "{mark}{home}{zap}" main
|
||||
bind ^Z undo main
|
||||
bind ^Y redo main
|
||||
@@ -1,10 +1,14 @@
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
export EDITOR=nano
|
||||
export VISUAL=nano
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export SXMO_WM=dwm
|
||||
export SXMO_MENU=dmenu
|
||||
export SXMO_TERMINAL=st
|
||||
export DMENU_WRAP_AROUND=1
|
||||
export SXMO_DMENU_PORTRAIT_LINES=12
|
||||
export SXMO_DMENU_PORTRAIT_LINES=9
|
||||
export SXMO_DMENU_LANDSCAPE_LINES=8
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
|
||||
Reference in New Issue
Block a user