I'm trying to run a command (from within a function) that goes somewhat like this:
execute a:firstline . ',' . a:last line . 'g/\(\.\|!\|?\)\()\|]\|"\|'\)*\($\|\s\)/execute "normal! v(:call MyFunction()\<cr>"'
But it doesn't work and I think it's because of all the quotes. I tried escaping them with backslashes, but that doesn't work either.