How to get rounded bullet list character

159 views
Skip to first unread message

Mac Martine

unread,
Feb 18, 2016, 9:33:04 PM2/18/16
to vim_use
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?

Chris Jones

unread,
Feb 18, 2016, 10:03:10 PM2/18/16
to vim_use
On Thu, Feb 18, 2016 at 07:31:40PM EST, 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?

Type:

CTRL+V u 2 0 2 2

You may want to map this to something more accessible...

CJ

Sam Burk

unread,
Feb 18, 2016, 10:04:14 PM2/18/16
to vim...@googlegroups.com
On Feb 18, 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?

In the example you gave, it was written in Markdown. If you're using Markdown,
it can either be written with a "*" or a "-" character. You'll only see the
bullet after it's been rendered as HTML, though, as in on that Github page.

If you want to type that literal character into a file in Vim, you could
define an abbreviation like the one below:

iabbrev *** •

Now every time you type three asterisks in insert mode, Vim will change it to
that bullet. You can change the asterisks to whatever you want.

Matt Ackeret

unread,
Feb 18, 2016, 10:05:32 PM2/18/16
to vim_use
On Thu, 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?



option-8

I just typed it that way here in vim..

(ok, I'm biased to what platform I'm on!)

Chris Jones

unread,
Feb 18, 2016, 10:19:44 PM2/18/16
to vim_use
On Thu, Feb 18, 2016 at 07:31:40PM EST, Mac Martine wrote:

... if your system supports the Compose key mechanism... and you are
using the US locale... hitting the Compose key and ". =" (without the
quotes) in succession will provide a system-wide solution.

CJ

Ben Fritz

unread,
Feb 18, 2016, 11:22:18 PM2/18/16
to vim_use
I'd prefer using a digraph:

digraph li 8226 " Bullet

Then type CTRL_K followed by "li" in insert mode to get the character.

Bram Moolenaar

unread,
Feb 19, 2016, 7:31:36 AM2/19/16
to Ben Fritz, vim_use
Is this "li" some standard? I notice this entry is missing from the Vim
digraphs, perhaps that list needs to be updated.

--
You had connectors? Eeee, when I were a lad we 'ad to carry the
bits between the computer and the terminal with a spoon...

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Christian Brabandt

unread,
Feb 19, 2016, 7:45:36 AM2/19/16
to vim_use
Hi Mac!
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

Guyzmo

unread,
Feb 19, 2016, 10:10:23 AM2/19/16
to vim_use
Hi Mac, Christian,

On Fri, Feb 19, 2016 at 01:45:28PM +0100, Christian Brabandt wrote:
> 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

or you can directly use the digraph: `<C-k>Sb` which outputs: `∙`. From
`:he digraph`:

∙ Sb 2219 8729 BULLET OPERATOR

or you could use the compose key feature (using Xorg or some hacks on
OSX/Windows) to use one of your modifier keys to behave like <C-k> but
throughout your system.

For Xorg, OSX and Windows:

http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm
http://lolengine.net/blog/2012/06/17/compose-key-on-os-x
https://github.com/samhocevar/wincompose

Beware that on OSX the compose key does not work with MacVim — and I'm
still trying to figure out a way around), but hopefully you still have
the digraphs — I just wish the digraphs and the compose key schemes
would be the same ☺ ).

Since I have that, I'm having a lot of fun featuring any text I type
with unicode characters like: →, ⇒, •, ☺, ① ② …, — or even the
non-secable space ` `. I've also added a few ones just for the fun:
🍻 , 🐦 or 🖕 :-)

HTH,

--
Guyzmo

Ben Fritz

unread,
Feb 19, 2016, 11:12:19 AM2/19/16
to vim_use, fritzo...@gmail.com
On Friday, February 19, 2016 at 6:31:36 AM UTC-6, Bram Moolenaar wrote:
> >
> > I'd prefer using a digraph:
> >
> > digraph li 8226 " Bullet
> >
> > Then type CTRL_K followed by "li" in insert mode to get the character.
>
> Is this "li" some standard? I notice this entry is missing from the Vim
> digraphs, perhaps that list needs to be updated.
>

No standard, I just used it because it reminded me of <li> in HTML for list items in an <ul> element.

Nikolay Aleksandrovich Pavlov

unread,
Feb 19, 2016, 12:18:19 PM2/19/16
to vim...@googlegroups.com
2016-02-19 18:09 GMT+03:00 'Guyzmo' via vim_use <vim...@googlegroups.com>:
> Hi Mac, Christian,
>
> On Fri, Feb 19, 2016 at 01:45:28PM +0100, Christian Brabandt wrote:
>> 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
>
> or you can directly use the digraph: `<C-k>Sb` which outputs: `∙`. From
> `:he digraph`:
>
> ∙ Sb 2219 8729 BULLET OPERATOR

U+2219 BULLET OPERATOR is a math operator, U+2022 BULLET suggested
earlier is a proper variant. Though this depends on font, I cannot
imagine a font where BULLET OPERATOR is *that* bold as on screenshots.
But for BULLET which is designed for lists and not for math
expressions being that bold is fine.

>
> or you could use the compose key feature (using Xorg or some hacks on
> OSX/Windows) to use one of your modifier keys to behave like <C-k> but
> throughout your system.
>
> For Xorg, OSX and Windows:
>
> http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm
> http://lolengine.net/blog/2012/06/17/compose-key-on-os-x
> https://github.com/samhocevar/wincompose
>
> Beware that on OSX the compose key does not work with MacVim — and I'm
> still trying to figure out a way around), but hopefully you still have
> the digraphs — I just wish the digraphs and the compose key schemes
> would be the same ☺ ).
>
> Since I have that, I'm having a lot of fun featuring any text I type
> with unicode characters like: →, ⇒, •, ☺, ① ② …, — or even the
> non-secable space ` `. I've also added a few ones just for the fun:
> 🍻 , 🐦 or 🖕 :-)
>
> HTH,
>
> --
> Guyzmo
>
> --
> --
> 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+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Marvin Renich

unread,
Feb 19, 2016, 12:49:15 PM2/19/16
to vim_use
* 'Guyzmo' via vim_use <vim...@googlegroups.com> [160219 10:10]:
> or you can directly use the digraph: `<C-k>Sb` which outputs: `∙`. From
> `:he digraph`:
>
> ∙ Sb 2219 8729 BULLET OPERATOR
>
> or you could use the compose key feature (using Xorg or some hacks on
> OSX/Windows) to use one of your modifier keys to behave like <C-k> but
> throughout your system.

On my system (Debian stretch) with locale en_US.UTF-8, Compose .= gives
the 0x2022 bullet (in the Unicode General Punctuation section; 2219 is
in the Mathematical Operators section). The fact that the vim digraph
uses a different bullet is obviously a historical artifact. Perhaps .=
could be added to the digraph table to match the X Compose sequence
(i.e. with 2022 rather than 2219).

> http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm

On Debian, the correct place to set your compose key is in
/etc/default/keyboard. It will then work in a text console (e.g.
Alt-Ctrl-F1) as well as in X. Add a line like:

XKBOPTIONS="compose:rwin"

Editing xorg.conf, as suggested in the above page, may be necessary on
systems that don't have the equivalent of the Debian console-setup
package, but then it won't work in a text console.

> Since I have that, I'm having a lot of fun featuring any text I type
> with unicode characters like: →, ⇒, •, ☺, ① ② …, — or even the
> non-secable space ` `. I've also added a few ones just for the fun:
> 🍻 , 🐦 or 🖕 :-)

