Simple markup functionality for vim. Aimed at users of text files.

Henrique Paone 87bc4109cb More mappings for characters, toggle for automatic paragraph formatting, bullet icon properly behaves as a list 8 月之前
COPYING 612a35dcf2 First commit 11 月之前
README.md 3501f4ece4 Typo 11 月之前
text.vim 87bc4109cb More mappings for characters, toggle for automatic paragraph formatting, bullet icon properly behaves as a list 8 月之前

README.md

What is Vim-Markup?

Vim-markup is a collection of functionalities aimed at bringing richer text to vim text files and generally making dealing with simple text more pleasurable. It consists of a single text.vim file that works with the builtin vim filetype plugin.

Currently, it is not wholly complete, but its usable. I add features to it as I need, but feel free to request anything in particular.

Installation

First, clone or download this repository.

git clone 'https://notabug.org/paone/vim-markup.git'

Then copy over the text.vim.

cp vim-markup/text.vim ~/.vim/ftplugin/

Usage

Use asterisks (*) for bold, slashes (/) for italics and underlines (_) to underline text. To input literal asterisks, slashes or underlines, escape them (e.g \*). Special characters are acessed using the backslash (), for example, -> produces a →. To check which special characters are avaiable and how to input them, merely check the code.

Lastly, there is a function to fill the current line (up to the size of textwidth) with line characters (\hl) or dashes (\dl).