projects
/
dotfiles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4463993
)
Adding some ideas from nvie's .vimrc (http://github.com/nvie/vimrc/raw/master/vimrc).
author
David Kerkeslager
<kerkeslager@gmail.com>
Tue, 14 Sep 2010 15:57:11 +0000
(08:57 -0700)
committer
David Kerkeslager
<david.kerkeslager@globalpovertyproject.com>
Tue, 4 Aug 2015 14:42:51 +0000
(14:42 +0000)
.vimrc
patch
|
blob
|
history
diff --git
a/.vimrc
b/.vimrc
index
e0ba2ef
..
10703a9
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-1,6
+1,19
@@
" Don't imitate vi.
set nocompatible
" Don't imitate vi.
set nocompatible
+" Ignore certain file extensions when tab-completing.
+set wildignore=*.swp,*.bak,*.pyc,*.class,*.o
+
+" set filetype stuff to on
+filetype on
+filetype plugin on
+filetype indent on
+
+" Example filetype-specific setting:
+" if has('autocmd')
+" autocmd filetype python set expandtab
+" endif
+
" Show line numbers.
set number
set numberwidth=4
" Show line numbers.
set number
set numberwidth=4
@@
-18,16
+31,22
@@
set tabstop=4
set shiftwidth=4
set expandtab
set shiftwidth=4
set expandtab
+" Allow backspacing over everything in insert mode
+set backspace=indent,eol,start
+
"Highlight bad spacing
highlight BadSpacing term=standout ctermbg=cyan
augroup Spacing
autocmd!
"Highlight bad spacing
highlight BadSpacing term=standout ctermbg=cyan
augroup Spacing
autocmd!
- " Highlight tabulators and trailing spaces
(nasty bastards)
+ " Highlight tabulators and trailing spaces
autocmd BufNewFile,BufReadPre * match BadSpacing /\(\t\| *$\)/
" Only highlight trailing space in tab-filled formats
autocmd FileType help,make match BadSpacing / *$/
augroup END
autocmd BufNewFile,BufReadPre * match BadSpacing /\(\t\| *$\)/
" Only highlight trailing space in tab-filled formats
autocmd FileType help,make match BadSpacing / *$/
augroup END
+" Highlight search terms.
+set hlsearch
+
" Search as you type.
set incsearch
" Search as you type.
set incsearch
@@
-42,15
+61,19
@@
set splitbelow splitright
" Line wrapping off
set nowrap
" Line wrapping off
set nowrap
+" Enlarge history and undo/redo buffers
+set history=1000
+set undolevels=1000
+
" Reset colors to a clean state.
if !has('gui_running')
" Reset colors to a clean state.
if !has('gui_running')
-
set t_Co=8 t_md=
+ set t_Co=8 t_md=
endif
endif
-" Enable syntax
"
highlighting.
+" Enable syntax highlighting.
syntax enable
syntax enable
-" Force vim to sync syntax
"
highlighting from the beginning of the file.
+" Force vim to sync syntax highlighting from the beginning of the file.
syn sync fromstart
" Set the color scheme to desert.
syn sync fromstart
" Set the color scheme to desert.