diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-04-23 01:20:36 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-04-23 01:20:36 -0400 |
commit | e0cb5545ccb95cbc6cf03fd256cca622f613ecdf (patch) | |
tree | 219ab0ba233d717b90b21968acf51454cd6c9dc5 /.vimrc | |
parent | f505cc10656d4262dba69aa6ced81dd9024ec592 (diff) | |
download | openwrt-repro-e0cb5545ccb95cbc6cf03fd256cca622f613ecdf.tar.gz openwrt-repro-e0cb5545ccb95cbc6cf03fd256cca622f613ecdf.zip |
removed a bunch of unused vim stuff
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 54 |
1 files changed, 33 insertions, 21 deletions
@@ -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 <F2> :VSTreeExplore<cr> -let g:buftabs_in_statusline=1 -let g:buftabs_only_basename=1 +let treeExplNoList=0 +"nmap <F2> :VTreeExplore<cr> +nmap <F2> :Explore<cr> +"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 <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- +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 around +nmap <C-left> :tabN<CR> +nmap <C-right> :tabn<CR> +map <C-left> :tabN<CR> +map <C-right> :tabn<CR> + +" and between windows +noremap <A-h> <C-w>h<CR> +noremap <A-j> <C-w>j<CR> +noremap <A-k> <C-w>k<CR> +noremap <A-l> <C-w>l<CR> " Searching stuff set incsearch set ignorecase set smartcase +" this allows the arrow keys to do screen lines instead of file lines +" (srapped) +noremap <Up> gk +noremap <Down> 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 <C-p><C-r> :Rst<CR> |