I am using vim on Windows and have following mappings:
imap <f4> <ESC>:w<CR>:!clang -std=c++11 -o output\%.exe %<CR>
imap <f5> <ESC>:!output\%.exe<CR>
As we know in windows \
is path separator \
also used in escape sequences in vim-script and commands this command gives me out put as sown in pic.
What I want is shown in the following pic
My intention is to compile the source and return the output in the 'output' directory and execute from there.
Instead, I get 'output%' as output in the current directory.