Vim normal! sending literal <Space> string instead of whitespace character -


i'm not sure i'm doing wrong here.

:normal! i###<space><esc> 

the end result want when execute command on word this:

### word 

but instead this:

###<space>word 

vim's :normal nightmare moderately complicated. don't remember why, easiest way want. need escape opening < in string passed execute.

execute "normal! i###\<space>\<esc>" 

edit: vim doesn't explain why, :help normal

        alternative use |:execute|, uses         expression argument.  allows use of         printable characters represent special characters. 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -