My vim configuration.
I usually use tabs for each project I'm working on simultaneously.
:CocInstall coc-json coc-tsserver
Leader key: \
general
Leader
+Y
: copy from cursor to the end of the lineCtrl
+h
: move cursor to the left bufferCtrl
+l
: move cursor to the right bufferCtrl
+j
: move cursor to the bottom bufferCtrl
+k
: move cursor to the top bufferLeader
+T
: create a new tab (:tabnew)Leader
+1
: switch to tab number 1 (1gt)Leader
+2
: switch to tab number 2 (2gt)Leader
+...
: ...you got itLeader
+0
: switch to last tab (:tablast)- dgh - Get diff from left buffer (:diffget //2 | diffupdate)
- dgl - Get diff from right buffer (:diffget //3 | diffupdate)
interacting with buffers
Leader
+B
: list open buffers (on this tab/project)Leader
+n
: create a new bufferLeader
+tab
: switch to last open bufferLeader
+d
: close current buffer (:bd)Leader
+D
: close current buffer without asking to save (:bd!)
utilities
Leader
+l
: open tree viewer (:NERDTreeToggle)Leader
+t
: open fuzzy file finder (:CtrlP)Leader
+a
+space
+keyword
: search in files forkeyword
(:CtrlP)
interacting with the system clipboard
Leader
+y
: yank to the system clipboardLeader
+d
: delete to the system clipboardLeader
+p
: paste from the system clipboardLeader
+P
: paste before from the system clipboard
MIT