-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.vimrc
53 lines (45 loc) · 961 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
53
"visual stuff
set ruler
set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%l/%L\ (%p%%)]
syntax enable
"set number
"set wrap!
"use different colorscheme for mac vim and console vim
if has('gui_running')
colorscheme vividchalk
else
colorscheme desert256
endif
"2 spaces per tab
set bs=2
set tabstop=2
set shiftwidth=2
"do the right thing with tabs
set smartindent
set expandtab
filetype indent on
"keymapping
nmap <F11> 1G=G
imap <F11> <ESC>1G=Ga
map <C-\> :NERDTreeFind<CR>
map <C-n> :FufFile **/<CR>
map <C-e> :MRU<CR>
"search
set incsearch
set ignorecase
"misc
set smartcase
set nocompatible
set bufhidden=hide
set scrolloff=3
source ~/.vim/autotag.vim
"fix grep
:let Grep_Find_Use_Xargs = 0
:let Grep_Default_Filelist = '*.rb'
"map camelcasemotion replacements to w,b,e so they are camelcase and _ aware
map <silent> w <Plug>CamelCaseMotion_w
map <silent> b <Plug>CamelCaseMotion_b
map <silent> e <Plug>CamelCaseMotion_e
sunmap w
sunmap b
sunmap e