I want to define a command only available for a certain filetype, for
example cpp filetype:
1. The command is available when the current buffer is cpp filetype.
2. The command is undefined if I didn't open cpp file, or the current
buffer is not cpp filetype.
Because I want this command invisiable if it not wanted.
3. The suffix of C++ file can be .cc .cPP .CPP .Cpp .h ..... The
command should be available all kind of cpp files.
How to do this? Many thanks in advance.
--
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
To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment