T
T
Trotil2013-02-14 00:33:21
vim
Trotil, 2013-02-14 00:33:21

Vim does not return a carriage return on the last line of text

Often there is a task to end a text file after editing at the end of the last line, and not end it with a new line. How to do it specifically in vim?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2013-02-14
@Trotil

maybe
:set binary
:set noeol
:w

S
shadowalone, 2013-02-14
@shadowalone

And what's the problem then? don't go to a new line.
Esc:wq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question