12

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..

Enrico Pirani
  • 1,387
  • 3
  • 13
  • 22

4 Answers4

12

try :h digraph-table there you can do search with / or ?

Kent
  • 189,393
  • 32
  • 233
  • 301
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