Simplest way to delete a “composite” word?

The name of the pictureThe name of the pictureThe name of the pictureClash 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".










share|improve this question









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.























    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".










    share|improve this question









    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.





















      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".










      share|improve this question









      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






      share|improve this question









      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.











      share|improve this question









      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.









      share|improve this question




      share|improve this question








      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.




















          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'.






          share|improve this answer




















          • 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 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











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "599"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          DeltaIV is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          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






























          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'.






          share|improve this answer




















          • 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 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















          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'.






          share|improve this answer




















          • 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 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













          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'.






          share|improve this answer












          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'.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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 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

















          • 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 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
















          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











          DeltaIV is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          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.













           


          draft saved


          draft discarded














          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













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery