You are not logged in.

#1 2009-11-25 20:08:44

algorythm
Member
From: /usr/share/zoneinfo/Europe/FIN
Registered: 2009-07-17
Posts: 181

[Solved] Are the commented 'ending texts' necessary in the end of s...

So my question was, are the commented 'ending texts' necessary in the end of some .confs.

Example, rc.sysinit:

[TEXT]

# End of file
# vim: set ts=2 noet:

At least the vim:.. part is necessary for vim I guess.

- Thanks

E: k, thanks guys smile.

Last edited by algorythm (2009-11-26 12:42:56)


“Talent you can bloom. Instinct you can polish.”  — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.”  — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.”  — Charles Dubois

Offline

#2 2009-11-25 20:20:35

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Solved] Are the commented 'ending texts' necessary in the end of s...

No.  It's just a comment.

Offline

#3 2009-11-25 21:10:15

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: [Solved] Are the commented 'ending texts' necessary in the end of s...

This comment tells VI(M) how to format the file (tab length, etc.).

Offline

#4 2009-11-25 21:26:04

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [Solved] Are the commented 'ending texts' necessary in the end of s...

Cerebral wrote:

No.  It's just a comment.

No its not "just a comment" for vim its is a modeline (:help modeline) for others editors is just a comment.

Offline

#5 2009-11-25 22:04:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Are the commented 'ending texts' necessary in the end of s...

> No its not "just a comment" for vim its is a modeline (:help modeline) for others editors is just a comment.
+1

Type ':help tabstop' in vim to learn a bit about the mysterious 'ts=2' from "the comment".

Offline

Board footer

Powered by FluxBB