réorganisation

This commit is contained in:
2019-06-24 11:01:30 +02:00
parent 85922b1327
commit fc1834195e

21
vimrc
View File

@@ -4,8 +4,6 @@ endif
set nocompatible " Use Vim defaults (much better!) set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode set bs=indent,eol,start " allow backspacing over everything in insert mode
set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers " than 50 lines of registers
set history=50 " keep 50 lines of command line history set history=50 " keep 50 lines of command line history
@@ -29,21 +27,6 @@ if has("autocmd")
augroup END augroup END
endif endif
if has("cscope") && filereadable("/usr/bin/cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add $PWD/cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
endif
" Switch syntax highlighting on, when the terminal has colors " Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern. " Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running") if &t_Co > 2 || has("gui_running")
@@ -68,6 +51,7 @@ set showmode
set splitbelow set splitbelow
set splitright set splitright
" gestion des espaces et tab " gestion des espaces et tab
set ai " always set autoindenting on
set expandtab set expandtab
set shiftwidth=3 set shiftwidth=3
set tabstop=3 set tabstop=3
@@ -80,11 +64,8 @@ set smartindent
set nohlsearch set nohlsearch
set showmatch set showmatch
set binary noeol set binary noeol
set backspace=indent,eol,start
set laststatus=2 set laststatus=2
set nocompatible
set visualbell set visualbell
set ruler
" on fait un cd dans le répertoire du fichier ouvert " on fait un cd dans le répertoire du fichier ouvert
set autochdir set autochdir
set background=dark set background=dark