From b43f228a7c2eacfe39e728056212c501a89a8095 Mon Sep 17 00:00:00 2001 From: Shiki Ryu Date: Wed, 13 Apr 2016 22:20:48 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20vimrc=20du=20d=C3=A9di=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vimrc | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 6fb573a..a60228f 100644 --- a/.vimrc +++ b/.vimrc @@ -1,4 +1,47 @@ -set nocompatible syntax on highlight Comment ctermfg=Blue +" General +set number " Show line numbers +set linebreak " Break lines at word (requires Wrap lines) +set showbreak=+++ " Wrap-broken line prefix +set textwidth=100 " Line wrap (number of cols) +set showmatch " Highlight matching brace +set visualbell " Use visual bell (no beeping) +set nocompatible " Fix arrow A,B,C,D +set hlsearch " Highlight all search results +set smartcase " Enable smart-case search +set ignorecase " Always case-insensitive +set incsearch " Searches for strings incrementally + +" set autoindent " Auto-indent new lines +set expandtab " Use spaces instead of tabs +" set shiftwidth=4 " Number of auto-indent spaces +" set smartindent " Enable smart-indent +" set smarttab " Enable smart-tabs +set softtabstop=2 " Number of spaces per Tab + +" Advanced +set ruler " Show row and column ruler information + +set undolevels=1000 " Number of undo levels +set backspace=indent,eol,start " Backspace behaviour + +" Generated by VimConfig.com + +" Always display a status line at the bottom of the window +set laststatus=2 + +" Switch syntax highlighting on, when the terminal has colors +" Also switch on highlighting the last used search pattern. +if &t_Co > 2 || has("gui_running") + syntax on + set hlsearch +endif + +" Select all. +map ggVG + +" Undo in insert mode. +imap u +