-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
59 lines (51 loc) · 1.55 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
55
56
57
58
59
set nocompatible " We're running Vim, not Vi!
filetype off
" Use Vundle to manage plugins
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
" My Vundles here:
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails'
Bundle 'kien/ctrlp.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'godlygeek/csapprox'
Bundle 'derekwyatt/vim-scala'
Bundle 'kchmck/vim-coffee-script'
Bundle 'rgarver/Kwbd.vim'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" Post-plugin stuff here:
filetype plugin indent on
" Override default bd with Kwbd plugin to preserve window
cnoreabbrev bd Kwbd
" Ignore annoying CSApprox warning when GUI support not available
let g:CSApprox_verbose_level = 0
" Enable Ruby Extensions
syntax on " Enable syntax highlighting
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
" My own custom garbage here
set t_Co=256
color wombat
set guifont=Consolas\ 10 " Don't forget to pull in from ~/.fonts
set number " Enable line numbers
set shiftwidth=2 " Indent lines by 2 spaces
set autoindent
" Eww, tabs by default? let's use spaces instead
set tabstop=2
set shiftwidth=2
set expandtab
set hidden
set pastetoggle=<F2> " F2 for pasting without auto-indent
" Better split navigation
" Taken from http://vimbits.com/bits/10
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" Keep backup/swap garbage out of working dir
set backupdir=~/.vimbackup,/tmp
set directory=~/.vimswap,/tmp