add the line below at the beginning of .bashrc, .profile ....... #vim: set filetype=bash
or use autocmd in the vimrc. tell vim when filename is one of .bashrc,.profile,.bash_profile, set filetype to bash 在 2013-2-26 上午9:51,"Tim Johnson" <[email protected]>写道: > Hello: > How can set syntax highlighting for .profile on the mac os 10.7, as I > would for .bashrc or .bash_profile? > thanks > -- > Tim > tim at tee jay forty nine dot com or akwebsoft dot com > http://www.akwebsoft.com > > -- > -- > 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 > > --- > You received this message because you are subscribed to the Google Groups > "vim_mac" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_mac" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
