EmEditor Home - EmEditor Help - Command Reference - Edit category

Delete Left Word command

Summary

Deletes the word to the left of the cursor.

Description

Deletes text from the cursor position to the first white space character encountered after the previous word in the current line. This command does not delete white space before a word.

How to Run

Plug-in Command ID

Macros

[JavaScript]

document.selection.WordLeft(true,1);
document.selection.Delete(1);

[VBScript]

document.selection.WordLeft true,1
document.selection.Delete 1

Copyright 2003-2014 by Emurasoft, Inc.