Hi naaj_ila! On Di, 29 Jan 2013, naaj_ila wrote:
> I added some commands in .vimrc > > > source ~/vimfiles/matchit.vim > let b:match_words = > '\<begin\>:\<end\>,'.'\<class\>:\<endclass\>,'.'\<task\>:\<endtask\>,'.'\<case\>:\<endcase\>' > > > If the cursor is at "begin" and "shift+%" will go to "end" of the statement. > If i opened another file in newtab or "sp <filename> " . "Shift+%" is not > working.(Working only in the first file) And also 'syntax highlighting; is > also not working . You have defined the matchit configuration value specifically for your current file since all b: variables are local scoped to the current buffer. When you edit another file, this variable is not set, and I guess matchit won't do anything in that case. So you probably want to define the b:match_words variable in a filetype-specific plugin. To do this, read those entries in the faq: http://vimhelp.appspot.com/vim_faq.txt.html#faq-26.1 http://vimhelp.appspot.com/vim_faq.txt.html#faq-26.3 http://vimhelp.appspot.com/vim_faq.txt.html#faq-26.6 and then set your variable in a filetype plugin. regards, Christian -- Es gibt Dinge, über die spreche ich nicht einmal mit mir selbst. -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.