Ⅰ. 插件描述
A Vim plugin for Markdown editing focused on To-Do lists, supporting GitHub Flavored MarkdownⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'hawkins/touchdown-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'hawkins/touchdown-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'hawkins/touchdown-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/hawkins/touchdown.vim
Ⅳ. 文档说明
# Touchdown.vim
A Vim plugin for Markdown editing focused on To-Do lists, supporting GitHub Flavored Markdown
Features
- Folding markdown lists cleanly
Toggle bold around lines with
<leader>tb- Works with regular text lines, list items, and even check boxes
- Toggle checkboxes with
<leader>tt in list items - Indent/outdent with Tab/Shift+Tab
Installation
Using a tool like Vundle, simply add this plugin to your ~/.vimrc:
Plugin 'hawkins/Touchdown.vim'I also suggest you check out tpope/vim-markdown and vim-prettier for a better Markdown experience.
Options
You can set any of these options in your ~/.vimrc to configure how Touchdown operates:
g:touchdown__ignore_empty_bold: Set this to anything to disable adding**to an empty line when bold is toggled on that lineg:touchdown__no_indent: Set this to anything to disable Tab to indent and Shift+Tab to outdentg:touchdown__checkbox_states: Set this to an array of characters to rotate between when toggling a checkbox. Defaults to[' ', 'x', ' ']