Open all search result in one vim instance as tabs
Vim has a feature called clientserver, if start vim with same servername, files will open in the same instance instead multiple:
vim --servername ios_code +34 main.m
vim --servername ios_code +125 test.m
I found it's really convenience to switch between search results inside the same vim instance.
I also think it's a good idea to use current pofile name as severname, so different profile will has its own vim instance.
I can implement this feature using script like this:
\$sack__editor -p --servername $sack__profile_name --remote-tab-silent +\$sack__line "\$sack__file"
It looks like clientserver feature will need gui mode vim, we can check if vim has this feature with script like this:
vim --version | grep -c '+clientserver'