Consider the following function
function! Exp() call feedkeys(":new ~/.vimrc\<CR>") call search('F') endfunction
My expectation from Exp() was that if I call Exp() then
1) I see my vimrc file opened in a new window, and
2) the first instance of 'F' is searched in the vimrc file with the cursor landing on it.
However, what I see is that only the first expectation meets reality. In fact, the second line
call search('F') seems to be ignored by vim.
PS: Please feel free if you have a suggestion to improve my code.