From e805643384b597e2167ed5ed9a30eeb5b84323ad Mon Sep 17 00:00:00 2001 From: Jean-Christophe Vanhalle Date: Tue, 13 Apr 2021 21:21:16 +0200 Subject: [PATCH] cleans up options --- .vimrc | 66 ++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/.vimrc b/.vimrc index c2b0f59..2a7b20b 100644 --- a/.vimrc +++ b/.vimrc @@ -3,32 +3,41 @@ behave mswin "let g:ale_completion_enabled = 1 call plug#begin("$XDG_CONFIG_HOME/vim/plugged") +" Git Plug 'airblade/vim-gitgutter' +" ALE Plug 'dense-analysis/ale' -Plug 'itchyny/lightline.vim' -Plug 'lifepillar/vim-solarized8' -Plug 'mustache/vim-mustache-handlebars' -Plug 'phpactor/phpactor', {'for': 'php', 'do': 'composer install --no-dev -o'} -Plug 'rhysd/vim-gfm-syntax' -Plug 'trusktr/seti.vim' -"Plug 'scrooloose/nerdtree' -Plug 'tpope/vim-vinegar' -"Plug 'xuyuanp/nerdtree-git-plugin' -Plug 'yegappan/mru' -Plug 'dikiaap/minimalist' +" PHP +Plug 'phpactor/phpactor', {'for': 'php', 'do': 'composer install --no-dev -o'} "PHP completion, refactoring, introspection tool and language server "Plug 'vim-vdebug/vdebug' -Plug 'uguu-org/vim-matrix-screensaver' "Plug 'neoclide/coc.nvim', {'branch': 'release'} -Plug 'chriskempson/tomorrow-theme' -Plug 'altercation/vim-colors-solarized' -Plug 'romainl/flattened' -Plug 'fneu/breezy' -Plug 'chrisbra/vim-autosave' -Plug 'junegunn/goyo.vim' Plug 'junegunn/limelight.vim' -Plug 'bilalq/lite-dfm' +" Motion and shortcuts Plug 'easymotion/vim-easymotion' +" Formating +Plug 'rhysd/vim-gfm-syntax' +Plug 'mustache/vim-mustache-handlebars' +" File stuff +Plug 'chrisbra/vim-autosave' Plug 'junegunn/fzf' +Plug 'yegappan/mru' +Plug 'tpope/vim-vinegar' " press '-' to browse +" Themes +Plug 'itchyny/lightline.vim' +Plug 'romainl/flattened' +"Plug 'trusktr/seti.vim' +"Plug 'dikiaap/minimalist' +"Plug 'lifepillar/vim-solarized8' +"Plug 'chriskempson/tomorrow-theme' +"Plug 'altercation/vim-colors-solarized' +"Plug 'fneu/breezy' +" Nerdtree +"Plug 'scrooloose/nerdtree' +"Plug 'xuyuanp/nerdtree-git-plugin' +" Various +"Plug 'junegunn/goyo.vim' "distraction free +"Plug 'bilalq/lite-dfm' "distration free +Plug 'uguu-org/vim-matrix-screensaver' call plug#end() @@ -41,12 +50,12 @@ colorscheme flattened_dark set background=dark "set t_Co=256 let g:lightline = { 'colorscheme': 'solarized', } -let &showbreak='+-> ' +"let &showbreak='+-> ' let &showbreak='⮑ ' let g:markdown_fenced_languages = ['sh', 'bash=sh', 'shell=sh', 'php', 'sql'] highlight MatchParen gui=bold guibg=NONE guifg=lightgrey cterm=bold ctermbg=NONE -set matchtime=0 "prevent cursor from jumping around when highlighting braces ? +"set matchtime=0 "prevent cursor from jumping around when highlighting braces ? set noshowmode "affiche le mode dans la ligne de statut set novisualbell "set vb t_vb="" @@ -54,7 +63,7 @@ set number "pas beau set title "affiche le titre du fichier dans le titlebar set titlestring=%F\ %r\ %m -"set mouse=a "souris dans le terminal +"set mouse=a "souris peux redimensionner des buffers set mouse=r "sélectionner texte à la souris dans le terminal set autochdir "change le rep. courant de vim pour celui du fichier en cours d'édition @@ -64,11 +73,13 @@ set ignorecase "ignore la casse pour la recherche "autocmd FileType c set cindent "indentation c quand filetype c :) -set expandtab "la touche TAB insère de vrais espaces +" TAB par défaut +set expandtab "la touche TAB insère de vrais espaces set shiftwidth=4 "nombre d'espaces utilisés pour l'INDENTATION (après un if, l'appui sur enter insère une nouvelle indentation de deux espaces) -set smartindent "modifie l'indentation si on est en fin de bloc (entre autre) -set softtabstop=4 "la touche TAB insère deux espaces -set tabstop=4 "le caractère TAB est interprété à l'écran comme deux espaces +set smartindent "modifie l'indentation si on est en fin de bloc (entre autre) +set softtabstop=4 "nombre de caractères insérés par TAB +set tabstop=4 "nombre de caractères que le caractère TAB affiche +" TAB par défaut set linebreak "coupe les lignes trop longues (au mot près) @@ -204,4 +215,5 @@ let g:vdebug_options= { \ "watch_window_style" : 'compact' \ } -let g:autosave_backup = '~/.local/share/vim-data/backup-plugin' +"let g:autosave_backup = '~/.local/share/vim-data/backup-plugin' +let g:autosave_backup = "$XDG_DATA_HOME/vim-data/backup_plugin"