.vimrc: grep through asm files as well
[cmccabe-etc] / .vimrc
1
2 "                Colin's vimrc
3 "
4 "            ||   www                %%%
5 "     vwv    ||   )_(,;;;,        ,;,\_/ www
6 "     )_(    ||   \|/ \_/         )_(\|  (_)
7 "     \|   \ || /\\|/  |/         \| \|// |
8 " "___\|//V\\||//_\V/_\|//_______\\|//V/\\|/__
9
10 "*************** navigation ***************
11 set history=500
12 set tags=./tags;../../../../
13
14 "*************** search stuff ***************
15 set incsearch
16 set hlsearch
17 set showmatch
18 set nowrapscan
19 set ignorecase
20 set smartcase
21
22 "*************** formatting ***************
23 :filetype plugin on
24 :filetype indent on
25 set linebreak
26 set ai
27 set ruler
28 syntax on
29 highlight Comment ctermfg=darkcyan
30 highlight Constant ctermfg=red
31 highlight Search cterm=reverse
32 set t_Co=256
33 set et
34
35 "*************** bell ***************
36 set vb t_vb="."
37 set visualbell
38
39 "*************** movement stuff ***************
40 set splitbelow
41 set splitright
42 imap <BS> <ESC>
43 set pastetoggle=<F2>
44
45 "*************** gui stuff ***************
46 set guifont=fixed
47 set guioptions-=T
48 set laststatus=2
49 "noremap \ 2 <PageUp>
50
51 "*************** comand-mode stuff ***************
52 " This abbreviation makes it easier to type :e <filename>.
53 " When you type '%%' in command mode, it will be expanded to the directory name
54 " of the file you're currently editing.
55 cabbr <expr> %% expand('%:p:h')
56
57 "*************** colin's auto-commenter ***************
58 map ,/ :s/^/\/\//<CR>:nohlsearch<CR>
59 map ,,/ :s/^\/\///<CR>:nohlsearch<CR>
60 map ,# :s/^/#/<CR>:nohlsearch<CR>
61 map ,,# :s/^#//<CR>:nohlsearch<CR>
62 map ," :s/^/\"/<CR>:nohlsearch<CR>
63 map ,," :s/^\"//<CR>:nohlsearch<CR>
64
65 " whitespace stripper
66 map ,w :s/[\t ][\t ]*$//<CR>
67
68 "*************** shortcuts **************
69 map \b :ConqueTermSplit /bin/bash<CR>
70 map \B :ConqueTermVSplit /bin/bash<CR>
71 "command Bash execute ":ConqueTerm bash"
72
73 "*************** grep plugin ***************
74 :let Grep_Default_Filelist = '*.c *.cpp *.cc *.rb *.h *.t *.py *.rst *.go *.java *.S'
75 :let Grep_Skip_Files = 'core.* *.svn *~ *.swp *.swo *.bak cscope.out cscope.files'
76
77 "*************** pre-filled registers ******************
78 let @w="Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>"
79 let @x="Signed-off-by: Colin Patrick McCabe <cmccabe@acceptas.com>"
80 let @s="Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>"