On Tue, April 5, 2011 12:42 am, Israel Chauca F. wrote:
> On Apr 4, 2011, at 5:31 PM, Daniel M. Eldridge wrote:
>> How do I insert the current line number into a text file; how can I do
>> this while padding to six digits?
>
>
> This should do the trick:
>
> :%s/^/\=repeat(0,6-len(line('.'))).line(
Hi,
Does anyone tried making autocomplete scripts for verilog and systemverilog
languages.
Please point me to any script deals with autocomplete of these languages.
Thanks
Venu
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are reply
Reply to message «Re: non-interactive vimdiff to stdout»,
sent 07:19:31 05 April 2011, Tuesday
by Ben Fritz:
> 1. "Normal special character coloring": what does this mean?
That mean that special characters are highlighted with SpecialKey highlighting,
not with surrounding syntax group highlighti
On Apr 4, 6:31 am, Wojciech Brański wrote:
> Hi
>
> I am on vim7.3 with +perl/dyn and perl512.dll library in the vim.exe dir.
> I try to use :perldo but I optain:
> E370: Coul not load library perl512.dll
> Sorry, this cimmand is disable:
>
> Do someone know the issue ?
>
Vim only interfa
On Apr 4, 5:31 pm, "Daniel M. Eldridge" wrote:
> I have a file that consists of approx 400K lines and 25762K chars
>
> this work is the result of someone who has copied existing files onto itself
> multiple times.
>
> In an effort to "decrypt" this mess I am:
> a) inserting .pp to indicate parag
On Apr 4, 12:15 am, ZyX wrote:
> Reply to message «non-interactive vimdiff to stdout»,
> sent 01:20:44 04 April 2011, Monday
> by geronime:
>
> > I would like a non-interactive output of "vimdiff file1 file2" to STDOUT or
> > a tip to some diff program with similar formatting to vimdiff.
>
> If
Hi folks,
I'm working on a writing website. I am making an attempt to transplant the
commands of the vim's Normal mode to an online editor.
The h and l moving comands have been implemented. And I have added two
commands H and L: when you move the cursor, you'll select the characters it
goes thro
On Apr 5, 3:36 am, David Ohlemacher wrote:
> I have a couple of those books. But I keep going back to my Programming
> Perl book (camel book). It has a nice and succinct (~10 pages)
> explanation of regex.
Yes, I used to print out and pin up part of pattern.txt in the Vim
help from \@! to \@>,
When I exit vim it resets the title of my screen session, the relevant
lines in my .vimrc are:
if $INSCREEN != ""
"This is profoundly broken if we're not in screen.
set t_ts=^[k
set t_fs=^[\
let &titleold=$sTITLE
set title
endif
$INSCREEN is set to true if I am within screen (
Hello everyone, I'm using latexsuite with vim and I am currently
editing files that have the form
\documentclass[10pt]{article}
\input{header.tex}
\item blah
\input{footer.tex}
The problem is that the \begin{document} declaration is in the
header.tex file, so that when I try to us
Like butter!!
Thank-you very much.
--Dan
On Mon, Apr 4, 2011 at 6:42 PM, Israel Chauca F.
wrote:
>
> On Apr 4, 2011, at 5:31 PM, Daniel M. Eldridge wrote:
>
> > I have a file that consists of approx 400K lines and 25762K chars
> >
> > this work is the result of someone who has copied existing fi
On Apr 4, 2011, at 5:31 PM, Daniel M. Eldridge wrote:
> I have a file that consists of approx 400K lines and 25762K chars
>
> this work is the result of someone who has copied existing files onto itself
> multiple times.
>
> In an effort to "decrypt" this mess I am:
> a) inserting .pp to indica
I get it now.
Thank-you very much!
--Dan
On Mon, Apr 4, 2011 at 12:37 AM, Gary Johnson wrote:
> On 2011-04-03, Daniel M. Eldridge wrote:
> > I'm bamboozled about vim's internal grep.
> >
> > I'm looking for all files that contain the pattern "pattern" in the
> current
> > directory (is there a w
I have a file that consists of approx 400K lines and 25762K chars
this work is the result of someone who has copied existing files onto itself
multiple times.
In an effort to "decrypt" this mess I am:
a) inserting .pp to indicate paragraph beginnings
b) replacing sentence endings with \r so that
Tim Chase, Mon, Apr 04, 2011 at 02:15:12PM -0500:
> To simplify Venu's solution:
>
> :%s/^PP \d\+,\zs\d\+/\=submatch(0)-120/g
>
> -tim
Yeah, that's more along the lines of what I originally tried.
Thanks.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your r
Am 04.04.2011 10:12, schrieb rameo:
I noted a problem when using vmenu:
I created this submenu:
vnoremenu 96.447.10&Sort.Swap\ Words.Swap\ 2\ words\ around\
another\ word\
vnoremenu 96.447.11&Sort.Swap\ Words.Swap\ 4\ words\ 2\ by\
2\
vnoremenu 96.447.12&Sort.Swap\ Words.Swap\ 3\ words\ 1\ b
On 04/04/2011 01:58 PM, Taylor Hedberg wrote:
In other words, these lines match the regex:
/^PP \d\+,\d\+/
I wanted to decrement the second number in each pair by 120
To simplify Venu's solution:
:%s/^PP \d\+,\zs\d\+/\=submatch(0)-120/g
-tim
--
You received this message
Venu Gopal, Tue, Apr 05, 2011 at 12:35:09AM +0530:
> Hi,
> You can use submatch().
> In your example:
> :%s/\(PP \d\+,\)\(\d\+\)/\=submatch(1).(submatch(2)-120)/
>
> submatch(0) will contain whole string like &.
>
> Thanks
> Venu
Perfect, thanks!
--
You received this message from the "vim_use"
Hi,
You can use submatch().
In your example:
:%s/\(PP \d\+,\)\(\d\+\)/\=submatch(1).(submatch(2)-120)/
submatch(0) will contain whole string like &.
Thanks
Venu
On Tue, Apr 5, 2011 at 12:28 AM, Taylor Hedberg wrote:
> I have a file that contains several lines that start out similar to
> these:
I have a file that contains several lines that start out similar to
these:
PP 124,152
PP 83,938
PP 877,994
In other words, these lines match the regex:
/^PP \d\+,\d\+/
I wanted to decrement the second number in each pair by 120, and I ended
up with someth
On 2011-04-04, lzap wrote:
> Hello,
>
> when I execute with the bang (e.g. :!perl %) I always get less paging program
> that does not allow me to scroll up. It only accepts any key and goes a page
> down.
I don't see any paging when I execute a shell command, e.g., ls -l.
I just see all but the l
On 2011-04-04, Christian Brabandt wrote:
> On Mon, April 4, 2011 6:37 am, Gary Johnson wrote:
> > but to be honest, it's not clear to me from that explanation what
> > the effect of the g flag is. I don't use :vimgrep very much.
>
> from :h vimgrep:
> Without the 'g' flag each line is added o
I have a couple of those books. But I keep going back to my Programming
Perl book (camel book). It has a nice and succinct (~10 pages)
explanation of regex. It's perlish, but close to many implementations
including Boost's.
Boost's docs have a nice reference for the re syntax, but it wont te
On Friday 01 of April 2011 17:48:11 Tim Gray wrote:
> I'm a new user of vim and am currently evaluating it for my uses. I'm
> coming from BBEdit. One of the features of BBEdit that I've found useful
> is the 'persistent include.'* It's mostly used for HTML. The idea behind
> it is that you can
On Sun, April 3, 2011 1:03 am, carlosvillu wrote:
> Hi Tim,
>
> Thanks for your answer, but is not exactly what I am looking for,
> because to used that mapping I need go out from the insert mode to the
> normal mode and then used shift-left. What I am really looking for is
> will be able used shif
On Sun, Apr 03, 2011 at 05:37:05AM -0700, ale wrote:
> >
> set term? gives me xterm.
> i haven't change it manually.
Given that, and some proposed solutions which might not be so easy for
everyone to maintain long term, due to complexity, I'll offer what is
working for me, in an xterm. (So far, an
Thanks Christian. Got it. I tried with dictionary items, it is working
great. Thanks again.
Do you know any example or vim scripts for my reference. Or do we have any
vim script, which will take a list of auto-completes and apply ( i mean like
snippets).
Thanks
Venu
On Mon, Apr 4, 2011 at 5:48
On Sun, April 3, 2011 5:36 am, venuparipelly wrote:
> Hi all,
> I would like to custom auto-complete function for my files. I can do
> something like this as provided in vimdoc.
> fun! CompleteMonths(findstart, base)
> if a:findstart
> " locate the start of the word
>
Hi
I am on vim7.3 with +perl/dyn and perl512.dll library in the vim.exe dir.
I try to use :perldo but I optain:
E370: Coul not load library perl512.dll
Sorry, this cimmand is disable:
Do someone know the issue ?
salute.
--
You received this message from the "vim_use" maillist.
Do not to
On Mon, April 4, 2011 6:37 am, Gary Johnson wrote:
> but to be honest, it's not clear to me from that explanation what
> the effect of the g flag is. I don't use :vimgrep very much.
from :h vimgrep:
Without the 'g' flag each line is added only once.
With 'g' every match is added.
So if a
On 03/04/11 14:35, Dotan Cohen wrote:
I use a terrible Windows 7 machine at my college with no admin access.
I do have access to the CMD and can run "portable apps" on it. I can
alter the path in the CMD. The first thing that I do when I sit at a
machine is mount my DiskOnKey then add the path to
I noted a problem when using vmenu:
I created this submenu:
vnoremenu 96.447.10 &Sort.Swap\ Words.Swap\ 2\ words\ around\
another\ word\
vnoremenu 96.447.11 &Sort.Swap\ Words.Swap\ 4\ words\ 2\ by\
2\
vnoremenu 96.447.12 &Sort.Swap\ Words.Swap\ 3\ words\ 1\ by\
2\
However when I don't select
Hello,
when I execute with the bang (e.g. :!perl %) I always get less paging
program that does not allow me to scroll up. It only accepts any key and
goes a page down.
Is there any way to set a different paging program? I guess this is not a
GNU less but Vim internal less.
Solution could be a
On 03.04.11 21:10:21 , Gary Johnson-4 [via VIM] wrote:
> On 2011-04-03, geronime wrote:
> > Hello,
> >
> > I would like a non-interactive output of "vimdiff file1 file2" to STDOUT or
> > a tip to some diff program with similar formatting to vimdiff.
> >
> > Any hints appreciated.
>
> For a side-
34 matches
Mail list logo