So I'm trying to have a function type out a space which goes as follows:
function! UnderlineHeading(level) if a:level == 1 normal! yypVr= elseif a:level == 2 normal! yypVr- else normal! I###<Space><Esc> endif endfunction nnoremap <leader>u3 :call UnderlineHeading(3)<cr>
However, when I press
<leader>u3 in normal mode, the function enters
<Space> instead of an actual space. I have tried making the word
space all lowercase (in vain). What causes this to happen and how should I go about fixing it?
If can be of any importance for this question, I use neovim.