Skip to content

Instantly share code, notes, and snippets.

@yawnoc
Last active May 29, 2020 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yawnoc/bb6f21603e380ade1e6e93c5b3486c19 to your computer and use it in GitHub Desktop.
Save yawnoc/bb6f21603e380ade1e6e93c5b3486c19 to your computer and use it in GitHub Desktop.
Termux: nano configuration for a Windows-to-Linux convert
# $ nano --version
# GNU nano, version 4.9.1
# General settings
set autoindent
set morespace
set smooth
set smarthome
set tabsize 2
set tabstospaces
# Windows-style editing
bind ^C copy main
bind ^X cut main
bind ^V paste main
bind ^Z undo main
bind ^Y redo main
bind ^F whereis main
bind ^N findnext main
bind ^P findprevious main
bind ^H replace main
# Windows-style file management
bind ^S savefile main
bind ^W exit main
# Cutting words
bind ^J cutwordleft main
bind ^K cutwordright main
# Indenting
bind ^U unindent main
bind ^I indent main
# Autocomplete
bind ^A complete main
# Only count underscore as part of word
set wordchars "_"
# Always show trailing whitespace
syntax "default"
color ,yellow "[[:space:]]+$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment