<commit_before># Undo/redo
u
Ctrl+r

# CUT/PASTE
# yank (copy) a line
yy
# yank to end of line
y$
# cut "
d$
# cut 2 lines
2dd
# put (paste) after/before cursor
p
P

# SEARCH/REPLACE
# forward/backward search
/pattern
?pattern
# forward/backward search continue (next)
n
N
# replace all <old> with <new> in file
:%s/<old>/<new>/g
# replace all <old> with <new> in file, with confirmation
:%s/<old>/<new>/gc<commit_msg>Visual mode (marking text)<commit_after># Undo/redo
u
Ctrl+r

# CUT/PASTE
# yank (copy) a line
yy
# yank to end of line
y$
# cut "
d$
# cut 2 lines
2dd
# put (paste) after/before cursor
p
P

# SEARCH/REPLACE
# forward/backward search
/pattern
?pattern
# forward/backward search continue (next)
n
N
# replace all <old> with <new> in file
:%s/<old>/<new>/g
# replace all <old> with <new> in file, with confirmation
:%s/<old>/<new>/gc


# VISUAL MODE (MARKING TEXT)
# mark characters/lines by advancing cursor
v
V
# shift marked text right/left
>
<
# " by shiftwidth
>>
<<
{'fraction_non_alphanumeric': 0.13880445795339413, 'fraction_numerical': 0.004052684903748734, 'mean_word_length': 3.94, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '607897', 'n_tokens_mistral': 397, 'n_tokens_neox': 387, 'n_words': 133}