On Thursday, October 10, 2013 2:18:35 AM UTC-5, shawn wilson wrote:
> Is there a plugin to try to automatically determine the coding style
> 
> of a file? So, determine tabwidth, soft/hard tab, block style (so if I
> 
> hit { sometimes it needs a line break, sometimes not), etc.
> 
> 
> 
> I want something that tries to automate per file vim settings and not
> 
> something that corrects code style (which is the only thing can find).

There are a few scripts that detect the indent settings for a file. Search the 
web for "detect indent in Vim" or take a gander at this list:

http://vim.wikia.com/wiki/Indenting_source_code#Related_plugins

For block style, there is no Vim setting to control that. You insert linebreaks 
manually unless you set up mappings for it. I don't know of any plugins for 
this. Maybe one of the many snippet plugins can help you there.

-- 
-- 
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/groups/opt_out.

Reply via email to