[feature] gco for git checkout
, gsc for git switch -c
This commit is contained in:
parent
4fbfbb9e74
commit
862ef61d7f
|
@ -171,12 +171,14 @@ nnoremap <leader>gl :Glog<CR>
|
|||
nnoremap <leader>gms :Gvdiffsplit!<CR>
|
||||
nnoremap <leader>gmh :diffget //2<CR>
|
||||
nnoremap <leader>gml :diffget //3<CR>
|
||||
nnoremap <leader>gsc :exec "!git switch -c " . input("Enter new branch name:")<CR>
|
||||
|
||||
" ==== ctrlp configuration ====
|
||||
"let g:ctrlp_user_command = ['.git', 'git ls-files -co --exclude-standard']
|
||||
|
||||
" ==== fzf configuration ====
|
||||
nnoremap <C-p> :FZF<CR>
|
||||
nnoremap <leader>gco :call fzf#run({'source': 'git branch \| cut -c 3-', 'sink': '!git checkout'})<CR>
|
||||
|
||||
|
||||
" ==== gruvbox configuration ====
|
||||
|
|
Loading…
Reference in New Issue
Block a user