Permalink
Browse files

修改 vimwiki,使得其能在一开始就正确高亮链接

将 BufEnter 事件改为了 BufWinEnter
  • Loading branch information...
1 parent 779e73a commit 675b78dfba735b6195b8916b0eb2cf08084c3d18 @lilydjwg committed Nov 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/vimwiki.vim
View
2 plugin/vimwiki.vim
@@ -298,7 +298,7 @@ endfor
augroup vimwiki
autocmd!
for ext in keys(extensions)
- exe 'autocmd BufEnter *'.ext.' call s:setup_buffer_enter()'
+ exe 'autocmd BufWinEnter *'.ext.' call s:setup_buffer_enter()'
exe 'autocmd BufLeave,BufHidden *'.ext.' call s:setup_buffer_leave()'
" lilydjwg: 不要自动设置文件类型;.wiki 不一定是 vimwiki
" exe 'autocmd BufNewFile,BufRead, *'.ext.' setlocal filetype=vimwiki'

0 comments on commit 675b78d

Please sign in to comment.