This looks completely obscure, but should work:
alias v='vim -c "'"'"'\""'
That's a single-quoted vim -c "
, followed by a double-quoted '
, followed by a single-quoted \""
...
sth
2010-04-13 15:51:01
This looks completely obscure, but should work:
alias v='vim -c "'"'"'\""'
That's a single-quoted vim -c "
, followed by a double-quoted '
, followed by a single-quoted \""
...
Your question is an example of a situation in which functions are superior to aliases:
v() { vim -c "'\"" "$@"; }
Another solution is GNU Screen. It let's you save one or more shell instances (where one or more could be running vim) and saves their exact contents as if your computer would be idling. In particular, it's perfect for having many tabs and files open on a remote computer.
So instead of just going to the last mark, you'd simply type screen -r mysession
and you'd restore not just the last position of the cursor, but all your buffers/tabs/shell instances/other programs and what not.
But perhaps you knew that already.