Re: Alt key mapping trouble under windows XP

2006-06-04 Thread A.J.Mechelynck
Eyal Raab wrote: Hi, I'm using VIM 7.0 under windows XP. I'm trying to define some alt key bindings and I can't seem to succeed. The trouble I'm having is that as soon as I press the ALT key, it jumps to the menu, even if I have: set winaltkeys=menu or set winaltkeys=no I've looked around

Re: Alt key mapping trouble under windows XP

2006-06-04 Thread A.J.Mechelynck
Eyal Raab wrote: Hi Tony, Thanks for the quick reply. Mabye could it be something with my new Microsoft Ergonomic keyboard? I'll look into it. Eyal. I don't know, I don't even know what a "Microsoft Ergonomic Keyboard" looks like. I've always used plain rectangular AZERTY keyboards (with

Re: quick math computations

2006-06-04 Thread A.J.Mechelynck
stri ker wrote: Thanks, this does work for addition and subtraction. The problem I run into is when I try to divide and return a decimal. For example: !echo '(17/32)*1000' | bc #returns 0; The problem is that the scale variable in bc must be set to a number other than zero in order to display

Re: Fwd: grep used from gvim

2006-06-04 Thread A.J.Mechelynck
Alexandru Iancu wrote: Hi, I noticed that grep behaves differently in vim and gvim (both ran in Linux). While using grep from vim I'm able to move between the results with :cn/cp used from gvim the command gets replaced by something like: !grep -n 'my_string_and_options_here' /dev/null ... | te

Re: :ha printouts - fontsize

2006-06-04 Thread A.J.Mechelynck
cga2000 wrote: I occasionally need a quick printout of what I am currently editing and use the :ha command. I was wondering whether there was any way I could switch to a different printer font or choose a smaller font size. I doubt this is relevant but just in case I'll mention that I use vim on

Re: display tweaks - tilde lines, statusline..

2006-06-04 Thread A.J.Mechelynck
cga2000 wrote: Is there any way the "tilde lines" that represent empty lines at the end of the buffer can be changed to something else or removed altogether? You may change their colour. If you set bg and fg to the same value, they will become invisible. For instance: :hi NonText cterm=NON

Re: display tweaks - tilde lines, statusline..

2006-06-04 Thread A.J.Mechelynck
cga2000 wrote: On Sun, Jun 04, 2006 at 03:11:10PM EDT, A.J.Mechelynck wrote: [...] Note that the same highlight group also governs the @ or @@@ for a partial line at the end of a window, and possibly other things too. I had thought of that while experimenting - although I have no

Re: :ha printouts - fontsize

2006-06-04 Thread A.J.Mechelynck
cga2000 wrote: On Sun, Jun 04, 2006 at 02:57:56PM EDT, A.J.Mechelynck wrote: cga2000 wrote: I occasionally need a quick printout of what I am currently editing and use the :ha command. I was wondering whether there was any way I could switch to a different printer font or choose a

Re: any way to keep buffers confined to a tab?

2006-06-04 Thread A.J.Mechelynck
Denis Perelyubskiy wrote: Hello, Is there any way to configure tabs so that any buffer you open in it is only visible in that particular tab? This would imply that when one cycles through buffers with :bn/:bp only the buffers that are 'tied' to the tab you are in show up? Thanks, denis A si

Re: display tweaks - tilde lines, statusline..

2006-06-04 Thread A.J.Mechelynck
cga2000 wrote: On Sun, Jun 04, 2006 at 08:50:18PM EDT, A.J.Mechelynck wrote: cga2000 wrote: On Sun, Jun 04, 2006 at 03:11:10PM EDT, A.J.Mechelynck wrote: [...] Note that the same highlight group also governs the @ or @@@ for a partial line at the end of a window, and

Re: :ha printouts - fontsize

2006-06-05 Thread A.J.Mechelynck
cga2000 wrote: [...] .. as I suspected. Some of the stuff I've read about v7.0 on this list rather made my mouth water.. but as a comparatively new user of debian upgrading vim is something I'm not prepared to do just now.. Thanks, cga Well, here I am a "comparatively new" user of SuSE

Re: How can I map with the arrow keys?

2006-06-05 Thread A.J.Mechelynck
Jeremy Conlin wrote: I am trying to make a mapping to more easily switch tabs. I wanted to use CTRL-RightArrow to move to the "next" tab and CTRL-LeftArrow to move to the "previous" tab. However, I can't find in the help files how to map the arrow keys. Can someone help me? Thanks, Jeremy s

Re: E108: No such variable: "b:current_syntax"

2006-06-05 Thread A.J.Mechelynck
Thomas Schumm wrote: I had been getting this error (or something very similar) for a while now when editing PHP files, but now I'm also getting it when editing Cheetah templates. - Error detected while processing /usr/share/vi

Re: MatchParen unreadable on dark backgrounds

2006-06-06 Thread A.J.Mechelynck
Pádraig Brady wrote: Georg Dahn wrote: I use dark backgrounds (and therefore a light coloured foreground colour). As a consequence the new MatchParen highlight that is enabled by default in vim 7 is unreadable/annoying. I need to put the following in my ~/.vimrc to fix it: highlight MatchPar

Re: :ha printouts - fontsize

2006-06-07 Thread A.J.Mechelynck
cga2000 wrote: On Mon, Jun 05, 2006 at 03:11:08AM EDT, A.J.Mechelynck wrote: cga2000 wrote: [..] Well, here I am a "comparatively new" user of SuSE Linux, and I found it remarkably easy to compile Vim 7 on it. If you decide you want to try your hand at it,

Re: Upgrading to Vim 7.0 in Debian (was Re: :ha printouts - fontsize)

2006-06-07 Thread A.J.Mechelynck
cga2000 wrote: [...] Very clear explanation. What I am worried about when doing this sort of thing is that since I don't know the debian packaging system this may have side-effects that will bite me at some point in the future. In other words I do not understand the implications. Such as what hap

Re: Color for matched patterns

2006-06-07 Thread A.J.Mechelynck
Fabien Meghazi wrote: Hi, I'm correcting my color syntax for terminal but I can't find the syntax name of an highlighted string after searching in vim. Can someone tell me what is the name I'm searching for ? Thanks. To find which syntax group is assigned to the character under the cursor, pl

Re: Vim 7 Problems

2006-06-07 Thread A.J.Mechelynck
Ankur Jain wrote: Hi, I installed vim 7.0 on windows. But, I am facing 2 weird problems, please help: 1. Vim is creating backup files even when I've switched it off. I've specified set nobackup set nowritebackup in my _vimrc. Still, it creates a backup file everytime

Re: Restore cursor to last line not working in Vim 7

2006-06-07 Thread A.J.Mechelynck
Kevin Old wrote: On 6/7/06, Tim Chase <[EMAIL PROTECTED]> wrote: This would be where I'd start...comparing your old 'viminfo' setting with your new one. Thanks Tim. I've never edited settings for viminfo, but I've attached my viminfo's for both 6.3 and 7. There are File marks in the viminfo

Re: what is wrong with this autoload var usage?

2006-06-07 Thread A.J.Mechelynck
Hari Krishna Dara wrote: On Wed, 7 Jun 2006 at 8:10am, Jürgen Krämer wrote: Hi, Hari Krishna Dara wrote: I am trying to use the new vim7 "object-based" features and am stuck with an issue in using autoload style variables. Save the below as t.vim in your autoload directory and execute

Re: Restore cursor to last line not working in Vim 7

2006-06-07 Thread A.J.Mechelynck
Kevin Old wrote: On 6/7/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Kevin Old wrote: > In version 6.3 (and as far as I can remember in Vim versions) it would > return my cursor to the line I was at when I saved a file the next > time I opened that file. > > It now returns me to the beg

Re: display tweaks - tilde lines, statusline..

2006-06-07 Thread A.J.Mechelynck
cga2000 wrote: [...] .. isn't there a way one could add the customization - once it's duly tested - to a system-wide tree so other users of the system could benefit by it? Some sort of $VIMRUNTIME/local so-to-speak..? Yes, there is. It is called $VIM/vimfiles/. Check your 'runtimepath' opti

Re: Vim 7 Problems

2006-06-08 Thread A.J.Mechelynck
solved. 2. For the omni-completion, I inserted the commands: filetype plugin on filetype plugin indent on and then with the help of filetype-plugins, I could see the drop down box for completion. Thanks for the great help. Happy Vimming :) Regards Ankur Jain On 6/7/06, A.J.Mechelynck <[EM

Re: W16 warning message ("mode of file...has changed") - can this be turned off?

2006-06-09 Thread A.J.Mechelynck
Ken Guest wrote: Is it possible to stop vim from telling me that the mode of a file has changed? For example when I do a chmod +x ? thanks k. To ask only if something more than just time or mode have changed, you can paste the following (untested, but I believe it should work) into your v

Re: W16 warning message ("mode of file...has changed") - can this be turned off?

2006-06-09 Thread A.J.Mechelynck
Benji Fisher wrote: On Fri, Jun 09, 2006 at 02:03:33PM +0200, A.J.Mechelynck wrote: To ask only if something more than just time or mode have changed, you can paste the following (untested, but I believe it should work) into your vimrc: :autocmd FileChangedShell

Re: Vim doesn't open files with chinese file names

2006-06-09 Thread A.J.Mechelynck
Cesar Romani wrote: If I have a file with a chinese file name, f.e. 感情包袱.txt It won’t open but it throws the message: E303: Unable to open swap file for “.txt”, recovery impossible Instead with notepad I can open the file. Many thanks in advance, Andalou Is your Vim version compiled

Re: Simple move/rename command with cursor placement, howto?

2006-06-10 Thread A.J.Mechelynck
Marc Weber wrote: Yakov How would you implement bash Ctrl-k behaviour ? Delete from cursor till the end of line? noremap : q:i ? ;-) Marc In Normal mode, D (shift-d) deletes from cursor to end-of-line (with a count: on lines including the current one). See :help D HTH, Tony.

