Re: hlsearch on dark back ground

2007-02-22 Thread Pádraig Brady
Kamaraju S Kusumanchi wrote:
> consider
> 
> $ cat file.c
> /* kamaraju
>  * kamaraju
>  * kamaraju
>  */
> kamaraju
> 
> I use konsole with black background and white foreground  on Debian Etch,
> vim 7.0.122
> 
> $ cat .vimrc
> set hls
> syn enable
> 
> With this configuration, if I do
> 
> set background=dark
> 
> and search for the word kamaraju, then text highlighted inside the comments
> is very difficult to read. More over it is very difficult to see the cursor
> (when it is inside the comments and on the word kamaraju) position.
> 
> Is there any way to use background=dark and hls together and edit a C file
> (which includes comments) efficiently?

I don't see the issue. hls will just invert the fg & bg colours.
So if you can it fine unhighlighted, the invert should be OK too?
Can you describe the colours you see (or better yet take a screenshot)
I use vim on dark terminals exclusively and have tweaked things a little
in my ~/.vimrc: http://www.pixelbeat.org/settings/.vimrc

Pádraig.



Re: hlsearch on dark back ground

2007-02-22 Thread A.J.Mechelynck

Pádraig Brady wrote:
[...]

I don't see the issue. hls will just invert the fg & bg colours.
So if you can it fine unhighlighted, the invert should be OK too?
Can you describe the colours you see (or better yet take a screenshot)
I use vim on dark terminals exclusively and have tweaked things a little
in my ~/.vimrc: http://www.pixelbeat.org/settings/.vimrc

Pádraig.




I think you're confusing 'hlsearch' with 'incsearch'. The latter gives 
find-as-you-type while you are entering a search command; it is in 
reverse-video by default. The former shows all matches after you've hit 
 on the search command; by default, it has yellow background (or brown 
background in terminals with only 8 background colours).


Best regards,
Tony.
--
Proposed Additions to the PDP-11 Instruction Set:

PI  Punch Invalid
POPIPunch Operator Immediately
PVLCPunch Variable Length Card
RASCRead And Shred Card
RPM Read Programmers Mind
RSSCreduce speed, step carefully  (for improved accuracy)
RTABRewind tape and break
RWDSK   rewind disk
RWOCRead Writing On Card
SCRBL   scribble to disk  - faster than a write
SLC Search for Lost Chord
SPSWScramble Program Status Word
SRSDSeek Record and Scar Disk
STROM   Store in Read Only Memory
TDB Transfer and Drop Bit
WBT Water Binary Tree


Re: hlsearch on dark back ground

2007-02-22 Thread Pádraig Brady
A.J.Mechelynck wrote:
> I think you're confusing 'hlsearch' with 'incsearch'.

Yes I was sorry. I see the prob now.
gray on brown is not easy to read.

Pádraig.


codepage for vim 7 windows console

2007-02-22 Thread j.hofmann
Hello,

I now use vim 7 for DOS batching in WinXP.

If I use umlaut (äöüß) in vim 7, it is displayed correctly.
But vim 7 saves the buffer using the Windows Codepage, like gvim does!
The buffer content is the same when saved by gvim and vim.

