How to remove spaces between much words in a single long line using vim
?
Already tried tried :
s/ \+/ /
and examples of this.
Doesnt work.
I have a line kinda this:
""" http:// goo gle. com / ? script & GetReferen ce?login = LOGIN¬Logi n & and a lot if this buggy text witch should build relevant url string
Using exaсtly code adviced in a first solution, it would just delete intendance (first 4 spaces I used to build my so-long string value in Python) and no spaces between words.
Visual Selection
- I mean by hitting shift+v
to select whole line at once. The same as ^v+$
.
No matter with, or without v-s, I can't reach line completelly without spaces.