forked from deadpixi/sam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
samrc
74 lines (57 loc) · 1.95 KB
/
samrc
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
71
72
73
74
# This is samrc as I usually use it.
# Control-A/E and Home/End jumps to beginning/end of line
bind C a command bol
bind C e command eol
bind * Home command bol
bind * End command eol
# Control-H/L/J/K moves left/right/down/up
bind C h command charleft
bind C l command charright
bind C j command linedown
bind C k command lineup
# Control-Space highlights recent text
bind C space command escape
# Escape jumps between command file and current file
bind * Escape command jump
# Control-U and Control-Shift-BackSpace deletes to beginning of line
bind C u command delbol
bind CS BackSpace command delbol
# Control-W/BackSpace deletes previous word
bind C w command delword
bind C BackSpace command delword
# Control-X/C/V/Q does cut/snarf/paste/exchange
bind C x command cut
bind C c command snarf
bind C v command paste
bind C q command exchange
# Arrow keys and Page Up/Down work as expected
bind * Up command lineup
bind * Down command linedown
bind * Left command charleft
bind * Right command charright
bind * Prior command scrollup
bind * Next command scrolldown
# All of the default movement key sequences were rebound as something else,
# except for Control-D. Let's remove any special handling for that binding.
unbind C d
# Control-Z sends an undo command.
bind C z command send u
# Control-Return inserts a line below the current one
bind C Return command send +-a/\n/
# Control-S writes the file, Control-Shift-S writes all files.
bind C s command write
bind CS s command send X w
# Control-N does a search, Control-Shift-N does a look
bind C n command search
bind CS n command look
# I like 12pt Go Regular
font Go Regular:size=12
# Use black for text and borders, and an angry fruit salad for backgrounds
foreground black
border black
background white:seashell:lightgreen:oldlace:lightcyan:gainsboro:lightyellow:mintcream:snow:lightblue:thistle
# Expand tabs and have tabstops every four columns
tabs 4
expandtabs true
# Automatically indent lines
autoindent true