Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Emacs doesn't do it, but vim's my editor of choice. It's a problem when editing PHP and some other stuff.

So, how do I get vim not to include a trailing newline at the end of a file? I must just be searching for the wrong thing in Google (or this isn't possible).

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

This question has been answer on stack overflow, methinks.

share|improve this answer
Awesome! Sorry for the dupe. –  Benjamin Oakes Dec 2 '09 at 17:00
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.