-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.vimrc
More file actions
39 lines (35 loc) · 967 Bytes
/
.vimrc
File metadata and controls
39 lines (35 loc) · 967 Bytes
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
set autoindent
set smarttab
set expandtab
set tabstop=2
set path+=**
set shiftwidth=2
let g:fuzzy_ceiling = 40000
let g:fuzzy_matching_limit = 10
let mapleader = "-"
map <leader>t :FuzzyFinderTextMate<CR>
map <leader>R :ruby finder.rescan!<CR>
syntax on
au BufNewFile,BufRead *.j setf objj
au BufNewFile,BufRead *.io setf io
set visualbell
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
:filetype on
"augroup filetype
"autocmd BufNewFile,BufRead *.h set filetype=m
"autocmd BufNewFile,BufRead *.m set filetype=m
"augroup END
au FileType objc exec "source ~/.vim/m.vim"
function! Ack(args)
let grepprg_bak=&grepprg
set grepprg=ack\ -H\ --nocolor\ --nogroup
execute "silent! grep " . a:args
botright copen
let &grepprg=grepprg_bak
endfunction
command! -nargs=* -complete=file Ack call Ack(<q-args>)
map <leader>F :Ack<space>
"easy window switching
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_