From e0cb5545ccb95cbc6cf03fd256cca622f613ecdf Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 23 Apr 2010 01:20:36 -0400 Subject: removed a bunch of unused vim stuff --- .vimrc | 54 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 21 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 64b4dbc..c2a1da5 100644 --- a/.vimrc +++ b/.vimrc @@ -1,6 +1,7 @@ " bnewbold's .vimrc -" circa 04/2006 +" circa 2006-2010 +" enable plugins :filetype plugin on if has('syntax') && (&t_Co > 2) @@ -16,48 +17,59 @@ set tabstop=4 set shiftround set expandtab set autoindent -set hidden +set hidden " allows modified buffers to be hidden " vtreeexplore let treeExplVertical=1 let treeExplWinSize=30 let treeExplDirSort=1 -let treeExplNoList=1 -:nmap :VSTreeExplore -let g:buftabs_in_statusline=1 -let g:buftabs_only_basename=1 +let treeExplNoList=0 +"nmap :VTreeExplore +nmap :Explore +"let g:buftabs_in_statusline=1 +"let g:buftabs_only_basename=1 +"let g:buftabs_active_highlight_group="Visual" -" better vertical split style +" a more readbly vertical split hi VertSplit cterm=none ctermfg=LightGray term=none gui=none -" firefox style ctrl-tabbing with buffers +" firefox style ctrl-tabbing with buffers; doesn't work in xterm noremap :bprev noremap :bnext " needed for in xterm with remaping... ugh. -:nmap [27;6;9~ :bprev -:nmap [27;5;9~ :bnext -:map [27;6;9~ :bprev -:map [27;5;9~ :bnext -" and for tabbing -:nmap :tabN -:nmap :tabn -:map :tabN -:map :tabn - -" cscope quicklisting -set cscopequickfix=s-,c-,d-,i-,t-,e- +nmap [27;6;9~ :bprev +nmap [27;5;9~ :bnext +map [27;6;9~ :bprev +map [27;5;9~ :bnext + +" and for tabbing around +nmap :tabN +nmap :tabn +map :tabN +map :tabn + +" and between windows +noremap h +noremap j +noremap k +noremap l " Searching stuff set incsearch set ignorecase set smartcase +" this allows the arrow keys to do screen lines instead of file lines +" (srapped) +noremap gk +noremap gj + autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class " for Project Fortress 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 +:command! Rst :!rst2html.py "%" > /tmp/rstprev.html && firefox file:///tmp/rstprev.html :nnoremap :Rst -- cgit v1.2.3