Skip to content

Instantly share code, notes, and snippets.

@jamyouss

jamyouss/vimrc

Created Sep 25, 2016
Embed
What would you like to do?
Configuration vim
" Authors: Jamal Yousefi (jamal.youssefi@gmail.com)
" Description: vim configuration
set nocompatible " Disable compatiblity with vi
set title " Update windows title
set number " Affiche le numero des lignes
set ruler " Affiche la position actuelle du curseur
set wrap " Affiche les lignes trop longues sur plusieurs lignes
set scrolloff=3 " Affiche un minimum de 3 lignes autour du curseur (pour le scroll)
" -- Search
set ignorecase " Ignore la casse lors d'une recherche
set smartcase " Si une recherche contient une majuscule, re-active la sensibilite a la casse
set incsearch " Surligne les resultats de recherche pendant la saisie
set hlsearch " Surligne les resultats de recherche
" -- Beep
set visualbell " Empeche Vim de beeper
set noerrorbells " Empeche Vim de beeper
" Désactiver les touches directionnelles
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
" -- Change escape key
:imap ;; <Esc>
:map ;; <Esc>
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'stanangeloff/php.vim'
Plug 'shawncplus/phpcomplete.vim'
Plug 'elzr/vim-json'
Plug 'mattn/emmet-vim'
Plug 'jelera/vim-javascript-syntax'
Plug 'mattn/gist-vim'
Plug 'flazz/vim-colorschemes'
Plug 'altercation/vim-colors-solarized'
Plug 'terryma/vim-multiple-cursors'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'matze/vim-move'
Plug 'itchyny/lightline.vim'
call plug#end()
" Identation
set autoindent
set shiftwidth=4
set tabstop=4
set expandtab
set paste
" Lightline
set laststatus=2
" Color scheme
syntax enable
colorscheme Monokai
hi Normal ctermbg=none
" Active les comportements specifiques aux types de fichiers comme la syntaxe et l'indentation
filetype on
filetype plugin on
filetype indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment