lloeki / ex-mode

Ex mode for Atom
MIT License
169 stars 59 forks source link

​:%normal A;​ not work #195

Open ghost opened 7 years ago

ghost commented 7 years ago

seems a lot normal commands not work

hultberg commented 7 years ago

Hello @XinhaiWang

%normal is not implemented, and as I'm unable to find any documentation, could you please provide some for %normal ?

onoderat commented 6 years ago

Hello hultberg,

The normal command is a very powerful command to repeat normal mode actions over a range.

For instance, %normal A; on a file like

var foo = 1
var bar = 'a'
var baz = 'z'

will produce

var foo = 1;
var bar = 'a';
var baz = 'z';

I can imagine that this functionality is difficult to write as it involves keeping track of what happened in normal mode. I am not quite familiar with coffee script but if you need help in better understanding this command, please let me know.