Record a macro that does Ctrl-Shift-Right delete.
_command last_recorded_macro() name_info(','VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
_macro('R',1);
deselect();
_select_char('','E');
next_word();
select_it('CHAR','','E');
delete_selection();
}
or if the cursor is not at the start of a word and you want to delete the whole word (not just from the cursor) you can do this
- select word, cursor left, ctrl-shift-right, delete
_command last_recorded_macro() name_info(','VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
_macro('R',1);
execute('select-whole-word');
_begin_select('',false,false);
_deselect();
deselect();
_select_char('','E');
next_word();
select_it('CHAR','','E');
delete_selection();
}
Graeme