Re: Vim syntax
------ diff -------
@@ -46,7 +46,7 @@
" For other files switch it off.
" Don't change the order, it's important that the line with * comes
first.
autocmd BufRead * set formatoptions=tcql nocindent comments&
- autocmd BufRead *.c,*.h set formatoptions=croql cindent
comments=sr:/*,mb:*,el:*/,://
+ autocmd BufRead *.c,*.h,*.cpp,*.cc,*.php set formatoptions=croql
cindent comments=sr:/*,mb:*,el:*/,://
augroup END
" Also, support editing of gzip-compressed files. DO NOT REMOVE THIS!
------- END -------
On Fri, 23 Feb 2001, Konstantin V. Sorokin wrote:
> Привет!
> Кто-нибудь занимается написанием программ на c++ с использованием
> vim'а? Дело в том, что я выяснил, что когда файл имеет расширение
> .cpp, то vim не хочет его синтаксически форматировать :-(. Подсветку
> делает, а вот отступы сам не делает. Если файл имеет расширение .c,
> то все нормально - и отступы есть, и подсветка. Файл cpp.vim вроде
> присутсвует. Может это не bug, а особенность?
>
> --
> WBR, Konstantin V. Sorokin
>
>
> --
> To UNSUBSCRIBE, email to debian-russian-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Николай <nick@nick.da.ru>
Reply to:
- References:
- Vim syntax
- From: "Konstantin V. Sorokin" <ksorokin@mccme.ru>