map [5^ :tabprev map [6^ :tabnext " Pour la correction orthographique setlocal spelllang=fr highlight clear SpellBad highlight SpellBad term=standout ctermfg=1 term=underline cterm=underline highlight clear SpellCap highlight SpellCap term=standout ctermfg=3 term=underline cterm=underline highlight clear SpellRare highlight SpellRare term=underline cterm=underline highlight clear SpellLocal highlight SpellLocal term=underline cterm=underline set mouse=c autocmd FileType man setlocal ro nonumber nolist fdm=indent fdn=2 sw=4 foldlevel=2 | nmap q :quit "set sw=4 sts=4 ts=4 set nowrap " do not wrap line set noexpandtab " do not expand " set smarttab set autoindent syntax on set smartindent set list set listchars=tab:>-,trail:~,nbsp:_ set showbreak=>\ " allow backspace in insert mode set backspace=indent,eol,start " show cursor position set ruler " show command on the bottom set showcmd " Status line set laststatus=1 " hilight search set hlsearch " search as I type set incsearch " ignore case when searching set ignorecase " override ignorecase if there are caps set smartcase " completion set completeopt=longest,menu,preview " diffing set diffopt+=vertical if has("autocmd") filetype plugin indent on augroup vimrcEx au! autocmd FileType text setlocal textwidth=78 autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endif augroup END autocmd FileType c set omnifunc=ccomplete#Complete autocmd FileType c set foldenable autocmd FileType c set foldmarker={,} autocmd FileType c set foldmethod=marker autocmd FileType c set foldlevel=100 autocmd FileType c set foldopen=block,hor,mark,percent,quickfix,tag autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags autocmd FileType sql set omnifunc=sqlcomplete#Complete autocmd FileType python set omnifunc=pythoncomplete#Complete autocmd FileType ruby set omnifunc=rubycomplete#Complete autocmd FileType php set omnifunc=phpcomplete#CompletePHP endif " has("autocmd") highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.\+/ " hilight current line set nocursorline " paste/nopaste set pastetoggle= " no backup set nobackup set undofile " swapfile set swapfile ":Man runtime ftplugin/man.vim " Set the window title set title "Force 256 colors "set t_Co=256 set bg=dark set fdm=syntax set t_Co=256 nnoremap :set hlsearch! nnoremap :set nonumber! nnoremap :tabp nnoremap :tabn set pastetoggle=