From 74382d3ab70e8f769f8cd90ebe8c62399ce5ddfd Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sun, 31 Jan 2021 17:45:29 +0100 Subject: [PATCH] update vim config --- conf.d/vim/vim/keybindings.vim | 17 +++++++++++++++-- conf.d/vim/vim/startscreen.vim | 3 ++- conf.d/vim/vimrc | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/conf.d/vim/vim/keybindings.vim b/conf.d/vim/vim/keybindings.vim index b834a7c..50255a8 100644 --- a/conf.d/vim/vim/keybindings.vim +++ b/conf.d/vim/vim/keybindings.vim @@ -29,10 +29,10 @@ map s :echom 'Source file' :so % imap ;; " Open a current file with sudo -map E :e suda://% +" map E :e suda://% " Save a current file with sudo -map W :w suda://% +" map W :w suda://% " Comment the target of a motion map / :Commentary @@ -44,6 +44,8 @@ map << " (Re|Un)do map uu +" Save as +map :saveas " ----- " }}} @@ -250,6 +252,17 @@ map :AddHeader " }}} +" Plug {{{ +" ----- + +map Pud :PlugUpdate +map Pug :PlugUpgrade +map Pui :PlugInstall + +" ----- +" }}} + + "" REPL {{{ "" ----- " diff --git a/conf.d/vim/vim/startscreen.vim b/conf.d/vim/vim/startscreen.vim index d815cf7..17fd6ed 100644 --- a/conf.d/vim/vim/startscreen.vim +++ b/conf.d/vim/vim/startscreen.vim @@ -44,7 +44,7 @@ endfunction function s:config_vim() return [ \ { 'line': 'général', 'cmd': 'edit ~/.vimrc' }, - \ { 'line': 'fonctions', 'cmd': 'edit ~/.vim/plug.vim' }, + \ { 'line': 'fonctions', 'cmd': 'edit ~/.vim/functions.vim' }, \ { 'line': 'raccourcis clavier', 'cmd': 'edit ~/.vim/keybindings.vim' }, \ { 'line': 'plugings', 'cmd': 'edit ~/.vim/plug.vim' }, \ { 'line': "cet écran d'accueil", 'cmd': 'edit ~/.vim/startscreen.vim' }, @@ -64,6 +64,7 @@ let g:startify_lists = [ let g:startify_bookmarks = [ \ '~/.config/', \ '~/Dotfiles/', + \ '~/Projets', \ '~/Projets/latex/latex-homework', \ '~/.asy' \ ] diff --git a/conf.d/vim/vimrc b/conf.d/vim/vimrc index dcdad35..1d3d761 100644 --- a/conf.d/vim/vimrc +++ b/conf.d/vim/vimrc @@ -426,7 +426,7 @@ let g:coc_disable_startup_warning = 1 " Colorizer {{{ " ----- -let g:colorizer_auto_filetype='css,html' +let g:colorizer_auto_filetype='css,html,xml,py,js' " ----- " }}}