Vim: multiline editing does not work

Created on 16 Feb 2016  路  8Comments  路  Source: VSCodeVim/Vim

The vscodevim extension was installed, but the mutil edit can't work ,

kinbug

Most helpful comment

No!When it is at command mode,i press the shortkey "command+d" for multiline selecting. Then i need change the content,i press "i" to insert mode, it dose not work! Only the first cursor update.

ps: mac os system

All 8 comments

I'm not sure what this means. Are you referring to visual block mode?

VSCode also comes with Multi-cursor which doesn't seem to work after installing this extension.

No!When it is at command mode,i press the shortkey "command+d" for multiline selecting. Then i need change the content,i press "i" to insert mode, it dose not work! Only the first cursor update.

ps: mac os system

Yes, there is a problem with this plugin, I type the for and use VSCode build-in snippet, the multi edit can't work.Like this:

for(var index = 0; index < array.length; index++) {
  var element = array[index];
}

then build-in snippet will select all index, and you can multi edit, but when you type only the first cursor update, and rest are gone.

for(var bug = 0; < array.length;++) {
    var element = array[];
}

And the other situation is that when you type for,use the snippet

for (var index = 0; index < array.length; index++) {
    var element = array[index];

}

and type tab skip set index, and will select the array, then you change the array, only the first will change, and then you type enter, the rest will change, but the word will placed before cursor, and the most import is that, the inserted word will replaced the characters before cursor, like follow code, it will replaced = with bug.

for (var index = 0; index < bug.length; index++) {
    var elementbug[index];
} 

VI with multi cursor mode is extremely powerful.

This bug is pretty much the only thing keeping me from switching from atom.

+1

Closing in favor of #417.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

edwintorok picture edwintorok  路  3Comments

jaredly picture jaredly  路  3Comments

triztian picture triztian  路  3Comments

orn688 picture orn688  路  3Comments