-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for motion commands #80
Comments
This is surely missing thing, |
@tyru, same issue. 5gcc. nnoremap <silent> <Plug>(caw:range:toggle) :<C-u>call <SID>cawRangeToggle()<CR>
function! s:cawRangeToggle() abort
if v:count > 1
let winView = winsaveview()
execute "normal V". (v:count - 1) ."j\<Plug>(caw:hatpos:toggle)"
call winrestview(winView)
else
execute "normal \<Plug>(caw:hatpos:toggle)"
endif
endfunction |
Hi @tyru, sorry for the late reply. I was not aware of this setting, I think it works for now. I do prefer Thanks! |
Another solution here: nmap gcc <Plug>(caw:hatpos:toggle:operator)_
xmap gcc <Plug>(caw:hatpos:toggle:operator) This is |
ah, it needs vim-operator-user, but very neat :) |
Is it possible to support motion commands when commenting? Specifically, I wish to do
5gcc
to toggle comments on the next five lines. This is a feature I sorely miss from NerdCommenter My current alternative is to visually select the 5 lines, thengcc
to comment them out; this is much slower however.Thanks!
The text was updated successfully, but these errors were encountered: