I want to create a custom search in vimscript, using this line for searching:
:execute "normal gg/[A-Z]\\+*.:\<cr>"
it will tell me (correctly) that it searched for the pattern:
but it will not highlight/search for anything. Pressing 'n' will continue the last search from before. Executing the exact same command directly in vim has the desired effect.
Can somebody explain to me why this doesn't work and how to do it correctly?