Skip to content

Edit fenced code blocks inside a GitHub Flavor Markdown in a better way

Notifications You must be signed in to change notification settings

vim-scripts/fenced-code-blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Introduction

Fenced code blocks are a very useful feature of GitHub Flavored Markdown. With this plugin you can edit the fragment of code embedded inside the markdown with the right filetype.

img

Install

If you use Vundle you can install this plugin using Vim command :BundleInstall amiorin/vim-fenced-code-blocks. Don't forget put a line Bundle 'amiorin/vim-fenced-code-blocks' in your .vimrc.

If you use Pathogen, you just execute following:

cd ~/.vim/bundle
git https://github.com/amiorin/vim-fenced-code-blocks.git

If you don't use either plugin management system, copy the plugin directory to your .vim directory.

*nix: $HOME/.vim Windows: $HOME/vimfiles

Use

This plugin defines 4 new commands:

  • :E to edit in the same window, CTRL-^ to go back to the markdown file
  • :EV to edit in the vertical split window, CTRL-W l to go back to the markdown file
  • :ES to edit in the horizontal split window, CTRL-W j to go back to the markdown file
  • :ET to edit in a new tab.

All the commands accept the bang.

Credits

Self-Promotion

Like this plugin?

License

Copyright (C) 2013 Alberto Miorin. Distributed under the MIT License.

About

Edit fenced code blocks inside a GitHub Flavor Markdown in a better way

Resources

Stars

Watchers

Forks

Packages

No packages published