Live markdown preview for Vim on macOS
Clone or download
Latest commit 7e27f6f Jul 29, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Update README Mar 15, 2015
plugin Find chrome tab whose URL starts with the expected prefix Jul 29, 2017
.gitignore Ignore '/plugin/ext/xsize' Aug 18, 2015
Makefile Add clean target Dec 20, 2014 Asynchronous rendering with Vim 8 job/timer API Jul 17, 2017


Markdown preview on OS X. Uses AppleScript to resize the windows.

Vim 8 is required for asynchronous rendering.


Xmark> on iTerm2

Xmark< on MacVim


Xmark requires Homebrew and Google Chrome.


Using vim-plug:

Plug 'junegunn/vim-xmark', { 'do': 'make' }


:Xmark command is added for Markdown files. After running the command, the rendered content will be reloaded on the browser every time you save the file.

" Does not resize nor move the windows

" Vim on the left, browser on the right

" On the left

" On the top

" On the bottom

" Reload the page and resize the windows by saving it

" Turn off Xmark

If you see an error (e.g. osascript is not allowed assistive access), make sure that your terminal emulator (or MacVim) is in the list in System Preferences -> Security & Privacy -> Privacy -> Accessibility. (You can drag and drop the application icon to the list.)

Known issues

  • Resizing does not work if the terminal emulator is in fullscreen mode