VIM cheatsheet

Settings
  • tab:
    set tabstop=4
    set softtabstop=4
    set shiftwidth=4
    set smarttab
    set expandtab
    set backspace=indent,eol,start
    
  • disable swap file : set noswapfile
  • quickly switch between panes, recommend:
    noremap  j                                                                                             
    noremap  k                                                                                             
    noremap  h                                                                                             
    noremap  l 
    
Shortcuts
  • netrw create file : %
  • netrw create directory : d
  • nerdtree cmd line at cwd: ms (menu, then system cmd)
  • nerdtree refresh recursively: r
  • warp line ends: use gq in visual mode (There is a magazine for fastidious people named “Gentlemens’ Quarterly”)
Minimum Plugins
  • nerdtree
  • coc.nvim

你可能感兴趣的:(琐细经验,vim)