Paco
<source lang="vim"> ""Activation de la coloration syntaxique syntax on
"Activation de l'auto indentation set cindent
"Modification du modèle de coloration syntaxique colorscheme xoria256
"Désactivation de la souris set mouse=""
"Personnalisation de la ligne de status set statusline=%F%m%r%h%w\ [TYPE=%Y]\ [Line=%04l]\ [Col=%04v]\ [%p%%] set laststatus=2
"Activation de l'indentation automatique set autoindent
"Redéfinitions des tabulations set expandtab "Pour remplacer les tabulations par des espaces set shiftwidth=4 set softtabstop=4 set tabstop=4
"Ajout de la numérotation des lignes set number
"Ajout d'une ligne colorée pour surligné la ligne en cours "set cursorline "highlight CursorLine term=reverse cterm=reverse
"Autorisation de remonter ou descendre d'une ligne avec les flèches "gauche ou droite set whichwrap=b,s,<,>,[,]
"Ouverture des fichiers avec le curseur à la position de la dernière édition function! s:Cursor0ldPosition() if line("'\"") > 0 && line("'\"") <= line("$") exe "normal g`\"" endif endfunction autocmd BufReadPost * silent! call s:CursorOldPosition()
"Pas de coloration des mots recherchés set nohls
"Voir :h php let php_sql_query =1 let php_Baselib=1 let php_htmlInStrings=1
map <right> <esc> map <left> <esc> map <up> <esc> map <down> <esc> imap <right> <esc> imap <left> <esc> imap <up> <esc> imap <down> <esc> nmap j gj nmap k gk imap <C-left> <esc>bi
autocmd BufNewFile * silent! 0r ~/.vim/templates/%:e.tpl
function Python_file()
set omnifunc=pythoncomplete#Complete highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%80v.\+/ map <F6> :! python %<CR>
endfunction
function C_file()
highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%80v.\+/ highlight Works ctermbg=darkblue ctermfg=red match Works /* Works */ map <F6> <ESC>:!gcc -Wall -g % -o %<".x"<cr>
endfunction
function LaTeX_file()
au BufNewFile,BufRead *.tex setlocal spell spelllang=en map <F6> <ESC>:! pdflatex %<CR> set tw=80
endfunction
autocmd FileType python call Python_file()
autocmd FileType c call C_file()
autocmd FileType tex call LaTeX_file()
let use_xhtml=1
set ttyfast set wildmenu set t_Co=256 augroup filetypedetect
au BufNewFile,BufRead *.tex setlocal spell spelllang=en "au BufNewFile,BufRead *.txt setlocal spell spelllang=fr
augroup END set scrolloff=1000 set showcmd let python_highlight_all = 1 set nocompatible
augroup BufNewFile,BufRead *.py
setlocal tabstop=4 setlocal softtabstop=4 setlocal shiftwidth=4 setlocal textwidth=80 setlocal smarttab setlocal expandtab setlocal smartindent
augroup end
setlocal indentkeys=!^F,o,O,<:>,0),0],0},=elif,=except,0# filetype plugin indent on
</source>