Skip to content

Instantly share code, notes, and snippets.

@zhanghui9700
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhanghui9700/9780564 to your computer and use it in GitHub Desktop.
Save zhanghui9700/9780564 to your computer and use it in GitHub Desktop.
my vimrc
syntax on
set tabstop=4
set softtabstop=4
set shiftwidth=4
set nu
set autoindent
set laststatus=2
set list listchars=tab:>-,trail:-
set hlsearch
set smartindent
set expandtab
filetype plugin indent on
highlight StatusLine cterm=bold ctermfg=yellow ctermbg=blue
hi Search term=reverse cterm=standout ctermfg=green ctermbg=yellow
hi IncSearch term=reverse cterm=standout ctermfg=green ctermbg=yellow
set statusline=[%n]\ %f%m%r%h\ %=\|\ %l,%c\ %p%%\ \|\ %{((&fenc==\"\")?\"\":\"\ \".&fenc)}\ \|\ %{hostname()}
autocmd FileType c set expandtab
autocmd FileType python set expandtab
colorscheme darkblue
highlight Comment ctermfg=green guifg=green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment