Last active
May 29, 2020 05:22
-
-
Save yawnoc/bb6f21603e380ade1e6e93c5b3486c19 to your computer and use it in GitHub Desktop.
Termux: nano configuration for a Windows-to-Linux convert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ 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