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 <F10> <Esc>:tabnew<CR>
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 <silent> <S-F1> :if g:toggleTool == 1<CR>:set guioptions-=T<CR>:let g:toggleTool = 0<CR>:else<CR>:set guioptions+=T<CR>:let g:toggleTool = 1<CR>:endif<CR>
"
set guioptions-=m "get rid of menu
:let g:toggleMenu = 0
map <silent> <S-F2> :if g:toggleMenu == 1<CR>:set guioptions-=m<CR>:let g:toggleMenu = 0<CR>:else<CR>:set guioptions+=m<CR>:let g:toggleMenu = 1<CR>:endif<CR>