Git Product home page Git Product logo

mdown.vim's Introduction

mdown.vim

Neovim plugin that brings simple, but efficient, markdown preview within VIM.

It uses neovim's remote plugin feature to glue up together markdown-it, tiny-lr and vim's markdown buffers. Most of the plugin functionality is implemented in node (see ./rplugin/node/mdown.js).

It defines a couple of commands to preview and refresh markdown files from buffers.

:Mpreview to render and open a new webpage. This command is only available within Markdown buffers.

The plugin is also configured to re-render and trigger a LiveReload refresh while typing with :Mpreviewlive.

To stop updating the preview use :Mpreviewoff

You can change the look of the preview by using any of the themes available here using :Mdowntheme <theme name>, .ie :Mdowntheme Base16 Tomorrow

Install

Install this plugin using your favorite plugin manager, or manually by extracting the files in your ~/.vim or ~/.config/nvim directory.

Make sure to run npm install within the plugin directory when installed. Some package managers allows you to perform a post-install hook, like vim-plug or neobundle.

Example Using vim-plug

Plug 'neovim/node-host', { 'do': 'npm install' }
Plug 'vimlab/mdown.vim', { 'do': 'npm install' }

Once installed, make sure to "update remote plugins" by running :UpdateRemotePlugins

Example

5s demo

mdown.vim's People

Contributors

mklabs avatar

Watchers

Bruno Coelho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.