Saturday, November 24, 2018

Re: How to set noexpandtab for a specific file

On 24.11.18 06:46, Bradley Bell wrote:
> I have the following two lines in my .vimrc:
> :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
> set modeline
>
> On the first line of a file called automake.am, I have
> # vim: set noexpandtab:

It works for me in makefiles, using:

# vim:noexpandtab list

The "set" isn't mandatory, but that should work just as well.
The "list" is just to show the tabs, for good measure.

That just leaves the second colon to be removed.

Erik

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: