-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with vim-markdownfmt #43
Comments
Any movement on this one? I concur it would be nice for vim users. |
I'm doing it using |
@greut thanks! |
@greut works pretty good so far. Any idea on how to retain the position in the document after the format is ran? |
@greut figured it out with a little function and some help from http://vi.stackexchange.com/a/10700 " Format Markdown files.
function! MarkdownFormat()
let save_pos = getpos(".")
let query = getreg('/')
execute ":0,$!tidy-markdown"
call setpos(".", save_pos)
call setreg('/', query)
endfunction
au BufWritePre *.md :call MarkdownFormat() |
@wavded even better! Thanks mate. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vim-markdownfmt works with
gomd
andmarkdownfmt
but not this one as it seems that it's not operating on the same file: the-w
option.Any chances to get this working?
Cheers
The text was updated successfully, but these errors were encountered: