-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes
88 lines (79 loc) · 2.36 KB
/
notes
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Ranger notes
-----------
S - to open shell in selected dir
FZF notes
----------
Vim
- :BLines to fuzzy search in current buffer
- :Lines to search thru all buffers
- :Buffers lists buffers
Shell
- Ctrl-T - list files + folders in current directory
- (e.g., git commit <CTRL+T>, select a few files using <TAB>, finally <Return>)
- Ctrl-R - to check out history
- Esc-C - fuzzy change directory
Vim notes
----------
* Change until (but not including) x: ctx
- ex. cfL on "Her nomer is OLGA" -> "GA"
^- cursor location
(test here)
* Find occurence of word: *
* Find next occurence (on the same line) after f/t/F/T: ;
* Change from cursor to end of line: C or c$
* Insert at the end of line: A
* Find next search occurence: n
* Swap case of chr: ~
* Pan so that current line hello vertically in the middle: z
* Repeat last command: .
* Overwrite (multiple character from cursor onwards): R
* Show closing paren: %
* Macros for recording commands
- to record a new macro: q + register to record to (i.e. qm)
- to stop recording: q
- to replay macro: @ + register (i.e. @m)
* Tags (requires ctags)
- To make tags: :MakeTags
- Create the `tags` file (where ^ is control)
- Use ^] to jump to tag under cursor
- Use g^] for ambiguous tags
- Use ^t to jump back up the tag stack
* Find the cursor / spotlight: CMD + /
* Autocomplete
- To pull up list of autocomplete options:
- ^x^n for just this file
- ^x^f for filenames
- ^x^] for tags only
- ^n for anything specified by the 'complete' option
- To navigate pull-up menu:
- use ^n and ^p
* Jump to file at path cursor is on: gf
* Switch the case of each letter in a word: g~e
* Copy to system clipboard: use + register (i.e. "+y)
* Surround
- one word: ysiw" <- will wrap with "
- current line: yss" <- will wrap with "
* Navigations
- forward: ctrl+f
- backward: ctrl+b
* For speed:
* Move lines in normal mode
- :-14,-12co. -> moves the 14th to 12th line above cursor to cursor
* High, middle, low -> H, M, L
Spam
-----
whatevs dude
whatevs dude
{
dumb => dumb
more => stuff
}
whatevs dude
whatevs dude
whatevs what hello going on
whatevs dude
whatevs dude
whatevs dude
whatevs dude
whatevs dude
whatevs dude