Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Bug fix for :doautocmd User PublishPre hook

I didn't realize that the `:doautocmd User` command is supposed to be
executed without a pathname argument. Because I DID provide a pathname
argument Vim misinterpreted the command arguments which meant the hook
didn't work...
  • Loading branch information...
commit 964e4dbb486f203ae7a1cb426af9491f44225db1 1 parent d865906
@xolox authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 publish.vim
4 publish.vim
@@ -1,6 +1,6 @@
" Vim plug-in
" Maintainer: Peter Odding <>
-" Last Change: June 5, 2010
+" Last Change: June 6, 2010
" URL:
" License: MIT
" Version: 1.5
@@ -42,11 +42,11 @@ function! Publish(source, target, files) abort
let given_source = s:FindOriginalPath(source_path)
let s:current_source_directory = fnamemodify(given_source, ':h')
silent execute 'edit!' fnameescape(source_path)
- silent execute 'doautocmd User PublishPre' fnameescape(source_path)
if g:publish_plaintext
let plaintext_path = xolox#path#merge(a:target, pathname . '.txt')
silent execute 'write!' fnameescape(plaintext_path)
+ silent execute 'doautocmd User PublishPre'
runtime syntax/2html.vim
if exists('tags_to_links_command')
silent execute tags_to_links_command
Please sign in to comment.
Something went wrong with that request. Please try again.