Skip to content

Instantly share code, notes, and snippets.

@QinMing
Last active July 15, 2020 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QinMing/d637a18dbff634e5e969 to your computer and use it in GitHub Desktop.
Save QinMing/d637a18dbff634e5e969 to your computer and use it in GitHub Desktop.
syntax on
filetype plugin indent on
" show existing tab with xx spaces width
set tabstop=4
" when indenting with '>', use xx spaces width
set shiftwidth=4
" On pressing tab, insert xx spaces
set expandtab
" Enable mouse use in all modes. So that when ssh into here, can use mouse to activate visual mode
"set mouse=a
" http://vim.wikia.com/wiki/Disable_automatic_comment_insertion
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
"set nu
" Hightlight search
set hlsearch
" Enable multi-byte support
set encoding=utf-8
" Encryption
set cm=blowfish2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment