I have a function, and I want to execute a key command, but I get the error Trailing characters:
function! MyFunction()
if condition
<C-W><C-W>
else
:some_other_command
endif
endfunction
It doesn't like the <C-W><C-W>
What can I use instead?