So I cannot i.e. correctly display (echo) text with umlauts 
nor work with files/directories using umlauts ((of course I don't really))

Up to vim 7 vim behaved differently, saving the buffer using the DOS
Codepage.

What has changed now, or how can I workaround?

Joachim


VIM - Vi IMproved 7.0 (2006 May 7, compiled May  7 2006 16:18:30)
MS-Windows 32 bit console version
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/



Re: Problem with opening files from UNC

2007-02-22 Thread Thomas Michael Engelke

2007/2/21, Yakov Lerner <[EMAIL PROTECTED]>:

On 2/21/07, Thomas Michael Engelke <[EMAIL PROTECTED]> wrote:
> I'm using vim7 from my Total Commander under Windows XP with the
> following command line:
>
> vim70\gvim.exe --remote-tab-silent 
>
> Whenever I try to open a file from a UNC path (e.g.
> \\Cd-server\HKR_304B\install.inf ), I get the attached message,
> roughly translated as
>
> Directory \CD-server\HKR_304B could not be found in 'cdpath'
>
> I'm not sure if this is a problem of vim. Trying the same on a random
> command line (cmd.exe) using absolute path to vim and UNC for the
> file, I get the file opened with no contents and vim claims, it's a
> new file. vim also hickups away one "\" and claims the final path is
> \Cd-server\HKR_304B\install.inf. It would save the file now to
> :\Cd-server\HKR_304B\install.inf, which is hardly what
> I tried to do :)

1. What happens if you double every backspace ? Like
\\Cd-server\\HKR_304B\\install.inf ?


Ha! This works!

Now the problem may be, how to tell the starting application to escape
every backslash. I reckon this might not be possible. Hm.

Strange though: passing vim "\" or "\\" does the same error message. I
reckon from the original error message that only the double backslash
is a problem, which vim interpretes as only the first ones are
missing, all other are right there in the message. Maybe anyone can
elaborate on that?

Thank you.

--
GPG-Key: tengelke.de/thomas_michael_engelke.asc


search something from vim in certain directory

2007-02-22 Thread Peng Yu

Hi,

I have a C++ project in some dir say "project" or its subdir. Although
I can use find and grep outside vim to search for any word in
"project". But this is not very convenient.

I want to do the search in vim. And vim should give me a list of all
the occurrences of the searched word. Then I can select any item from
the list to view it context.

The function that I want is somehow similar to :tselect, but they are
not the same. I'm wondering if somebody has the solution.

Thanks,
Peng


RE: entering copied text into command mode?

2007-02-22 Thread Gene Kwiecinski
>>>as a command, so I'd just 'v' the pathname to highlight it,
>>>control-insert it to yank it into the "clipboard"(?), then do
>>>:s@@@g
>>>ie, use shift-insert to "paste" the path directly into the command.
>>>is that any help, or were you referring to something different?

>>Unless I'm mistaken, these are OS-specific copy/paste commands, 
>>correct?  I don't have an 'insert' key on my keyboard, but I was
hoping 
>>for something built into vim, where it has it's own copy/paste buffer 
>>that it can use in the command mode.

>The clipboard is known in Vim as the + register.
>Yank to the clipboard with "+y
>Paste ("put") before the cursor with P -- after the cursor with p
>Prefix it with "+ to use the system clipboard.

What he said...

I recall there's some confusion on some OSes between '+' and '*', so I
can't help out with that, but in general, yeah, the vimmy way to do it
would be to use registers.  I'm just so used to ^X/^C/^V with other
stuff that I "adapted" to using ^del/^ins/sh-ins to do similar ops in
'vim'.

Have fun!


Re: Problem with opening files from UNC

2007-02-22 Thread Yakov Lerner

On 2/22/07, Thomas Michael Engelke <[EMAIL PROTECTED]> wrote:

2007/2/21, Yakov Lerner <[EMAIL PROTECTED]>:
> On 2/21/07, Thomas Michael Engelke <[EMAIL PROTECTED]> wrote:
> > I'm using vim7 from my Total Commander under Windows XP with the
> > following command line:
> >
> > vim70\gvim.exe --remote-tab-silent 
> >
> > Whenever I try to open a file from a UNC path (e.g.
> > \\Cd-server\HKR_304B\install.inf ), I get the attached message,
> > roughly translated as
> >
> > Directory \CD-server\HKR_304B could not be found in 'cdpath'


The incorrect interpretation of backslashes looks to me
like a bug in windows' gvim.exe. gvim.exe definitely could
double backslashes itself (if it needs it for its internal purposes),
and not require the unsuspecting user to do it. Doubling backslashes
is something we do when programming in vimscript inside vimscript
strings, but not for arguments that come from cmd.exe commandline.
Looks like something that could be fixed in gvim.exe.

Yakov



> >
> > I'm not sure if this is a problem of vim. Trying the same on a random
> > command line (cmd.exe) using absolute path to vim and UNC for the
> > file, I get the file opened with no contents and vim claims, it's a
> > new file. vim also hickups away one "\" and claims the final path is
> > \Cd-server\HKR_304B\install.inf. It would save the file now to
> > :\Cd-server\HKR_304B\install.inf, which is hardly what
> > I tried to do :)
>
> 1. What happens if you double every backspace ? Like
> \\Cd-server\\HKR_304B\\install.inf ?

Ha! This works!

Now the problem may be, how to tell the starting application to escape
every backslash. I reckon this might not be possible. Hm.

Strange though: passing vim "\" or "\\" does the same error message. I
reckon from the original error message that only the double backslash
is a problem, which vim interpretes as only the first ones are
missing, all other are right there in the message. Maybe anyone can
elaborate on that?

Thank you.

--
GPG-Key: tengelke.de/thomas_michael_engelke.asc



Re: search something from vim in certain directory

2007-02-22 Thread Jean-Rene David
* Peng Yu [2007.02.22 11:15]:
> I have a C++ project in some dir say "project"
> or its subdir. Although I can use find and grep
> outside vim to search for any word in "project".
> But this is not very convenient.

Well you can use an external grep from within vim.
One advantage is that it's relatively fast and you
can use the quickfix window. An inconvenient is
that you can't use vim regex.

:h grep
:h grepprg

If you have vim 7, then you can use vimgrep.

:h vimgrep

If your project is large, you could also use an
indexing program like "glimpse". See

http://www.vim.org/tips/tip.php?tip_id=1021

-- 
JR


Re: search something from vim in certain directory

2007-02-22 Thread Ryan Phillips
Peng Yu <[EMAIL PROTECTED]> said:
> Hi,
> 
> I have a C++ project in some dir say "project" or its subdir. Although
> I can use find and grep outside vim to search for any word in
> "project". But this is not very convenient.
> 
> I want to do the search in vim. And vim should give me a list of all
> the occurrences of the searched word. Then I can select any item from
> the list to view it context.
> 
> The function that I want is somehow similar to :tselect, but they are
> not the same. I'm wondering if somebody has the solution.
> 

You may want to check out the 'tags' feature also.  :he tags.  You
will need exuberant-ctags from ctags.sf.net.

-Ryan


Re: search something from vim in certain directory

2007-02-22 Thread Peng Yu

On 2/22/07, Jean-Rene David <[EMAIL PROTECTED]> wrote:

* Peng Yu [2007.02.22 11:15]:
> I have a C++ project in some dir say "project"
> or its subdir. Although I can use find and grep
> outside vim to search for any word in "project".
> But this is not very convenient.

Well you can use an external grep from within vim.
One advantage is that it's relatively fast and you
can use the quickfix window. An inconvenient is
that you can't use vim regex.

:h grep
:h grepprg

If you have vim 7, then you can use vimgrep.

:h vimgrep

If your project is large, you could also use an
indexing program like "glimpse". See

http://www.vim.org/tips/tip.php?tip_id=1021


Hi,

I read the help. But I still don't see how to search in all the *.h
and *.cc in a certain directory. Do I have to rely on the external
command "find"?

Thanks,
Peng


restructured text syntax file problem

2007-02-22 Thread Alan G Isaac
Single character literals are not handled correctly:
for example, ``x`` will product highlighting of the
subsequent text.

Cheers,
Alan Isaac



Re: restructured text syntax file problem

2007-02-22 Thread kib2

Alan G Isaac a écrit :

Single character literals are not handled correctly:
for example, ``x`` will product highlighting of the
subsequent text.

Cheers,
Alan Isaac



  

Hi Alan,

Mine is havingno problem at all :
see the screenshot here : h**p://kib2.free.fr/temp/reST.png


Re: search something from vim in certain directory

2007-02-22 Thread Jean-Rene David
* Peng Yu [2007.02.22 16:15]:
> I read the help. But I still don't see how to search in all the *.h
> and *.cc in a certain directory. Do I have to rely on the external
> command "find"?

It would help if you told us what version of vim
you use and what you tried.

If you have vim 7, you can use:

:vimgrep pattern directory/**/*.h

See

:h wildcard

Otherwise:

:grep -r pattern directory

though that will search all files in the
directory, recursively.

If your 'shell' is zsh, then you can use zsh's
recursive globbing patterns:

:grep pattern directory/**/*.(h|cc)(.)

If you use indexing with glimpse, you can specify
which files in which directory to index.

man glimpse
man glimpseindex

-- 
JR


Re: tips project

2007-02-22 Thread Ali Polatel
* Swaroop C H ([EMAIL PROTECTED]) wrote:
> >could you please convert a few tips using your script and them
> >post them on the wiki?  I would love to see the final output.
> 
> A heads up ... the script isn't working for other tips, I'll try to
> polish the script in the morning (well, it's 2 am here).
> 

 I wrote a script to parse vim tips which seems to work ok , here it is:
 http://hawking.nonlogic.org/code/python/vimtips.py

 I'll be happy if you guys can test it , then we can add some code to
put the parsed tips to the wiki.

 Ali

-- 
Ali Polatel (hawking) <[EMAIL PROTECTED]>
http://hawking.nonlogic.org/
gpg: F0186CA2 fp: 7110 01E2 F8B6 83A2 AC52  1D9F 986B 76E1 F018 6CA2
()  ascii ribbon campaign - against html mail
/\



Re: codepage for vim 7 windows console

2007-02-22 Thread A.J.Mechelynck

[EMAIL PROTECTED] wrote:

Hello,

I now use vim 7 for DOS batching in WinXP.

If I use umlaut (äöüß) in vim 7, it is displayed correctly.
But vim 7 saves the buffer using the Windows Codepage, like gvim does!
The buffer content is the same when saved by gvim and vim.

So I cannot i.e. correctly display (echo) text with umlauts 
nor work with files/directories using umlauts ((of course I don't really))


Up to vim 7 vim behaved differently, saving the buffer using the DOS
Codepage.

What has changed now, or how can I workaround?

Joachim


VIM - Vi IMproved 7.0 (2006 May 7, compiled May  7 2006 16:18:30)
MS-Windows 32 bit console version
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/





Method I: In Vim, set your 'encoding' to the Dos codepage you want to use. 
However there are several such codepages. The most-used ones are 437 and 850. 
You might try something like:


if ! (has("gui_running") || has("x11") || has("mac"))
if &tenc == ""
let &tenc = &enc
endif
set enc=cp850 fencs=
setg fenc=
endif

Method II: Set your console to Windows-1252. It may require special actions at 
boot-time.


(untested): in the shell

chcp 1252

Method III: Keep your 'encoding' as-is but set the 'fileencoding' to the Dos 
codepage


if ! (has("gui_running") || has("x11") || has("mac"))
setg fenc=cp850
silent! set fencs-=latin1
silent! set fencs-=default
set fencs+=cp850
endif

Method IV: For a single file only: use ++enc=cp850 (or ++enc=cp437) when 
reading and/or writing. This method can also be used in gvim.

See ":help ++opt"



Best regards,
Tony.
--
... Now you're ready for the actual shopping.  Your goal should be to
get it over with as quickly as possible, because the longer you stay in
the mall, the longer your children will have to listen to holiday songs
on the mall public-address system, and many of these songs can damage
children emotionally.  For example: "Frosty the Snowman" is about a
snowman who befriends some children, plays with them until they learn
to love him, then melts.  And "Rudolph the Red-Nosed Reindeer" is about
a young reindeer who, because of a physical deformity, is treated as an
outcast by the other reindeer.  Then along comes good, old Santa.  Does
he ignore the deformity?  Does he look past Rudolph's nose and respect
Rudolph for the sensitive reindeer he is underneath?  No.  Santa asks
Rudolph to guide his sleigh, as if Rudolph were nothing more than some
kind of headlight with legs and a tail.  So unless you want your
children exposed to this kind of insensitivity, you should shop
quickly.
-- Dave Barry, "Christmas Shopping: A Survivor's Guide"


Re[2]: restructured text syntax file problem

2007-02-22 Thread Alan G Isaac
> Alan G Isaac a écrit : 
>> Single character literals are not handled correctly: 
>> for example, ``x`` will product highlighting of the 
>> subsequent text. 


On Thu, 22 Feb 2007, apparently wrote: 
> Mine is havingno problem at all : 
> see the screenshot here : h**p://kib2.free.fr/temp/reST.png 

I do not see a **single** character literal in that shot.

Cheers,
Alan Isaac






moving buffer changes to new file?

2007-02-22 Thread Lev Lvovsky
I often times rename a file that I'm working on after I realize (or  
am told ;) that renaming it is in order.  Is there any way I can take  
the changes to that "new" file from the buffer along with the new name?


thanks!
-lev


Re: moving buffer changes to new file?

2007-02-22 Thread Alan G Isaac
On Thu, 22 Feb 2007, Lev Lvovsky apparently wrote: 
> I often times rename a file that I'm working on after I realize (or 
> am told ;) that renaming it is in order.  Is there any way I can take 
> the changes to that "new" file from the buffer along with the new name? 

:h :saveas

hth,
Alan Isaac






Re: restructured text syntax file problem

2007-02-22 Thread kib2

Alan G Isaac a écrit :


I do not see a **single** character literal in that shot.

Cheers,
Alan Isaac


  


You said for example :``x`` so I posted ``foobar`` witch is highlighted 
in red.

Now, I've made another one :

h**p://kib2.free.fr/temp/reST2.png

Is this good ?




Re: search something from vim in certain directory

2007-02-22 Thread A.J.Mechelynck

Peng Yu wrote:

On 2/22/07, Jean-Rene David <[EMAIL PROTECTED]> wrote:

* Peng Yu [2007.02.22 11:15]:
> I have a C++ project in some dir say "project"
> or its subdir. Although I can use find and grep
> outside vim to search for any word in "project".
> But this is not very convenient.

Well you can use an external grep from within vim.
One advantage is that it's relatively fast and you
can use the quickfix window. An inconvenient is
that you can't use vim regex.

:h grep
:h grepprg

If you have vim 7, then you can use vimgrep.

:h vimgrep

If your project is large, you could also use an
indexing program like "glimpse". See

http://www.vim.org/tips/tip.php?tip_id=1021


Hi,

I read the help. But I still don't see how to search in all the *.h
and *.cc in a certain directory. Do I have to rely on the external
command "find"?

Thanks,
Peng



To search for the word "word" (without quotes, but as an integral word) using 
Vim 7:


(a) in all *.c, *.cpp and *.h files in the current directory but not below:

:vimgrep /\/g *.cpp *.[ch]

(b) the same, but recurse into subdirectories:

:vimgrep /\/g ./**/*.cpp ./**/*.[ch]

If *.[ch] doesn't work on your system, replace it by *.c *.h


Best regards,
Tony.
--
Be assured that a walk through the ocean of most Souls would scarcely
get your Feet wet.  Fall not in Love, therefore: it will stick to your
face.
-- National Lampoon, "Deteriorata"


Re[2]: restructured text syntax file problem

2007-02-22 Thread Alan G Isaac
On Fri, 23 Feb 2007, apparently wrote: 
> kib2.free.fr/temp/reST2.png 

No that does not do it.
Copy this entire *line*: ``x`` is the problem.

Cheers,
Alan Isaac






Re: restructured text syntax file problem

2007-02-22 Thread kib2

Alan G Isaac a écrit :
On Fri, 23 Feb 2007, apparently wrote: 
  
kib2.free.fr/temp/reST2.png 



No that does not do it.
Copy this entire *line*: ``x`` is the problem.

Cheers,
Alan Isaac

  

Ok Alan, I saw the problem now : confirmed.
I'll try to look at the regexps when I find the time for.
Cheers,
kib2


Re: tips project

2007-02-22 Thread Swaroop C H

Fantastic!  I pasted this as-is into the wiki and here are the results:

* http://code.google.com/p/vimtips/wiki/1504_External_commands_on_Windows

We need to replace the  tags with triple braces as a start.  Also,
we may want to add bullet points to the metadata fields.

Here's a reference to the wiki markup:

* http://code.google.com/p/support/wiki/WikiSyntax

Please note that they don't use HTML markup.  Instead, they use a markup
language that seems to be a simplified mixture of MoinMoin and Mediawiki
markup.



Please see the latest version:

http://www.swaroopch.info/files/200702/scrape_tip.py.txt
http://www.swaroopch.info/files/200702/fetch_tips.py.txt

Just run 'python fetch_tips.py 1504' and it'll all dump all the 1504
tips in text files in the Google Code wiki syntax :)


Thanks,
Swaroop


Sorting a .bib file

2007-02-22 Thread Vincent Beffara

Dear list,

First of all, this is a great mailing list ! I am learning  lot.


So here is my question. I have a bibliography in a .bib file, which
(just in case) is just a plain text files containing entries that each
look like this :

@article{key,
  author = {Whatshisname, J.},
  title = {My paper}
}

(note the '@' at the beginning of the first line - folding a .bib file
is trivial for instance).

I would like to sort the entries according to, say, the author's last
name (though by key or even by first line is ok). What would be a good
way to do this ?

That's the last feature of AucTeX that I am missing from emacs ...


BTW, I did come up with an ugly hack, involving replacing all newlines
with , re-splitting at the @ signs (hence one line per entry),
sorting this, and re-breaking the entries, but I felt a bit dirty doing
it like that ;-)


Thanks in advance,

  /vincent


scripts repository

2007-02-22 Thread Simon Jackson

in debian based linux distros, you can type the following..
  apt-get install program
...and the system will download the appropriate files to install that program

does vim offer anything like this? if not how hard would this be to implement?


Re: scripts repository

2007-02-22 Thread Swaroop C H

On 2/23/07, Simon Jackson <[EMAIL PROTECTED]> wrote:

in debian based linux distros, you can type the following..
   apt-get install program
