-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnanorc
More file actions
70 lines (58 loc) · 2.56 KB
/
nanorc
File metadata and controls
70 lines (58 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
## settings
set multibuffer # enable multiple file editing
set morespace # use the second line for editing as well
#set constantshow # constantly show cursor position in status bar
set softwrap # wrap long lines only in display
set tabsize "3"
set tabstospaces # M-Q to toggle for makefile
set softwrap # M-Q to toggle for makefile
set historylog # save search history
#set positionlog # save cursor locations in 200 recent files
#set locking # prevent another nano to open the same file
set smarthome # C-A goes to the 1st non-space letter
set autoindent # inherit indent from previous line
set mouse # M-M to toggle, hold shift to revert to normal
## resamble bash and Windows shortcuts
bind ^H help main # bound to backspace by default
#bind M-D cutwordright main # not used by default
#bind ^W cutwordleft main # bound to search by default
bind M-F nextword main # bound to toggle multibuffer by default
bind M-B prevword main # bound to toggle backup file by default
bind ^F whereis main # bound to go forward one letter by default
bind ^G searchagain main # bound to help by default
bind ^R replace main # bound to insert another file by default
bind M-Q exit main # not used by default
#bind ^S savefile main # not used by default
bind M-S writeout main # bound to toggle smooth scrolling
bind ^O insert main # bound to writeout by default
bind ^C copytext main # bound to show cursor position by default
bind ^X cut main # bound to exit by default
bind ^V uncut main # bound to next page by default
bind ^Space mark main # bound to forward one word by default
bind M-Space mark main # bound to backward one word by default
bind ^U undo main # bound to uncut by default
bind ^Y redo main # bound to preivous page by default
bind ^I indent main # bound to tab by default
bind ^B unindent main # bound to back a letter by default
#bind M-C comment main # bound to toggle cursor position by default
## syntax highlighting (coloring order matters)
include ~/git/nanorc/nanorc.nanorc
include ~/git/nanorc/cfg.nanorc
include ~/git/nanorc/tex.nanorc
include ~/git/nanorc/c.nanorc
include ~/git/nanorc/fortran.nanorc
include ~/git/nanorc/makefile.nanorc
include ~/git/nanorc/cmake.nanorc
include ~/git/nanorc/conf.nanorc
include ~/git/nanorc/html.nanorc
include ~/git/nanorc/email.nanorc
include ~/git/nanorc/sh.nanorc
include ~/git/nanorc/python.nanorc
include ~/git/nanorc/perl.nanorc
include ~/git/nanorc/git.nanorc
include ~/git/nanorc/markdown.nanorc
include ~/git/nanorc/xresources.nanorc
## commenting
#extendsyntax C comment "//"
#extendsyntax Xresources comment "!"
#extendsyntax TeX comment "%"