Explorar o código

Update the mru file using the BufEnter autocmd

Martin Roa Villescas %!s(int64=4) %!d(string=hai) anos
pai
achega
aee970a6b4
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      plugin/mru.vim

+ 2 - 4
plugin/mru.vim

@@ -946,10 +946,8 @@ endfunc
 call s:MRU_LoadList()
 
 " MRU autocommands {{{1
-" Autocommands to detect the most recently used files
-autocmd BufRead * call s:MRU_AddFile(expand('<abuf>'))
-autocmd BufNewFile * call s:MRU_AddFile(expand('<abuf>'))
-autocmd BufWritePost * call s:MRU_AddFile(expand('<abuf>'))
+" Autocommands to update the most recently used files
+autocmd BufEnter * call s:MRU_AddFile(expand('<abuf>'))
 
 " The ':vimgrep' command adds all the files searched to the buffer list.
 " This also modifies the MRU list, even though the user didn't edit the