-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
55 lines (42 loc) · 1.09 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
" Enable syntax highlighting
syntax enable
"colorscheme vividchalk
set background=dark
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
" Turn on search highlighting
set hlsearch
" https://github.com/tpope/vim-pathogen
execute pathogen#infect()
syntax enable
set background=dark
colorscheme solarized
" misc
set cursorline
set number
" ctrl-p
set runtimepath^=~/.vim/bundle/ctrlp.vim
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(pyc)$',
\ }
" set python tab to 4 spaces and other stuff for other languages
autocmd FileType ruby,haml,eruby,yaml,sass,cucumber,javascript set ai sw=2 sts=2 et
autocmd FileType python set sw=4 sts=4 et
"vim-airline - lightweight powerline for vim
set laststatus=2
set t_Co=256
let g:airline_powerline_fonts=1
" 4 spaces instead of tab
set tabstop=4
set shiftwidth=4
set expandtab
set mouse=a " enable scroll with mouse wheel
" NERDTree
map <C-n> :NERDTreeToggle<CR>
let NERDTreeIgnore=[ '\.pyc$', '\.pyo$' ]
" Key bindings
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
map <c-h> <c-w>h