set nocompatible set nomodeline filetype off filetype plugin on filetype indent on if &t_Co >= 256 || has("gui_running") colorscheme mustang endif if &t_Co > 2 || has("gui_runnig") syntax on endif autocmd BufEnter *.cls set syntax=tex " must-have " { set hidden set wildmenu set showcmd set hlsearch " } " usability " { set ignorecase set smartcase set backspace=indent,eol,start set autoindent set nostartofline set ruler set laststatus=2 set confirm set visualbell set t_vb= set mouse=a set cmdheight=2 set number set notimeout nottimeout set list set scrolloff=5 set listchars=tab:>.,trail:!,extends:#,nbsp:‿ set wildignore+=*/.git/*,*/tmp/*,*.so,*.swp,*.zip " } " indentation " { set shiftwidth=4 set softtabstop=4 set tabstop=4 set expandtab " } " fold " { set foldmethod=indent set foldnestmax=10 set nofoldenable nnoremap @=(foldlevel('.')?'za':"\") vnoremap zf cabbrev h vert h " }