vim
- See my
.vimrc
here - Vim cheatsheet
Commands and Shortcuts
- Ditch vimwiki
- Generate index.md
<c-r>=glob('**/*')
:help jumplist
- Todo consolidations
- Manage all todos
grep -Ri TODO . > todos
Editing Techniques
f
: Move forward to character; ,
: Navigate forward and backwardd
: Deletedt_
: Delete till characterdi{
: Delete inside bracesda{
: Delete around bracesdip
: Delete paragraph
- Check out relative line number (
:set relativenumber
)
File Navigation
%
: Jump to matching parenthesis- Fuzzy file find:
:e src/**/file_na<tab>
Navigation and Window Management
Ctrl + ^
: Switch to last fileCtrl + O/I
: Navigate through jump list- Bookmarks:
m<key>
: Set bookmark (use uppercase for global)'<key>
: Jump to bookmark
- Window operations (
Ctrl + W
):v
: Split verticallys
: Split horizontally