Simplest way to delete a “composite†word?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Apologies if "composite" is not the technical term. I mean the following:
Hi, I-am-a-composite-word and we are not
I would like to delete only the composite word. In command mode, if I move the cursor to I
, then repeating dw
a few times, or better typing dw
once, followed by a few .
presses, will do the trick. However, for various reasons I find myself doing this quite often during the day, thus I was wondering if there's any simpler way.
PS I would NOT consider the command d9w
to be a simpler way. Counting a long sequence of words and dashes is not my idea of "simpler".
cursor-motions normal-mode
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
Apologies if "composite" is not the technical term. I mean the following:
Hi, I-am-a-composite-word and we are not
I would like to delete only the composite word. In command mode, if I move the cursor to I
, then repeating dw
a few times, or better typing dw
once, followed by a few .
presses, will do the trick. However, for various reasons I find myself doing this quite often during the day, thus I was wondering if there's any simpler way.
PS I would NOT consider the command d9w
to be a simpler way. Counting a long sequence of words and dashes is not my idea of "simpler".
cursor-motions normal-mode
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Apologies if "composite" is not the technical term. I mean the following:
Hi, I-am-a-composite-word and we are not
I would like to delete only the composite word. In command mode, if I move the cursor to I
, then repeating dw
a few times, or better typing dw
once, followed by a few .
presses, will do the trick. However, for various reasons I find myself doing this quite often during the day, thus I was wondering if there's any simpler way.
PS I would NOT consider the command d9w
to be a simpler way. Counting a long sequence of words and dashes is not my idea of "simpler".
cursor-motions normal-mode
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Apologies if "composite" is not the technical term. I mean the following:
Hi, I-am-a-composite-word and we are not
I would like to delete only the composite word. In command mode, if I move the cursor to I
, then repeating dw
a few times, or better typing dw
once, followed by a few .
presses, will do the trick. However, for various reasons I find myself doing this quite often during the day, thus I was wondering if there's any simpler way.
PS I would NOT consider the command d9w
to be a simpler way. Counting a long sequence of words and dashes is not my idea of "simpler".
cursor-motions normal-mode
cursor-motions normal-mode
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 48 mins ago


statox♦
25.3k661129
25.3k661129
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 57 mins ago
DeltaIV
1083
1083
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
DeltaIV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
What you are calling a composite word is actually a WORD (by opposition to a word). Reading :h word
and :h WORD
should be helpful:
*word*
A word consists of a sequence of letters, digits and underscores, or a
sequence of other non-blank characters, separated with white space (spaces,
tabs, <EOL>). This can be changed with the 'iskeyword' option. An empty line
is also considered to be a word.
*WORD*
A WORD consists of a sequence of non-blank characters, separated with white
space. An empty line is also considered to be a WORD.
What you are looking for here is dW
when you are on the I
or diW
when you are anywhere in the word.
Maybe in the future you will also need to read :h 'iskeyword'
.
thanks for the answer: it works. Apropos of the definition:A WORD consists of a sequence of non-blank characters, separated with white space
.Separated with white space
means that the WORD is separated by other words or WORDS with white space, right?
– DeltaIV
34 mins ago
1
@DeltaIV Yupin-this-sentence there are four"WORDs
the 4 WORDs arein-this-sentence
,there
,are
andfour"WORDs
. It's easy to see when you usew
andW
orb
andB
motions for example. Note that a whitespace can be a "regular" space or a tab character.
– statox♦
27 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
What you are calling a composite word is actually a WORD (by opposition to a word). Reading :h word
and :h WORD
should be helpful:
*word*
A word consists of a sequence of letters, digits and underscores, or a
sequence of other non-blank characters, separated with white space (spaces,
tabs, <EOL>). This can be changed with the 'iskeyword' option. An empty line
is also considered to be a word.
*WORD*
A WORD consists of a sequence of non-blank characters, separated with white
space. An empty line is also considered to be a WORD.
What you are looking for here is dW
when you are on the I
or diW
when you are anywhere in the word.
Maybe in the future you will also need to read :h 'iskeyword'
.
thanks for the answer: it works. Apropos of the definition:A WORD consists of a sequence of non-blank characters, separated with white space
.Separated with white space
means that the WORD is separated by other words or WORDS with white space, right?
– DeltaIV
34 mins ago
1
@DeltaIV Yupin-this-sentence there are four"WORDs
the 4 WORDs arein-this-sentence
,there
,are
andfour"WORDs
. It's easy to see when you usew
andW
orb
andB
motions for example. Note that a whitespace can be a "regular" space or a tab character.
– statox♦
27 mins ago
add a comment |Â
up vote
2
down vote
accepted
What you are calling a composite word is actually a WORD (by opposition to a word). Reading :h word
and :h WORD
should be helpful:
*word*
A word consists of a sequence of letters, digits and underscores, or a
sequence of other non-blank characters, separated with white space (spaces,
tabs, <EOL>). This can be changed with the 'iskeyword' option. An empty line
is also considered to be a word.
*WORD*
A WORD consists of a sequence of non-blank characters, separated with white
space. An empty line is also considered to be a WORD.
What you are looking for here is dW
when you are on the I
or diW
when you are anywhere in the word.
Maybe in the future you will also need to read :h 'iskeyword'
.
thanks for the answer: it works. Apropos of the definition:A WORD consists of a sequence of non-blank characters, separated with white space
.Separated with white space
means that the WORD is separated by other words or WORDS with white space, right?
– DeltaIV
34 mins ago
1
@DeltaIV Yupin-this-sentence there are four"WORDs
the 4 WORDs arein-this-sentence
,there
,are
andfour"WORDs
. It's easy to see when you usew
andW
orb
andB
motions for example. Note that a whitespace can be a "regular" space or a tab character.
– statox♦
27 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
What you are calling a composite word is actually a WORD (by opposition to a word). Reading :h word
and :h WORD
should be helpful:
*word*
A word consists of a sequence of letters, digits and underscores, or a
sequence of other non-blank characters, separated with white space (spaces,
tabs, <EOL>). This can be changed with the 'iskeyword' option. An empty line
is also considered to be a word.
*WORD*
A WORD consists of a sequence of non-blank characters, separated with white
space. An empty line is also considered to be a WORD.
What you are looking for here is dW
when you are on the I
or diW
when you are anywhere in the word.
Maybe in the future you will also need to read :h 'iskeyword'
.
What you are calling a composite word is actually a WORD (by opposition to a word). Reading :h word
and :h WORD
should be helpful:
*word*
A word consists of a sequence of letters, digits and underscores, or a
sequence of other non-blank characters, separated with white space (spaces,
tabs, <EOL>). This can be changed with the 'iskeyword' option. An empty line
is also considered to be a word.
*WORD*
A WORD consists of a sequence of non-blank characters, separated with white
space. An empty line is also considered to be a WORD.
What you are looking for here is dW
when you are on the I
or diW
when you are anywhere in the word.
Maybe in the future you will also need to read :h 'iskeyword'
.
answered 50 mins ago


statox♦
25.3k661129
25.3k661129
thanks for the answer: it works. Apropos of the definition:A WORD consists of a sequence of non-blank characters, separated with white space
.Separated with white space
means that the WORD is separated by other words or WORDS with white space, right?
– DeltaIV
34 mins ago
1
@DeltaIV Yupin-this-sentence there are four"WORDs
the 4 WORDs arein-this-sentence
,there
,are
andfour"WORDs
. It's easy to see when you usew
andW
orb
andB
motions for example. Note that a whitespace can be a "regular" space or a tab character.
– statox♦
27 mins ago
add a comment |Â
thanks for the answer: it works. Apropos of the definition:A WORD consists of a sequence of non-blank characters, separated with white space
.Separated with white space
means that the WORD is separated by other words or WORDS with white space, right?
– DeltaIV
34 mins ago
1
@DeltaIV Yupin-this-sentence there are four"WORDs
the 4 WORDs arein-this-sentence
,there
,are
andfour"WORDs
. It's easy to see when you usew
andW
orb
andB
motions for example. Note that a whitespace can be a "regular" space or a tab character.
– statox♦
27 mins ago
thanks for the answer: it works. Apropos of the definition:
A WORD consists of a sequence of non-blank characters, separated with white space
. Separated with white space
means that the WORD is separated by other words or WORDS with white space, right?– DeltaIV
34 mins ago
thanks for the answer: it works. Apropos of the definition:
A WORD consists of a sequence of non-blank characters, separated with white space
. Separated with white space
means that the WORD is separated by other words or WORDS with white space, right?– DeltaIV
34 mins ago
1
1
@DeltaIV Yup
in-this-sentence there are four"WORDs
the 4 WORDs are in-this-sentence
, there
, are
and four"WORDs
. It's easy to see when you use w
and W
or b
and B
motions for example. Note that a whitespace can be a "regular" space or a tab character.– statox♦
27 mins ago
@DeltaIV Yup
in-this-sentence there are four"WORDs
the 4 WORDs are in-this-sentence
, there
, are
and four"WORDs
. It's easy to see when you use w
and W
or b
and B
motions for example. Note that a whitespace can be a "regular" space or a tab character.– statox♦
27 mins ago
add a comment |Â
DeltaIV is a new contributor. Be nice, and check out our Code of Conduct.
DeltaIV is a new contributor. Be nice, and check out our Code of Conduct.
DeltaIV is a new contributor. Be nice, and check out our Code of Conduct.
DeltaIV is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17832%2fsimplest-way-to-delete-a-composite-word%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password