Fast build copolymer tLeap script in Vim.

AMBERTOOLS has a useful command to build polymer. It is sequence. In tLeap script, variable = sequence {HEAD BODY END} will build the polymer. In my research, I have to build DP100 polymer. So I have to input 98 BODY in the script. Previously, I use BASH loop to output 98 BODY by for i in {1..98}; do echo BODY; done | tr ’12’ ‘ ‘. But it’s not a good solution.

I use gnome-vim in both iOS and Ubuntu. There is an easy way to do this in Vim. Do the following procedure, repeated content can be input immediately.

type ESC, type 98, type i, type BODY, type ESC

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s