samrc - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
samrc (1934B)
---
1 # This is samrc as I usually use it.
2
3 # Control-A/E jumps to beginning/end of line
4 bind C a command bol
5 bind C e command eol
6
7 # Control-H/L/J/K moves left/right/down/up
8 bind C h command charleft
9 bind C l command charright
10 bind C j command linedown
11 bind C k command lineup
12
13 # Control-Space highlights recent text
14 bind C space command escape
15
16 # Escape jumps between command file and current file
17 bind * Escape command jump
18
19 # Control-U and Control-Shift-BackSpace deletes to beginning of line
20 bind C u command delbol
21 bind CS BackSpace command delbol
22
23 # Control-W/BackSpace deletes previous word
24 bind C w command delword
25 bind C BackSpace command delword
26
27 # Control-X/C/V/Q does cut/snarf/paste/exchange
28 bind C x command cut
29 bind C c command snarf
30 bind C v command paste
31 bind C q command exchange
32
33 # Arrow keys and Page Up/Down work as expected
34 bind * Up command lineup
35 bind * Down command linedown
36 bind * Left command charleft
37 bind * Right command charright
38 bind * Prior command scrollup
39 bind * Next command scrolldown
40
41 # All of the default movement key sequences were rebound as something else,
42 # except for Control-D. Let's remove any special handling for that binding.
43 unbind C d
44
45 # Control-Z sends an undo command.
46 bind C z command send u
47
48 # Control-Return inserts a line below the current one
49 bind C Return command send +-a/\n/
50
51 # Control-S writes the file, Control-Shift-S writes all files.
52 bind C s command write
53 bind CS s command send X w
54
55 # Control-N does a search, Control-Shift-N does a look
56 bind C n command search
57 bind CS n command look
58
59 # I like 12pt Go Regular
60 font Go Regular:size=12
61
62 # Use black for text and borders, and an angry fruit salad for backgrounds
63 foreground black
64 border black
65 background white:seashell:lightgreen:oldlace:lightcyan:gainsboro:lightyellow:mintcream:snow:lightblue:thistle
66
67 # Expand tabs and have tabstops every four columns
68 tabs 4
69 expandtabs true
70
71 # Automatically indent lines
72 autoindent true