vim
vim
Plugins
- myusuf3/numbers.vim: Relative line numbering
 - tpope/vim-commentary: Comment out lines with 
gc - tpope/vim-surround: Change surrounding characters (
'``"``````()[]{})withcs[(` - iamcco/markdown-preview.nvim: Render markdown file in realtime with 
:MarkdownPreview - airblade/vim-gitgutter: Show git diff in the gutter
 
Default Binds
| Bind | Description | 
|---|---|
gf | Goto file. Start editing the file under the cursor. | 
gF | Start editing the file under the cursor and jump to the line number following the filename. | 
gd | Goto definition. | 
ga | Print ASCII value of character under the cursor. | 
]p | Paste line matching indent of current line. | 
-af | Action around function (e.g. daf is delete around function) | 
-as | Action around sentence. | 
Custom Binds
" Semicolon in normal mode is the same as colon
nnoremap ; :
" Escape key also mapped as pushing j and k
inoremap jk <Esc>
inoremap kj <Esc>
autocmd InsertEnter * set timeoutlen=75
autocmd InsertLeave * set timeoutlen=1000
" Split moving
set splitbelow
set splitright
nnoremap <C-L> <C-W>w
nnoremap <C-H> <C-W>W
" Tab moving
nnoremap <C-J> :tabnext<CR>
nnoremap <C-K> :tabprev<CR>
" Format
nnoremap <C-O> !!fmt<CR>
" Goto file will open in new tab
map gf <C-W>gF