Saturday, January 3, 2015

Re: default indentation of perl code

On Sat, Jan 3, 2015 at 8:36 AM, Christian Brabandt <cblists@256bit.org> wrote:
> Hi kamaraju!
>
> On Sa, 03 Jan 2015, kamaraju kusumanchi wrote:
>
>>
>> How can I get similar behavior in vim?
>
> Vim comes with a perl indent file. You might want to enable filetype
> specific indenting using :filetype indent on
>
> See http://vimhelp.appspot.com/vim_faq.txt.html#faq-27.1
>
> You might also want to enable filetype plugins, that usually set some
> defaults for specific filetypes (e.g. the perl.vim filetype sets the
> smartindent setting)
> http://vimhelp.appspot.com/vim_faq.txt.html#faq-26.5
>
> Note, filetype specific settings can also be put into their own files:
> http://vimhelp.appspot.com/vim_faq.txt.html#faq-26.3
>
>

Thanks very much Christian. Adding "filetype plugin indent on" to my
~/.vimrc helped. Any idea on how to detect missing semicolons at the
end of a line?

raju

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