I would like to save the current file (a vim script) and source it simultaneously. The following works in normal mode.
:w % | :source %
However, when I attempt to define a mapping for it in my .vimrc I get an error message (Error detected while processing .vimrc)
nnoremap <leader>s :w % | source %<cr>
Any help would be appreciated.
You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/nBnuanIE3H8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.