/[scripts]/trunk/xclip-vi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/xclip-vi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145 - (hide annotations)
Tue Nov 15 16:58:51 2011 UTC (12 years, 4 months ago) by dpavlin
File size: 138 byte(s)
edit selection in vi and leave result in clipboard

1 dpavlin 145 #!/bin/sh
2    
3     ext=$1
4     test -z "$ext" && ext=txt
5    
6     xclip -out > /tmp/$$.txt && vi /tmp/$$.$ext && xclip -in -selection clipboard < /tmp/$$.$ext

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26