Where do you get a list of Compose sequences? The above page is
out-of-date (and doesn't have any indication of when it was written :-P)
so it's suggestion of /usr/X11R6/lib/X11/... is wrong. On my system, it
is in /usr/share/X11/locale/..., but the Compose file for my locale only
has a few entries, and there are many more combinations that work. I
haven't found any way to get the complete list of combinations.

Thanks...Marvin

Marvin Renich

unread,
Feb 19, 2016, 12:56:40 PM2/19/16
to vim_use
* Marvin Renich <mr...@renich.org> [160219 12:49]:
> so it's suggestion of /usr/X11R6/lib/X11/... is wrong. On my system, it

s/it's/its/

(I should have proofread before sending!)

...Marvin

Nikolay Aleksandrovich Pavlov

unread,
Feb 19, 2016, 3:20:01 PM2/19/16
to vim...@googlegroups.com
2016-02-19 20:49 GMT+03:00 Marvin Renich <mr...@renich.org>:
> * 'Guyzmo' via vim_use <vim...@googlegroups.com> [160219 10:10]:
>> or you can directly use the digraph: `<C-k>Sb` which outputs: `∙`. From
>> `:he digraph`:
>>
>> ∙ Sb 2219 8729 BULLET OPERATOR
>>
>> or you could use the compose key feature (using Xorg or some hacks on
>> OSX/Windows) to use one of your modifier keys to behave like <C-k> but
>> throughout your system.
>
> On my system (Debian stretch) with locale en_US.UTF-8, Compose .= gives
> the 0x2022 bullet (in the Unicode General Punctuation section; 2219 is
> in the Mathematical Operators section). The fact that the vim digraph
> uses a different bullet is obviously a historical artifact. Perhaps .=

I do not think that this digraph was plannet to insert a *bullet*.
Adjacent entries in the `:h digraph-table` are MINUS-OR-PLUS SIGN,
ASTERISK OPERATOR, RING OPERATOR, {BULLET OPERATOR}, SQUARE ROOT,
PROPORTIONAL TO, INFINITY. As you see everything here is math, as well
as BULLET OPERATOR itself.

> could be added to the digraph table to match the X Compose sequence
> (i.e. with 2022 rather than 2219).
>
>> http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm
>
> On Debian, the correct place to set your compose key is in
> /etc/default/keyboard. It will then work in a text console (e.g.
> Alt-Ctrl-F1) as well as in X. Add a line like:
>
> XKBOPTIONS="compose:rwin"
>
> Editing xorg.conf, as suggested in the above page, may be necessary on
> systems that don't have the equivalent of the Debian console-setup
> package, but then it won't work in a text console.
>
>> Since I have that, I'm having a lot of fun featuring any text I type
>> with unicode characters like: →, ⇒, •, ☺, ① ② …, — or even the
>> non-secable space ` `. I've also added a few ones just for the fun:
>> 🍻 , 🐦 or 🖕 :-)
>
> Where do you get a list of Compose sequences? The above page is
> out-of-date (and doesn't have any indication of when it was written :-P)
> so it's suggestion of /usr/X11R6/lib/X11/... is wrong. On my system, it
> is in /usr/share/X11/locale/..., but the Compose file for my locale only
> has a few entries, and there are many more combinations that work. I
> haven't found any way to get the complete list of combinations.
>
> Thanks...Marvin
>

Marvin Renich

unread,
Feb 19, 2016, 3:38:23 PM2/19/16
to vim...@googlegroups.com
* Nikolay Aleksandrovich Pavlov <zyx...@gmail.com> [160219 15:20]:
> I do not think that this digraph was plannet to insert a *bullet*.
> Adjacent entries in the `:h digraph-table` are MINUS-OR-PLUS SIGN,
> ASTERISK OPERATOR, RING OPERATOR, {BULLET OPERATOR}, SQUARE ROOT,
> PROPORTIONAL TO, INFINITY. As you see everything here is math, as well
> as BULLET OPERATOR itself.

That's fine; I wasn't suggesting the removal of the existing BULLET
OPERATOR digraph. That does explain why that specific bullet is in the
table.

My point was that Vim would benefit from the addition of the BULLET from
the General Punctuation section, as well. Using the same digraph used by
the X Compose key (.=) would be the obvious choice.

...Marvin

Tony Mechelynck

unread,
Feb 19, 2016, 4:03:35 PM2/19/16
to vim...@googlegroups.com
On my system (openSUSE lEAP 42.1), the various
/usr/share/X11/locale/*/Compose vary greatly in length, from 44 (44
empty lines) for C to 564170 bytes for en_US.UTF-8 (which has entries
for incredibly many scripts).
Most (but not all) lines require a <Multi_key> (or Compose key) which
is always followed by at least two other keystrokes, so it is not (I
presume) the AltGr key present on my Belgian AZERTY keyboard. I'm not
sure what it is or whether I've got it.

Best regards,
Tony.

Marvin Renich

unread,
Feb 19, 2016, 8:30:34 PM2/19/16
to vim...@googlegroups.com
* Tony Mechelynck <antoine.m...@gmail.com> [160219 16:03]:
> On my system (openSUSE lEAP 42.1), the various
> /usr/share/X11/locale/*/Compose vary greatly in length, from 44 (44
> empty lines) for C to 564170 bytes for en_US.UTF-8 (which has entries
> for incredibly many scripts).
> Most (but not all) lines require a <Multi_key> (or Compose key) which
> is always followed by at least two other keystrokes, so it is not (I
> presume) the AltGr key present on my Belgian AZERTY keyboard. I'm not
> sure what it is or whether I've got it.

Okay, now I am really embarrassed! I looked at en_US.UTF-8/Compose
several times (with less) and could swear it only had a couple dozen
lines! My terminal window has 72 lines, and less displayed 27 lines of
text at the bottom of the screen, which is the behavior I expect for a
file with 27 lines. The reality is that the file has 6039 lines, the
first 44 of which are blank! It does indeed appear to have all the
Compose combinations in it.

Thanks Tony!

I had actually Googled a couple weeks ago (unrelated to this thread) to
figure out how to set up the compose key, so I may be mis-remembering,
but some of the pages said that AltGr is the default Compose key for X,
and some people said it worked and others said it didn't.

You can try it on your system by pressing AltGr ' e (the Compose key
acts as a prefix, not a shift-type key). This will display é if it
works. If that doesn't work you can try setting XKBOPTIONS as described
in my previous message. I'm not sure what values are legal for compose;
I know rwin and menu work (I use menu).

