jeromejj / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Error while opening a file containin ':ex' #372

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new file say temp.txt with contetnt like
This is a normal line
#Now this is tricky ex: Here must be problem
It should work fine.
Problem in line 4 ex: Problem Again
2. File has ':ex' in its second and Fourth lines
3.Save and close the file
4. Open file create above with vim-.

What is the expected output? What do you see instead?
Expected Output: File should be opened for editing.
Actual Output: 
"temp.txt" 4L, 124C
Error detected while processing modelines:
line    2:
E518: Unknown option: Here
Press ENTER or type command to continue
What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 28 2012 20:34:45)
LSB 
Version:    :base-4.0-amd64:base-4.0-ia32:base-4.0-noarch:core-4.0-amd64:core-4.0-i
a32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:pr
inting-4.0-ia32:printing-4.0-noarch
Distributor ID: OracleServer
Description:    Oracle Linux Server release 6.5
Release:    6.5

Please provide any additional information below.

Original issue reported on code.google.com by malviyan...@gmail.com on 11 Jun 2015 at 9:16

GoogleCodeExporter commented 9 years ago
You are seeing the effect of the modeline (:h modeline)

If you don't need modelines, you can disable them.

(closing)

Original comment by chrisbr...@googlemail.com on 11 Jun 2015 at 9:57