On 10 Feb 2015, at 18:17, John Culleton wrote: > On Tue, 10 Feb 2015 17:56:29 +0000 > Andrew Long <[email protected]> wrote: > >> On 10 Feb 2015, at 15:57, John Culleton wrote: >>> <snip/> >> >> I've had problems with COBOL.vim if smarttabs >> are switched on, after starting a new line. The >> problem is that the smart tabs don't count >> properly towards working out the column >> settings and so it highlights what *looks* like >> it ought to be a valid line as invalid. I got >> around this by switching off smart tabs in the >> ftdetect.vim script >> > <snip/> > Can't find ftdetect.vim script. Is there a better > spelling of the name?
ftdetect is (can be) a subdirectory of vimfiles/.vim and (for me) holds language-specific vim scripts that identify the language type of a specific file. This allows you to declare variables and settings to control how editing a particular file type is edited. I include the following lines in most of mys source-language edigting files:- setlocal softtabstop=4 setlocal tabstop=4 setlocal expandtab setlocal shiftwidth=4 You can set them in many difference plaes... in files in the ftplugin directory, somewhere in an 'after' file, in the filetype.vim script, etc. Sorry if I wasn't too clear before. Yes, the cold is getting to me! Regards, Andy -- Andrew Long Andrew dot Long at Mac dot com -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
