As mentioned by grodzik, nnoremap
does not take any non-standard mappings into account. That includes mappings by plugins. Simply changing to nmap
is not the right way to go in my opinion. You will start to get used to Alt (
and not need ysiw)
anymore. With an nmap
you will never be able to map something else to ysiw)
(or ys
) because that will break the Alt (
mapping.
I think you should map directly to the vim-surround
commands. In this case that would be
nnoremap <M-(> :execute "normal \<Plug>Ysurroundiw)"<cr>
This calls <Plug>Ysurround
which is usually done using ys
and then does the iw)
part. Other commands can be found in the surround.vim
file that is part of the vim-surround
plugin.