Re: Vim 7 performance notes
Hi Mikolaj Machowski, you wrote: Nice work. Could you send or place somewhere patches? I'd like to test them on more complex regexps. Here it is. Note that the biggest speed-up is observed when regexp is matched a lot of times. The regexp mechanism itself is not affected at all here - so if you have one regexp which runs very long you won't probably notice any major difference. -- Alexei Alexandrov regexp.c.diff Description: Binary data
Re: Vim 7 performance notes
Hi Alexei Alexandrov, you wrote: Hi Bram et al., I'm doing some performance investigations of Vim code trying to understand whether there are any possibilities to improve it. I've also noticed that Vim spends somewhat significant time on startup loading spell files (I have 2 languages in my .vimrc: set spelllang=en,ru). The time is mostly spent in EnterCriticalSection/LeaveCriticalSection with getc() upper the stack. The reason for this is CRT blocking since the runtime is multithreaded. It's Windows, but on Linux it should be similar. As far as I understand, Vim doesn't access the spell file from multiple threads. Thus, the situation can be improved a lot: on Linux by using getc_unlocked. On Windows, starting VS 2005 there is a function _getc_nolock. Before VS 2005 this function can be emulated by macro: #define _getc_nolock(_stream) (--(_stream)-_cnt = 0 ? \ 0xff *(_stream)-_ptr++ : _filbuf(_stream)) By switching to non-blocking getc() in spell.c I was able to reduce Vim startup time from about 0.9 seconds to about 0.7 seconds. -- Alexei Alexandrov
Re: Vim 7 performance notes
Alexei Alexandrov wrote: I've also noticed that Vim spends somewhat significant time on startup loading spell files (I have 2 languages in my .vimrc: set spelllang=en,ru). The time is mostly spent in EnterCriticalSection/LeaveCriticalSection with getc() upper the stack. The reason for this is CRT blocking since the runtime is multithreaded. It's Windows, but on Linux it should be similar. As far as I understand, Vim doesn't access the spell file from multiple threads. Thus, the situation can be improved a lot: on Linux by using getc_unlocked. On Windows, starting VS 2005 there is a function _getc_nolock. Before VS 2005 this function can be emulated by macro: #define _getc_nolock(_stream) (--(_stream)-_cnt = 0 ? \ 0xff *(_stream)-_ptr++ : _filbuf(_stream)) By switching to non-blocking getc() in spell.c I was able to reduce Vim startup time from about 0.9 seconds to about 0.7 seconds. How did you measure the time in EnterCriticalSection and LeaveCriticalSection? If there's no lock contention, these routines are little more than InterlockedIncrement and InterlockedDecrement, without a kernel transition or blocking. If the lock is already held, then by definition, EnterCriticalSection has to block until the lock is available. Similarly, if LeaveCriticalSection detects that there are other callers waiting, it will signal one of the waiters. In other words, if you're seeing significant time in Enter/LeaveCS, I can think of two causes. Either your measurement tool has perturbed the results, or there really is some multithreaded lock contention. The former seems more likely, as Vim is single-threaded, but who knows what some DLLs in the Vim process might be doing. I would be vary wary of using the _getc_nolock macro until we understand why you are seeing those results. -- /George V. Reilly [EMAIL PROTECTED] http://www.georgevreilly.com/blog The biggest mistake is not learning from all your other mistakes.
RE: :copen annoying trouble
If you run make with an ! at the end of the command (:make!) then it will not jump to the first error generated. Max From: Ilia N Ternovich [EMAIL PROTECTED] Sent: Monday, February 05, 2007 11:26 PM To: vim@vim.org Subject: :copen annoying trouble Hi! When I work with many buffers inside vim and suddenly need to :copen :make project, vim opens buffer in which warning or error is detected. This is very annoying, since I have to switch from pouped-up buffer where error or warning is detected to last working one. Is it possible to switch off autoswitching to buffer where warning or error is detected? -- God bless you! Ilia 2.6.18-gentoo-r6 AMD Athlon(tm) XP 2600+ mailto: [EMAIL PROTECTED] icq: 198233378 VegaTrek Developer: http://wcuniverse.sourceforge.net/vegatrek/ VegaTrek Forum Moderator: http://vegastrike.sourceforge.net/forums/viewforum.php?f=13 You know you're using the computer too much when: beautiful women start looking as good a penguins do... -- jcmorris $gpg --keyserver cryptonomicon.mit.edu --search-keys tillias
Re: How to maximize my vim window when I start it?
On 2/4/07, Jiang Ting [EMAIL PROTECTED] wrote: 1. How to setup my gvim to open to the maximal size when I start it? How do you open gvim? If you start by clicking the icon, you may right click the icon and find an option regarding the size when starting in property (I'm not using win XP now so I'm not sure about the exact option).
Re: Vim presentation in Mountain View
Hopefully this will be available on google videos. -- .
break option lines
Hello, is it possible in a vimrc for comma separated option strings like this one below to break: set dictionary=$VIM\SQLDict\BPMS_Stamm.txt,$VIM\SQLDict\BPMS_Mandant.txt,$VIM\SQL Dict\CBS_2005.txt,$VIM\SQLDict\ICCS_Net_Strommixer.txt,$VIM\SQLDict\DBS.txt,$ VIM\SQLDict\cbsbestenergy.txt,$VIM\SQLDict\iccs_2005.txt... many other files.. Thank You Joachim ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/
Re: break option lines
is it possible in a vimrc for comma separated option strings like this one below to break: set dictionary=$VIM\SQLDict\BPMS_Stamm.txt,$VIM\SQLDict\BPMS_Mandant.txt,$VIM\SQL Dict\CBS_2005.txt,$VIM\SQLDict\ICCS_Net_Strommixer.txt,$VIM\SQLDict\DBS.txt,$ VIM\SQLDict\cbsbestenergy.txt,$VIM\SQLDict\iccs_2005.txt... many other files.. The first idea off the top of my head: let s=$VIM\\SQLDict\\BPMS_Stamm.txt, let s=s.$VIM\\SQLDict\\BPMS_Mandant.txt, let s=s.$VIM\\SQLDict\\CBS_2005.txt, ... let dictionary=s Note that I escaped the back-slashes as that might be important in preventing odd problems. You might even need to double those so that the final option gets set to something escaped. IIRC, Vim is smart enough to swap them on the fly, allowing things like let s=$VIM/SQLDict/BPMS_Stamm.txt, let s=s.$VIM/SQLDict/BPMS_Mandant.txt, let s=s.$VIM/SQLDict/CBS_2005.txt, ... even on Win32, which is less ambiguous and less prone to problems. HTH, -tim
Re: break option lines
Hi, [EMAIL PROTECTED] schrieb: is it possible in a vimrc for comma separated option strings like this one below to break: set dictionary=$VIM\SQLDict\BPMS_Stamm.txt,$VIM\SQLDict\BPMS_Mandant.txt,$VIM\SQL Dict\CBS_2005.txt,$VIM\SQLDict\ICCS_Net_Strommixer.txt,$VIM\SQLDict\DBS.txt,$ VIM\SQLDict\cbsbestenergy.txt,$VIM\SQLDict\iccs_2005.txt... many other files.. if you want to break a long line you must write a backslash as the first non-white-space character on every but the first line set dictionary=$VIM\SQLDict\BPMS_Stamm.txt, \$VIM\SQLDict\BPMS_Mandant.txt, \$VIM\SQLDict\CBS_2005.txt, \$VIM\SQLDict\ICCS_Net_Strommixer.txt, \$VIM\SQLDict\DBS.txt, \$VIM\SQLDict\cbsbestenergy.txt, \$VIM\SQLDict\iccs_2005.txt Or you can use multiple set-commands, the first with a single = and the rest with +=: set dictionary=$VIM\SQLDict\BPMS_Stamm.txt set dictionary+=$VIM\SQLDict\BPMS_Mandant.txt set dictionary+=$VIM\SQLDict\CBS_2005.txt set dictionary+=$VIM\SQLDict\ICCS_Net_Strommixer.txt set dictionary+=$VIM\SQLDict\DBS.txt set dictionary+=$VIM\SQLDict\cbsbestenergy.txt set dictionary+=$VIM\SQLDict\iccs_2005.txt If the option is a comma separated list VIM takes care of the commas. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin)
Re: break option lines
[EMAIL PROTECTED] schrieb: Hello, is it possible in a vimrc for comma separated option strings like this one below to break: set dictionary=$VIM\SQLDict\BPMS_Stamm.txt,$VIM\SQLDict\BPMS_Mandant.txt,$VIM\SQL Dict\CBS_2005.txt,$VIM\SQLDict\ICCS_Net_Strommixer.txt,$VIM\SQLDict\DBS.txt,$ VIM\SQLDict\cbsbestenergy.txt,$VIM\SQLDict\iccs_2005.txt... many other files.. In the help: :help line-continuation :help cpo-C Andy -- EOF ___ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Re: timer revisited
In Vim7 feedkeys() can be used. autocmd CursorHold * call Timer() function! Timer() echo strftime(%c) let K_IGNORE = \x80\xFD\x35internal key code that is ignored call feedkeys(K_IGNORE) endfunction -- Yukihiro Nakadaira - [EMAIL PROTECTED]
Re: Go to start of visual selection
vnoremap gt esc`:exec 'norm '.visualmode().'`lt'cr vnoremap gb esc`lt:exec 'norm '.visualmode().'`'cr I don't understand why this works. There must be a difference between `v` and :normal `v` v defines a new visual area and overwrites the `,` markers. Why does ` after :normal move the cursor to the start of the _previously_ selected visual area? Sorry it's taken me a while to get back on this...life got a little crazy. Buried away in the help just above :help :map-verbose and in the section :help map-listing one finds this little morsel of help: Note: When using mappings for Visual mode, you can use the ' mark, which is the start of the last selected Visual area in the current buffer |'|. It's also possible to read the help at :help ' either way, as it refers to the last selected visual area which in visual-mode could mean either the area selected before the the one I'm currently in, or the current visual selection which is now the 'last selected visual area' because I'm now doing something other than selecting. It might help to have an extra sentence at this help to say something like If you are currently in visual mode, this refers to the beginning/end of the *previous* visual selection Hope this helps shed light on your question rather than muddy the waters. -tim
RE: Verilog Indentation
I'm attaching CCverilog.vim file which I found in my ftplugin folder, but I don't think it overrides the indentation, because if I remove the file from my ftplugin folder and launch vim, I still get c-style indenting. The result is, even if I don't have syntax set and I type 'if' and hit enter the cursor indents on the following line. I take it the tab and indenting settings I provided yesterday didn't help?? I just renamed my .vimrc and launched vim. Then I typed 'if' and hit enter and there was no indenting. The I did ':set smartindent' and typed 'if' enter again. This time it indented. If you have :set autoindent, vim will continue using indenting from the previous line. As far as your other wish, I can't offer much assistance other than to say you should read the help on syntax files. Also you should probably try ':he indenting' as it contains some interesting comments on indenting C files. -Clint From: Naim Far [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 11:20 PM To: Clint Harames; Vim users Subject: RE: Verilog Indentation Hi Clint, The word properly may seem obscure, but let me explain few details that I find very enconvient in the Verilog indentation of the VIM: 1) First of all, after the declaration of the module and all inputs/outputs, the code start at the beginning, no white spaces at the beginning to make the code more readable 2) If I don't use the begin and end, the indentation doesn't work as should, for example: if(cond) ..command0 ..command1 while the correct indentation should be: if(cond) ..command0 command -Maybe the key for the Verilog indentation in your company be the CCverilog.vim file, the VIMs default Verilog indentation file is called Verilog.vim. Maybe yours does the job better! How could I get the CCverilog.vim file?! Thanx, Naim From: Clint Harames [mailto:[EMAIL PROTECTED] Sent: Mon 2/5/2007 7:01 PM To: Naim Far; Vim users Subject: RE: Verilog Indentation I'm not sure what you mean by properly indented files because I've seen a lot of different styles in the verilog code I've reviewed even though it is coming from a group if individuals at our company who supposedly are designing to a company standard. I have the following in my .vimrc: set ai always set autoindenting on set smartindent C-intelligent indenting set sw=4 shiftwidth (indent) set tabstop=8Tab width is 8 Also, I have CCverilog.vim in my ftplugin folder. -Clint -Original Message- From: Naim Far [mailto:[EMAIL PROTECTED] Sent: Sunday, February 04, 2007 5:05 AM To: Vim users Subject: Verilog Indentation Hi Vimers, Can anyone please help me with making the vim indent verilog files properly?! Thanx in advance! CCverilog.vim Description: CCverilog.vim
Re: :copen annoying trouble
Ilia N Ternovich wrote: Hi! When I work with many buffers inside vim and suddenly need to :copen :make project, vim opens buffer in which warning or error is detected. This is very annoying, since I have to switch from pouped-up buffer where error or warning is detected to last working one. Is it possible to switch off autoswitching to buffer where warning or error is detected? Sure, don't open the quickfix window (don't use :copen). You can use :cnext, :cN (aka :cprevious), :cfirst, :clast even if the quickfix window isn't displayed. Best regards, Tony. -- Commitment, n.: Commitment can be illustrated by a breakfast of ham and eggs. The chicken was involved, the pig was committed.
2html Doesn't Work with Scheme / Lisp Code and Line Numbers
Hello, This seems like a bug to me, but maybe I'm just doing something wrong. When I try to convert my Lisp or Scheme code into HTML or XHTML (both with and without CSS) using 2html.vim, I get an error and the only syntax highlighting in the HTML is the line numbering. When you look at the resulting HTML, it still has all the CSS classes in the code, rather than the font colors that actually represent that code in the current color scheme. I'm using Vim 7.0.35 on Xubuntu Linux 2.6.17-10 (using the pre-built vim-full package from the Universe repository). The output of `vim --version` is in the attached version.txt file. Here's the exact error I get: Error detected while processing /usr/share/vim/vim70/syntax/2html.vim: line 496: E486: Pattern not found: span class=\([^]*\)/span Turning off the line numbering (:let html_number_lines = 0) makes everything work just fine. I tried to do a little debugging on 2html.vim and I find that the script crashes when s:id = 0, a:style_name = 'lnr' (derived from s:HtmlFormat, line 125). 'lnr' seems to be for line numbers, which probably explains why it doesn't crash when I turn off line numbering in the HTML. I can't tell for sure if this is a bug in 2html or a bug in the Lisp and Scheme syntax files. Or maybe I'm just not hitting on the right options somewhere. So far, I've only found that it doesn't work for Scheme and Lisp syntaxes. Other languages I've tested (Smalltalk, Ada, OCaml, et al) seem to be alright. Attached is an example Scheme file (example.scm) and the HTML that 2html generates from it (example.scm.html). If anybody has any ideas about this, I'd greatly appreciate it. Thank you. -- Taylor Venable [EMAIL PROTECTED] http://www.metasyntax.net/ Simplicity is prerequisite for reliability. -- Edsger Dijkstra example.scm Description: Binary data html head title~/programs/testing/scheme/smalltalk.scm.html/title meta name=Generator content=Vim/7.0 meta http-equiv=content-type content=text/html; charset=UTF-8 /head body bgcolor=#33 text=#ff pre font color=#00 1 /fontspan class=Special(/spanspan class=Statementdefine/spanspan class=schemeStruc /spanspan class=schemeOtherfind-all/span font color=#00 2 /fontspan class=schemeStruc /spanspan class=Special(/spanspan class=Statementlambda/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=schemeOtheralist/spanspan class=schemeStruc /spanspan class=schemeOtherpredicate/spanspan class=Special)/span font color=#00 3 /fontspan class=schemeStruc/spanspan class=Special(/spanspan class=schemeOtherfind-all-r/spanspan class=schemeStruc /spanspan class=schemeOtheralist/spanspan class=schemeStruc /spanspan class=schemeOtherpredicate/spanspan class=schemeStruc /spanspan class=Constant1/spanspan class=Special)))/span font color=#00 4 /font font color=#00 5 /fontspan class=Special(/spanspan class=Statementdefine/spanspan class=schemeStruc /spanspan class=schemeOtherfind-all-r/span font color=#00 6 /fontspan class=schemeStruc /spanspan class=Special(/spanspan class=Statementlambda/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=schemeOtheralist/spanspan class=schemeStruc /spanspan class=schemeOtherpredicate/spanspan class=schemeStruc /spanspan class=schemeOtherindex/spanspan class=Special)/span font color=#00 7 /fontspan class=schemeStruc/spanspan class=Special(/spanspan class=Statementlet/spanspan class=schemeStruc /spanspan class=Special((/spanspan class=schemeOtherrange/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=schemeOtherfind-first/spanspan class=schemeStruc /spanspan class=schemeOtheralist/spanspan class=schemeStruc /spanspan class=schemeOtherpredicate/spanspan class=schemeStruc /spanspan class=schemeOtherindex/spanspan class=Special)))/span font color=#00 8 /fontspan class=schemeStruc /spanspan class=Special(/spanspan class=Statementif/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=Identifiernull?/spanspan class=schemeStruc /spanspan class=schemeOtherrange/spanspan class=Special)/spanspan class=schemeStruc /spanspan class=Special'()/span font color=#00 9 /fontspan class=schemeStruc /spanspan class=Special(/spanspan class=Identifiercons/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=Identifierlist/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=Identifiercar/spanspan class=schemeStruc /spanspan class=schemeOtherrange/spanspan class=Special)/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=Identifiercadr/spanspan class=schemeStruc /spanspan class=schemeOtherrange/spanspan class=Special))/span font color=#0010 /fontspan class=schemeStruc /spanspan class=Special(/spanspan class=schemeOtherfind-all-r/spanspan class=schemeStruc /spanspan class=Special(/spanspan class=Identifiercaddr/spanspan class=schemeStruc /spanspan
Re: color loading sequence in GVIM
Thanks folks, I got it working now. From: A.J.Mechelynck [EMAIL PROTECTED] To: Eric Leenman [EMAIL PROTECTED] CC: vim@vim.org, [EMAIL PROTECTED] Subject: Re: color loading sequence in GVIM Date: Tue, 06 Feb 2007 04:01:01 +0100 Eric Leenman wrote: Hi, Following your comments, I've converted my file to a scheme and placed it in C:\Program Files\Vim\vimfiles\colors For testing I also placed a bw.vim and a print_bw.vim in it. The problem now is that it doesn't get loaded. When I type :colorscheme eric it says E185: Can not find colorscheme eric :colorscheme eric loads (on Windows, with the default 'runtimepath') the first one found of the following (and gives an error if none is found): 1. $HOME/vimfiles/colors/eric.vim 2. $VIM/vimfiles/colors/eric.vim 3. $VIMRUNTIME/colors/eric.vim 4. $VIM/vimfiles/after/colors/eric.vim 5. $HOME/vimfiles/after/colors/eric.vim The script should set g:colors_name to eric. 1 and 5 are for private single-user files, 2 and 4 for system-wide files (which all users will see identically on multiuser system), 3 for whatever is distributed together with Vim (and users shouldn't meddle with it, as any upgrade can silently erase any changes you make there). When I type echo g:colors_name it says undefined variable When I type :colorscheme print_bw it switches to this scheme When I type echo g:colors_name it says print_bw Copying the print_bw file to print_bw2.vim and changing only the line let g:colors_name = blabla gives also the same errors with my ëricscheme Why Rgds, Eric The :scriptnames command will tell you exactly which scripts were sourced, and in which sequence. Best regards, Tony. -- Peanut Blossoms 4 cups sugar 16 tbsp. milk 4 cups brown sugar 4 tsp. vanilla 4 cups shortening 14 cups flour 8 eggs 4 tsp. soda 4 cups peanut butter 4 tsp. salt Shape dough into balls. Roll in sugar and bake on ungreased cookie sheet at 375 F. for 10-12 minutes. Immediately top each cookie with a Hershey's kiss or star pressing down firmly to crack cookie. Makes a hell of a lot. _ Search for grocery stores. Find gratitude. Turn a simple search into something more. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitudeFORM=WLMTAG
RE: Workspace concept ala TextPad
Sessions should do what you want. You can look at :help session for more information, but this is basically what I do: 1. Open the files that you want, in tabs (I typically have three tabs with source files, a tab with my todo.otl file, another with some init files and another with my .vimrc). 2. Type :mksession ~/work_session.vim The file work_session.vim now contains the state of vim as it is. You can now quit that instance of vim, start up another and do :source ~/work_session.vim Or alternatively start vim with an argument: Vim -S ~/work_session.vim Presto, your workspace is there! If you want to add or remove files, just create a new session file with mksession, or replace the existing one. I generally always have my vim session open, but whenever I need to reboot (I'm on Windows, so that is pretty often), I do a :mksession and then when I get back I just :source the file and I'm back where I left off! Hope that helps, Max -Original Message- From: Eric Leenman [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 10:37 AM To: vim@vim.org Subject: Workspace concept ala TextPad Hi, Is it possible to load a set of files when you start gvim? (Like in Textpad, for those who know this editor) For example: I have a project containing 20 files. I frequently uses 5 of them to modify and debug them. Can you give a command to vim like: Load workspace projectX, which then load the 5 defined files? And when needed add or delete files from this workspace? Rgds, Eric _ Search for grocery stores. Find gratitude. Turn a simple search into something more. http://click4thecause.live.com/search/charity/default.aspx?source=hmemt agline_gratitudeFORM=WLMTAG
Re: Workspace concept ala TextPad
Hi Eric, On 2/6/07, Eric Leenman [EMAIL PROTECTED] wrote: Hi, Is it possible to load a set of files when you start gvim? (Like in Textpad, for those who know this editor) For example: I have a project containing 20 files. I frequently uses 5 of them to modify and debug them. Can you give a command to vim like: Load workspace projectX, which then load the 5 defined files? And when needed add or delete files from this workspace? You can try using the workspace manager plugin: http://vim.sourceforge.net/scripts/script.php?script_id=1410 - Yegappan
Using (g)vim without installing it
Hi, Is it possible to start and use vim as an old exe file or com file? (don't know if the terminolgy is ok) What I mean is that old windows programs for windows 95 where just exe files, and by copy them on a pc and starting them they just work. Nowadays you have to install them first before you can use them. I recently switched jobs, and the company is fine, but they have an IT-policy that users don't have administration rights. When I asked them to install gvim, they said we use TextPad, company policy. It's the first company that I ran into this, with a @[EMAIL PROTECTED] policy, but I have to live with it. What I now want is: Preference 1: To copy and paste a (g)vim.exe file without the need to install it, or administrator rights. If this is possible, how to do this? And if to re-compile vim how do you this. Preference 2: Is it possible to install gvim on a usb-stick. If so then I can install it at my home PC on the usb-stick and then use it at work Are there any other methods? Rgds, Eric _ Check out all that glitters with the MSN Entertainment Guide to the Academy Awards® http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2
Re: Using (g)vim without installing it
On 2/6/07, Eric Leenman [EMAIL PROTECTED] wrote: Preference 1: To copy and paste a (g)vim.exe file without the need to install it, or administrator rights. If this is possible, how to do this? Should work just fine, although you'll also need to be aware of other files like _vimrc, _gvimrc, syntax files, etc. Setting $VIM appropriately should suffice. And if to re-compile vim how do you this. This is a lot more work than what you might think. Preference 2: Is it possible to install gvim on a usb-stick. Sure. Do all your installation at home onto the stick, including the runtime files and everything else. At work, just set $VIM to point to the stick.
Quickfix with latex.
Hi I compile latex using rubber[1] but I like to integrate it with vim quickfix the problem is I don't know how and I can't understand how to use makeprg and errorformat. When a rubber run is successful this is the output: --- compiling main.tex... running BibTeX on main... compiling main.tex... compiling main.tex... --- And when something fail I got this: --- compiling main.tex... running BibTeX on main... main.bib:12: [bibtex] I was expecting an = --- or this --- compiling main.tex... main.tex:521: Undefined control sequence \ection. --- The command I use to compile is 'rubber -dfs main.tex', but if I do a 'set makeprg=rubber -dfs $*' when a run :make nothing happens (vim go to shell but return after doing nothing). If I run rubber outside vim and redirect the output to a file and open it if vim -q I got the expected resulted, I can open a quickfix win a jump to the errors. But how I can integrate all this with vim? and how I can remove the lines starting with 'compiling' or 'running' Thanks! http://www.pps.jussieu.fr/~beffara/soft/rubber/ -- «Dans la vie, rien n'est à craindre, tout est à comprendre» Marie Sklodowska Curie.http://www.pps.jussieu.fr/~beffara/soft/rubber/
Re: How to maximize my vim window when I start it?
John Doe wrote: I don't know if I am in error, but ':set lines=999 columns=999' from .vimrc does not work for me under KDE 3.5. It works in ex mode, after everything is loaded, but not from the .vimrc file (and yes I am using gvim). There are also some notable strange effects: au GUIEnter * set lines=999 columns=999 seems to really make gvim think there are so many columns and lines: word-wrap is turned off and command line disappears, but it resizes the gvim's window ok. the only thing that works for me is: au CursorHold * exe ':set lines=999 columns=999 | au! CursorHold', which does the resizing after a delay, but sometimes even this produces the aforementioned strange effect. In short, under KDE, :set lines=999 columns=999 works for me after everything settles down, but not before. I am using gvim 7.0.17. I'm using gvim under kde too (currently gvim 7.0.191; rpm -qa |grep kde outputs a lot of things, among which kdebase3-SuSE-9.3-39.7 and kdebase3-devel-3.4.0-28); my vimrc includes set nocompatible [...] runtime vimrc_example.vim [...] if has(gui_running) if has(gui_gtk2) set gfn=SUSE\ Sans\ Mono\ 9 elseif has(gui_kde) set gfn=SUSE\ Sans\ Mono/9/-1/5/50/0/0/0/1/0 elseif has(x11) set gfn=-*-lucidatypewriter-medium-r-normal-*-*-100-*-*-m-*-* else set gfn=Lucida_Console:h10:cDEFAULT endif [...] set lines=9 columns=9 [...] endif [...] where the [...] represent omitted sections. gvim always starts maximized. Also (the rare times when I use it) kvim 6.2.14 (a version of gvim 6.2.14 with kde patches to use Qt rather than GTK, Motif, etc.). Best regards, Tony. -- I argue very well. Ask any of my remaining friends. I can win an argument on any topic, against any opponent. People know this, and steer clear of me at parties. Often, as a sign of their great respect, they don't even invite me. -- Dave Barry
Re: Using (g)vim without installing it
Preference 1: To copy and paste a (g)vim.exe file without the need to install it, or administrator rights. If this is possible, how to do this? Should work just fine, although you'll also need to be aware of other files like _vimrc, _gvimrc, syntax files, etc. Setting $VIM appropriately should suffice. So when I xcopy the C:\Program Files\Vim on my home PC to c:\dump\prog\vim of my work pc it should work. How do I then set $VIM appropriately? Rgds, Eric _ Search for grocery stores. Find gratitude. Turn a simple search into something more. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitudeFORM=WLMTAG
Re: Using (g)vim without installing it
Preference 1: To copy and paste a (g)vim.exe file without the need to install it, or administrator rights. If this is possible, how to do this? Should work just fine, although you'll also need to be aware of other files like _vimrc, _gvimrc, syntax files, etc. Setting $VIM appropriately should suffice. So when I xcopy the C:\Program Files\Vim on my home PC to c:\dump\prog\vim of my work pc it should work. How do I then set $VIM appropriately? Rgds, Eric _ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=hmtagline
Re: How to maximize my vim window when I start it?
I am using the gentoo distro, which has gvim 7.0.17 with some gentoo patches applied. You did not tell, whether you tried the 'set lines=999 columns=999' twice in a row. Anyway, the plain setting does not work for me at all in .vimrc even though it does work after some delay, after gvim has loaded. Setting lines and columns to a large number twice always produces the strange effects I was writing about.
Re: Workspace concept ala TextPad
Is it possible to load a set of files when you start gvim? (Like in Textpad, for those who know this editor) For example: I have a project containing 20 files. I frequently uses 5 of them to modify and debug them. Can you give a command to vim like: Load workspace projectX, which then load the 5 defined files? And when needed add or delete files from this workspace? Two more options: Project plugin -- * http://www.vim.org/scripts/script.php?script_id=69 I don't know how I used to live without this plugin. It allows you to create an Eclipse-style layout of a group of files using arbitrary criteria. Plain-Old-Buffers - You could also just open all of the files in Gvim and then use a tool like selectbuf (http://www.vim.org/scripts/script.php?script_id=107) to navigate between them. HTH! Tom Purl
Resize bug (Was: html post)
John Doe wrote: I am sorry for my html post. Anyway I can reproduce the resizing bug on my system by doing: set lines=999 columns=999 twice in a row. Strange. Once I do that, gvim starts behaving strangely -- and very slowly. I don't see ex-commands I type (as if they were off-screen); what I see is my first window (with its statusline) and a couple of lines of the second window where the command-line ought to be. gvim starts using a lot of CPU time for several seconds (competing with Firefox which for some reason usually uses most). Then with the following :set lines=9 columns=9 :redir! vim.log :set lines? columns? :redir END followed in bash by cat vim.log I see two blank lines, then lines=1000 columns=1 which are the compiled-in maxima. The only way to make gvim behave normally seems to be clicking the maximize button once (maximizing the application), after what :set lines? columns? replies with sensible values of lines=37 columns=166 :qa and restart gvim: it starts up maximized with the intro screen. :set lines? columns? replies lines=37 Last set from ~/.vimrc columns=166 Last set from ~/.vimrc which is normal since my vimrc includes if has(gui_running) set lines=9 columns=9 endif and if ! verbose au VimEnter * set verbose=1 au VimLeave * set verbose=0 endif Then doing :set lines=9 columns=9 exhibits the strange behaviour avain: gvim behaves sluggishly, shows neither the bottom status line nor the command line, the command-line area is replaced by text from one of the edit files, and the right end of the status line is squeezed at the left, displaying (with a split window and a custom status line) [No Name] [utf-8,BOM] 0,0-1[0=0x00] All instead of dilating it somewhat like [No Name][utf-8,BOM] 0,0-1[0=0x00] All which would be normal, or just [No Name] which would be normal if gvim really believed it had ten thousand columns on which to draw. Now: :set lines=37 columns=166 Gvim redraws, albeit slowly (takes maybe half a second to display all the tildes for lines in the empty file) and the display looks normal again, with all status lines displayed where they belong, and All Top Bot or nn% flush at the right screen margin. Trying :set lines=9 columns=9 in kvim 6.2.14 (for comparison) exhibits different behaviour: after several seconds of intense processing, a blank window is displayed with a small scrollbar (three lines or so) at top left, all keys beep, and finally a SIGSEGV crash. (The same line in the vimrc is handled correctly, resulting in 37 lines and 142 columns, with the same font [9pt SUSE Sans Mono] but drawn slightly wider and somewhat prettier with Qt than with the GTK2 used by gvim and Thunderbird.) I think it's a bug. Workaround: :set lines=25 columns=80 lines=9 columns=9 (not needed in the vimrc). The display behaves weirdly with resizes and scrolls for a second or so, but the end result is a correct maximized display even if it already was so beforehand. Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 16. You step out of your room and realize that your parents have moved and you don't have a clue when it happened.
RE: How to maximize my vim window when I start it?
1. How to setup my gvim to open to the maximal size when I start it? How do you open gvim? If you start by clicking the icon, you may right click the icon and find an option regarding the size when starting in property (I'm not using win XP now so I'm not sure about the exact option). I had a similar problem for a long time. On this machine here, for some reason, I got it to start out maximised right off (luck?), but ironically, on my 98SE laptop, I can't do *anything* to get it to start off maximised. I tried the icon in the traybar-thingy, in the Start menu, anyplace/everyplace I could find it, set the properties to start off maximised, but it insisted on being a resizeable window. Only Tony's suggestion to try the 'simalt ~x' worked, but even so, I can see it starting out as a window, then jiggling a bit then filling out to fullsize. Point being, the simalt thing worked for me. Not quite as I wanted it to (ie, to start out maximised, not resize after loading up), but it still works.
Re: Using (g)vim without installing it
Eric Leenman wrote: Hi, Is it possible to start and use vim as an old exe file or com file? (don't know if the terminolgy is ok) What I mean is that old windows programs for windows 95 where just exe files, and by copy them on a pc and starting them they just work. Some of them, maybe. (g)vim, even for Win95, was much more than just an exe file, unless you mean a self-installer containing an archive of the whole distribution. A Vim installation contains, not only an editor executable, but also a number of support files including *.vim scripts and *.txt help files. Nowadays you have to install them first before you can use them. I recently switched jobs, and the company is fine, but they have an IT-policy that users don't have administration rights. When I asked them to install gvim, they said we use TextPad, company policy. It's the first company that I ran into this, with a @[EMAIL PROTECTED] policy, but I have to live with it. What I now want is: Preference 1: To copy and paste a (g)vim.exe file without the need to install it, or administrator rights. With just a gvim.exe, you would lack many great features such as help, filetype recognition, syntax highlighting, directory browsing, foreign language support in messages and menus, etc. etc. etc. I would not call that a functioning Vim. If this is possible, how to do this? I think you could install Vim in user space, for instance in My Documents\Vim\vim70 and below. Try downloading Steve Hall's self-installer from https://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721 and telling it to install into a Vim folder under your My documents folder. (The installer will create a vim70 folder there and put everything into that vim70 folder and subfolders of it that it will also create.) You may have to create that My Documents\Vim prior to starting the installer but I'm not sure. I hope the installer will be clever enough not to try modifying the HKEY_LOCAL_MACHINE (but only the HKEY_CURRENT_USER) registry if you install from a non-admin account. And if to re-compile vim how do you this. To compile Vim for Windows, see http://users.skynet.be/antoine.mechelynck/vim/compile.htm . It takes some work to get it running but it can be done (I know: I did it myself); however, if installing Vim is too much for you, I don't think you will be willing to put yourself to the trouble of compiling it. Preference 2: Is it possible to install gvim on a usb-stick. Of course. Install from Steve Hall's installer as above, but instead of My Documents\Vim, install under, for instance, Q:\Vim if Q: is your USB stick. Again, I don't know whether it will be necessary to create Q:\Vim first. If so then I can install it at my home PC on the usb-stick and then use it at work You may miss some things which only exist if they are set in the registry, for instance the Edit with Vim right-click menu; but I think the installation on the stick will be usable. You may have to create, let's say, a Q:\Home directory and set your HOME directory to it before starting Vim: for instance, by creating a GVIM.BAT file containing set HOME=Q:\Home Q:\Vim\vim70\%0 %1 %2 %3 %4 %5 %6 %7 %8 %9 (replace Q: by whatever is the root of the USB stick on the machine in question.) You may also set up an identical copy of that same file with the name VIM.BAT if you have also installed the Console version of Vim. With these settings, your vimrc (and gvimrc if any) will be in Q:\Home Are there any other methods? Rgds, Eric A final caveat: The VIMRUNTIME environment variable is best left unset in the environment (outside of Vim). You may or may not want to set the VIM variable but if it is set, it should be set to the Vim directory which is the parent of the vim70 installation folder for the current Vim 7.0 installation. It is not necessary to set it, but it is useful if you use the Dos Box command-line a lot: in that case, %VIM% (in any command given at the prompt) will resolve to wherever you set the VIM directory. Depending on your version of Windows, environment variables are set either in C:\AUTOEXEC.BAT or in Control Panel = System = Advanced. Best regards, Tony. -- Schapiro's Explanation: The grass is always greener on the other side -- but that's because they use more manure.
Re: How to maximize my vim window when I start it?
John Doe wrote: I am using the gentoo distro, which has gvim 7.0.17 with some gentoo patches applied. You did not tell, whether you tried the 'set lines=999 columns=999' twice in a row. Anyway, the plain setting does not work for me at all in .vimrc even though it does work after some delay, after gvim has loaded. Setting lines and columns to a large number twice always produces the strange effects I was writing about. Once I did, the other time I din't; in both cases I saw the strange results. Of course the line set lines=9 columns=9 is present only once in my vimrc; /that/ doesn't give me any strange behaviour. See also what I said (to someone on Xubuntu) in the thread html post which ought to have been started inside this thread. I forgot to attach the :version listing of my two versions of Vim. Here they are: VIM - Vi IMproved 7.0 (2006 May 7, compiled Feb 4 2007 03:42:30) Included patches: 1-191 Compiled by [EMAIL PROTECTED] Huge version with GTK2-GNOME GUI. Features included (+) or not (-): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile +python +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save system vimrc file: $VIM/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc system gvimrc file: $VIM/gvimrc user gvimrc file: $HOME/.gvimrc system menu file: $VIMRUNTIME/menu.vim fall-back for $VIM: /usr/local/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/usr/X11R6/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/opt/gnome/include/libgnomeui-2.0 -I/opt/gnome/include/libgnome-2.0 -I/opt/gnome/include/libgnomecanvas-2.0 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/include/gconf/2 -I/opt/gnome/include/libbonoboui-2.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/opt/gnome/include/orbit-2.0 -I/opt/gnome/include/libbonobo-2.0 -I/opt/gnome/include/gnome-vfs-2.0 -I/opt/gnome/lib/gnome-vfs-2.0/include -I/opt/gnome/include/bonobo-activation-2.0 -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/opt/gnome/lib/gtk-2.0/include -I/usr/X11R6/include -I/opt/gnome/include/atk-1.0 -I/usr/include/freetype2/config -O2 -fno-strength-reduce -Wall -I/usr/X11R6/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.6/i586-linux-thread-multi/CORE -I/usr/include/python2.4 -pthread -I/usr/include -D_LARGEFILE64_SOURCE=1 -I/usr/lib/ruby/1.8/i686-linux Linking: gcc -L/opt/gnome/lib -L/usr/X11R6/lib -rdynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.6/i586-linux-thread-multi/CORE -rdynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.6/i586-linux-thread-multi/CORE -L/usr/local/lib -o vim -L/opt/gnome/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -L/opt/gnome/lib -L/usr/X11R6/lib -lgnomeui-2 -lbonoboui-2 -lxml2 -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgnomevfs-2 -lbonobo-2 -lgconf-2 -lbonobo-activation -lORBit-2 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lXt -lncurses -lacl -lgpm -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.6/i586-linux-thread-multi/CORE /usr/lib/perl5/5.8.6/i586-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.6/i586-linux-thread-multi/CORE -lperl -lutil -lc -L/usr/lib/python2.4/config -lpython2.4 -lutil -Xlinker -export-dynamic -L/usr/lib -ltcl8.4 -lieee -lruby -lm VIM - Vi IMproved 6.2 (2003 Jun 1, compiled Mar 22
Re: How to maximize my vim window when I start it?
Gene Kwiecinski wrote: 1. How to setup my gvim to open to the maximal size when I start it? How do you open gvim? If you start by clicking the icon, you may right click the icon and find an option regarding the size when starting in property (I'm not using win XP now so I'm not sure about the exact option). I had a similar problem for a long time. On this machine here, for some reason, I got it to start out maximised right off (luck?), but ironically, on my 98SE laptop, I can't do *anything* to get it to start off maximised. I tried the icon in the traybar-thingy, in the Start menu, anyplace/everyplace I could find it, set the properties to start off maximised, but it insisted on being a resizeable window. Only Tony's suggestion to try the 'simalt ~x' worked, but even so, I can see it starting out as a window, then jiggling a bit then filling out to fullsize. Point being, the simalt thing worked for me. Not quite as I wanted it to (ie, to start out maximised, not resize after loading up), but it still works. I didn't suggest it. What I suggested was if has(gui_running) set guifont=something set lines=9 columns=9 endif (which worked for me on W98 and on XP, and still does on Linux with kde) in the vimrc. Someone else suggested :simalt ~x which works provided that, in your locale, the shortcut for Maximize in the Alt-Space menu is x. In a French version of Windows it would be :simalt ~g for instance. Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 17. You turn on your intercom when leaving the room so you can hear if new e-mail arrives.
Re: Using (g)vim without installing it
On 2/6/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Preference 2: Is it possible to install gvim on a usb-stick. Of course. Install from Steve Hall's installer as above, but instead of My Documents\Vim, install under, for instance, Q:\Vim if Q: is your USB stick. Again, I don't know whether it will be necessary to create Q:\Vim first. I haven't done this with GVim, but have with Seamonkey, XChat, and a whole host of other apps. It works like a dream.
Re: Using (g)vim without installing it
On 2/6/07, Gene Kwiecinski [EMAIL PROTECTED] wrote: They're idiots and assfaces. Tell them I said so, too. They'd rather have conformity over productivity. The appropriate term is 'asshat'; mind your language, young man...
Re: 2html Doesn't Work with Scheme / Lisp Code and Line Numbers
On Wed, 07 Feb 2007 00:13:41 +0100 A.J.Mechelynck [EMAIL PROTECTED] wrote: With default settings in gvim 7.0.191 running in console mode in /dev/tty (i.e., a pure-text console, not an xterm), I get no errors. The generated example.scm.html (attached) displays OK (AFAICT) in Firefox 2, in Konqueror 3.4.0 and (but not with all colours) in Lynx 2.8.5rel.2. All colors are different (in yours, the background is of a lighter grey and there are no syntax highlights). My syntax/2html.vim is dated 2007 Jan 27 and my syntax/scheme.vim is dated Nov 28, 2004 (in the text, not in the directory listing). You have an outdated version of Vim, and maybe you have an outdated version of 2html.vim too. See http://ftp.vim.org/pub/vim/runtime/7.0/patches/README for the table of contents of current patches to Vim 7.0. I suggest that you uninstall the Ubuntu version of Vim then build your own, see http://users.skynet.be/antoine.mechelynck/vim/compunix.htm Well, after a lot of playing around (tracking down dependencies in Ubuntu) I finally got everything I needed and built Vim + all patches (resulting in 7.0.192 as of tonight) from source. Still no luck, though; it has exactly the same problems. [As an interesting side note, I fetched and patched it with Aap, but when I tried to build with Aap it would segfault when you tried to get version info out of the resulting binary. Doing the standard `./configure make make install` rather than using Aap to build fixed that problem. Also, building with Aap didn't seem to allow using MzScheme (got a pre-processor error about the collects/ directory not being found).] Furthermore, it doesn't seem to be an encoding problem, at least not at the level of the source file. Both UTF-8 and ISO-8859-1 have the same problem. It's probably some sort of environment problem, though, seeing as there are now two confirmed cases of it working (not me). Thanks for the ideas though. It feels good to have a custom-built version of Vim, and now with MzScheme support, too! Still... it would be nice to know why this is not working. -- Taylor Venable [EMAIL PROTECTED] http://www.metasyntax.net/ Simplicity is prerequisite for reliability. -- Edsger Dijkstra
Re: 2html Doesn't Work with Scheme / Lisp Code and Line Numbers
On Tue, 6 Feb 2007 22:25:05 -0500 Theerasak Photha [EMAIL PROTECTED] wrote: BTW---where can I find a syntax highlighting file for Smalltalk? It should be syntax/st.vim -- Taylor Venable [EMAIL PROTECTED] http://www.metasyntax.net/ Simplicity is prerequisite for reliability. -- Edsger Dijkstra
Re: 2html Doesn't Work with Scheme / Lisp Code and Line Numbers
Theerasak Photha wrote: On 2/6/07, Taylor Venable [EMAIL PROTECTED] wrote: snip 2html stuff Mine appears to have worked. As a last resort, you can use http://paste.lisp.org to highlight sources. BTW---where can I find a syntax highlighting file for Smalltalk? VIM - Vi IMproved 7.0 (2006 May 7, compiled Nov 9 2006 20:29:18) Compiled by hanumizzle Huge version with GTK2 GUI. Features included (+) or not (-): [...] Home-compiled 7.0.0. Theerasak (or is it Photha?), I really think you ought to consider updating: patch 192 has been published about one hour ago. See ftp://ftp.vim.org/pub/vim/patches/7.0/ (README is the table of contents) and optionally http://users.skynet.be/antoine.mechelynck/vim/compunix.htm , which I have just updated. Best regards, Tony. -- At Group L, Stoffel oversees six first-rate programmers, a managerial challenge roughly comparable to herding cats. -- The Washington Post Magazine, June 9, 1985
Re: 2html Doesn't Work with Scheme / Lisp Code and Line Numbers
On 2/7/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Home-compiled 7.0.0. Theerasak (or is it Photha?) Well, it's a nym, so it doesn't really matter that much, but you would be correct in addressing me as Theerasak, disregarding any deferential terms. To simplify things, just call me 'hanu'. I really think you ought to consider updating: patch 192 has been published about one hour ago. See ftp://ftp.vim.org/pub/vim/patches/7.0/ (README is the table of contents) and optionally http://users.skynet.be/antoine.mechelynck/vim/compunix.htm , which I have just updated. I am getting Vim from Subversion and will install as soon as I know what patches I should apply. All of them? I am using wget to download them now. Dank u wel. (Or is it Merci bien? X-D )