add simple vimrc
This commit is contained in:
34
.vimrc
Normal file
34
.vimrc
Normal file
@@ -0,0 +1,34 @@
|
||||
set nocompatible
|
||||
syntax on
|
||||
filetype plugin on
|
||||
|
||||
set path+=**
|
||||
set wildmenu
|
||||
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
|
||||
set wildignore+=*\\tmp\\*,*.exe
|
||||
|
||||
set number
|
||||
set number ruler
|
||||
set showmatch
|
||||
set ruler
|
||||
set wrap
|
||||
set showbreak=↳\ \
|
||||
set textwidth=79
|
||||
set colorcolumn=81
|
||||
|
||||
" Show bad whitespace in an obvious but not obnoxious color
|
||||
highlight pythonSpaceError ctermbg=darkgreen guibg=darkgreen
|
||||
highlight BadWhitespace ctermbg=darkgreen guibg=darkgreen
|
||||
au BufNewFile,BufRead *.py,*.pyw,*.c,*.h,*.cc,*.hh,*.sh match BadWhitespace /\s\+$/
|
||||
|
||||
" File settings
|
||||
au FileType *
|
||||
\ set tabstop=2
|
||||
\ softtabstop=2
|
||||
\ shiftwidth=2
|
||||
\ textwidth=79
|
||||
\ expandtab
|
||||
\ autoindent
|
||||
\ smartindent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user