Giter Club home page Giter Club logo

dotfile's Introduction

My configuration

  • 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 the runtimepath.
    • for vim surround, select the text in visual mode, and then press S(uppercase), then input the quote or parenthesis or <anyHtmlTag> etc.
    • in command line mode, ctrl-b and ctro-e to navigate to beginning/end.
  • GIT

    • for git config --global user.email xxx, can NOT surround email address with "" like how user name is set.
  • Fish shell

    • more on .config/fish/config.fish

NERDTree is awesome Actually find coc-explorer is much faster than NERDTree.

Fish VI modeが大好きです

macOS specific

macos finder open in new tab

System Preferences > Dock > Prefer tabs when opening documents and select Always.

font subpixle antialiasing

MacOS Mojave disables subpixel antialiasing, also known as font smoothing, by default.

defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO

coc nvim

  • 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 after gd 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 setting python.pythonPath to local venv's python so that the LSP could kick-in.
  • on MacOS, Terminal->Preferences->Keyboard set Use Option as Meta Key. then map to :Format<cr>.
    • For iTerm2, need to make it ESC in profiles->keys, and then add specific mapping to the list

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.