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 set fileencodings=ucs-bom,utf-8,latin1
endif 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 viminfo='20,\"50 " read/write a .viminfo file, don't store more
"set backup " keep a backup file " than 50 lines of registers
set viminfo='20,\"50 " read/write a .viminfo file, don't store more set history=50 " keep 50 lines of command line history
" than 50 lines of registers set ruler " show the cursor position all the time
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 " Only do this part when compiled with support for autocommands
if has("autocmd") if has("autocmd")
@@ -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