-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
42 lines (33 loc) · 750 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
filetype plugin indent on
set number
set cursorline
set showmatch
syntax on
colorscheme blackboard
set autoindent
set expandtab
set tabstop=4
set shiftwidth=4
set textwidth=0
set gfn=Inconsolata:h18
if has("autocmd")
autocmd bufwritepost .vimrc source $MYVIMRC
endif
let mapleader=","
nmap <leader>v :tabedit $MYVIMRC<CR>
nmap <leader>n :NERDTreeToggle<CR>
" Emulate TextMate's shift left/right key commands
nmap <D-[> <<
nmap <D-]> >>
vmap <D-[> <gv
vmap <D-]> >gv
imap <C-a> <Esc>0i
imap <C-e> <Esc>$a
function! AckGrep(command)
cexpr system("ack " . a:command)
cw " show quickfix window already
endfunction
command! -nargs=+ -complete=file Ack call AckGrep(<q-args>)
map <leader>a :Ack<space>
set grepprg=ack
set grepformat=%f:%l:%m