[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Xen-ia64-devel] vimrc snippet
- To: "Aron Griffis" <aron@xxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
- From: "Zhang, Xing Z" <xing.z.zhang@xxxxxxxxx>
- Date: Tue, 18 Sep 2007 11:58:24 +0800
- Delivery-date: Mon, 17 Sep 2007 20:58:56 -0700
- List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
- Thread-index: Acf5NzeVENSus0HWTLyZ3UHLOiyk7gAcMs+g
- Thread-topic: [Xen-ia64-devel] vimrc snippet
> " default to allowing tab characters
> set noexpandtab
>
> " detect settings of file being edited and change ours to match
> autocmd BufReadPost *.c,*.h
> \ let foundtab = search('^\t\|^\( \{8}\)', 'cnpw') |
> \ if foundtab == 1 | setlocal noexpandtab |
> \ elseif foundtab == 2 | setlocal expandtab | endif
>
>I hope somebody finds that helpful. :-)
>
>Aron
>
Thanks a lot. It's really easy to use!
>_______________________________________________
>Xen-ia64-devel mailing list
>Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-ia64-devel
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel