On Jan 17, 2011, at 11:28 AM, Robert Hicks wrote: > I have a bunch of things I set when the FileType is Perl. Instead of > writing: > > autocmd FileType perl set foo > autocmd FileType perl set bar > autocmd FileType perl set baz > > Can I just lump them all as "perl" and just do: > > set foo > set bar > set baz >
Not sure what you have in mind, but you can set multiple options in the same line: au FileType perl set foo bar baz You can even put multiple commands in the same line, see :h :bar > As a side question....on the "set" command. > > I have seen "autocmd FileType perl :set" using a colon before the set > and "autocmd FileType perl set" with no colon before the set. > > Does the colon matter? It's optional. Israel -- You received this message from the "vim_mac" 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
