Skip to content

Instantly share code, notes, and snippets.

@cryptowen
Last active August 29, 2015 14:18
Show Gist options
  • Save cryptowen/f3c36c56c8db1e594633 to your computer and use it in GitHub Desktop.
Save cryptowen/f3c36c56c8db1e594633 to your computer and use it in GitHub Desktop.
my vimrc file
"=========================================================================
" DesCRiption: 极简版vim配置
"
" 替换本地vim配置文件命令:
" $ curl -O https://gist.githubusercontent.com/yely/f3c36c56c8db1e594633/raw/6db1aef4691c735182aef6ab0f5e9a9fd75377e1/simplest.vimrc && mv simplest.vimrc ~/.vimrc --backup=t
" or
" $ wget --no-check-certificate https://gist.githubusercontent.com/yely/f3c36c56c8db1e594633/raw/6db1aef4691c735182aef6ab0f5e9a9fd75377e1/simplest.vimrc && mv simplest.vimrc ~/.vimrc --backup=t
"=========================================================================
set nu " 设置行号
syn on " 语法高亮
vnoremap < <gv
vnoremap > >gv
set shiftwidth=4
set softtabstop=4
autocmd FileType c setlocal cindent " c 语法缩进
autocmd FileType python setlocal expandtab " python
:map :q :confirm q " 退出前进行确认
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment