itchyny / screensaver.vim

Screensavers for Vim
http://www.vim.org/scripts/script.php?script_id=5092
MIT License
52 stars 3 forks source link

Need help: `:ScreenSaver` causes `Error detected while processing function screensaver#..screensaver#util#nmapall:` #7

Closed nyngwang closed 1 year ago

nyngwang commented 1 year ago
Error detected while processing function screensaver#new[14]..35[5]..42[4]..screensaver#util#nmapall:
line    8:
E488: Trailing characters: Plug>(screensaver_end):  <Plug>(screensaver_end)
Press ENTER or type command to continue
itchyny commented 1 year ago

Let me know the result of :echo map(filter(map(split(execute('nmap'), '\n'), 'v:val[3:]'), 'v:val !~# "screensaver\\|^<Plug>\\|^<[-A-Z]\\+> " && v:val =~# "^\\S\\S\\+"'), 'substitute(v:val, "\\s.*", "", "")')

nyngwang commented 1 year ago

@itchyny It's:

['<Space>lrr', '[d', ']d', '<M-n>', '<M-p>', '<Space>aÞ', '<Space>glÞ', '<Space>ghÞ', '<Space>gbÞ', '<Space>gÞ', '<Space>]Þ', '<Space>sÞ', '<Space>cÞ', '<Space>qlÞ', '<Spac
e>qÞ', '<Space>bÞ', '<Space>tÞ', '<Space>lsÞ', '<Space>lgÞ', '<Space>lrÞ', '<Space>lÞ', '<Space>[Þ', '<Space>Þ', '<Space>', '<Space>sr', '<Space>ss', '<Space>sm', '<Space>l
sd', '<Space>ac', '<Space>glb', '<Space>gbr', '<Space>ghu', '<Space>ghr', '<Space>ghs', '<Space>qlq', '<Space>qll', '<Space>gc', '<Space>gf', '<Space>gs', '<Space>lgr', '<S
pace>lgd', '<Space>cp', '<Space>br', '<Space>bd', '<Space>cl', '<Space>ar', '<Space>tp', '<Space>tc', '<Space>tn', '<Space><Space>', '<Space>r', '!iÞ', '!aÞ', '!Þ', '<iÞ',
'<aÞ', '<Þ', '>iÞ', '>aÞ', '>Þ', '@Þ', '[Þ', '[c', '[%', '[t', ']Þ', ']c', ']%', ']t', 'caÞ', 'ciÞ', 'cÞ', 'cq', 'cs', 'cz', 'cc', 'daÞ', 'diÞ', 'dÞ', 'ds', 'guiÞ', 'guaÞ',
 'guÞ', 'gUiÞ', 'gUaÞ', 'gUÞ', 'g~iÞ', 'g~aÞ', 'g~Þ', 'gÞ', 'gcA', 'gcO', 'gco', 'gbc', 'gcc', 'gb', 'gc', 'gx', 'g%', 'viÞ', 'vaÞ', 'vÞ', 'yaÞ', 'yiÞ', 'yÞ', 'ys', 'zfiÞ',
 'zfaÞ', 'zfÞ', 'zÞ', 'zz', 'zc', '<C-W>Þ', '<M-Tab>', '<M-w>', '<C-W>a', '<C-W>m', '<C-W>|', '<C-W>_', '<C-W>=', '<C-W><C-W>', '<M-0>', '<M-9>', '<M-8>', '<M-4>', '<M-3>',
 '<M-2>', '<M-1>', '<C-W>e', '<M-?>']

(I don't even know wtf Þ is, lol. I never use this key in any of my keymap)

itchyny commented 1 year ago

Thank you for sharing the result, I understand the problem (mapping including |) and fixed the issue.

nyngwang commented 1 year ago

Yay, now I have a beautiful digi-clock again :)

nyngwang commented 1 year ago

@itchyny It seems that the cursor is missing(no highlight or something) after this fix. It's also possible that this might be a cross-plugin bug.

itchyny commented 1 year ago

@nyngwang Please open a new issue with self-explained reproducing steps.