Re: Problem of frequency call of func through --remote-expr

2010-03-24 Thread Christian Brabandt
On Tue, March 23, 2010 3:59 pm, Ben Fritz wrote: On Mar 22, 3:25 pm, epanda callingel...@hotmail.fr wrote: Which event can I use to call myFunc each constant time? There isn't one. The closest you can get is to use both CursorHold and CursorMoved. See the :help entry for each. I believe I

Open big file in Gvim

2010-03-24 Thread lmhelp2
Hi everyone, Thank you for reading my post :) . I have a very big XML file (which is actually a Wikipedia dump)... its size is approximately 5.9 GB. I want to open it with gvim... but it looks like it can't open... Have you ever had such a problem? How can I edit it with gvim all the same? Do

Re: Problem of frequency call of func through --remote-expr

2010-03-24 Thread bill lam
mar, 23 Mar 2010, epanda skribis: Ben I know your first idea which aim to add an external process to go repeatedly call and I really think it will work. But generaly, I apply my philosophy which consist of using less layer as soon as possible. I am already using vim which call and

Re: map ò character (ograve;)

2010-03-24 Thread John Little
Rameo On Mar 23, 11:07 pm, rameo rai...@gmail.com wrote: Has anybody an idea how to map the backtick on an italian keyboard (there is no backtick on italian keyboard)? Sorry, I'm sure what you want. (Why map a backtick if you haven't got one?) Do you want to map something to get a backtick?

Re: Open big file in Gvim

2010-03-24 Thread Tim Chase
lmhelp2 wrote: I have a very big XML file (which is actually a Wikipedia dump)... its size is approximately 5.9 GB. I don't know whether you're running under a 32-bit or 64-bit OS. You can read up on Vim's limitations at :help limits particularly the Maximum file size section. If

Re: Open big file in Gvim

2010-03-24 Thread Tim Chase
lmhelp2 wrote: I have a very big XML file (which is actually a Wikipedia dump)... its size is approximately 5.9 GB. I don't know whether you're running under a 32-bit or 64-bit OS. You can read up on Vim's limitations at :help limits particularly the Maximum file size section. If

Re: Open big file in Gvim

2010-03-24 Thread Tony Mechelynck
On 24/03/10 11:29, lmhelp2 wrote: Hi everyone, Thank you for reading my post :) . I have a very big XML file (which is actually a Wikipedia dump)... its size is approximately 5.9 GB. I want to open it with gvim... but it looks like it can't open... Have you ever had such a problem? How can I

Re: Open big file in Gvim

2010-03-24 Thread lmhelp2
Hi Tim, Thank you for your answer :) . I don't know whether you're running under a 32-bit or 64-bit OS. I am running a 32-bits OS. :help limits Maximum file size 2147483647 bytes (2 Gbyte) when a long integer is 32 bits. Much more for 64 bit longs. Depending on the changes you're

Re: Open big file in Gvim

2010-03-24 Thread Christian Brabandt
On Wed, March 24, 2010 2:23 pm, lmhelp2 wrote: For the moment, I am just trying to view the file's contents... some other program is supposed to perform things afterwards I haven't yet faced that matter. I think less and probably also more/most only load that part of the data that they

Re: Open big file in Gvim

2010-03-24 Thread Benjamin R. Haskell
On Wed, 24 Mar 2010, lmhelp2 wrote: For the moment, I am just trying to view the file's contents... some other program is supposed to perform things afterwards I haven't yet faced that matter. I have just downloaded csplit. Thanks for the cat and sed tips. For actually processing an

Re: Open big file in Gvim

2010-03-24 Thread Charles Campbell
lmhelp2 wrote: Hi again :) , I forgot I had a little additional question (sorry): how can I view Vim's parameters current values like: what are the current values for the enc and fenc parameters? I use my .vimrc to set some of these parameters but where can I see all the implicit or default

Re: Open big file in Gvim

2010-03-24 Thread Gary Johnson
On 2010-03-24, lmhelp2 wrote: Hi again :) , I forgot I had a little additional question (sorry): how can I view Vim's parameters current values like: what are the current values for the enc and fenc parameters? I use my .vimrc to set some of these parameters but where can I see all the

Re: How to remember end of line when quitting/reopening in insert mode

2010-03-24 Thread Tony Mechelynck
On 23/03/10 23:36, Gary Johnson wrote: On 2010-03-23, Jean Johnerjean.joh...@cea.fr wrote: On Mar 23, 6:24 pm, Gary Johnsongaryj...@spocom.com wrote: ... Hi Gary, You are right, there is one column more in insert mode than in normal mode. This is clear if you have set ruler which indicates

Re: Help with LocalLeader Setup

2010-03-24 Thread Tony Mechelynck
On 22/01/10 20:27, mlip...@gmail.com wrote: Hi, I am relatively new to VIM, so I apologize if this question is ridiculous. I am trying to use a plugin (VimClojure) and cannot seem to execute the default mappings. For example, '\sr' is supposed to open a REPL buffer; however, it seems as though

Re: How to remember end of line when quitting/reopening in insert mode

2010-03-24 Thread Jean Johner
On Mar 24, 3:33 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: ... Sorry. I did not want to be offending or authoritary. I just wanted to outline that the fact that easy gvim (with the present vimrc_example.vim) does not remember end of lines is an obvious imperfection which gives a bad

Re: Trouble with syntax pattern offset

2010-03-24 Thread Vitor Eiji Justus Sakaguti
Ben, thank you very much! On Tue, Mar 16, 2010 at 4:45 AM, Benjamin R. Haskell v...@benizi.com wrote: Three things that help it work: ... I will study these subjects. This was a fun one, even though I suspect you already worked around it somehow. I hadn't, was living with the wrong

Re: Open big file in Gvim

2010-03-24 Thread lmhelp2
- Hi Ben, Thank you for the tip. If I've got it right, xml_split and xml_merge would then be an alternative to csplit... Looks great! - Hi Gary, It totally helps. It

Re: How to set the path of a file as the current directory of gvim on linux automatically when it is opened ?

2010-03-24 Thread Tony Mechelynck
On 23/01/10 03:22, Lenin Lee wrote: On Windows, when I double click a file and open it using gvim, the path of the file will be set as the current directory of gvim. But when I do the same thing on linux, the current directory of gvim always is my home directory. I searched for the question

Re: Problem of frequency call of func through --remote-expr

2010-03-24 Thread Ben Fritz
On Mar 24, 4:48 am, Christian Brabandt cbli...@256bit.org wrote: Yes, Simply call feedkeys in your autocommand and put in some key, that won't hurt. Something like this may be: fu! s:Run()    let k_refresh=\x0c this is ctrl-l     Do whatever you want to be done here    echomsg

Re: Programming With Proportional Fonts?

2010-03-24 Thread Tony Mechelynck
On 23/01/10 11:21, Nicolas Aggelidis wrote: have you seen this? http://developers.slashdot.org/story/10/01/17/0715219/Programming-With-Proportional-Fonts?from=rssutm_source=feedburnerutm_medium=feedutm_campaign=Feed%3A+Slashdot%2Fslashdot+%28Slashdot%29 whats your opinion? is there anyway to

Re: How to remember end of line when quitting/reopening in insert mode

2010-03-24 Thread Andy Wokula
Am 24.03.2010 16:03, schrieb Jean Johner: On Mar 24, 3:33 pm, Tony Mechelynckantoine.mechely...@gmail.com wrote: ... Sorry. I did not want to be offending or authoritary. I just wanted to outline that the fact that easy gvim (with the present vimrc_example.vim) does not remember end of lines

Re: OmniCppComplete Issue

2010-03-24 Thread MK
On Mon, 22 Mar 2010 15:56:07 -0700 (PDT) MasterKey damienrad...@gmail.com wrote: Can anyone get this to work? Did you create a ctags file in the directory containing your project? I haven't been using omnicppcomplete very long, but I do know it will not pick stuff up until it is not included in

Re: How to remember end of line when quitting/reopening in insert mode

2010-03-24 Thread Andy Wokula
Am 24.03.2010 17:21, schrieb Andy Wokula: Am 24.03.2010 16:03, schrieb Jean Johner: On Mar 24, 3:33 pm, Tony Mechelynckantoine.mechely...@gmail.com wrote: ... Sorry. I did not want to be offending or authoritary. I just wanted to outline that the fact that easy gvim (with the present

Always name buffer with respect to cwd, bug?

2010-03-24 Thread Aarto Matti
Hello, :cd /usr/include/ :e xorg/shadow.h :e /usr/include/xorg/site.h it names buffers as xorg/shadow.h and /usr/include/xorg/site.h. :cd . now buffers are xorg/shadow.h and xorg/site.h. :e /usr/include/xorg/site.h nothing changed. Is this a bug? If it names buffers according to given file

Re: map ò character (ograve;)

2010-03-24 Thread rameo
Hello John, Thank you for answering. As you know ,in vim the backtick is used to go back to last edited line ( `. ) Backtick takes you to an exact mark location while single-quote simply takes you to the beginning of the marked line I tried to map the backtick as you indicated but it still

Re: Problem of frequency call of func through --remote-expr

2010-03-24 Thread epanda
Hi Christian, it is invasive cause I cannot edit Text while my cppcheck process is running BUT It is a cool new func I have learned !!! Meanwhile it is taking all resources, I use it. Thanks -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the

Re: Problem of frequency call of func through --remote-expr

2010-03-24 Thread epanda
Sorry for the bad precedent message : Christian your solution is working perfectly. I can writing into the buffer and use Gvim as I want while refresh of cppcheck progression is done perfectly. So Thank you , it is perfect. Epanda -- You received this message from the vim_use maillist. Do not

Re: map ò character (ograve;)

2010-03-24 Thread Tony Mechelynck
On 24/03/10 19:11, rameo wrote: Hello John, Thank you for answering. As you know ,in vim the backtick is used to go back to last edited line ( `. ) Backtick takes you to an exact mark location while single-quote simply takes you to the beginning of the marked line I tried to map the backtick

How find the hex code of composed key

2010-03-24 Thread epanda
Hi, Christian recently show me that \x0c was the hex code of ctrl-l How can I compute the code of those sorts of keys'combination as ctrl- i etc Thank you -- 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

Re: How find the hex code of composed key

2010-03-24 Thread Tim Chase
epanda wrote: Christian recently show me that \x0c was the hex code of ctrl-l How can I compute the code of those sorts of keys'combination as ctrl- i etc Well ctrl+A through ctrl+Z are sequentially \x01 through \x1a while the remainder are a bit more hodgepodge such as esc = ctrl+[ =

Re: How find the hex code of composed key

2010-03-24 Thread Christian Brabandt
Hi epanda! On Mi, 24 Mär 2010, epanda wrote: Christian recently show me that \x0c was the hex code of ctrl-l How can I compute the code of those sorts of keys'combination as ctrl- i etc I usually do ga on the character :h ga regards, Christian -- You received this message from the

Re: How find the hex code of composed key

2010-03-24 Thread Benjamin R. Haskell
On Wed, 24 Mar 2010, epanda wrote: Hi, Christian recently show me that \x0c was the hex code of ctrl-l How can I compute the code of those sorts of keys'combination as ctrl-i etc Thank you Easiest is probably: iC-v(char)ESCga Stepwise, that's: i - enter insert mode C-v

Re: How find the hex code of composed key

2010-03-24 Thread Bee
On Mar 24, 12:36 pm, epanda callingel...@hotmail.fr wrote: Christian recently show me that \x0c was the hex code of ctrl-l How can I compute the code of those sorts of keys'combination as ctrl-i etc... I made an ASCII chart that I printed. Control

Re: How to remember end of line when quitting/reopening in insert mode

2010-03-24 Thread Jean Johner
On Mar 24, 6:29 pm, Andy Wokula anw...@yahoo.de wrote: This one is slightly more robust: ... It seems to work very nicely. Congratulations Andy! Perhaps it could be worth suggesting Bram to incorporate that code in his vimrc_example.vim (after addind the necessary tests that gvim is called

Re: Always name buffer with respect to cwd, bug?

2010-03-24 Thread Tony Mechelynck
On 24/03/10 18:32, Aarto Matti wrote: Hello, :cd /usr/include/ :e xorg/shadow.h :e /usr/include/xorg/site.h it names buffers as xorg/shadow.h and /usr/include/xorg/site.h. :cd . now buffers are xorg/shadow.h and xorg/site.h. :e /usr/include/xorg/site.h nothing changed. Is this a bug? If

Color Syntax Highlighter

2010-03-24 Thread Carlos Mennens
I have Vim 7.2.385-1 on my Linux server and I noticed today when I opened up a configuration file for my mail server, one of the parameters where not displayed in color like the rest of the file. Generally when I see a parameter in a configuration file in white, it's a type or invalid command. I

Why is template highlighted in Java code

2010-03-24 Thread Joshua Swink
I'm wondering why the word template is highlighted in vim in my Java code. Apparently template is not a keyword in the Java language. Vim is highlighting the word with a bright red background, the same as if I'd entered a syntax error. I'm using vim 7.2 as provided by Ubuntu 9.10's vim-gnome

Re: How to remember end of line when quitting/reopening in insert mode

2010-03-24 Thread Jean Johner
On Mar 24, 10:00 pm, Jean Johner jean.joh...@cea.fr wrote: (after addind the necessary tests that gvim is called with -y or evim is used). Tests are not even necessary, it works equally well with gvim alone. Miraculous! Best regards. Jean -- You received this message from the vim_use

Re: How find the hex code of composed key

2010-03-24 Thread Tony Mechelynck
On 24/03/10 20:36, epanda wrote: Hi, Christian recently show me that \x0c was the hex code of ctrl-l How can I compute the code of those sorts of keys'combination as ctrl- i etc Thank you You already got several answers about how to find it by experiment. Now here is the rule, for

Re: Open big file in Gvim

2010-03-24 Thread Joan Miquel Torres Rigo
2010/3/24 Christian Brabandt cbli...@256bit.org On Wed, March 24, 2010 2:23 pm, lmhelp2 wrote: For the moment, I am just trying to view the file's contents... some other program is supposed to perform things afterwards I haven't yet faced that matter. I think less and probably also

Re: map ò character (ograve;)

2010-03-24 Thread John Little
I tried to map the backtick as you indicated but it still doesn't go to the last edited line. The mapping I gave was for insert mode, you need another for normal (and visual) mode: :map f4 ` and if you want to use `` to go to the position before the latest jump, I suggest another key, maybe

Re: map ò characte r (ograve;)

2010-03-24 Thread bill lam
mar, 23 Mar 2010, rameo skribis: Has anybody an idea how to map the backtick on an italian keyboard (there is no backtick on italian keyboard)? You didn't tell us what os you use. For Linux, x window support multiple keyboard layout. eg to setup us and russian layout XKBLAYOUT=us,ru so that

Dual head *-command ;)

2010-03-24 Thread meino . cramer
Hi, while programming I often run into this situation: I have a splitted view of the same sourcefile and do a '*' on a certain -for example- variable name. But I dont want to search this in the other part of the window, not in the one where I submitted '*'. Is there a way to make '*' to behave

Re: Why is template highlighted in Java code

2010-03-24 Thread Edward L. Fox
On Thu, Mar 25, 2010 at 04:48, Joshua Swink jsw...@ucmerced.edu wrote: I'm wondering why the word template is highlighted in vim in my Java code. Apparently template is not a keyword in the Java language. Vim is highlighting the word with a bright red background, the same as if I'd entered a