From 4d5f06655af63377933891533c2c9287879009bf Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Thu, 7 Jun 2018 10:52:52 +0200 Subject: [PATCH] vim: add bufferhint plugin --- vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index ab79906..ad7813e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -26,6 +26,8 @@ if filereadable(expand("$HOME/.vim/bundle/vundle/README.md")) Plugin 'honza/vim-snippets' Plugin 'ton/vim-bufsurf' + Plugin 'bsdelf/bufferhint' + Plugin 'AndrewRadev/switch.vim' Plugin 'airblade/vim-gitgutter' @@ -115,6 +117,8 @@ set backupdir=~/.vim/tmp/backup let mapleader = "," +let g:bufferhint_MaxWidth = 200 + " FOLDING " { set foldenable @@ -146,6 +150,9 @@ nnoremap ,bf :bnext nnoremap ,Bp :BufSurfBack nnoremap ,Bf :BufSurfForward +nnoremap - :call bufferhint#Popup() +nnoremap \ :call bufferhint#LoadPrevious() + " delete into the black hole register nnoremap d "_d " }