Non sequential diff

2011-03-02 Thread Schorschie
Hello Forum, I'm quite new here, so I'm not familiar with your etiquette yet. I can indtroduce myself later if you want. I'm currently comparing a lot of text*) so I was wondering weather there is something wich finds me blocks of similar text in different context of a file. Google couldn't help

Folded code indicator

2011-03-02 Thread Marin van Beek
Dear Vim users, I'm trying to use code folding in Python, but it clutters my screen a bit. I'm using the desert colorscheme and the background color of the lines that replace the folded code is not the same as the rest of the file. I'd like to change this so that all the lines of code (including

Re: Non sequential diff

2011-03-02 Thread Ben Schmidt
On 2/03/11 7:37 PM, Schorschie wrote: Hello Forum, I'm quite new here, so I'm not familiar with your etiquette yet. I can indtroduce myself later if you want. I'm currently comparing a lot of text*) so I was wondering weather there is something wich finds me blocks of similar text in different

Re: Folded code indicator

2011-03-02 Thread Ben Schmidt
On 2/03/11 7:41 PM, Marin van Beek wrote: I'm trying to use code folding in Python, but it clutters my screen a bit. I'm using the desert colorscheme and the background color of the lines that replace the folded code is not the same as the rest of the file. I'd like to change this so that all

Re: Non sequential diff

2011-03-02 Thread Hugh Sasse
On Wed, 2 Mar 2011, Schorschie wrote: Hello Forum, I'm quite new here, so I'm not familiar with your etiquette yet. I can indtroduce myself later if you want. I'm currently comparing a lot of text*) so I was wondering weather there is something wich finds me blocks of similar text in

Re: Help! how to check viminfo for errors?

2011-03-02 Thread Ben Schmidt
What version of Vim is running? I suppose you're not in a position to run a different version, either? Currently he is running vim 6.4 on a SunOS 5.9 machine. I tried the sunfreeware binary for vim 7.3, solaris 7 -- on his machine, but this version of vim seemed to have problems drawing the

Re: How to jump to position where last change was made after moving to another file?

2011-03-02 Thread robert song
On 3/2/11, Marc Weber marco-owe...@gmx.de wrote: Excerpts from robert song's message of Wed Mar 02 07:03:34 + 2011: For example, I use cscope and jump to the definition of one variable, but if I want to return beck to previous place I modified, I should use ctrl+o and '. , is there any way

Re: Incorrect working directory in gvim launched from Konqueror

2011-03-02 Thread Marco
On 2011-03-01 Jürgen Krämer jottka...@googlemail.com wrote: - Using au VimEnter * if expand('%') != ' | cd %:h | endif (note that the double quote must be doubled) actually, there were no double quotes in the original command, just two strings with single quotes: '%' and the empty

Re: Incorrect working directory in gvim launched from Konqueror

2011-03-02 Thread Marco
On 2011-03-01 Jean Johner jean.joh...@cea.fr wrote: Hi Jurgen, Thank you for your explanations. I can understand your preferences but consider the following facts: - launching gvim from the command line in a subdirectory always results in the subdirectory to be the working directory.

Re: Incorrect working directory in gvim launched from Konqueror

2011-03-02 Thread Jürgen Krämer
Hi, Marco schrieb: On 2011-03-01 Jürgen Krämer jottka...@googlemail.com wrote: - Using au VimEnter * if expand('%') != ' | cd %:h | endif (note that the double quote must be doubled) actually, there were no double quotes in the original command, just two strings with single quotes: '%'

Re: Incorrect working directory in gvim launched from Konqueror

2011-03-02 Thread Ben Schmidt
This line is still wrong. A single quote is missing. au VimEnter * if expand('%') != '' | cd %:h | endif This is still not what was intended, though syntactically correct. There should not be any double quotes at all: au VimEnter * if expand('%') != '' | cd %:h | endif Ben. -- You

Re: Incorrect working directory in gvim launched from Konqueror

2011-03-02 Thread Marco
On 2011-03-02 Jürgen Krämer jottka...@googlemail.com wrote: Hi, Marco schrieb: On 2011-03-01 Jürgen Krämer jottka...@googlemail.com wrote: - Using au VimEnter * if expand('%') != ' | cd %:h | endif (note that the double quote must be doubled) actually, there were no double

Proper handling of C style // comments?

2011-03-02 Thread kuru
Hi Currently when ever I open .c files, // comment lines show up as errors based on the color syntax. I have tried the latest c.vim from last November which seems to resolve the issue but that one is relatively shorter and not as extended as the previous c.vim syntax file. So I am trying to find

Re: Proper handling of C style // comments?

2011-03-02 Thread Hugh Sasse
On Wed, 2 Mar 2011, kuru wrote: Hi Currently when ever I open .c files, // comment lines show up as errors based on the color syntax. I have tried the latest c.vim from last November which seems to resolve the issue but that one is relatively shorter and not as extended as the previous

Re: Proper handling of C style // comments?

