forked from MikeRogers0/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
66 lines (51 loc) · 1.38 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
60
61
62
63
64
65
66
execute pathogen#infect()
" Reload with :source ~/.vimrc
"Basic
let mapleader=","
set nocompatible
set nocursorline
set number
syntax on
filetype plugin indent on
set expandtab
set tabstop=4
set shiftwidth=2
set softtabstop=2
set autoindent
set linebreak
" Temp Files
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
" Switch off Swap Files for now
set noswapfile
set encoding=utf-8
" When spliting, focus on the new pane
map <C-\> :vsplit<CR>
map <C-_> :split<CR>
set splitbelow
set splitright
" NERDTree Config
map <leader>n :NERDTreeToggle<CR>
map <leader>N :NERDTreeFind<CR>
let NERDTreeQuitOnOpen = 1
" Use silver surfer for Acking.
let g:ackprg = 'ag --nogroup --nocolor --column'
syntax enable
colorscheme solarized
let g:solarized_termcolors=256
if has('gui_running')
set background=light
else
set background=dark
endif
map <Leader>S :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
"map <Leader>l :call RunLastSpec()<CR>
map <Leader>r :call RunAllSpecs()<CR>
"let g:rspec_command = "Rrunner {spec}"
"let g:rspec_command = "Dispatch zeus rspec {spec}"
let g:rspec_command = "compiler rspec | set makeprg=spring | Make rspec {spec}"
" Don't start new tabs in insert mode
au BufWinEnter * set noinsertmode
au BufWinEnter *.php,*.js,*.inc,*.css,*.html,*.htm set insertmode | imap <buffer> <Esc> <C-l>