There's a couple of ways, one way is
- Get search results
- Do
SPC /
and type in your search string - or
SPC x S
and search string - where x is your scope indicator (p for project, d for directory, etc..)
- Do
- Once you have the occurences you want, hit
C-c C-e
inside the helm buffer to put all your match occurences and puts them into a special buffer called the edit buffer or something like that - in that buffer you can use any commands you'd normally use on a buffer
- the
C-c C-c
to commit your changes.
Difference between
w
in vim vsw
in emacsThe only real difference is the underscore character. You can basically adjust the syntax table in emacs as every major mode has its own syntax table that decides which characters are part of a word.
if you make _ a word character then it will start getting including by w
that said, for text objects in particular you may consider trying the
o
text object - it is the "symbol" text object.this is pretty fantastically useful because it uses the definition of a legal identifier for whatever programming language you're in
so it will include underscores since that's legal in almost every programming language
but in elisp it will also include hyphens, and almost everything, since those are legal names for things