1

I'm trying to set a custom keymapping to do debug-stepping with gdb and pyclewn, like this:

nnoremap <leader>ds :Cstep<CR>

Now when pressing . I'd like this to be repeated, since stepping is probably something I'm going to do often. I found repeat.vim and a helpful SO answer, so I tried this:

nnoremap <silent> <Plug>CCstep :Cstep <bar> silent! call repeat#set("\<Plug>CCstep", v:count)<CR>
nmap <leader>ds <Plug>CCstep

I also tried using :Cstep<CR>:silent [...] instead of :Cstep <bar> silent to seperate the two commands.

Both variants don't seem to work. I either get a blinking screen (bell) when pressing . or something random happens, like some chars getting deleted.

What am I doing wrong?

Community
  • 1
  • 1
The Compiler
  • 11,126
  • 4
  • 40
  • 54

0 Answers0