<C_Space>
- trigger completion- diagnostics
[c
/]c
- previous/next
- Go to
K
- documentation (in preview window)gd
- definitiongy
- type defintiongi
- implementationgr
- references
- Actions
rn
- rename<L>f
- format<L>a
- code action on selected region- example
<L>aap
- for current paragraph
- example
<L>ac
- action on current line<L>qf
- autofix problem on current line- Additional Commands
:Format
- format current buffer:Fold
- fold current buffer:OR
- organize import of current buffer
- List
<L>l
- To learn more about default mappings
:h coc-list-mappings
< >
- Resume latest Listl
- Available lists- Vim
:
- vimcommands: Commands;
- cmdhistory: Command Historyh
- helptags: help tags of vim/
- searchhistory: search history~
- colors: color schemesk
- maps: key mappings~
- filetypes: set as filetype
- coc.nvim
~
- extensions: Manage extensions~
- Services~
- output: output channels~
- sources: completion sourcesd
- diagnostics: of current workspacen
- Show commands
- Search
<L>f
/
- grep: grep text by rgf
- files: from cwdd
- folders: from current workspaces
- outline: symbols of current document
- Git
~
- issues: on github~
- gstatus: git status of current project~
- branches: git branches~
- commits: of current project~
- bcommits: commits of current file~
- gfiles: view files on different branches (or commits, or tags)
- Items
<L>l
w
- windows: windows listb
- bufferss
- sessions: session listm
- marks: marks list~
- snippetsp
- yank: list of yank history
- Apply
~
- actions: code actions on selected range~
- quickfix
- Go to
~
- links: in current buffer~
- tags: search from tags~
- locationlist of current window~
- location: last jump locations~
- mru: most recent used files~
- words: word matches of current buffer<L>s
- symbols: search workspace symbols
<L>j
- Do default action for next item<L>k
- Do default action for previous item<L>a
- Manage extensions
- To learn more about default mappings
- Snippets
<C-k>
- Jump to previous placeholder<C-j>
(prioritized)- (visual mode) Use select text for visual placeholder of snippet
- Expand snippet
- Jump to next placeholder
<C-l>
- expand snippet<C-j>
- Jump to next placeholder<Tab>
- next snippet
- Go to
w
- Nth Wiki (default 1)t
- open Nth wiki in new tab (default 1)s
- wiki select GUIi
- N diary<L>w
- today's entry<L>t
- today's entry in a new tab<L>y
- yesterday's entry<L>m
- tomorrow's entry
common prefix: gs
- Go to source
- vim config
gsv
orgrc
- tmux config
gst
- ultisnips config
gsu
- Zoom into runner
<leader>vz
- Focus into window (also works in Tmux)
c_\
- last visited<C-[hjkl]>
- directional
- NerdTree
<F3>
- Toggle<F2>
- Locate current file
- Toggle
<L>/
- search highlighting
- Under cursor
<L>r
- Rename<C-space>
- autocomplete- Go to
<S>k
- documentation<L>d
- definition<L>g
- assignment<L>n
- usages
- Session
<L>s
o
- opens
- saved
- deleteq
- quit
- Buffer
<L>b
b
- List (default)p
/n
- Previous/Nextq
- Quit
- Window
<L>p
- Common
q
- quito
- only this, quit all otherst
- move to new tabp
or<space>
- List window panes
- Split Buffer into direction
h/j/k/l
- current bufferH/J/K/L
- new empty buffer
- Move
;
or# <L>P
;
- swap with next Paneh/j/k/l
- in that directionr/R
- rotate (↘) / (↖)t
- to new Tab
- Resizing
p
p/=
- equilibrate- Width
|
- set to N (default max)h/l
- add/subtract N (default 1)
- Height
-
- set to N (default max)j/k
- add/subtract N (default 1)
- Common
- Tab
<L>t...
- Common:
t
- List (default)tn
or# <C-n>
- Newq
- quite
- edit
- Focus
h/l
- Leftmost/Rightmostj/k
- Right/Left# [N]gt
- go to Nth tab
- Move current tab
H/L
- Leftmost/RightmostJ/K
- Right/Left
- Common:
- Git
<L>g
a
- Addc
- Checkoutm
- Commitr
- RenameQ
/X
- Remove file from repo, close buffers
- statusb
- blamed
- diffi
- pull Ino
- push Out
- Characters
<L>i
or<L>a
(depending on position)- Arrows
a
- North
k
k
- North ↑h
- ..West ↖l
- ..East ↗j
- Up-Down ⇅- Note: don't confuse ⇅ with ⇵ (down-up)
- etc.
h/j/k/l
- North
- Arrows
-
Jump to file
<L>e
-
Autoformat
<F1>
-
Run tester
<F12>
-
Compile
-
Runner
<L>v
-/\
- Open runner Horizontally/Verticallyq
- Close runnera
- Attach runnerz
or<space>
- Focus (Zoom-in) runner.
- Set working directory to current filep
- Prompt for new command to sendv
- Run command (again?)h
or# <F12>
- Run hackerrank.py# <C-f>
- Send Lines- Send Keys
s
q
- qd
- ^Dl
- ^Lc
- ^C
Install Yarn Install Vim-Plug:
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim