réorganisation

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

33
vimrc
View File

@@ -2,14 +2,12 @@ if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
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
" than 50 lines of registers
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
" Only do this part when compiled with support for autocommands
if has("autocmd")
@@ -29,21 +27,6 @@ if has("autocmd")
augroup END
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
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
@@ -68,6 +51,7 @@ set showmode
set splitbelow
set splitright
" gestion des espaces et tab
set ai " always set autoindenting on
set expandtab
set shiftwidth=3
set tabstop=3
@@ -80,11 +64,8 @@ set smartindent
set nohlsearch
set showmatch
set binary noeol
set backspace=indent,eol,start
set laststatus=2
set nocompatible
set visualbell
set ruler
" on fait un cd dans le répertoire du fichier ouvert
set autochdir
set background=dark