Skip to content

Instantly share code, notes, and snippets.

@t404
Created February 8, 2021 10:19
Show Gist options
  • Save t404/feefaf50480a7010d999f22bcd2112f4 to your computer and use it in GitHub Desktop.
Save t404/feefaf50480a7010d999f22bcd2112f4 to your computer and use it in GitHub Desktop.
.vimrc #vim
" Encoding related
set encoding=utf-8
set langmenu=zh_CN.UTF-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,iso-8859,euc-jp,euc-kr,latin1
set nu
set go=
syntax on
set ruler
set showcmd
set novisualbell
set laststatus=1
set hlsearch
set nocompatible
set autoread
set magic
"set background=dark
"colorscheme solarized
set cursorline
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
"set vb t_vb=
set hls
autocmd InsertLeave * se nocul
autocmd InsertEnter * se cul
"保存退出时光标位置
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
"colorscheme molokai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment