Jump to content

User:Hashar/.vimrc

From mediawiki.org

Up to date version is on github https://github.com/hashar/alix/blob/master/vimrc



Below is the .vimrc file I am using on my Laptop:


syntax on
set bg=dark

filetype on
filetype indent on
filetype plugin on

set backspace=2

" Modeline
set modeline
set modelines=5

set ruler
set showcmd
set hlsearch
set sw=4
set ts=4

" Fold with space:
nnoremap <silent> <Space> @=(foldlevel('.')?'za':'l')<CR>
vnoremap <Space> zf

"colorscheme elflord

" Folding
set foldmethod=syntax
set foldlevel=99
let php_folding = 2  " fold anything
let php_parent_error_close = 1
let php_parent_error_open = 1
let g:xml_syntax_folding = 1
let perl_fold = 1
let javaScript_fold = 1

" autocommand pour certains projets
"autocmd BufNewFile,BufRead /Users/hashar/projects/pdoc/* set ts=2 sw=2 et