-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
52 lines (35 loc) · 996 Bytes
/
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
call pathogen#infect()
set nocompatible
set number
set wildmenu
set wildmode=longest,full
set expandtab
set sts=4
set shiftwidth=4
" Ruby standard path
set path+=lib/
set path+=spec/
syntax on
filetype plugin indent on
" colorscheme ir_black
colorscheme solarized
" Switch between buffers
noremap <tab> :bn<CR>
noremap <S-tab> :bp<CR>
nmap <C-right> :tabn<CR>
nmap <C-left> :tabN<CR>
" Close buffer
nmap <leader>d :bprevious<CR>:bdelete #<CR>
" Close all buffers
nmap <leader>D :bufdo bd<CR>
" Switch between last two buffers
nnoremap <leader><leader> <C-^>
" Clear the search buffer when hitting return
:nnoremap <CR> :nohlsearch<CR>
highlight Pmenu ctermbg=238 gui=bold
set term=xterm-256color
" Set supertab default completion to context
let g:SuperTabDefaultCompletionType = "context"
" add specific ruby snippets for ruby
let g:snippets_dir = $HOME . "/.vim/bundle/snipmate/snippets," . $HOME . "/.vim/snippets/snipmate-ruby-snippets/snippets/"
runtime macros/matchit.vim