au BufNewFile,BufRead *.rhtml set syn=eruby
au BufNewFile,BufRead *.rhtml set filetype=html

“set nocompatible ” We’re running Vim, not Vi!
:syntax on ” Enable syntax highlighting
:filetype indent on
“filetype off ” Enable filetype detection
“filetype indent off ” Enable filetype-specific indenting
“filetype plugin off ” Enable filetype-specific plugins

:set foldmethod=syntax
“set foldtext=getline(v:foldstart)
” you want want to try this: set foldcolumn=3
“set fillchars=fold:\ ” note the whitespace after
” not necessary but useful (so you can use the TAB key to fold/unfold
:map <TAB> za

“set background=dark
:set incsearch

if has(“autocmd”)
“ruby code.
augroup ruby
autocmd BufReadPre,FileReadPre *.rb,*.rhtml set tabstop=8
autocmd BufReadPre,FileReadPre *.rb,*.rhtml set softtabstop=2
autocmd BufReadPre,FileReadPre *.rb,*.rhtml set shiftwidth=2
” autocmd BufReadPre,FileReadPre *.rb,*.rhtml set noexpandtab
autocmd Filetype ruby source ~/.vim/ruby-macros.vim
augroup end
“html code
autocmd Filetype html source ~/.vim/html-macros.vim
endif

map <c-w><c-f> :FirstExplorerWindow<cr>
map <c-w><c-b> :BottomExplorerWindow<cr>
map <c-w><c-t> :WMToggle<cr>

“remember last line
set viminfo=’10,\”100,:20,%,n~/.viminfo
au BufReadPost * if line(“‘\””) > 0|if line(“‘\””) <= line(“$”)|exe(“norm ‘\””)|else|exe “norm $”|endif|endif

” for winmanager
map <F2> :WMToggle<CR>

“let Tlist_Inc_Winwidth = 0
let Tlist_Enable_Fold_Column = 0
map <F3> :Tlist<CR>

map <F12> <C-W>w