Right, I saw some people share some snippets here before. But none of them act like Sublime does. I can't double-click a token and Ctrl + D to select next instances of it in my file.
you select a token, then pess alt+s to select the next instance and so on
Also, I can't immediately start typing like in Sublime to replace the content. For example:
"test/filenameA.c"
"test/filenameB.c"
"test/filenameC.c"
"test/filenameD.c"
If I select test/ with the cursor, then A-s, it won't select 3 and 4. If I do this, however:
C-d = ["search_selection", "extend_search_next"]
It does select test/, in all 4 lines, but I can't immediately type "blah" to change test to blah.
I’m not sure if replicating Sublime’s Ctrl + D is possible or not, but there are other ways to achieve every use case for it I can immediately think of. e.g. I think I’d typically be doing `<space>h` to select every instance of the symbol under the cursor, or using `s`elect to reduce a selection to a match, possibly yanked and pasted.
C-n = ["search_selection", "extend_search_next"]I was curious about what could it be.
Then you mention it doesn't have two essential behaviours that I am used to, and I wonder if these people just know vim and cli editors and that's why they have such opinion. Because I am also a SublimeTexter.