Skip to content

Instantly share code, notes, and snippets.

@ericyue
Created December 30, 2016 09:01
Show Gist options
  • Save ericyue/e840551697d90686fc14fdf5b26436a3 to your computer and use it in GitHub Desktop.
Save ericyue/e840551697d90686fc14fdf5b26436a3 to your computer and use it in GitHub Desktop.
yb'vimrc
set noswapfile
inoremap ( ()
inoremap [ []
inoremap " ""
inoremap ' ''
set t_Co=256
nnoremap ; :
:command W w
:command P set paste
:command WQ wq
:command Wq wq
:command Q qu
:command Qa qa
:command QA qa
:command Wqall wqall
:command WQall wqall
:command V vertical all
set fileencodings=utf-8,cp936,gb18030,big5,euc-jp,sjis,euc-kr,ucs-2le,latin1
set nocompatible
"filetype on " enables filetype detections
"filetype plugin on " enables filetype specific plugins
set iskeyword+=-,_
set guifont=Menlo\ Regular:h14
set wrap
set sidescroll=1
set sidescrolloff=15
set so=5
set cursorcolumn
set cursorline
set wildmenu
set ruler
set tabstop=2
set shiftwidth=2
set softtabstop=2
set smartindent
set expandtab
set number
set hlsearch
set backspace=indent,eol,start
set showcmd
set textwidth=0
set autoindent
syntax enable
colorscheme molokai
let Tlist_Show_One_File=1 "只显示当前文件的tags
let Tlist_WinWidth=40 "设置taglist宽度
let Tlist_Exit_OnlyWindow=1 "tagList窗口是最后一个窗口,则退出Vim
let Tlist_Use_Right_Window=0 "在Vim窗口右侧显示taglist窗口"
"au BufWritePost *.c,*.cpp,*.h,*.py,*.java silent! !ctags -R &
"set foldmethod=indent
"autocmd BufNewFile *.py 0r ~/.vim/template/simple.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment