-
VIM
- for fzf.vim,
ctrl+gis mapped to:GFilesto search with .gitignore applied.- The executable path should be mapped correctly in Plug or with
set rtp+=xxxxto 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-bandctro-eto 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
In .gitconfig, delta is used for pager and diff. For wsl/chromeos-linux, go to the release page download corresponding .deb and install with sudo dpkg -i xxx.deb.
### coc nvim
- For coc plugin, use the official recommended way
:CocInstallinstead 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-oto go back aftergd or gi. - use
:CocConfigor edit~/.config/nvim/coc-settings.jsondirectly 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.jsonfile. one useful setting here we could do is for settingpython.pythonPathto localvenv's python so that the LSP could kick-in.
- on MacOS,
Terminal->Preferences->KeyboardsetUse Option as Meta Key. then map to:Format<cr>.- For iTerm2, need to make it
ESCinprofiles->keys, and then add specific mapping to the list
- For iTerm2, need to make it