set tabstop=4 set shiftwidth=4 set autoindent set smartindent set nowrap set number set guifont=monospace\ 9 tab ball syntax on set showtabline=2 :map :tabnew colorscheme dw_orange function GuiTabLabel() let label = '' let bufnrlist = tabpagebuflist(v:lnum) " Add '+' if one of the buffers in the tab page is modified for bufnr in bufnrlist if getbufvar(bufnr, "&modified") let label = '+' break endif endfor " Append the number of windows in the tab page if more than one let wincount = tabpagewinnr(v:lnum, '$') if wincount > 1 let label .= wincount endif if label != '' let label .= ' ' endif " Append _just_ the filename. let bufnrlist = tabpagebuflist(v:lnum) let bufId = bufnrlist[tabpagewinnr(v:lnum) - 1] let fn = bufname(bufId) let lastSlash = strridx(fn, '/') return label . strpart(fn, lastSlash+1, strlen(fn)) endfunction set guitablabel=%{GuiTabLabel()} " set guioptions-=T "get rid of toolbar :let g:toggleTool = 0 map :if g:toggleTool == 1:set guioptions-=T:let g:toggleTool = 0:else:set guioptions+=T:let g:toggleTool = 1:endif " set guioptions-=m "get rid of menu :let g:toggleMenu = 0 map :if g:toggleMenu == 1:set guioptions-=m:let g:toggleMenu = 0:else:set guioptions+=m:let g:toggleMenu = 1:endif