Skip to content

Instantly share code, notes, and snippets.

@Herteby
Created November 20, 2017 12:01
Show Gist options
  • Save Herteby/148b858a367baf96d38f776234af500a to your computer and use it in GitHub Desktop.
Save Herteby/148b858a367baf96d38f776234af500a to your computer and use it in GitHub Desktop.
Modern keybindings etc. for nano
set morespace
set multibuffer
#set nohelp # perhaps comment out until comfortable
set quickblank
set regexp
set smooth
set suspend
set tabsize 2
unbind ^K main
unbind ^U main
unbind ^W main
bind ^O insert main
bind ^S writeout main
bind ^Q exit main
bind ^A help main
bind ^P prevword main
bind ^N nextword main
bind ^B firstline main
bind ^E lastline main
bind ^L curpos main
bind ^J gotoline main
bind ^Space mark main
bind ^X cut main
bind ^C copytext main
bind ^V uncut main
bind ^F whereis main
bind ^G searchagain main
bind ^H replace main
bind ^Z undo main
bind ^Y redo main
bind M-A nohelp main
bind M-L constupdate main
bind M-Z suspend main
Copy link

ghost commented Sep 18, 2021

I like your config. But plz update the keybinding notations, as they got changed as per latest nano man page...

copytext > copy
uncut > paste
searchagain > findnext
nuke "set smooth", M-A nohelp main, M-L constupdate main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment