Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-02

Vim FileType for pascal files

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Damien Gerard

hi !

I use includes files and a vim editor. Obviously .inc are not recognized as pascal files.
I tried the following :
// vim:ts=4:filetype=pascal

but it does not work.

Any ideas ?

Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty)
bartek
to Damien Gerard
Damien Gerard wrote 12 lines
hi ! I use includes files and a vim editor. Obviously .inc are not recognized as pascal files. I tried the following : // vim:ts=4:filetype=pascal but it does not work. Any ideas ?

Hi, its nice to see another user of fpc+vim ;)

My way of detecting .inc and .pp:

% cat .vim/ftdetect/pp.vim
au BufRead,BufNewFile *.pp set filetype=pascal
au BufRead,BufNewFile *.inc set filetype=pascal

An advantage is that you do not need to include // vim:ts=4:filetype=pascal at the beginning of each file. By the way, your way of doing it should work, but the VIM newsgroup is IMHO a better place to ask such a question.

bartek

Lucas Vasconcelos
to Damien Gerard: hi ! I use includes files and a vim editor. Obviously .inc are not recognized as pascal…

hi,

try
// vim: set ts=4 filetype=pascal :

;~]

Damien Gerard wrote 27 lines
hi ! I use includes files and a vim editor. Obviously .inc are not recognized as pascal files. I tried the following : // vim:ts=4:filetype=pascal but it does not work. Any ideas ? -- Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty) _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Lucas Vasconcelos
Damien Gerard
to Lucas Vasconcelos
Lucas Vasconcelos wrote 8 lines
hi, try // vim: set ts=4 filetype=pascal : ;~]

It does not work either :(

Show quoted text 10 lines
On Sun, Feb 24, 2008 at 9:29 AM, Damien Gerard wrote: > > hi ! > > I use includes files and a vim editor. Obviously .inc are not > recognized as pascal files. > I tried the following : > // vim:ts=4:filetype=pascal >
Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty)