vim: add git binding

This commit is contained in:
Marco Thomas
2023-06-24 13:30:26 +02:00
parent d11b19a56f
commit 4cd55ff5f7

View File

@@ -16,13 +16,13 @@ call plug#begin()
Plug 'tpope/vim-sleuth' " heuristic file indendation Plug 'tpope/vim-sleuth' " heuristic file indendation
Plug 'jiangmiao/auto-pairs' " pair completion Plug 'jiangmiao/auto-pairs' " pair completion
Plug 'tpope/vim-fugitive' " git wrapper Plug 'tpope/vim-fugitive' " git wrapper
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary' " DWIM comments
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'sainnhe/everforest' " color scheme Plug 'sainnhe/everforest' " color scheme
Plug 'vim-airline/vim-airline' " a nicer status line Plug 'vim-airline/vim-airline' " nicer status line
Plug 'vim-airline/vim-airline-themes' " auto settings theme for airline Plug 'vim-airline/vim-airline-themes' " auto settings theme for airline
Plug 'autozimu/LanguageClient-neovim', { Plug 'autozimu/LanguageClient-neovim', {
@@ -124,6 +124,8 @@ command! -bang -nargs=* GGrep
map <C-p> :GFiles<CR> map <C-p> :GFiles<CR>
map <C-f> :GGrep map <C-f> :GGrep
cabbrev g Git
fun! TrimWhitespace() fun! TrimWhitespace()
let l:save = winsaveview() let l:save = winsaveview()
keeppatterns %s/\s\+$//e keeppatterns %s/\s\+$//e