Last active
July 21, 2018 13:31
-
-
Save bitdust/c3d611a5433f7587bbd1 to your computer and use it in GitHub Desktop.
vimrc 从零开始
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 默认选项 | |
set fileencodings=utf8,cp936,gb18030,big5 | |
syntax enable | |
syntax on | |
set number " 显示行号 | |
set nocompatible " 与vi不兼容 | |
set showmatch " 匹配括号 | |
" tab相关 | |
set tabstop=4 | |
set smarttab | |
set shiftwidth=4 | |
set expandtab | |
set cindent | |
set autoindent | |
filetype plugin indent on | |
" 配色 | |
set t_Co=256 | |
colorscheme desert | |
" 搜索 | |
set hlsearch " highlight matches | |
set incsearch " incremental searching | |
" set ignorecase " searches are case insensitive... | |
set smartcase " ... unless they contain at least one capital letter | |
" 保存代码折叠信息 | |
au BufWinLeave *.* silent mkview | |
au BufWinEnter *.* silent loadview | |
" 代码折叠快捷键为 zf zo | |
" 参考资料 | |
" http://coolshell.cn/articles/11312.html 无插件Vim编程技巧 | |
" http://mislav.uniqpath.com/2011/12/vim-revisited/ Vim: revisited | |
" 备注 | |
" 插入模式中,ctrl+n可以自动补全 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment