Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

将 BufEnter 事件改为了 BufWinEnter
  • Loading branch information...
commit 675b78dfba735b6195b8916b0eb2cf08084c3d18 1 parent 779e73a
依云 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  plugin/vimwiki.vim
2  plugin/vimwiki.vim
@@ -298,7 +298,7 @@ endfor
298 298 augroup vimwiki
299 299 autocmd!
300 300 for ext in keys(extensions)
301   - exe 'autocmd BufEnter *'.ext.' call s:setup_buffer_enter()'
  301 + exe 'autocmd BufWinEnter *'.ext.' call s:setup_buffer_enter()'
302 302 exe 'autocmd BufLeave,BufHidden *'.ext.' call s:setup_buffer_leave()'
303 303 " lilydjwg: 不要自动设置文件类型;.wiki 不一定是 vimwiki
304 304 " exe 'autocmd BufNewFile,BufRead, *'.ext.' setlocal filetype=vimwiki'

0 comments on commit 675b78d

Please sign in to comment.
Something went wrong with that request. Please try again.