gitreceive icon indicating copy to clipboard operation
gitreceive copied to clipboard

Add vim modeline magic

Open Rogdham opened this issue 10 years ago • 2 comments

Automagically enforce a 2 space indentation to vim users.

Nothing fancy, just one comment line at the end of the file. The alternative is to put this line at the very top of the file, just after the shebang (i.e. on line number 2). Please tell me if you prefer the alternative more.

Rogdham avatar Nov 16 '14 11:11 Rogdham

Do you know how many other popular editors use this vim data?

progrium avatar Nov 19 '14 04:11 progrium

I'm sorry but I have quite no idea (I only know about a plugin for gedit…) .

I can't say that I have a strong opinion on this PR. I find it pretty convenient as a vim user, but at the same time I understand that having editor-specific lines in your source code is not that great.

Rogdham avatar Nov 20 '14 18:11 Rogdham