On Dec 18, 9:32 am, "Vim Questions" <
vimquestion...@gmail.com> wrote:
> Thank you, John, for your responce
>
> It did not work for me.
>
> I installed gVim 7.2 on my lap top (Windows). When I double click on it, it
> opnes. I go to "file-> open" and bring my text (that is in .txt format). I
> enterred the recommended command (copy and paste from your e-mail) in the
> first line that is before the text.
> Nothing happened.
>
> Is anything that I did wrong?
>
For your immediate problem, don't copy and paste into the text.
Instead, type exactly the following character sequence:
:%s/\r//g
Then, press the ENTER key.
(this assumes you have launched Vim in its default mode...NOT the "vim
easy mode" that also comes with Windows installers I've seen)
I cannot stress enough that you should learn to use Vim in general
terms by using the tutorial that ships with Vim. You can access this
tutorial through the start menu if you used a standard Vim installer.
If you can't find it there, it should also be accessible by running
the vimtutor.bat file in your installation directory (probably C:
\Program Files\vim\vim72\vimtutor.bat)
From the vimtutor, you will learn what you just did:
: -> enters "command mode"
% -> runs the following command on every line in the file
s -> run the "s" a.k.a. "substitute" command
/\r -> in the substitute command, search for a carriage return
// -> replace it with nothing
g -> for every occurrence in the line
ENTER -> run the command and exit command mode