/vimconfig

my personal vim setup.

Primary LanguageVim Script

ViM configuration

Leader shortcuts

EasyMotion
Shortcut EasyMotion command
d interactive search
h/l inline movement
GitGutter
Shortcut GitGutter command
j next hunk
J last hunk
k prev hunk
K first hunk
< stage hunk
> undo hunk
FZF
Shortcut FZF command
a Ag
b Buffers
f Files
g Git files
m Marks
t Tags
space BLines
Shortcut General leader command
Leader go to alternate file (#)
c clean run window from run command (python, bash)
e switch between .cpp and .h file
n remove highlighting
r run current script file (python, bash)
s submit slurm job
v open .cpp or .h file in a vertical split
w toggle whitespace highlighting
zz delete all trailing whitespace

General mappings

Shortcut Command
Y y$
Q Nop
Space fold/unfold
F1 FZF Helptags
F2 pastetoggle
F3 toggle line numbers
F5 local English spellcheck
F6 local German spellcheck
F7 disable local spellcheck
F10 toggle undotree