Re: R: Vim doesn't open files with chinese file names

2006-06-10 Thread A.J.Mechelynck
Cesar Romani wrote: > >> -Messaggio originale- >> Da: A.J.Mechelynck [mailto:[EMAIL PROTECTED] >> Inviato: venerdì 9 giugno 2006 23.34 >> A: Cesar Romani >> Cc: Vim >> Oggetto: Re: Vim doesn't open files with chinese file names >> >&g

Re: navigation using f or F

2006-06-10 Thread A.J.Mechelynck
Marc Weber wrote: [...] It is ... Try typing f] f} and ]] I think the first one is more general and easier to type because you can move your small finger above []{} while typing f ;) I prefer Ctrl-h over backspace for the same reason. Perhaps we should ask Bram to change this behaviour? Would any

Re: colseb_a.vim script, closign tags for vim /java.?

2006-06-11 Thread A.J.Mechelynck
Marc Weber wrote: I want the script to automatically close function with endfunction while with endwhile for with endfor [...] Looks like you have ideas for omni-completion on Vim files. You may want to define 'omnifunc' in a script of one of the following names: user-private on Wind

Re: Problem with example in :help complete()

2006-06-11 Thread A.J.Mechelynck
Gerald Lai wrote: Hi all, [On Windows Vim 7.0, binary at ftp://ftp.vim.org/pub/vim/pc/gvim70.exe] I'm having trouble getting the example in :help complete() to work. When I hit in Insert mode, I get this: Error detected while processing function ListMonths: line 1: E523: Not allowed here I

Re: non-latin characters aren't displayed correctly in Windows menu

2006-06-12 Thread A.J.Mechelynck
Mojca Miklavec wrote: Hello, I translated the menus for gvim and wanted to use them under windows, but the non-latin characters simply don't show in the menu (other characters are shown instead: squares š and ž and some other character for č). All other programs under Windows work fine, the enc

Re: Problem with example in :help complete()

2006-06-12 Thread A.J.Mechelynck
Gerald Lai wrote: On Sun, 11 Jun 2006, A.J.Mechelynck wrote: Gerald Lai wrote: Hi all, [On Windows Vim 7.0, binary at ftp://ftp.vim.org/pub/vim/pc/gvim70.exe] I'm having trouble getting the example in :help complete() to work. When I hit in Insert mode, I get this: Error detected

Re: Problem with example in :help complete()

2006-06-12 Thread A.J.Mechelynck
Gerald Lai wrote: On Mon, 12 Jun 2006, A.J.Mechelynck wrote: Gerald Lai wrote: On Sun, 11 Jun 2006, A.J.Mechelynck wrote: Gerald Lai wrote: Hi all, [On Windows Vim 7.0, binary at ftp://ftp.vim.org/pub/vim/pc/gvim70.exe] I'm having trouble getting the example in :help complete(

Re: Simple move/rename command with cursor placement, howto?

2006-06-12 Thread A.J.Mechelynck
Benji Fisher wrote: On Sat, Jun 10, 2006 at 03:50:52PM +0200, A.J.Mechelynck wrote: Marc Weber wrote: Yakov How would you implement bash Ctrl-k behaviour ? Delete from cursor till the end of line? noremap : q:i ? ;-) In Normal mode, D (shift-d) deletes from

Re: Positioning on a given char offset

2006-06-12 Thread A.J.Mechelynck
Fabio Rotondo wrote: Hi, I have this problem: a program of mine is giving me error positions based on the file offset and not the line containing the error. Eg. it does not warn me about an error on line "12", but at the "char 2032" Is there any command in Vim to position to that char offset?

Re: non-latin characters aren't displayed correctly in Windows menu

2006-06-12 Thread A.J.Mechelynck
Mojca Miklavec wrote: On 6/12/06, A.J.Mechelynck wrote: Mojca Miklavec wrote: > Hello, > > I translated the menus for gvim and wanted to use them under windows, > but the non-latin characters simply don't show in the menu (other > characters are shown instead: squares š

Re: Error detected while processing function 1_BMShow

2006-06-13 Thread A.J.Mechelynck
Cesar Romani wrote: I use vim 7.0 on Windows XP compiled with MS Visual C. If I do: gvim -u NONE -U NONE -c "set verbosefile=C:/vim.log" I get: -- Error detected while processing function 1_BMShow: line 12: E329: No menu "&Buffer" Error detec

Re: ***SPAM*** Error detected while processing function 1_BMShow

2006-06-13 Thread A.J.Mechelynck
Mathias Michaelis wrote: Hello Andalou I use vim 7.0 on Windows XP compiled with MS Visual C. If I do: gvim -u NONE -U NONE -c "set verbosefile=C:/vim.log" I get: -- Error detected while processing function 1_BMShow: line 12: E329: No me

Re: non-latin characters aren't displayed correctly in Windows menu

2006-06-13 Thread A.J.Mechelynck
Mojca Miklavec wrote: On 6/13/06, A.J.Mechelynck wrote: Mojca Miklavec wrote: > On 6/12/06, A.J.Mechelynck wrote: > >> You must make sure that you have: >> - an 'encoding' which includes the non-Latin characters you want to use >> - (in console Vim) a term

Re: FTDetect

2006-06-13 Thread A.J.Mechelynck
Max Dyckhoff wrote: I am having some issues with filetype detection stuff. Here is what I am doing, so far as I can see I am doing exactly what it says in the help. 1. I am on Windows, my runtimepath is ~/vimfiles,C:\Program Files\Vim/vimfiles,c:\Progam Files\Vim\vim70, C:\Program Files\Vim/v

Re: FTDetect

2006-06-13 Thread A.J.Mechelynck
Max Dyckhoff wrote: Thank you for your answers. See ":help ftdetect". The "augroup" statements are also not necessary. The variable "did_load_filetypes" is set to 1 by $VIMRUNTIME/filetype.vim (at line 10 in the version for Vim 7.0, lat change May 02). Your script is sourced from line 2166 o

Re: non-latin characters aren't displayed correctly in Windows menu

2006-06-13 Thread A.J.Mechelynck
Mojca Miklavec wrote: On 6/13/06, A.J.Mechelynck wrote: Mojca Miklavec wrote: Courier_New has a larger variety of glyphs than most other fixed-width encodings. If Lucida_Console hasn't got the glyphs you need, I recommend Courier_New. No, Lucide_Console is OK (and Courier_New as well)

Re: Error detected while processing function 1_BMShow

2006-06-13 Thread A.J.Mechelynck
Mathias Michaelis wrote: Tony, Andalou If I do: gvim -u NONE -U NONE -c "set verbosefile=C:/vim.log" I get: [...] E329: No menu "&Buffer" [...] I can confirm that behaviour of gvim, but I think it is a feature, not a bug. [...] However, under ":help -u" it is said th

Re: non-latin characters aren't displayed correctly in Windows menu

2006-06-13 Thread A.J.Mechelynck
Mojca Miklavec wrote: On 6/14/06, A.J.Mechelynck wrote: In $VIMRUNTIME/vimrc_example.vim for Vim 7.0, last change 2002 Sep 19, at line 56 filetype plugin indent on ... Thanks for all the hints. Using the extensive explanation and after playing with all possible combinations: the most

Re: How to use customized function in statusline?

2006-06-14 Thread A.J.Mechelynck
Edward L. Fox wrote: Hi VIMmers, According to the user manual ":h statusline", we should be able to evaluate a customized function to generate the statusline text: 8< When the option starts with "%!" then it is used as an expression, evaluated and

Re: nmap, scripts and UTF-8

2006-06-14 Thread A.J.Mechelynck
Jan Weytjens wrote: I use a Belgian azerty keyboard and use nmap in _vimrc (vim 7.0 on Windows 2000) to map the ² and µ keys to ~ (² is more or less in the same place on the keyboard as the tilde on an american qwerty and one can think of µ as standing for Majuscule). These mappings don't wor

Re: vim 6.3 -- problems with FORTRAN syntax

2006-06-14 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi! (I have vim 6.3.86 on a Linux machine.) I have to edit some FORTRAN 77 files, which have a naming scheme like: cmedt.edt.SOMENAME.f_# where # is a number. I cannot change anything on this naming scheme. So, I put an autocommand in my .vimrc: au BufNewFile

Re: Working with windows line endings

2006-06-14 Thread A.J.Mechelynck
Tim Chase wrote: Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Vim is pretty smart about automatically identifying line endings. If you get files from your coworkers, they should be in CR/LF format, and Vim should recog

Re: nmap, scripts and UTF-8

2006-06-14 Thread A.J.Mechelynck
Jan Weytjens wrote: Hi Tony, Ah. That's bad. Vim 7.0 on W2K aren't you. What are the answers to: gvim -N -u NONE :set encoding? latin1 :lang cty Current ctype language: "C" :echo char2nr('²') 178 :echo char2nr('µ') 181 and to gvim :verbose set enc? tenc? encoding

Re: nmap, scripts and UTF-8

2006-06-15 Thread A.J.Mechelynck
Jan Weytjens wrote: Hi Tony, with the error corrected: for files for which the encoding is set to utf-8 in my _vimrc the mappings don't work after the files are opened, but they do work if I change the encoding to latin1 (at the ex prompt), then back to utf-8. So, some progress ... Jan The f

Re: nmap, scripts and UTF-8

2006-06-15 Thread A.J.Mechelynck
Jan Weytjens wrote: Changing the order does not make a difference. Meanwhile I noticed that it is not necessary to first change the encoding to latin1. Simply setting encoding to utf-8 (in a file for with encoding is already set to utf-8!) suffices to make the mappings work. Alt-X to add XML

Re: nmap, scripts and UTF-8

2006-06-15 Thread A.J.Mechelynck
Jan Weytjens wrote: Hi Tony, my impression is that autocmd EncodingChanged * call SpecialMaps() is not executed (for a reason unknown to me). The following makes the mappings work right a way: autocmd FileType xml,xsd,wsdl set encoding=utf-8 autocmd FileType xml,xsd,wsdl

Re: Newbie notation question: hotkeys

2006-06-15 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi, I found a great perlsupport addon for vim, and love it so far. I am trying to figure out how to use the hotkeys, but cannot figure out how to translate the notation into keystrokes. can anyone walk me through what is meant by the hotkey definitions at: http:/

Re: Bug with gU and German sharp s?

2006-06-16 Thread A.J.Mechelynck
Christian Ebert wrote: * Bram Moolenaar on Friday, June 16, 2006 at 17:24:20 +0200: I'll leave it up to language specialists to decide whether making straße uppercase should result in STRAßE or STRASSE. I thought it was STRASSE. Historic: STRASZE Now: STRASSE See:

Re: Vim7 : tags and tabpage

2006-06-16 Thread A.J.Mechelynck
SHANKAR R-R66203 wrote: Hi All, I am using tags very heavily. I am used to open the files in the same window or split window using tags. How to open a file "for a tag under the cursor" in a new tabpage. Regards, shankar :tab wincmd ] see :help :tab :help :w

Re: Bug with gU and German sharp s?

2006-06-16 Thread A.J.Mechelynck
Mikolaj Machowski wrote: Dnia piątek, 16 czerwca 2006 13:34, Bram Moolenaar napisał: I see the problem. I'll put it in the todo list. Sub-problem with ß. In latin2 'encoding' (where ß also exists) it isn't changed to SS. I think behaviour should be the same for all encodings. m. In UTF-

Re: filename completion ignorecase for Vim 7

2006-06-17 Thread A.J.Mechelynck
Gerald Lai wrote: On Sat, 17 Jun 2006, Bram Moolenaar wrote: Gerald Lai wrote: For Vim 7, it seems that filename completion in the :cmdline ignores case when searching for matches. For example, :e F matches both foo.txt Foo.txt This is different from Vim 6 where it only matches

Re: filename completion ignorecase for Vim 7

2006-06-17 Thread A.J.Mechelynck
Gerald Lai wrote: On Sat, 17 Jun 2006, A.J.Mechelynck wrote: Gerald Lai wrote: On Sat, 17 Jun 2006, Bram Moolenaar wrote: Gerald Lai wrote: For Vim 7, it seems that filename completion in the :cmdline ignores case when searching for matches. For example, :e F matches both

Re: multile targets for the tag

2006-06-18 Thread A.J.Mechelynck
Yakov Lerner wrote: My code contains multiple targets for the same tag, as explained in the (*1). Let's assume that 'tags' contains multiple lines for the same name. I want to go to the *next" definition of tag 'foo', so that N presses of some key X gets me to the 1st definition of the tag, the

Re: feature request: \s in [] in regexp

2006-06-18 Thread A.J.Mechelynck
Yakov Lerner wrote: On 6/18/06, Mikolaj Machowski <[EMAIL PROTECTED]> wrote: Dnia niedziela, 18 czerwca 2006 12:00, Yakov Lerner napisał: > vim unserstands \t and \n in [] in regexp (as tab and as newline). > > But \s is not treated as blanks in []. Can you please add > treatment of \s as blanks

Re: tags, functions

2006-06-18 Thread A.J.Mechelynck
Yegappan Lakshmanan wrote: Hi Yakov, On 6/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: How can I determine [in vim function] that my current line number corresponds to the definition of tag X ? Do I need to parse tags-file for that, or I can get it using existing vim functions ? You need

Re: synchronize current working directory - problem with vim7

2006-06-18 Thread A.J.Mechelynck
K.S.Sreeram wrote: Gerald Lai wrote: For Netrw v98, this hack seems to make it work as requested: Doesn't work for me :( I installed the Decho plugin, and noticed that the 'cd' command inside netrw works, but looks like something else is resetting the directory back to the original value! Is

Re: tags, functions

2006-06-18 Thread A.J.Mechelynck
Yakov Lerner wrote: On 6/18/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Yegappan Lakshmanan wrote: > Hi Yakov, > > On 6/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: >> How can I determine [in vim function] that my current line >> number corresponds to the

Re: Comments/Additional Notes for scripts

2006-06-18 Thread A.J.Mechelynck
Jochen Baier wrote: hi, would it be possible to make a "Commments/Additional Notes" functionallty for scripts ? Similiar to the Additional Notes in the tips section. with this the feedback from the user would be better. and the developer of the script can improve the script and would be more m

Re: re-edit of previously edited file no longer returns to same location w/vim7

2006-06-18 Thread A.J.Mechelynck
Linda W wrote: Am running under cygwin, where they've updated to vim7. One of the first problems I'm noticing is that when I edit a file, then exit, then re-edit, I'm no longer placed back at the location I was at when I had previously exited. Is this a bug, or did some value not get properly u

Re: re-edit of previously edited file no longer returns to same location w/vim7

2006-06-18 Thread A.J.Mechelynck
Linda W wrote: A.J.Mechelynck wrote: when I edit a file, then exit, then re-edit, I'm no longer placed back at the same location Is this a bug, or did some value not get properly updated when we were upgraded to vim7 from vim6? I.e. do I need to change some setting? As has been repea

Re: re-edit of previously edited file no longer returns to same location w/vim7

2006-06-18 Thread A.J.Mechelynck
Linda W wrote: A.J.Mechelynck wrote: As has been repeatedly said this past week, this requires a viminfo setting and an autocommand. Has it been said that it didn't require these in the past? I.e. -- has this requirement changed since 64? No. The autocommand is defined

Re: re-edit of previously edited file no longer returns to same location w/vim7

2006-06-18 Thread A.J.Mechelynck
Linda W wrote: A.J.Mechelynck wrote: As has been repeatedly said this past week, this requires a viminfo setting and an autocommand. Maybe as has not been said. I have all that. The autocommand is defined near line 70 of $VIMRUNTIME/vimrc_example.vim so if you source the latter

Re: Newbie notation question: hotkeys

2006-06-19 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: The first two have 'no mapping found' as their response, and the last command has: n \ups :call Perl_Handle() n \lps :call Perl_Handle() -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 9:22 AM

Re: vim7 rpm available for fedora?

2006-06-19 Thread A.J.Mechelynck
Jason Aeschilman wrote: Is there a vim7 rpm for Fedora? If so, please post a link to it. Thanks. I don't know, but compiling Vim on Linux is very easy (once you have identified and downloaded all the required "development" packages from your distro CD). See my HowTo page at http://user

Re: Newbie notation question: hotkeys

2006-06-19 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: [...] Now, I would assume that these mappings would be applied either on app startup or by issuing the '\lps' sequence in normal mode. Neither seems to be the case. One question I have is: I think that there is a $HOME variable used by vim, but it may not have a value u

Re: Copying from vim to a term

2006-06-20 Thread A.J.Mechelynck
Jerin Joy wrote: Hi, I have a vim window open with a file in a terminal. I wanted to copy some text to another terminal. FIrst problem is my select. I hit the Ctrl+V to go into visual mode on a line, then hitting the Shift key and moving up and down does not select the lines below or above it. S

Re: tabline-menu

2006-06-20 Thread A.J.Mechelynck
Steve Hall wrote: On Tue, 2006-06-20 at 09:38 -0600, Eric Arnold wrote: On 6/20/06, Steve Hall <[EMAIL PROTECTED]> wrote: On Tue, 2006-06-20 at 07:38 -0700, Yegappan Lakshmanan wrote: On 6/20/06, Steve Hall <[EMAIL PROTECTED]> wrote: I can't figure out how to turn off or customize the tabline

Re: tabline-menu

2006-06-20 Thread A.J.Mechelynck
Steve Hall wrote: On Wed, 2006-06-21 at 01:50 +0200, A.J.Mechelynck wrote: Which tabline menu? [snip] do you mind the context menu which opens when right-clicking the GUI-style tabline? Sorry, I should have re-stated. I was referring to this one, the same as discussed at :help tabline

Re: how to detect c99 vs c89 (//-comments vs /*-comments)

2006-06-21 Thread A.J.Mechelynck
Russell Bateman wrote: We keep hearing about how placing a modeline at the top of the file... Because I work in a multitabbed environment (i.e.: there are more than one tab standard), I have to use a modeline to sort out tabstop and shiftwidth. I put this modeline AT THE BOTTOM of my file wher

Re: Vim Script : How to Delete a buffer or exit Vim at the end of a treatment ?

2006-06-21 Thread A.J.Mechelynck
Eddine wrote: Hi, I'm using a vim script to make some data formating. I source it from the original file I want to process and the script produces me a new file. I would like to add commands that whether emply the buffer list or exit Vim once I'm done. I tried to add :bd :bd :q or bd bd q or

Re: Differences in the gf command between Windows and Linux

2006-06-21 Thread A.J.Mechelynck
Tom Purl wrote: I've become a very big fan of using the pyGTD script from within Vim 7. pyGTD creates file output that looks similar to this: 3.61 1:00 Get your hair cut C=0 P=4 CRC=33B0 I=4 U=4 T=1H [EMAIL PROTECTED],@Work ID=5 [./inboxe

Re: Patches

2006-06-21 Thread A.J.Mechelynck
Rick Hogg wrote: Hello, VIM 7 currently has 22 patches. I just installed 7.0 yesterday, and now I'd like to install the patches. How might I go about doing that? Thanks, Rick __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam prot

Re: Network access from vim

2006-06-21 Thread A.J.Mechelynck
Stewart Johnson wrote: Hey all -- I looked through the vim FAQ/help but wasn't able to find any information about network access from within vim, so I thought I'd ask about it here. I want to initiate commands from within vim to access a specific server for information -- a TCP/IP connection, p

Re: Network access from vim

2006-06-22 Thread A.J.Mechelynck
Stewart Johnson wrote: Thanks Tony. I looked at that, but it doesn't support generic TCP sockets, nor does it support HTTP writing. I need to be able send and receive information with a remote service, and netrw only does half the job. Does the client-server stuff in vim use TCP sockets? Is that

Re: after :vert sba hide all windows again except the active on

2006-06-22 Thread A.J.Mechelynck
Johannes Schwarz wrote: I just realized the :sba or even better the :vert sba command. Is it possible to hide all windows again except the active one, which the cursor is in? Method 1: To close all windows except the current one: :only Method 2: To squash all non-current windows

Re: how to detect c99 vs c89 (//-comments vs /*-comments)

2006-06-22 Thread A.J.Mechelynck
Marc Weber wrote: Then you can use plugins like project.vim or local_vimrc.vim With local_vimrc.vim (I know 2 very similar plugins with this name, I'm maintaining one of them), add a _vimrc_local.vim (the filename expected I couldn't find them.. I've implemented something similar which loads a

Re: Visual in block mode under windows

2006-06-22 Thread A.J.Mechelynck
Chris Cooke wrote: Hi, Long time lurker first time poster :) Under windows when I try and use blockwise selection Ctl-v it just pastes whatever is in the windows clipboard. Is there a way around this? Thanks in advance, Whenever Ctrl-V does a paste, the "classical" functionality of Ctrl-V i

Re: Network access from vim

2006-06-22 Thread A.J.Mechelynck
Stewart Johnson wrote: On 6/22/06, Marc Weber <[EMAIL PROTECTED]> wrote: > Upon closer inspection, netrw delegates network activity to > wget/fetch/rsync and friends anyway, so I guess I'll do the same. It's > given me some direction on how to handle different operatings systems > -- 'if has("wi

Re: after :vert sba hide all windows again except the active on

2006-06-22 Thread A.J.Mechelynck
Jansen of Lorkeers, Richard wrote: Hello, I am a beginning user of vim and I just tried to create a .vimrc file. It is oke when I use 1 command but if I use two commands I get a error. Any one knows what the problem is. I can't find it in the documentation and neither in the example. Richard

Re: Visual in block mode under windows

2006-06-22 Thread A.J.Mechelynck
Chris Cooke wrote: On Thu, Jun 22, 2006 at 11:24:12AM +0200, A.J.Mechelynck wrote: Chris Cooke wrote: Hi, Long time lurker first time poster :) Under windows when I try and use blockwise selection Ctl-v it just pastes whatever is in the windows clipboard. Is there a way around this? Thanks

Re: Visual in block mode under windows

2006-06-22 Thread A.J.Mechelynck
mswin". ":behave mswin" is, IIRC, one of the commands issued by the mswin.vim script. Best regards, Tony. -----Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: 22 June 2006 16:38 To: A.J.Mechelynck; vim@vim.org Subject: Re: Visual in block mode under window

Re: A couple of questions about tags, directories and vimgrep

2006-06-22 Thread A.J.Mechelynck
Bernat Tallaferro wrote: Hi, I started using vim a couple of weeks ago, and although I find it an amazing editor, I'm still struggling with things that seem to be "common practice" in the vim world but are not so obvious for people like me who have always worked with IDEs. Therefore my question

Re: What might cause .vimrc not to be read

2006-06-22 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "Yakov Lerner" <[EMAIL PROTECTED]> writes: 1. Check your env. var. $VIMINIT. If VIMINIT is set, vim will skip ~/.vimrc It shows blank so not set, and I've posted the output of : echo $MYVIMRC /home/reader/.vimrc So it is appartently being sourced. I'm starti

Re: A couple of questions about tags, directories and vimgrep

2006-06-22 Thread A.J.Mechelynck
Bernat Tallaferro wrote: Tony, thanks for your reply. I'm sorry if I'm asking something obvious, but adding this to my .vimrc file: On Thu, 2006-06-22 at 22:23 +0200, A.J.Mechelynck wrote: 2. command VimGrep -nargs=1 -bar -bang \ vimgrep ../src/*.c,../inc/*.

Re: A couple of questions about tags, directories and vimgrep

2006-06-22 Thread A.J.Mechelynck
Bernat Tallaferro wrote: Hi Tony, I'm still getting the "E488: Trailing characters" error with this: On Thu, 2006-06-22 at 23:32 +0200, A.J.Mechelynck wrote: command! VimGrep -nargs=1 -bar -bang \ vimgrep ../inc/*.h ../src/*.c Any ideas? Hm. Wit

Re: A couple of questions about tags, directories and vimgrep

2006-06-22 Thread A.J.Mechelynck
Bernat Tallaferro wrote: On Fri, 2006-06-23 at 00:03 +0200, A.J.Mechelynck wrote: Hm. With which pattern are you invoking this command? And what is the current directory? (use the ":pwd" command if you arren't sure.) I'm on /home/dpm/project/src, editing myfile.c.

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: Try running Vim as "vim -D" with your usual vimrc. Then when you see the ">" prompt, you may optionally run ":echo" commands to see what happens, then hit s (Step into) o

Re: Errors when editing via FTP (netrw -- ?)

2006-06-23 Thread A.J.Mechelynck
Marv Boyes wrote: Hello, all. I've combed the list for references to this problem and found nothing, but please forgive a short-sighted newbie if I've overlooked something pertinent. I'm using Vim 7 in three different places: Mandrake Linux 9.2 (built from aap, with all patches applied) Windows

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: Well, if you get no enlightenment from running Vim with the "-D" switch then using "s" repeatedly at the ">" prompt to step through all lines of all scripts that get ru

Re: Patches

2006-06-23 Thread A.J.Mechelynck
src/vim --version make install >> make.log For Windows, compilation is done with one of several makefiles (Make-*.mak) in vim70/src depending on which compiler you're using, so after patching the details are different. See my W32 HowTo for details. Best regards, Tony.

Re: Patches

2006-06-23 Thread A.J.Mechelynck
Mathias Michaelis wrote: Rick Am I supposed to put 2 and 3 into the original? Am I supposed to move the contents of each /src directory into the one in the Unix archive? Yes. Here is how I do it: bunzip2 -qck vim-7.0.tar.bz2 | tar x gunzip -qc vim-7.0-lang.tar.gz | tar x gunzip -qc vim-7.0-

Re: How to translate between windows file and linux file ?

2006-06-23 Thread A.J.Mechelynck
victor NOAGBODJI wrote: Hello, I usually write on both win and linux. Whenever I open win edited files in linux, I've got ^M at end of each line. Is there anything to automatically change that? ^M (control-M) is the carriage-return (CR) control character. Typically, lines of ASCII text are

Re: Patches

2006-06-23 Thread A.J.Mechelynck
Rick Hogg wrote: Tony, Mathias, Thanks for all the help. Starting VIM gives me version 7.0.034, and all is well. And actually, I was using Mac OS X, but I installed it without GUI support. I actually installed it with these options: --enable-gui=no --prefix=/usr --with-features=huge --enab

<    1   2   3   4   5   6   7   8   9   10   >