Re: Re: script to insert lines

2012-02-21 Thread eda wizard
Paul, Christian, Thanks so much for responding! I'll give these a try at work today. Thanks again, Still-learning Steve -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit

script to insert lines

2012-02-20 Thread eda wizard
Greetings all, I've got lots of Java classes whose fields need Xml attributes - sounds like a perfect job for a Vim script! Given some lines like: private String lName; private String fName; private String eAddr; private int age; I need the script to produce @XmlElement(name = LName) private

Re: Re: function for global text replacement

2011-11-02 Thread eda wizard
Thanks for replying and for your help, everyone! I'll give your suggestions a try this morning Thanks again, Still-learning Steve -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit

function to apply multiple whole-file substitutions

2011-11-01 Thread eda wizard
Greetings all, I'm trying to craft a function to apply a series of pattern-matching substitutions to the file. So far I've got this in my .vimrc function Scrub () :%s// /g :%s/\s*$//g endfunction map :call Scrub () but it's not working, seems to complain about lack of line-endings. Would

function for global text replacement

2011-11-01 Thread eda wizard
greetings all, I'm trying to create a function in my .vimrc that will apply a series of global pattern-matching substitutions but am having some trouble. Here's what I've got so far: function Scrub () :%s/TAB/ /gCR :%s/\s*$//gCR endfunction map silentF7 :call Scrub () I'm probably not

Re: Re: function to apply multiple whole-file substitutions

2011-11-01 Thread eda wizard
Hm, somehow things got left out of my post: first substitution is to replace every TAB character in the file with two spaces. second substitution is to match lines containing only whitespace characters and remove all said characters leaving only empty lines. Thanks for your prompt reply!

Re: encrypted files

2011-01-09 Thread eda wizard
Or some such? Or do any of you have something to make sure creating/reading/writing/ vim encrypted files are as secure as possible? vim 7.3 has mostly-transparent blowfish encryption baked-in, see: http://blogs.techrepublic.com.com/security/?p=4870 HTH, Still-learning Stuart -- You

Re: macro for an affine cipher

2011-01-02 Thread eda wizard
So there you have it. How can I achieve this? Is there something wrong with Vim's built-in Blowfish encryption? I was unaware of its existance. There's a nice writeup about it from just two weeks ago here: http://blogs.techrepublic.com.com/security/?p=4870 Seems worth the effort to upgrade

Re: macro for an affine cipher

2010-12-31 Thread eda wizard
HAPPY NEW YEAR everybody! I've made some progress for my quest to secure my files. Having seen that vim can interact with perl using :perl and :.perldo , I've dropped the affine cipher in favor of just using perl's existing crypto modules available at www.cpan.org . So I've built a perl

macro for an affine cipher

2010-12-18 Thread eda wizard
Greetings and Happy Holidays, I'm a long-time user of vim but new to vim macros. Wanting to go a few steps beyond rot13, I'd like to build a macro that implements an affine cipher. I see where vim can do modular arithmetic, so the questions are: 1. can vim do char->int and int->char

macro for an affine cipher

2010-12-18 Thread eda wizard
Greetings and Happy Holidays, I'm a long-time user of vim but new to vim macros. Wanting to go a few steps beyond rot13, I'd like to build a macro that implements an affine cipher. I see where vim can do modular arithmetic, so the questions are: 1. can vim do char-int and int-char

Re: macro for an affine cipher

2010-12-18 Thread eda wizard
I thank you for your prompt reply! I'll check out the links you sent, and post my macro when I get it working. Thanks again and Happy Holidays, Still-learning Stuart Get your own email service at ZZN.COM. -- You received this message from the vim_use maillist. Do not top-post! Type