Created
July 31, 2012 15:03
-
-
Save omerucel/3217662 to your computer and use it in GitHub Desktop.
vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Map NERDTree to \p | |
nmap <silent> <Leader>p :NERDTreeToggle<CR> | |
" Show line number | |
set number | |
" Syntax on | |
syntax on | |
" Incremental search | |
set incsearch | |
" Backup | |
set nobackup | |
set nowb | |
set noswapfile | |
" sound & errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
" Show filename | |
set modeline | |
set ls=2 | |
" Show ruler | |
set ruler | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
" Highlight current line only in insert mode | |
set cursorline | |
try | |
colorscheme jellybeans | |
hi CursorLine ctermbg=240 | |
catch | |
endtry | |
" Filetype | |
set filetype=on | |
filetype plugin on | |
filetype indent on | |
set ai " auto indent | |
set ts=4 | |
set sts=4 | |
set sw=4 | |
set textwidth=79 | |
set wrap | |
" HTML | |
autocmd FileType html set textwidth=0 | |
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags | |
" Python | |
autocmd FileType python set textwidth=79 | |
autocmd FileType python set omnifunc=pythoncomplete#Complete | |
autocmd FileType python set expandtab | |
" Css | |
autocmd FileType css set textwidth=79 | |
autocmd FileType css set omnifunc=csscomplete#CompleteCSS | |
" Javascript | |
autocmd FileType javascript set textwidth=79 | |
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS | |
" PHP | |
autocmd FileType php set textwidth=79 | |
autocmd FileType php set omnifunc=phpcomplete#CompletePHP | |
autocmd FileType php set smarttab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment