this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cleanup nvim plugins

-77
-72
nvim/plugin/bclose.vim
··· 1 - " Delete buffer while keeping window layout (don't close buffer's windows). 2 - " Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165 3 - if v:version < 700 || exists('loaded_bclose') || &cp 4 - finish 5 - endif 6 - let loaded_bclose = 1 7 - if !exists('bclose_multiple') 8 - let bclose_multiple = 1 9 - endif 10 - 11 - " Display an error message. 12 - function! s:Warn(msg) 13 - echohl ErrorMsg 14 - echomsg a:msg 15 - echohl NONE 16 - endfunction 17 - 18 - " Command ':Bclose' executes ':bd' to delete buffer in current window. 19 - " The window will show the alternate buffer (Ctrl-^) if it exists, 20 - " or the previous buffer (:bp), or a blank buffer if no previous. 21 - " Command ':Bclose!' is the same, but executes ':bd!' (discard changes). 22 - " An optional argument can specify which buffer to close (name or number). 23 - function! s:Bclose(bang, buffer) 24 - if empty(a:buffer) 25 - let btarget = bufnr('%') 26 - elseif a:buffer =~ '^\d\+$' 27 - let btarget = bufnr(str2nr(a:buffer)) 28 - else 29 - let btarget = bufnr(a:buffer) 30 - endif 31 - if btarget < 0 32 - call s:Warn('No matching buffer for '.a:buffer) 33 - return 34 - endif 35 - if empty(a:bang) && getbufvar(btarget, '&modified') 36 - call s:Warn('No write since last change for buffer '.btarget.' (use :Bclose!)') 37 - return 38 - endif 39 - " Numbers of windows that view target buffer which we will delete. 40 - let wnums = filter(range(1, winnr('$')), 'winbufnr(v:val) == btarget') 41 - if !g:bclose_multiple && len(wnums) > 1 42 - call s:Warn('Buffer is in multiple windows (use ":let bclose_multiple=1")') 43 - return 44 - endif 45 - let wcurrent = winnr() 46 - for w in wnums 47 - execute w.'wincmd w' 48 - let prevbuf = bufnr('#') 49 - if prevbuf > 0 && buflisted(prevbuf) && prevbuf != w 50 - buffer # 51 - else 52 - bprevious 53 - endif 54 - if btarget == bufnr('%') 55 - " Numbers of listed buffers which are not the target to be deleted. 56 - let blisted = filter(range(1, bufnr('$')), 'buflisted(v:val) && v:val != btarget') 57 - " Listed, not target, and not displayed. 58 - let bhidden = filter(copy(blisted), 'bufwinnr(v:val) < 0') 59 - " Take the first buffer, if any (could be more intelligent). 60 - let bjump = (bhidden + blisted + [-1])[0] 61 - if bjump > 0 62 - execute 'buffer '.bjump 63 - else 64 - execute 'enew'.a:bang 65 - endif 66 - endif 67 - endfor 68 - execute 'bdelete'.a:bang.' '.btarget 69 - execute wcurrent.'wincmd w' 70 - endfunction 71 - 72 - command! -bang -complete=buffer -nargs=? Bclose call s:Bclose('<bang>', '<args>')
-2
nvim/plugin/bufferline.vim
··· 1 1 let g:bufferline_echo = 0 2 - " let g:bufferline_active_buffer_left = '' 3 - " let g:bufferline_active_buffer_right = ''
-3
nvim/plugin/guides.vim
··· 1 - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2 - " => Indent Guides 3 - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 4 1 let g:indent_guides_start_level = 1 5 2 let g:indent_guides_guide_size = 1