-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
28 lines (24 loc) · 972 Bytes
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
""" Basic Settings (most people would like this)
set expandtab " uses spaces for tabs
set nocompatible " fix bugs from old vi
set tabstop=2
set softtabstop=2 " 2-space tabs
set shiftwidth=2 " 2-space indents
set autoindent " next line starts with indentation of current line
set smartindent " next line intelligently indented based on c-like languages
set ic " ignore case on searches
""" Display Preferences
set background=dark
""" Search Preferences
set showmatch " upon typing closing paren, jump briefly to matching openin paren
set incsearch " perform incremental search
""" External Library Compatability
syntax on " syntax highlighting
filetype indent on
filetype plugin on
""" Highlight white space at end of line
highlight ExtraWhitespace ctermbg=red guibg=red
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\s\+$/