[HN Gopher] Why not just embed Neovim?
       ___________________________________________________________________
        
       Why not just embed Neovim?
        
       Author : todsacerdoti
       Score  : 13 points
       Date   : 2024-06-13 15:04 UTC (7 hours ago)
        
 (HTM) web link (zed.dev)
 (TXT) w3m dump (zed.dev)
        
       | seanhunter wrote:
       | This is such a weird article.
       | 
       | " I mean, I knew about R but I thought that, surely, no one
       | really ever uses it."
       | 
       | How could someone use vim without using R? I literally use that
       | every single time I use vim (multiple times per day) and have
       | done for 20+ years at this point. Do people only use "change
       | inside" and cw and things like that? I mean sure I use them but
       | not to ever use replace is really weird to me.
        
         | matejn wrote:
         | Hmm I used Vim for about 10 years and I never used R. I
         | preferred one of the c- variants, usually ct and cas. I guess
         | it depends on acquired muscle memory?
        
         | mrgoldenbrown wrote:
         | What is a typical R use case for you? R doesn't feel worth it
         | to me. If I'm changing a word, cw is almost always better,
         | unless maybe the new word has the exact same number of chars as
         | the old word.
        
           | o11c wrote:
           | It's practically mandatory when editing cells of hand-written
           | table-likes.
           | 
           | It's faster than `ct<somechar>` for replacing _part_ of a
           | word.
           | 
           | Using `<Insert>` to toggle the mode is also something I do
           | fairly regularly ...
           | 
           | I'm past the point of consciously doing these things so I
           | probably use it more than this.
        
         | zogrodea wrote:
         | I'm usually faster at retyping a word that has a typo, than
         | moving to the exact locations that need edits within a word. So
         | the c-varianta are better for me.
        
         | floxy wrote:
         | Now I must really be in the minority. I use 'r' all the time,
         | but never 'R'.
        
       | zogrodea wrote:
       | Is there a guide or spec to how Vim defines text/a word?
       | 
       | I'm thinking of cursor motions like 'e' or 'w'. If you paste in a
       | URL put your cursor on the starting 'h' and press 'e', your
       | cursor will move to the : in the URL.
       | 
       | That's different from how operating systems navigate text on
       | ctrl-right so I'm wondering if Vim modes/clones have a spec or
       | definition, or if they copy through observation.
        
         | positr0n wrote:
         | Yes, see `:help iskeyword`
         | 
         | Different file types can have different values for this. For
         | example in clojure / and : are commonly used, so they are added
         | to `iskeyword`. In .clj files "w" navigates across
         | `:person/first-name` as one word.
         | 
         | Also FYI if you didn't know and are having that problem with
         | URLs, capital E and W navigate across vim WORDS, which is
         | defined as all non-whitespace characters.
        
       | AA-BA-94-2A-56 wrote:
       | I'm impressed by the part about using headless Neovim in tests.
        
       ___________________________________________________________________
       (page generated 2024-06-13 23:01 UTC)