Is there a way to search inside the :digraph
table in VIM ? the \
is not working and my eyes are getting apart searching the glyphs I desire..
Asked
Active
Viewed 1,006 times
12

Enrico Pirani
- 1,387
- 3
- 13
- 22
4 Answers
12
try :h digraph-table
there you can do search with / or ?

Kent
- 189,393
- 32
- 233
- 301
-
Yes I know, but it does not covers all glyphs – Enrico Pirani Oct 07 '14 at 12:46
-
Actually, it should cover all glyphs. Which ones are missing? – Christian Brabandt Oct 07 '14 at 12:55
-
Yes you're right. I was stopping reading before the multibyte `:h digraph-table-mbyte`. – Enrico Pirani Oct 07 '14 at 13:22
-
@user1435633 my understanding of your requirement is to **search**, instead of **reading**. if you are looking for some char, do a `/` and paste the char after the `/` to find it in that help doc. – Kent Oct 07 '14 at 13:32
-
My answer was not clear. I find out now the help page relative to the digraph table in which you can actually do a search with `/` . Thanks for your advice. – Enrico Pirani Oct 07 '14 at 14:01
5
You can capture the actual :digraph
output in a scratch buffer via:
:redir @a | silent digraph | redir END | new +setl\ buftype=nofile\ bufhidden=wipe | put! a

Ingo Karkat
- 167,457
- 16
- 250
- 324
3
Besides the answers given, you can try my unicode-plugin
You can then use the :Digraphs foobar
to search for digraphs whose name match foobar

Christian Brabandt
- 8,038
- 1
- 28
- 32
0
Combining Ingo’s accepted answer, Bill Odom’s answer on directing ex commands to a buffer, and Capturing ex command output from the Vim Tips Wiki produces the following snippet for your .vimrc
.
function! TabDigraphs()
redir => message
silent digraphs
redir END
tabnew
setlocal buftype=nofile bufhidden=wipe
silent put =message
setlocal nomodified
endfunction
command! TabDigraphs call TabDigraphs()

Community
- 1
- 1

Greg Bacon
- 134,834
- 32
- 188
- 245