-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
executable file
·64 lines (45 loc) · 1.23 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
colorscheme jellybeans
:set guifont=Menlo\ Regular:h14
"disable mouse"
:set mouse=c
"highlights as you search"
:set incsearch
"enable line numbers"
:set number
execute pathogen#infect()
set nocompatible
syntax on " Enable syntax highlighting
filetype plugin indent on
"load nerdtree by default"
autocmd vimenter * NERDTree
"set default nerdtree directory to rails_apps"
cd ~/rails_apps
"change tabs to spaces"
:set tabstop=2
:set shiftwidth=2
:set expandtab
"indents next line to current indentation"
:set autoindent
"indent further after keyword on next line"
"need cinoptions here?"
set cinwords=if,else,while,do,for,switch,case
set mat=5 " Bracket blinking.
"displays long lines as just one line"
:set nowrap
set laststatus=2
"highlight cursor line"
set cul
set cursorline
"hi CursorLine term=none cterm=none ctermbg=3
"disable bell alert"
set visualbell "do not beep
set noerrorbells " I hate console beeps.
"make gitgutter column background match
highlight clear SignColumn
" RSpec.vim mappings
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>
"do not replace paste register with new content"
xnoremap p "_dP