Created
March 5, 2014 01:37
-
-
Save Lupino/9359566 to your computer and use it in GitHub Desktop.
my vimrc
This file contains 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
" disable VI's compatible mode.. | |
set nocompatible | |
" set encoding=utf-8 | |
set fileencodings=ucs-bom,utf-8,gbk,default,latin1 | |
" use chinese help | |
set helplang=cn | |
"set mouse=a | |
set number "设置显示行号 | |
set expandtab | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set wildmenu "命令行补全 | |
set showmatch "插入括号时短暂跳转到匹配的对应括号 | |
set matchtime=2 "跳转到匹配括号的时间 | |
set hlsearch | |
set colorcolumn=81 | |
set foldmethod=marker | |
syntax on | |
set backspace=indent,eol,start | |
highlight ColorColumn ctermbg=7 | |
filetype plugin indent on | |
filetype plugin on | |
call pathogen#infect() | |
nmap <F8> :TagbarToggle<CR> | |
nmap nt :NERDTree<CR> | |
imap jj <ESC>o | |
" autocmd FileType php setlocal dict+=~/.vim/dict/php_funclist.txt | |
" autocmd FileType python setlocal dict+=~/.vim/pydiction-1.2/complete-dict | |
highlight SpellBad ctermbg=1 ctermfg=0 | |
autocmd FileType html :let b:AutoCloseOn = 0 | |
autocmd BufWritePre * exec "try\n %s/\\s\\+$//g\ncatch\nendtry" | |
let g:html_indent_inctags = "html,body,head,tbody" | |
let g:html_indent_script1 = "inc" | |
let g:html_indent_style1 = "inc" | |
let NERDTreeIgnore=['\.pyc$','\~$','^__pycache__$'] | |
autocmd FileType html,jade,javascript,css,less,coffee set tabstop=2 | |
autocmd FileType html,jade,javascript,css,less,coffee set softtabstop=2 | |
autocmd FileType html,jade,javascript,css,less,coffee set shiftwidth=2 | |
autocmd FileType python,python3 set tabstop=4 | |
autocmd FileType python,python3 set softtabstop=4 | |
autocmd FileType python,python3 set shiftwidth=4 | |
" let g:airline#extensions#tabline#enabled = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment