Friday, February 19, 2016

Re: How to get rounded bullet list character

Hi Mac!

On Do, 18 Feb 2016, Mac Martine wrote:

> If you scroll down slightly in to the image showing an example of Vim
> notes, it has the round bullet points in fro of the list items:
> https://github.com/xolox/vim-notes
>
> How do you create those?

Install https://github.com/chrisbra/unicode.vim
insert "bullet" into your buffer and type <c-x><c-z> (in insert mode).

The result will look like this:
http://i.imgur.com/JEpvc1o.png

If you need easier access, you can either use the digraph (if there
exists one, it will be shown in parenthesis), or define your own digraph
for that character in your .vimrc

:exe printf("%s %d", ":dig **", 0x2022)

(note, this needs an :exe call, as :digraph does not yet understand hex
values).

And after restart, the next time you use <c-x><c-z> that digraph will
also be shown.

Note: The very first time you use the unicode plugin, it will need to
download and install the unicode database.


Best,
Christian

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: