diff --git a/vim/vim/keybindings.vim b/vim/vim/keybindings.vim index da43d94..334cd52 100644 --- a/vim/vim/keybindings.vim +++ b/vim/vim/keybindings.vim @@ -34,6 +34,16 @@ map E :e suda://% " Save a current file with sudo map W :w suda://% +" Comment the target of a motion +map / :Commentary + +" Indent line +map >> +map << + +" (Re|Un)do +map uu + " ----- " }}} @@ -50,12 +60,10 @@ command! -bang -nargs=? -complete=dir Files \ 0 \ ) map :echom 'Close buffer' :call BufClose() -map :e -map :enew -map :bn -map :bp -imap :bn -imap :bp +map :e +map :Startify +map :bn +map :bp " ----- " }}} @@ -285,6 +293,8 @@ map o :call GotoFile("") map ' ciw''P map " c""P +map [ c[]P +map { c{}P " Rewrap paragraph using map {gq}:echo "Rewrapped paragraph" diff --git a/vim/vimrc b/vim/vimrc index a57a634..f157b72 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -586,9 +586,10 @@ let g:spaceline_seperate_style = 'arrow-fade' let g:startify_custom_header = 'startify#center(startify#fortune#cowsay())' let g:startify_session_dir = '~/.vim/session' let g:startify_lists = [ - \ { 'type': 'files', 'header': ['MRU' . getcwd()] }, + \ { 'type': 'commands', 'header': ['FICHIER'] }, + \ { 'type': 'files', 'header': ['RÉCENTS'] }, + \ { 'type': 'bookmarks', 'header': ['SIGNETS'] }, \ { 'type': 'sessions', 'header': ['SESSIONS'] }, - \ { 'type': 'bookmarks', 'header': ['BOOKMARKS'] }, \ ] let g:startify_enable_special = 0 let g:startify_files_number = 10 @@ -600,6 +601,10 @@ let g:startify_bookmarks = [ \ '~/.vim/functions.vim', \ '~/Projets/latex/latex-homework' \ ] +let g:startify_commands = [ + \ ['Nouveau', 'enew'], + \ ['Aide', 'help reference'], + \ ] " ----- " }}}