Skip to content

Instantly share code, notes, and snippets.

@dyama
Forked from zonuexe/nanorc.keybindings
Last active January 19, 2021 09:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyama/b058529a08dce73e54e9 to your computer and use it in GitHub Desktop.
Save dyama/b058529a08dce73e54e9 to your computer and use it in GitHub Desktop.
# Windows (notepad) like keybinding for nano editor
# Modified by dyama, Original code written by zonuexe,
# license under GPLv3 or NYSL(0.9982)
# lastupdate: h261124
#
# how to install
# a. rename and move this file to $HOME/.nanorc
# % mv nanorc.keybindings $HOME/.nanorc
# b. concatenate this file with tail of $HOME/.nanorc
# % cat nanorc.keybindings >> $HOME/.nanorc
bind ^B browser main
bind ^C copytext main
bind ^F whereis main
bind ^G gotoline main
bind ^I indent main
bind ^Q exit main
bind ^M enter main
bind ^S writeout main
bind ^R replace main
bind ^V uncut main
bind ^X cut main
bind ^Y redo main
bind ^Z undo main
bind F1 help main
bind F3 searchagain main
# External settings
bind ^T regexp main
bind F10 curpos main
bind ^A home main
bind ^E end main
set undo
set softwrap
set tabsize 2
set tabstospaces
set smarthome
set mouse
#set const
set autoindent
set smooth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment