Merge pull request #111 from low-ghost/master

Add neovim terminal files to history filter
This commit is contained in:
Junegunn Choi
2016-04-04 04:04:17 +09:00

View File

@@ -274,7 +274,7 @@ endfunction
function! s:all_files()
return extend(
\ filter(reverse(copy(v:oldfiles)),
\ "v:val !~ 'fugitive:\\|__Tagbar__\\|NERD_tree\\|^/tmp/\\|\\.git/'"),
\ "v:val !~ 'fugitive:\\|__Tagbar__\\|NERD_tree\\|^/tmp/\\|\\.git/\\|term://'"),
\ filter(map(s:buflisted(), 'bufname(v:val)'), '!empty(v:val)'))
endfunction