Hi,
I have file which contains hexadecimal numbers like below:
04F --- 05F --- 052 --- 188 --- 2D4 --- 173 --- 040 --- 18D
051 --- 040 --- 05F --- 1CA --- 2E8 --- 14F --- 040 --- 1E2
051 --- 040 --- 069 --- 1B9 --- 2D7 --- 15E --- 040 --- 1A6
051 ---
Hi,
I am facing this syntax highlighting problem here for the following code
segment. The problem is if we put this code in a file having .c
extension. The same macro color is shown for the main() function also.
Does anyone else faced this problem with vim7 ?
regards,
s
Could someone help me here; I tried what Dave suggested but with no success.
Regards,
Sibin
-Original Message-
From: Sibin P. Thomas [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 6:25 AM
...
I tried integrating Cscope 15.4 with Vim7.0 on WinXP (I have
installed cygwin
Hi Eric,
I am assuming you want to re-order the columns horizontally, in which case
Visual Block Mode is what you want. Press CTRL+V to start selecting a column,
use 'x' to delete it, and 'P' (upper-case P) to paste it (I find upper-case P
is more logical for Visual Block paste).
HTH,
regards,
Hi Peter
[snip]
I am assuming you want to re-order the columns horizontally, in which case
Sorry for not making my self clear.
I want to re-order the columns vertical
So column 1 is already OK, running from
04F
...
...
052
Column 2 should be
040
...
040
045
046
052
05F
ect.
[snip]
I
Sorry Chip, you are absolutely right, I obviously didn't test it
thoroughly enough the last time, just tried it out again and of course
it does as you said and reassembles the strings again when you are
finished. Very nice little script.
Thanks,
Rob.
On 8/3/06, Bart van Kuik [EMAIL PROTECTED] wrote:
Can anyone tell me whether I can customize the tab bar in vim 7.0 (vim,
not gvim). Colours, etc.
:he hl-TabLine
:he hl-TabLineFill
:he hl-TabLineSel
:he 'tabline'
Yakov
On 8/3/06, Srinivas Rao. M [EMAIL PROTECTED] wrote:
I am facing this syntax highlighting problem here for the following code
segment. The problem is if we put this code in a file having .c
extension. The same macro color is shown for the main() function also.
Does anyone else faced this problem
Can someone please tell me what library I'm suppose to point to with
--with-tlib.
Did you install the ncurses-dev package? I also use Kubuntu 6.06, but
didn't use the --with-tlib config option.
Cheers Tom. I installed the ncurses-dev package and vim 7 compiled and
runs beautifully!
:D
On Thu, 2006-08-03 at 14:09, Yakov Lerner wrote:
On 8/3/06, Srinivas Rao. M [EMAIL PROTECTED] wrote:
I am facing this syntax highlighting problem here for the following code
segment. The problem is if we put this code in a file having .c
extension. The same macro color is shown for the
Hi,
I'm using page-up and page-down to scroll.
Also ctrl-home and ctrl-end.
This moves the cursor to the beginning of the line.
How can this be avoided.
I need to the cursor to stay where it is, as the lines are 1000+ characters
long
Rgds,
Eric
[snip]
nmap silentPageDown :exe norm .winheight(0).jcr
nmap silentPageUp :exe norm .winheight(0).kcr
nmap silentc-home :let x=col('.')bar1barexe norm .x.barcr
nmap silentc-end:let x=col('.')bar$barexe norm .x.barcr
[snip]
This works great.
I'm trying to map them also to visaul-mode
Eric Leenman wrote:
[snip]
nmap silentPageDown :exe norm .winheight(0).jcr
nmap silentPageUp :exe norm .winheight(0).kcr
nmap silentc-home :let x=col('.')bar1barexe norm
.x.barcr
nmap silentc-end:let x=col('.')bar$barexe norm
.x.barcr
[snip]
This works great.
I'm trying to map them
Hi,
With gv you can re-select the previous visual block.
Is it possible to give a horizontal shift with it?
Like + or - 5?
Best Regards,
Eric
_
On the road to retirement? Check out MSN Life Events for advice on how to
get there!
With gv you can re-select the previous visual block. Is it
possible to give a horizontal shift with it? Like + or - 5?
Natively? Not as far as I know. However, if you haven't already
discovered the o command in block-wise-visual-mode, it does
bounce you to the opposite corner of the block.
Eric Leenman wrote:
Hi,
With gv you can re-select the previous visual block.
Is it possible to give a horizontal shift with it?
Like + or - 5?
Best Regards,
Eric
You can indent or unindent visually selected lines with or .
However, IIUC this is a linewise (not blockwise) operation.
Do you know of a way to do that in Windows? It's a bother trying to
remember not to press CAPS when I'm using Windows.
http://vankuik.nl/cgi/wiki.cgi/download/capslock_becomes_escape.reg
Eric Leenman wrote:
Hi,
I have file which contains hexadecimal numbers like below:
04F --- 05F --- 052 --- 188 --- 2D4 --- 173 --- 040 --- 18D
051 --- 040 --- 05F --- 1CA --- 2E8 --- 14F --- 040 --- 1E2
051 --- 040 --- 069 --- 1B9 --- 2D7 --- 15E ---
Eric Leenman wrote:
I'm using page-up and page-down to scroll.
Also ctrl-home and ctrl-end.
This moves the cursor to the beginning of the line.
How can this be avoided.
I need to the cursor to stay where it is, as the lines are 1000+
characters long
Hello!
Perhaps:set ve=all nosol
will
Hello, all. I've been tasked with migrating a large MS Works
database into the 21st century. The thing's original setup didn't
enforce any sort of standardization in data entry, so there are nearly
as many different formats and styles in the data as there have been
people entering it. My best bet
Tien Pham wrote:
I am terribly sorry that I misspelled your name Chip.
My apologies
No problem! You should see what people do to my last name
Chip Campbell
Srinivas Rao. M wrote:
I am facing this syntax highlighting problem here for the following code
segment. The problem is if we put this code in a file having .c
extension. The same macro color is shown for the main() function also.
Does anyone else faced this problem with vim7 ?
regards,
s
Eric Leenman wrote:
With gv you can re-select the previous visual block.
Is it possible to give a horizontal shift with it?
Like + or - 5?
Do you mean to move a selected block horizontally, or to have the same
visual block selection geometry shift?
Regards,
Chip Campbell
With gv you can re-select the previous visual block.
Is it possible to give a horizontal shift with it?
Like + or - 5?
Could you cut away the finished block and paste to another place, and do
gv again? Not quite reliable, but may work.
Regards,
Ben K.
Developer
http://benix.tamu.edu
Hi,
Marv Boyes wrote:
Hello, all. I've been tasked with migrating a large MS Works
database into the 21st century. The thing's original setup didn't
enforce any sort of standardization in data entry, so there are nearly
as many different formats and styles in the data as there have been
I can't seem ot get the hang of it for this particular job.
Well, even as a regexp wonk, it's a bit of a daunting task you
have before you. :)
Most of
the problem is with dates, in that I have a mishmash of formats.
Since you don't mention any other problematic sections, I guess
I'll
part of a good job is to choose the right tool.
use perl for this kind of task. use vim to edit the perl script ;-) and
search cpan before creating your own solutions!
/martin
begin:vcard
fn:Martin Kraegeloh
n:Kraegeloh;Martin
adr:;;Am Alten Pfarrhof 24;Oberbergkirchen;;84564;Germany
Tim Chase wrote:
[...]
I broke it out into multiple lines to hopefully make more sense of it.
The first two substitute() lines add a zero on the left of whatever they
found, and then take whatever the rightmost two characters of the result
are...effectively padding them with zeros on the left
Marv Boyes wrote:
For example, let's say I have some dates that look like this:
7-30-05
12-5-2006
10-2-06
What I'd like to end up with is this...
07/30/2005
12/05/2006
10/02/2006
...without, of course, having to re-type every single one
martin kraegeloh wrote:
part of a good job is to choose the right tool.
use perl for this kind of task. use vim to edit the perl script ;-)
and search cpan before creating your own solutions!
Two problems with this approach:
* Perl's regular expressions don't appear to be much more
I'm sure this is an easy one, I just can't find the answer anywhere.
I'm writing my own tabline function (based heavily on the one by Tony
Mechelynck, thanks!) and I want to be able to name a tab manually. The
best way I can think to do this is to have a tab local variable, such as
Hi, I am having problem using vim when i invoke it from GNUscreen.
i have the following vimrc
set nocompatible
set showmatch
set ruler
set virtualedit=all
set number
set title
set ls=2
set tabstop=4
set shiftwidth=4
syntax on
set background=dark
it works from from normal terminal. but when
Max Dyckhoff wrote:
I'm sure this is an easy one, I just can't find the answer anywhere.
I'm writing my own tabline function (based heavily on the one by Tony
Mechelynck, thanks!) and I want to be able to name a tab manually. The
best way I can think to do this is to have a tab local variable,
uber goonz wrote:
Hi, I am having problem using vim when i invoke it from GNUscreen.
i have the following vimrc
set nocompatible
set showmatch
set ruler
set virtualedit=all
set number
set title
set ls=2
set tabstop=4
set shiftwidth=4
syntax on
set background=dark
it works from from normal
right('0'.submatch(1), 2)
to zero-pad to 2 places. Alas, the substitute() trick is the easiest
way I've found to simulate this.
[...]
(0 . submatch(1))[-2:]
Hmmm...a nifty new feature in vim7 that is here on my work
machine, but unavailable on my hosting service (still running
If by making the desired tab current you mean using :tabn {count} then
it isn't allowed. I imagine changing tabs within the tabline function
would be A Bad Thing, and would cause recursion.
I hadn't thought about using a global array of names, although it would
be a pain to maintain when one
Is it possible to Yank Append directly to the unnamed register?
That is, without affecting any of the other named registers.
I know that the unnamed register also holds the same text
as was last yanked to a named register, but I wanted to
Yank Append without affecting any of those.
Yours,
Noah
Tim Chase wrote:
right('0'.submatch(1), 2)
to zero-pad to 2 places. Alas, the substitute() trick is the easiest
way I've found to simulate this.
[...]
(0 . submatch(1))[-2:]
Hmmm...a nifty new feature in vim7 that is here on my work machine, but
unavailable on my hosting service
(0 . submatch(1))[-2:]
Hmmm...a nifty new feature in vim7 that is here on my work machine, but
unavailable on my hosting service (still running 6.3). Looks like a
much-needed pilfering from Python's handy slicing syntax. :)
well, then,
strpart(0 . submatch(1), strlen(submatch(1)) -
I recently started work at a company where the predominant text
editor happens to be emacs. I've been using vim for a while now,
though only recently started getting into the more advanced
functionality beyond simple editing (highlighting, folding, tags
etc...). Watching one of my
On 8/3/06, Noah Spurrier [EMAIL PROTECTED] wrote:
Is it possible to Yank Append directly to the unnamed register?
That is, without affecting any of the other named registers.
I know that the unnamed register also holds the same text
as was last yanked to a named register, but I wanted to
Yank
* autocomplete - say that I've declared a constant variable in Perl
named MY_CONSTANT, later, to have the editor fill it in, I type in
MY_, and some other key-stroke, and CONSTANT gets typed in for you
Ctrl-N
* goto when compiling - when compiling with make for example, and
there is a problem
On 8/3/06, Bob Hiestand [EMAIL PROTECTED] wrote:
As is too often the case, I didn't read enough documentation. I think
this is not a well-known feature.
On 7/31/06, Bob Hiestand [EMAIL PROTECTED] wrote:
Question two:
Is there a way to set the buffer name without the name being subject
to
* autocomplete - say that I've declared a constant variable in Perl
named MY_CONSTANT, later, to have the editor fill it in, I type in
MY_, and some other key-stroke, and CONSTANT gets typed in for you
Well, I usually just use ^N and ^P in insert mode to cycle
through available completion
On 8/3/06, Lev Lvovsky [EMAIL PROTECTED] wrote:
I recently started work at a company where the predominant text
editor happens to be emacs. I've been using vim for a while now,
though only recently started getting into the more advanced
functionality beyond simple editing (highlighting,
On Thu 3-Aug-06 9:49am -0600, Jürgen Krämer wrote:
snipped
Very nice explanation! Two minor cosmetic improvements are
(1) to use Vim's line continuation to break up that very
long line and (2) making the regex very magic (your use of
comma eliminated 2 escapes, \v eliminates another 13
escapes.
For example, let's say I have some dates that look like this:
7-30-05
12-5-2006
10-2-06
What I'd like to end up with is this...
07/30/2005
12/05/2006
10/02/2006
Sorry this is a bit off topic:
I just wanted to add that ms excel, or
On 2006-08-03, Tim Chase [EMAIL PROTECTED] wrote:
* ctags variable name references - assuming I'm using ctags, how can
I replace the name of a variable throughout my code base?
Not sure on this one. One can add the files in question to the
argument/buffer list and then use
:argdo
On Thu, Aug 03, 2006 at 02:23:39PM -0700, Lev Lvovsky wrote:
* regional undo - can I select a region, and perform an undo for all
of the changes only in that region?
This has been requested before, but it is not implemented and I do
not expect that it will be added any time soon. The
I recently updated to vim 7.0 on a Gentoo Linux system. Since then,
some, but not all, of my editing sessions start out normally. After a
second or two, though, the file is shifted right two columns and numbers
appear in the first column and signs in the second column. What does
this mean?
Ulrich Lauther wrote:
On Wed, Aug 02, 2006 at 09:47:05AM +0200, Ulrich Lauther wrote:
the automated mechanism for unsubsrcibing from this list still doesn't
work.
Actually it does! I just unsubscribed from my old address, and
subscribed using my new email address. Just follow the instructions
Bug description:
===
Vim version 7.0
When receiving a netbeans 'close' command, vim does delete the
specified buffer, but the buffer's reference (buf_list[bufno].bufp
called here 'this_memory_address') is still kept in buf_list[].
It may happen that this_memory_address is once again
52 matches
Mail list logo