XVimProject/XVim

:xccmd commentAndUncommentCurrentLines not responsive with Xcode 8

Closed this issue ยท 2 comments

Description

Starting with XCode 8 the comment/uncomment is not working, no response. I tried manually entering it, no response.

Here is the line from my .xvimrc
nnoremap gcc :xccmd commentAndUncommentCurrentLines<CR>

Operation

Same behavior on any text. No response to the command.

Expected behaviour

Should comment out line (I have other :xccmd commands in my xvimrc which seem to work just fine).

Environments

  • Xcode Version [Version 8.0 (8A218a)]
  • XVim branch and revision [Master branch version: for_xcode4-488-g3eb09a6]
  • Keyboard Language [Engilsh]
  • Input source language [English]

Crash log (if any)

N/A

keith commented

It seems like the function name for this has changed. You can change this to directly use the menu item. I have this in my xvimrc:

nnoremap gcc :xcmenucmd Comment Selection<CR>
vnoremap gc  :xcmenucmd Comment Selection<CR>

Yes, Keith's solution is working for me, and I'm still running off the same
xcode and xvim versions stated in the original crash report above.

On Mon, Oct 24, 2016, 4:44 AM Christoffer Buchholz notifications@github.com
wrote:

This is not working for me in Xcode 8 nor Xcode 8.1 beta. Is it still
working for you guys?

โ€”
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
#997 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACQRSmO5Cjrp5b5CLwSKecrnkGld1LoRks5q3H4YgaJpZM4KDcpR
.

I make MVPs. Independent iOS Developer
Mike P Land - http://mikepland.com/