set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// set ex set backupdir=/backup/ set backup set makeprg=scons syntax enable set mouse= set ww=b,s,h,l set ve=block set nocompatible set softtabstop=0 set tabstop=2 set shiftwidth=2 set expandtab set ai set cin set si set number set showmatch set matchtime=1 set nowrap set wildmenu set nohlsearch set incsearch set winminheight=0 set winminwidth=0 set laststatus=2 set ruler set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5L,%-6(%c%V%)\ %P%) map <c-w>F <c-w>_<c-w><bar> map <F5> :bp<CR> map <F6> :bn<CR> map <F7> :cp<CR> map <F8> :cn<CR> map <BACKSPACE> :!clear<CR>:make -j2<CR> map L :!clear<CR><CR> map + <c-w>+ map - <c-w>- map _b :exe 'Ide break ' .expand("%:t"). ':' .line(".")<CR> map _u :exe 'Ide until ' .expand("%:t"). ':' .line(".")<CR> map _p :exe 'Ide print ' .expand("<cword>") <CR> map N :Ide step<CR> map M :Ide next<CR> map <c-k> :Mkclass map <c-j> :!exuberant-ctags *.c* *.h<CR> map <F12> :Tlist<CR> map <F11> :TagExplorer<CR> map <F2> :set mouse=a<CR> map <F3> :set mouse=<CR> map <c-i> :A<CR> map F :grep <cword> *<CR> set complete=.,w,b,u,t,i imap { {<CR>}<ESC>ko inoremap <C-]> { set noequalalways let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapCTabSwitchBuffs = 1 au BufNewFile,BufRead *.cpp,*.h loadview au BufWrite *.cpp,*.h mkview au BufNewFile,BufRead Makefile setlocal noet au BufNewFile,BufRead Makefile iunmap { au BufNewFile,BufRead *.tex iunmap { au BufNewFile,BufRead *.tex inoremap ä \"{a} au BufNewFile,BufRead *.tex inoremap ö \"{o} au BufNewFile,BufRead *.tex inoremap ü \"{u} au BufNewFile,BufRead SConstruct set ft=python au BufNewFile,BufRead * set fo=croql au BufNewFile,BufRead *.man map <F4> :!~/scripts/manpreview %<CR> au BufNewFile,BufRead *.htm* map <F4> :!w3m %<CR> au BufNewFile,BufRead *.py map <F4> :!python %<CR> au BufNewFile,BufRead *.tex map <F4> :!texi2dvi %<CR> au BufNewFile,BufRead *.cpp map <F4> :make vimrun<CR> au BufNewFile,BufRead *.h map <F4> :make vimrun<CR> function! Tohtml() execute ':runtime! syntax/2html.vim' endfunction com! -nargs=* -complete=command Tohtml call Tohtml() function! Ctags() execute '!exuberant-ctags *.c* *.h' endfunction com! -nargs=* -complete=command Ctags call Ctags() function! Dos2Unix() execute ':%s/ //g' endfunction com! -nargs=* -complete=command Dos2Unix call Dos2Unix() function! TrimFile() execute ':%s/[\t ]*$//g' endfunction com! -nargs=* -complete=command TrimFile call TrimFile() function! Remake() execute ':make clean' execute ':make' endfunction com! -nargs=* -complete=command Remake call Remake() function! Scons() execute 'set makeprg=scons' endfunction com! -nargs=* -complete=command Scons call Scons() function! Make() execute 'set makeprg=make' endfunction com! -nargs=* -complete=command Make call Make() set secure
Part of CategoryVimRc