Repository navigation
Expand file tree
/
Copy pathvimrc
More file actions
107 lines (85 loc) · 2.01 KB
/
Copy pathvimrc
File metadata and controls
107 lines (85 loc) · 2.01 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
set nocompatible
let mapleader = ","
call pathogen#infect()
syntax on
filetype plugin indent on
set gfn=Inconsolata\ Medium\ 15
set number
set numberwidth=3
set textwidth=0
set nowrap
set showcmd
set showmatch
set ruler
set wildmenu
set laststatus=2
set listchars=tab:▷⋅,trail:·
set list
set so=5
set siso=10
set guioptions-=T " remove toolbar
set guioptions-=m " remove menu
" remove scrollbars
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set guioptions-=b
set background=dark
let g:solarized_termtrans=1
colorscheme solarized
set hidden
set history=1000
set autoread
set backspace=indent,eol,start
set autoindent
set ai
set ts=4
set sts=4
set sw=4
set et
set ignorecase
set smartcase
set incsearch
set hlsearch
set nobackup
set noswapfile
set nofoldenable
if has('mouse')
set mouse=a
endif
nmap <C-E> :b#<CR>
" NERDTree
nmap <C-\> :NERDTreeToggle<CR>
nmap <leader>nt :NERDTreeClose<CR>:NERDTree<CR>
nmap <leader>p :NERDTreeFind<CR>
" NERDCommenter
nmap <leader>/ <plug>NERDCommenterToggle
vmap <leader>/ <plug>NERDCommenterToggle
" taglist
nmap <leader>tl :TlistToggle<CR>
" generate tags
function! g:GenTags()
echo system("ctags --extra=+f --exclude=.git --exclude=log -R * " . $GEM_HOME ."/gems/*")
endfunction
"map <Leader>rt :!ctags --extra=+f --exclude=.git --exclude=log -R * `rvm gemdir`/gems/*<CR><CR>
map <Leader>rt :call g:GenTags()<CR>
" command-t
nmap <unique> <silent> <Leader><Leader> :CommandT<CR>
let g:CommandTMatchWindowAtTop=1
" status line
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%{rvm#statusline()}%=%-14.(%l,%c%V%)\ %P
" paste toggle
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
" copy/paste stuff
nmap <C-V> <F2>"+gP<F2>
imap <C-V> <ESC><C-V>i
vmap <C-C> "+y
set dictionary-=/usr/share/dict/words dictionary+=/usr/share/dict/words
set thesaurus-=~/.vim/thesaurus/mthesaur.txt thesaurus+=~/.vim/thesaurus/mthesaur.txt
autocmd VimEnter * NERDTree
let g:RspecBin='rspec'
let g:ruby_conque_rspec_command='rspec'
let g:RspecSplitHorizontal=0