Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I open a file using vim in ubuntu, and this is displayed at the bottom of the screen.

"file.py" [noeol] 553L, 16620C

What does noeol indicate ?

share|improve this question

migrated from serverfault.com Feb 16 '12 at 3:15

This question came from our site for system and network administrators.

up vote 18 down vote accepted

Unix editors like vi and vim will always put newlines (\n) at the end of every line - especially including the last line. If there is no end-of-line (eol) on the last line, then it is an unusual situation and the file most certainly was not created by a standard UNIX editor.

This unusual situation is brought to your notice by the [noeol] flag in the vim editor; other editors probably have similar flags and notifications.

share|improve this answer
In emacs, moving the cursor to the end of the file (last line, after last character) and execute kill-line, you actually end up deleting the eol. – Yeow_Meng Jun 1 at 14:35

That the last line in the file doesn't have a newline (\n)

share|improve this answer
@Bon Ami: Some programs, when reading your text file, need the \n at the end of line to consider it as a completed line (with a trailing newline char). The following example shows a file which may look like a complete line at a casual glance in a text editor, but wc does not condider it as a line: printf "x">"file-no-newline"; wc -l <"file-no-newline" -- Outpute is: 0 .. the noeol is just a visual aid to let you know the status.. – Peter.O Feb 16 '12 at 4:50

Its 'NO EOL' - no end of line indicator. Very helpful if you end up opening a very large file (>1GB). Vim tries to pull all that in 1 line. This indicator helps me quickly close the file before it screws up my OS.

share|improve this answer
I'm pretty sure that that's not what this flag means... – InkBlend May 2 '15 at 4:00

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.