guns / xterm-color-table.vim

All 256 xterm colors with their RGB equivalents, right in Vim!
http://github.com/guns/xterm-color-table.vim
384 stars 37 forks source link

is toggle mapping f and t functioning? #6

Open Maxlufs opened 9 years ago

Maxlufs commented 9 years ago

Hi, not sure if it's just me. It doesn't seem to be working both the mappings of f and t. Nothing happens when i press them in the xterm-color-table buffer, or am i using it wrong? Thanks!

darlingm commented 9 years ago

Not sure why they can't be properly called... I get: modifiable is off, and when running set modifiable, I get E14: Invalid address To take the easy way out, I made :f show by default. Edit xterm-color-table.vim, and after the line autocmd BufNewFile __XtermColorTable__ call <SID>ColorTable()

Add the line autocmd BufNewFile __XtermColorTable__ call <SID>ToggleRgbVisibility()

I'm sure you can do something similar to call SetRgbForeground(expand('')), but I haven't done that.

aoswalt commented 4 years ago

It turns out that the recursive mappings are the culprit. I have created PR #11 to use non-recursive mappings.