summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-03-25 06:29:54 -0400
committerbnewbold <bnewbold@robocracy.org>2010-03-25 06:29:54 -0400
commit0bf28391b00b1e28c44324bcd7647df416314667 (patch)
tree6dda90e70218861975deb408eb21b2ff00eb5ef6 /.vimrc
parent564a2d0d39c8e1fb79ee800973848b2442833356 (diff)
downloadopenwrt-repro-0bf28391b00b1e28c44324bcd7647df416314667.tar.gz
openwrt-repro-0bf28391b00b1e28c44324bcd7647df416314667.zip
lots and lots of vim stuff for c development...
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc39
1 files changed, 38 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 1d359cc..64b4dbc 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,6 +1,8 @@
" bnewbold's .vimrc
" circa 04/2006
+:filetype plugin on
+
if has('syntax') && (&t_Co > 2)
syntax on
endif
@@ -9,12 +11,46 @@ set history=50
set wildmode=list:longest,full
set showmode
set showcmd
-set smartcase
set shiftwidth=4
set tabstop=4
set shiftround
set expandtab
set autoindent
+set hidden
+
+" vtreeexplore
+let treeExplVertical=1
+let treeExplWinSize=30
+let treeExplDirSort=1
+let treeExplNoList=1
+:nmap <F2> :VSTreeExplore<cr>
+let g:buftabs_in_statusline=1
+let g:buftabs_only_basename=1
+
+" better vertical split style
+hi VertSplit cterm=none ctermfg=LightGray term=none gui=none
+
+" firefox style ctrl-tabbing with buffers
+noremap <C-tab> :bprev<CR>
+noremap <C-S-tab> :bnext<CR>
+" needed for in xterm with remaping... ugh.
+:nmap <Esc>[27;6;9~ :bprev<CR>
+:nmap <Esc>[27;5;9~ :bnext<CR>
+:map <Esc>[27;6;9~ :bprev<CR>
+:map <Esc>[27;5;9~ :bnext<CR>
+" and for tabbing
+:nmap <C-left> :tabN<CR>
+:nmap <C-right> :tabn<CR>
+:map <C-left> :tabN<CR>
+:map <C-right> :tabn<CR>
+
+" cscope quicklisting
+set cscopequickfix=s-,c-,d-,i-,t-,e-
+
+" Searching stuff
+set incsearch
+set ignorecase
+set smartcase
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
@@ -24,3 +60,4 @@ au BufNewFile,BufRead *.fsi,*.fss set ft=fortress
" for previewing reStructured text (.rst) in firefox
:command Rst :!rst2html.py "%" > /tmp/rstprev.html && firefox file:///tmp/rstprev.html
:nnoremap <C-p><C-r> :Rst<CR>
+