2011-03-02 Thread Christian Brabandt
Hi kuru! On Mi, 02 Mär 2011, kuru wrote: Currently when ever I open .c files, // comment lines show up as errors based on the color syntax. I have tried the latest c.vim from last November which seems to resolve the issue but that one is relatively shorter and not as extended as the previous

setting the name of the swap file?

2011-03-02 Thread Matt Martini
Hi, Is it possible to change the name of the swap file that Vim uses? I have just started using a centralized location for swapfiles with the 'directory' option. However, I am running into a problem of name space collision, or lack of same. Often I edit files with the same name in different

Re: setting the name of the swap file?

2011-03-02 Thread Christian Brabandt
Hi Matt! On Mi, 02 Mär 2011, Matt Martini wrote: Is it possible to change the name of the swap file that Vim uses? I have just started using a centralized location for swapfiles with the 'directory' option. However, I am running into a problem of name space collision, or lack of same.

Re: Edit same in two windows same Vim session

2011-03-02 Thread Colin Beighley
Actually I didn't test this before I sent the message (sorry) and it appears that Vim automatically does this when you edit the same file in two windows in the same session. On Mar 1, 8:48 pm, Benjamin R. Haskell v...@benizi.com wrote: On Tue, 1 Mar 2011, Colin Beighley wrote: Hello, I'm

Re: setting the name of the swap file?

2011-03-02 Thread Benjamin R. Haskell
On Wed, 2 Mar 2011, Matt Martini wrote: Hi, Is it possible to change the name of the swap file that Vim uses? I have just started using a centralized location for swapfiles with the 'directory' option.  However, I am running into a problem of name space collision, or lack of same. Append

Re: Folded code indicator

2011-03-02 Thread Marin van Beek
I'm trying to use code folding in Python, but it clutters my screen a bit. I'm using the desert colorscheme and the background color of the lines that replace the folded code is not the same as the rest of the file. I'd like to change this so that all the lines of code (including the folded

search and replace with word list

2011-03-02 Thread Raleigh Rinehart
Hi All, I searched the docs/faq/archive etc and didn't find an answer to this question (but perhaps I'm not using the right keywords) Suppose I have in one file several lines (could be 100s of such lines) like this: .. Folder![CDATA[C:\work\sources\foo\bar\baz\MODULEX\lib]]/Folder .. Now in

Re: search and replace with word list

2011-03-02 Thread Tim Chase
On 03/02/2011 02:30 PM, Raleigh Rinehart wrote: Now what I would like to do is to replace each occurrence of MODULEX in file1 with the corresponding word in file 2. By corresponding I mean if the lines (from file 1) and the words (from file 2) were both well ordered sets then the match is

Re: search and replace with word list

2011-03-02 Thread raleighr3
On 03/02/2011 02:30 PM, Raleigh Rinehart wrote: Now what I would like to do is to replace each occurrence of MODULEX in file1 with the corresponding word in file 2. By corresponding I mean if the lines (from file 1) and the words (from file 2) were both well ordered sets then the

Re: Proper handling of C style // comments?

2011-03-02 Thread kuru
Hugh thanks for your time, but that one did not help me ;) Christian, that was a great solution. It did do the trick. My c.vim is from 2006, I am not using the latest one(from nov 2010 by Bram) because the older one is more extended in a way and I already created my color file. It was called

Gnu Globals Help needed, headers are in different folder

2011-03-02 Thread kuru
Hi I know this is not a Gnu Globals forum but I am sure that there are Gnu Globals users amoung Vim users. I have been trying to setup Gnu Globals with Vim. I have gone through the Gnu globals documentation whcih is pretty good, seems to explain most of the stuff. There is one thing I cannot

Re: Incorrect working directory in gvim launched from Konqueror

2011-03-02 Thread Christian Brabandt
Hi Jean! On Di, 01 Mär 2011, Jean Johner wrote: I can understand your preferences but consider the following facts: - launching gvim from the command line in a subdirectory always results in the subdirectory to be the working directory. I see no reason why double-clicking in Konqueror

Mystery vim7 versus vim6.4 - same term, different results

2011-03-02 Thread howard Schwartz
Hi, I have a mystery concerning screen display and keyboard maps. I've got nottybuiltin set, so vim reads the external termininfo first. term is set to xterm. OS is SunOS 5.9. TERMINFO is set to /etc/terminfo When I use vim version 6.4 the screen displays right and the keys work correctly,

Re: search and replace with word list

2011-03-02 Thread Tim Chase
On 03/02/2011 04:21 PM, raleighr3 wrote: I understand what you want, file1.txt looks something like ... Folder![CDATA[C:\work\sources\foo\bar\baz\MODULEX\lib]]/Folder ... Folder![CDATA[C:\work\sources\foo\bar\baz\MODULEX\lib]]/Folder ... and you have file2.txt which looks something like ...

search highlight whole word

2011-03-02 Thread Yuliang Wang
Dear Fellows, If the hlsearch is set, then all instances are highlighted, but we need to unset it every time when the search is finished. If hlsearch is not set, then only the first character of the word is highlighted, so that it is hard to see where is the word. Is there an option that the