My .vimrc

" vim 7.x specific
 
" set to be more vim like
set nocompatible
 
" check paths for .ros alternatives
set includeexpr=substitute(v:fname,'$','.ros','g')
 
" hide buffers when they go away with :bd
set hidden
 
" set tabs
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set cindent
 
" window management
set number
set ruler
set showmode
set laststatus=2
set history=500
set cursorline
au WinLeave * set nocursorline
au WinEnter * set cursorline
 
" search
set incsearch
set hlsearch
set smartcase
 
" colors
syntax on
colorscheme desert
set showmatch
au BufRead,BufNewFile *.ros set filetype=php
au BufRead,BufNewFile *.js.ros set filetype=javascript
au BufRead,BufNewFile *.css.ros set filetype=css
highlight Comment ctermfg=6 
highlight Folded ctermfg=7 ctermbg=0
highlight LineNr ctermfg=6 ctermbg=0
 
" misc
set title
set sc
 
" use wildmenu
set wildmenu
set wildmode=list:longest,full
set wildignore+=*.0,*.class,*.pyc,*.pyo,*/CVS/,*.jar
 
" turn word wrap off
set nowrap
 
" get the backup files in ~/.tmp/
"#set backupdir=~/.tmp/
"set directory=~/.tmp/
 
" folding
set foldmethod=marker
 
" If I remember correctly this makes C-k look up things in php_doc
set keywordprg=/[path to]/php_doc
 
" hide the mouse while typing
set mousehide

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">