...Marvin

Tony Mechelynck

unread,
Feb 20, 2016, 12:24:37 AM2/20/16
to vim...@googlegroups.com
less will tell you at which percentage of the file you are, but when
reading from a pipe it does so only after having got to the end. Some
of its keystrokes are similar to Vim's, but not always identical: G
goes to the end then g goes back to the begin and now you have
percentages. When reading from a file (such as that Compose file) it
gives you percentages immediately on its status line near the bottom
left of the terminal.


AltGr on my system is strictly a "press and hold" key, in the same
family as Shift, Ctrl and Alt, see
http://users.skynet.be/antoine.mechelynck/other/keybbe.htm
On my keyboard it produces a number of dead keys, and also some which
aren't dead: e.g. AltGr+s → ß, AltGr+Shift+l-as-lima →Ł, AltGr+o → œ,
etc.; or AltGr+ù followed by o → ó, AltGr+Shift+µ followed by u → ŭ,
AltGr+comma followed by Shift+c → Ç, etc.
Press and release AltGr followed by 'e gives 'e, and AltGr+apostrophe
(i.e., press and hold AltGr, press and release apostrophe, release
AltGr) gives ¼ so that doesn't work either. (Press and hold AltGr,
press and release apostrophe, press and release e, release AltGr gives
¼€ because € is AltGr+e). I have a precomposed é (2 without Shift) but
É is AltGr+ù (giving dead-acute) followed by Shift+e. I wouldn't want
to lose all these combinations.
When I need something which my keyboard hasn't got, I put it on the
clipboard in Vim (using i_CTRL-V_digit in a ":let @+ =" statement on
the command-line); or else for those I expect to be using repeatedly
(such as the bullet but also the em-dash, the ellipsis, the white and
black florets, …) I have them preset in the "Character Palette"
extension to SeaMonkey (or Firefox or Thunderbird) so I can put them
on the clipboard without switching out of the browser or of the
mailer. For those I'd expect to be using mostly in Vim I would create
digraphs if they hadn't yet got one.


Best regards,
Tony.

Bram Moolenaar

unread,
Feb 20, 2016, 9:28:12 AM2/20/16
to Marvin Renich, vim_use

Marvin Renich wrote:

> * 'Guyzmo' via vim_use <vim...@googlegroups.com> [160219 10:10]:
> > or you can directly use the digraph: `<C-k>Sb` which outputs: `∙`. From
> > `:he digraph`:
> >
> > ∙ Sb 2219 8729 BULLET OPERATOR
> >
> > or you could use the compose key feature (using Xorg or some hacks on
> > OSX/Windows) to use one of your modifier keys to behave like <C-k> but
> > throughout your system.
>
> On my system (Debian stretch) with locale en_US.UTF-8, Compose .= gives
> the 0x2022 bullet (in the Unicode General Punctuation section; 2219 is
> in the Mathematical Operators section). The fact that the vim digraph
> uses a different bullet is obviously a historical artifact. Perhaps .=
> could be added to the digraph table to match the X Compose sequence
> (i.e. with 2022 rather than 2219).

The Vim digraphs come from RFC 1345. It does not list 2022.
I don't see an update to this standard.

Where does Debian get it's digraphs? Is there another standard?

The .= digraph is currently unused, we could add it for 2022. But is
that the only one missing?

> > http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm
>
> On Debian, the correct place to set your compose key is in
> /etc/default/keyboard. It will then work in a text console (e.g.
> Alt-Ctrl-F1) as well as in X. Add a line like:
>
> XKBOPTIONS="compose:rwin"
>
> Editing xorg.conf, as suggested in the above page, may be necessary on
> systems that don't have the equivalent of the Debian console-setup
> package, but then it won't work in a text console.
>
> > Since I have that, I'm having a lot of fun featuring any text I type
> > with unicode characters like: →, ⇒, •, ☺, ① ② …, — or even the
> > non-secable space ` `. I've also added a few ones just for the fun:
> > 🍻 , 🐦 or 🖕 :-)
>
> Where do you get a list of Compose sequences? The above page is
> out-of-date (and doesn't have any indication of when it was written :-P)
> so it's suggestion of /usr/X11R6/lib/X11/... is wrong. On my system, it
> is in /usr/share/X11/locale/..., but the Compose file for my locale only
> has a few entries, and there are many more combinations that work. I
> haven't found any way to get the complete list of combinations.
>
> Thanks...Marvin

--
Veni, Vidi, Video -- I came, I saw, I taped what I saw.
Reply all
Reply to author
Forward
0 new messages