Skip to content

Instantly share code, notes, and snippets.

@jamyouss
Created September 25, 2016 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamyouss/3a981cf2dec527f6a691e6405c211e8f to your computer and use it in GitHub Desktop.
Save jamyouss/3a981cf2dec527f6a691e6405c211e8f to your computer and use it in GitHub Desktop.
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