Saturday, November 24, 2018

Re: How to set noexpandtab for a specific file

On 2018-11-24, Kit wrote:
> 2018-11-24 15:46 GMT+01:00, Bradley Bell <bradley.m.bell@gmail.com>:
> > How do I set noexpandtab for automake.am automatically, so I do
> > not forget to enter it every time I edit that file ?
>
> ~/.vim/ftplugin/automake.vim:
> set noexpandtab

Vim doesn't set the filetype of a file named automake.am to
"automake", it sets the filetype to "elf". The OP may have to add
an overriding rule to set the filetype of automake.am to "automake".

The OP's modeline should work. It would be nice to find out why it
doesn't. Executing

:verbose set expandtab?

may give a clue.

Regards,
Gary

--
--
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: