Skip to content

Commit

Permalink
Automated backup using backup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
SwampertX committed Feb 25, 2021
1 parent d0fb616 commit 326035a
Show file tree
Hide file tree
Showing 4 changed files with 271 additions and 72 deletions.
11 changes: 10 additions & 1 deletion vim/.vim/autoload/plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ function! s:prepare(...)
call s:new_window()
endif

nnoremap <silent> <buffer> q :if b:plug_preview==1<bar>pc<bar>endif<bar>bd<cr>
nnoremap <silent> <buffer> q :call <SID>close_pane()<cr>
if a:0 == 0
call s:finish_bindings()
endif
Expand All @@ -957,6 +957,15 @@ function! s:prepare(...)
endif
endfunction

function! s:close_pane()
if b:plug_preview == 1
pc
let b:plug_preview = -1
else
bd
endif
endfunction

function! s:assign_name()
" Assign buffer name
let prefix = '[Plugins]'
Expand Down
Loading

0 comments on commit 326035a

Please sign in to comment.