meino wrote: > when I do a search command with '/' the matches will be > highlighted. When putting the search string into a function > and that function into .vimrc and calling the function then, > nothing is highlighted.
Yes, it's documented somewhere that functions behave like that. There are a couple of tips with code that works around that. See how this tip uses a mapping which finishes by feeding the @/ register set by some code into a / command: http://vim.wikia.com/wiki/Search_for_visually_selected_text John -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