...and the system will download the appropriate files to install that program

does vim offer anything like this? if not how hard would this be to implement?


http://vim.sourceforge.net/scripts/script.php?script_id=642


Re: Sorting a .bib file

2007-02-22 Thread A.J.Mechelynck

Vincent Beffara wrote:

Dear list,

First of all, this is a great mailing list ! I am learning  lot.


So here is my question. I have a bibliography in a .bib file, which
(just in case) is just a plain text files containing entries that each
look like this :

@article{key,
  author = {Whatshisname, J.},
  title = {My paper}
}

(note the '@' at the beginning of the first line - folding a .bib file
is trivial for instance).

I would like to sort the entries according to, say, the author's last
name (though by key or even by first line is ok). What would be a good
way to do this ?

That's the last feature of AucTeX that I am missing from emacs ...


BTW, I did come up with an ugly hack, involving replacing all newlines
with , re-splitting at the @ signs (hence one line per entry),
sorting this, and re-breaking the entries, but I felt a bit dirty doing
it like that ;-)


Thanks in advance,

  /vincent



Complex sorting is best handled by the "decorate-sort-undecorate" method:

1) add a sort key in front of each line
2) sort
3) remove the sort keys.

In this case, I guess a useful sort key would be the author's last name 
followed by a space, the line number padded to a fixed length, and -- let's 
say -- the character § (or anything else which won't happen in the sort key). 
(The line number is there to make sure that lines with a common author's last 
name will be kept in the original order; it is padded to avoid sorting 10 
before 2; and the § is there to make the "undecorate" step easy.) Since not 
every line contains the author's name, you will probably have to write a 
function for step 1 above. Then (assuming the sort key is separated from the 
rest by a § character) step 2 would be just ":1,$sort" and step 3 would be 
":1,$s/^.\{-}§//" (without the quotes in both cases, of course).



Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
56. You leave the modem speaker on after connecting because you think it
sounds like the ocean wind...the perfect soundtrack for "surfing the net".


Re: scripts repository

2007-02-22 Thread A.J.Mechelynck

Simon Jackson wrote:

in debian based linux distros, you can type the following..
  apt-get install program
...and the system will download the appropriate files to install that 
program


does vim offer anything like this? if not how hard would this be to 
implement?




IIUC, apt-get is a Debian proprietary program which updates or installs some 
application from the Debian repositories. Debian probably offers it for some 
version of Vim, but, knowing Debian, it might be a version with some Debian 
patches in it (not approved by Bram); and it is no doubt an outdated version 
at least some of the time. (The latest Vim version and patchlevel is currently 
7.0.201.)


To get the Vim sources, there are currently the following possible methods:
- FTP
- CVS
- Subversion
- A-A-P

A-A-P (which requires Python) is supposed to do all the work for you 
(downloading whatever has changed, or all the sources the first time, and then 
compiling and installing). It is mentioned on the Vim site.


Personally I use FTP, which is maybe not the most "modern" method, but I know 
how to make it work, and it requires no other software than what can be 
expected to be already installed on any computer connected to the Internet.


For a detailed explanation about how I update and compile Vim for Linux, see 
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm


If you have more questions about building Vim, please ask them on the vim-dev 
mailing list.



Best regards,
Tony.
--
"One Saturday afternoon, during the campaign to decide whether or not
there should be a Coastal Commission, I took a helicopter ride from Los
Angeles to San Diego.  We passed several state beaches, some crowded
and some virtually empty.  They had the same facilities, and in some
cases the crowded and the empty beach were within a quarter mile of
each other.  Obviously many beach-goers prefer to be crowded together.
Buying more beaches that people won't go to because they prefer to be
crowded together on one beach is a ridiculous waste of our natural
resources and our taxes."
-- Ronald Reagan


Re: tips project

2007-02-22 Thread Tom Purl
I added your script to the project's SVN repository:

* http://code.google.com/p/vimtips/source

We now have a total number of *three* scripts that could possibly convert
the tips.  Thanks a ton to Dr. Chip, Swaroop, and Ali for contributing
scripts!

I really think that this should be enough scripts.  If anyone else is
thinking about contributing, I encourage you to take a look at the
existing scripts and try to improve one of them based on feedback from
the community.

Thanks again!

Tom Purl

> * Swaroop C H ([EMAIL PROTECTED]) wrote:
>> >could you please convert a few tips using your script and them
>> >post them on the wiki?  I would love to see the final output.
>>
>> A heads up ... the script isn't working for other tips, I'll try to
>> polish the script in the morning (well, it's 2 am here).
>>
>
>  I wrote a script to parse vim tips which seems to work ok , here it is:
>  http://hawking.nonlogic.org/code/python/vimtips.py
>
>  I'll be happy if you guys can test it , then we can add some code to
> put the parsed tips to the wiki.
>
>  Ali
>
> --
> Ali Polatel (hawking) <[EMAIL PROTECTED]>
> http://hawking.nonlogic.org/
> gpg: F0186CA2 fp: 7110 01E2 F8B6 83A2 AC52  1D9F 986B 76E1 F018 6CA2
> ()  ascii ribbon campaign - against html mail
> /\
>
>




Re: Sorting a .bib file

2007-02-22 Thread Kazuo Teramoto

On 2/22/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:

1) add a sort key in front of each line


For this I think is more fast and easily (but no so safe) to use
global to remove the linebreaks and substiture it for something else
like a ¬ and put the the key in  front like Tony proposed and sort
this. After you need to remove the two decorators but is fast. For the
global you can use something like:

g/@.*{/,/^}/-1s/\n/¬/

PS. with you have empty lines you need to improve this.
--
«Dans la vie, rien n'est à craindre, tout est à comprendre»
Marie Sklodowska Curie.


Re: tips project

2007-02-22 Thread Ali Polatel
* Tom Purl ([EMAIL PROTECTED]) wrote:
> I added your script to the project's SVN repository:
> 
> * http://code.google.com/p/vimtips/source
> 
> We now have a total number of *three* scripts that could possibly convert
> the tips.  Thanks a ton to Dr. Chip, Swaroop, and Ali for contributing
> scripts!
> 
> I really think that this should be enough scripts.  If anyone else is
> thinking about contributing, I encourage you to take a look at the
> existing scripts and try to improve one of them based on feedback from
> the community.
> 
> Thanks again!
> 
> Tom Purl
> 

  There is one thing to mention about parsing tips. Are we going to put
the additional comments to the wiki? There are many useful comments but
there are also many useless junk.
  It would be _lots_ of work to look at every comment and see if they're
useful or not.
  What are your ideas?

-- 
Ali Polatel (hawking) <[EMAIL PROTECTED]>
http://hawking.nonlogic.org/
gpg: F0186CA2 fp: 7110 01E2 F8B6 83A2 AC52  1D9F 986B 76E1 F018 6CA2
()  ascii ribbon campaign - against html mail
/\



Insert new blank line in normal mode

2007-02-22 Thread Alexey Vakhov

Hi Dear community,

Command o and O create new line and switch to insert mode. I want only
insert blank line and stay in normal mode. I know this problem can be
solved using simple mappting, but maybe in vim there are original
commands for this tip?
Thanks a lot

--
Alexey Vakhov mailto:[EMAIL PROTECTED]


add c/c++ snippets

2007-02-22 Thread Alexey Vakhov

Hi All,

I want to add simple code snippets. For example if I press { I
want to extend this to
{
 <--- cursor
}
How can I make this by simplest way?
Thanks.
--
Alexey Vakhov mailto:[EMAIL PROTECTED]


Advanced highlighting (using ctags for example)

2007-02-22 Thread Alexey Vakhov

Hi All,

One question more ) Can i highlight words using for example ctags file
and highlight wrong identifier like Visual Assist in Visual Studio.
Thanks.

--
Alexey Vakhov mailto:[EMAIL PROTECTED]