-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathvimrc
More file actions
36 lines (28 loc) · 915 Bytes
/
vimrc
File metadata and controls
36 lines (28 loc) · 915 Bytes
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
29
30
31
32
33
34
35
36
call pathogen#infect()
call pathogen#helptags()
set nocompatible "ensures vim over vi
set number
set ruler "add line/column count to the bottom of screen
"syntax on
syntax enable
set noerrorbells visualbell t_vb= "turn off annoying bells
set tags=.tags "destination file for ctags
set softtabstop=2 "number of space chars a tab counts for
set shiftwidth=2 "number of space chars for indentation
set expandtab "insert space characters whenever the tab key is pressed
set tabstop=2 "space chars inserted when tab key is pressed
set autoindent
filetype plugin indent on
" For MacVim
if has('gui_running')
syntax enable
set background=dark
colorscheme solarized
endif
set splitright "opens new split on the right
set splitbelow "open new vsplit on the bottom
" Remove trailling whitespace on :w
autocmd BufWritePre * :%s/\s\+$//e
" Incremental search
set incsearch
highlight Cursor guibg=Green guifg=NONE