I use Ultisnips in vim a lot together with vim-expand:
snippet prg
!This is file : `!v expand('%:r')`
! Author= `!v expand($USER)`
! Started at: `date +%d.%m.%y`
!
Program ${1:`!v expand('%:r')`}
Implicit None
${2:<++Start Typing++>}
End Program $1
endsnippet
I am facing a problem that, after the ${1:} is expanded in
${1:`!v expand('%:r')`}, if I put a linebreak, the $1 in End Program $1
is picking that up as well; which in NOT intended.
To make it clear, here is a screencast:
https://www.youtube.com/watch?v=0IjoqWXQNI8
I want to expand and match the first line, but not after linebreak. kindly help.