vlongle / vim_setting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VIM Setting

Primarily forked from https://github.com/amix/vimrc.

I currently use the vimrcs/basic.vim with neovim (see comments at the bottom of that file).

The .vimrc file is as follows to enable config basic.vim.

set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim

Also, have to remap some keybindings in iTerm2 for some plugins to work

  • tpope/commentary.vim: Use cmd + / to comment out code. Add Cmd/ as send hex codes: 0x67 0x63.
  • coc-explorer: use cmd + b to open the file explorer. Add cmd b as send: ":CocCommand explore\n" (send with vim special characters)
  • also use option + up/down arrow to move code around

For coc, we need to install node and npm. (on linux, use sudo apt-get install npm)

At google, in order to avoid indexing the large codebase, have to

  • remove vim-rooter to make sure telescope only search locally.
  • Put "coc.preferences.rootPatterns": [] in CocConfig.

Have to also install ctags for plugin 'preservim/tagbar' to work.

mosh (faster ssh) doesn't have truecolor, so will need to add set notermguicolors to the config when using mosh.

About

License:MIT License


Languages

Language:Vim Script 75.6%Language:Vim Snippet 20.6%Language:Go 1.5%Language:Ruby 0.9%Language:Shell 0.6%Language:Python 0.3%Language:CoffeeScript 0.3%Language:Makefile 0.1%Language:Dockerfile 0.0%Language:HTML 0.0%Language:Haml 0.0%