فهرست منبع

Re-enable BufRead, BufNewFile, and BufWritePost autocmds

Martin Roa Villescas 4 سال پیش
والد
کامیت
a8d15b77b9
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      plugin/mru.vim

+ 3 - 0
plugin/mru.vim

@@ -947,6 +947,9 @@ call s:MRU_LoadList()
 
 " MRU autocommands {{{1
 " Autocommands to update 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>'))
 autocmd BufEnter * call s:MRU_AddFile(expand('<abuf>'))
 
 " The ':vimgrep' command adds all the files searched to the buffer list.