Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ftplugin/markdown.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
augroup livedown
if g:livedown_autorun
if get(g:, 'livedown_autorun', 0)
au! BufWinEnter <buffer> LivedownPreview
endif

Expand Down
2 changes: 1 addition & 1 deletion ftplugin/mkd.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
augroup livedown
if g:livedown_autorun
if get(g:, 'livedown_autorun', 0)
au! BufWinEnter <buffer> LivedownPreview
endif

Expand Down
4 changes: 0 additions & 4 deletions plugin/livedown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ command! LivedownPreview :call s:LivedownPreview()
command! LivedownKill :call s:LivedownKill()
command! LivedownToggle :call s:LivedownToggle()

if !exists('g:livedown_autorun')
let g:livedown_autorun = 0
endif

if !exists('g:livedown_open')
let g:livedown_open = 1
endif
Expand Down