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
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
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
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
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
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!
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
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
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
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
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
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
12 matches
Mail list logo