-
VIM
- for fzf.vim,
ctrl+g
is mapped to:GFiles
to search with .gitignore applied.- The executable path should be mapped correctly in Plug or with
set rtp+=xxxx
to append to theruntimepath
.
- The executable path should be mapped correctly in Plug or with
- for
vim surround
, select the text in visual mode, and then pressS
(uppercase), then input the quote or parenthesis or<anyHtmlTag>
etc. - in command line mode,
ctrl-b
andctro-e
to navigate to beginning/end.
- for fzf.vim,
-
GIT
- for
git config --global user.email xxx
, can NOT surround email address with""
like how user name is set.
- for
-
Fish shell
- more on
.config/fish/config.fish
- more on
NERDTree is awesome
Actually find coc-explorer
is much faster than NERDTree.
Fish VI mode
が大好きです
System Preferences > Dock > Prefer tabs when opening documents and select Always.
MacOS Mojave disables subpixel antialiasing, also known as font smoothing, by default.
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
- For coc plugin, use the official recommended way
:CocInstall
instead of vim plug to manage so that it could get auto update. Example::CocInstall coc-json coc-tsserver coc-eslint coc-pairs coc-git
- use
ctrl-o
to go back aftergd or gi
. - use
:CocConfig
or edit~/.config/nvim/coc-settings.json
directly to add ts server options just like inside vscode. for example:"typescript.preferences.importModuleSpecifier": "relative",
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces":true
- for project specific settings, use
./.vim/coc-settings.json
file. one useful setting here we could do is for settingpython.pythonPath
to localvenv
's python so that the LSP could kick-in.
- on MacOS,
Terminal->Preferences->Keyboard
setUse Option as Meta Key
. then map to:Format<cr>
.- For iTerm2, need to make it
ESC
inprofiles->keys
, and then add specific mapping to the list
- For iTerm2, need to make it