vim: add vim-fugitive

This commit is contained in:
Fernando Schauenburg 2022-01-26 00:08:29 +01:00
parent 8c530d5d2d
commit 34a4debbce
2 changed files with 7 additions and 0 deletions

View file

@ -62,6 +62,10 @@ register {
-- quickly change background
M('n', '<leader>bg', [[:let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]]),
-- use fugitive
M('n', '<leader>gg', ':G<cr>'),
M('n', '<leader>g<space>', ':G '),
-- disable highlight until next search
M('n', '<leader>h', ':nohlsearch<cr>'),

View file

@ -22,6 +22,9 @@ local plugins = function(use)
use 'godlygeek/tabular'
use 'tpope/vim-commentary'
-- git ----------------------------------------------------------------
use 'tpope/vim-fugitive'
-- Filetypes --------------------------------------------------------------
use 'elzr/vim-json'