ln -sf ~/dotfiles/nvim/init.vim ~/.config/nvim/init.vim
# others also
activate current vim file
source %
git command behaves like less
git config --global --replace-all core.pager "less -F -X"
After update coc-settings.json
Restart coc server by command :CocRestart
Ctrl-t (tab split)
Ctrl-x (split)
Ctrl-v (vsplit)
shift + ? (quickhelp)
m (insert/delete file in nerd tree)
i (a split split)
s (a vertical split)
prefix(Ctrl-a) + :
tmux source-file ~/.tmux.conf
- tpm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
prefix(Ctrl-a) + I (install plugin)
prefix(Ctrl-a) + U (update plugin)
prefix(Ctrl-a) + alt + u (delete plugin)
- tmux-resurrect
prefix + Ctrl-s (save)
prefix + Ctrl-r (restore)
gst (take a peek at the diff of each file returned by git status)
glo (take a peek at each file returned by git logs)
space + p (search file)
Ctrl-w (num) + / Ctrl-w (num) - (resize split window)
Ctrl-w (num) > / Ctrl-w (num) < (resize vsplit window)
<leader>z (vim-jsdoc)
<leader>r (find and replace)
<leader>/ (claer highlighted search terms while preserving history)
<leader>y (automatically remove trailing whitespace)
zc (close a fold)
zo (open a fold)
<leader>t (tabnew)
<leader>w (tabclose)
<leader>l (tabnext)
<leader>h (tabprev)
// External grep
<leader>a -> :grep -r xxx *
:copen
q -> quit
// Find and Replace
<leader>r -> :%s/pattern/replace/g
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false