nvim: Update vim-plug

While at it, ignore old plug file artifact.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-01-06 16:01:19 +05:30
parent aef4a3c885
commit d8778f264b
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
tmux/.tmux/resurrect tmux/.tmux/resurrect
nvim/.config/nvim/plugged nvim/.config/nvim/plugged
nvim/.config/nvim/.netrwhist nvim/.config/nvim/.netrwhist
plug.vim.old

View file

@ -1338,9 +1338,10 @@ function! s:bar()
endfunction endfunction
function! s:logpos(name) function! s:logpos(name)
for i in range(4, line('$')) let max = line('$')
for i in range(4, max > 4 ? max : 4)
if getline(i) =~# '^[-+x*] '.a:name.':' if getline(i) =~# '^[-+x*] '.a:name.':'
for j in range(i + 1, line('$')) for j in range(i + 1, max > 5 ? max : 5)
if getline(j) !~ '^ ' if getline(j) !~ '^ '
return [i, j - 1] return [i, j - 1]
endif endif