Re: Customizing vim: How to change the char before commands

2007-03-21 Thread A.J.Mechelynck
for the list after adjustment? Thanks, cga Depends how much you reckon for inflation, and on which basis: two of George Washington's cents, plus inflation, would make a goodly sum nowadays, don't you think? Best regards, Tony. -- Equality is not when a female Einstein gets promoted

Re: Customizing vim: How to change the char before commands

2007-03-21 Thread cga2000
adjustment, no? Isn't the other way 'round..? With 0.02 cents left for the list after adjustment? Thanks, cga Depends how much you reckon for inflation, and on which basis: two of George Washington's cents, plus inflation, would make a goodly sum nowadays, don't you think? Yes

Re: How to switch between horizontal split and vertical split?

2007-03-19 Thread Charles E Campbell Jr
Peng Yu wrote: Suppose I have horizontal splited window1 and window2, is there any way to change them into vertical split and vice versa? See http://vim.sourceforge.net/tips/tip.php?tip_id=862 How to toggle between all vertical and all horizontal window layout Regards, Chip Campbell

Re: how to setup gvim as view source editor for Opera?

2007-03-18 Thread zzapper
Taylor Venable [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: For Opera, open the preferences, click on the Advanced tag, then choose Programs from the list on the left. At the bottom of the right-hand side, there's the option to set the source viewer program. ## Couldn't see it

how to setup gvim as view source editor for Opera?

2007-03-17 Thread zzapper
Hi, I've forgotten how to setup gvim as view source editor for Opera (got a new Vista PC). Also can anyone recommend the best solution for FireFox, I've only got the one where viewing source with vim is an additional option -- zzapper http://SuccessTheory.com/tips/ vim, zsh success tips

Re: how to setup gvim as view source editor for Opera?

2007-03-17 Thread zzapper
Taylor Venable [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Sat, 17 Mar 2007 15:01:17 + (UTC) zzapper [EMAIL PROTECTED] wrote: I've forgotten how to setup gvim as view source editor for Opera (got a new Vista PC). Also can anyone recommend the best solution for FireFox, I've

Re: how to setup gvim as view source editor for Opera?

2007-03-17 Thread Taylor Venable
On Sat, 17 Mar 2007 15:42:49 + (UTC) zzapper [EMAIL PROTECTED] wrote: Taylor Venable [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Sat, 17 Mar 2007 15:01:17 + (UTC) zzapper [EMAIL PROTECTED] wrote: I've forgotten how to setup gvim as view source editor for Opera

Re: how to setup gvim as view source editor for Opera?

2007-03-17 Thread Jack Donohue
In Firefox, type about:config into the URL bar and hit ENTER. Type source in the filter box and hit ENTER. Double-click on the entry for view_source.editor.external so its value changes to true. Then Don't have that entry on my version of Firefox (Windows, v. 1.5.0.10) Maybe some other

Re: how to setup gvim as view source editor for Opera?

2007-03-17 Thread A.J.Mechelynck
Jack Donohue wrote: In Firefox, type about:config into the URL bar and hit ENTER. Type source in the filter box and hit ENTER. Double-click on the entry for view_source.editor.external so its value changes to true. Then Don't have that entry on my version of Firefox (Windows, v. 1.5.0.10)

Re: how to setup gvim as view source editor for Opera?

2007-03-17 Thread Gary Johnson
On 2007-03-17, zzapper [EMAIL PROTECTED] wrote: Hi, I've forgotten how to setup gvim as view source editor for Opera (got a new Vista PC). Also can anyone recommend the best solution for FireFox, I've only got the one where viewing source with vim is an additional option The Firefox plugin

Re: How to display a omni-comletion menu from a vim script function?

2007-03-16 Thread Thomas
Let me rephrase my question: Is it possible to display the omni-completion menu in normal mode, eg from a function called in normal mode? I don't want to set omnifunc or completefunc for this. Regards, Thomas.

Re: How to display a omni-comletion menu from a vim script function?

2007-03-16 Thread Bram Moolenaar
Thomas wrote: Let me rephrase my question: Is it possible to display the omni-completion menu in normal mode, eg from a function called in normal mode? I don't want to set omnifunc or completefunc for this. No, the omni-completion menu only works in Insert mode. Using the popup menu

How to show path?

2007-03-16 Thread Peng Yu
Hi, Can somebody let me know how to show the current value of path? Thanks, Peng

Re: How to show path?

2007-03-16 Thread Jean-Rene David
* Peng Yu [2007.03.16 16:30]: Can somebody let me know how to show the current value of path? :set path? -- JR

Re: How to show path?

2007-03-16 Thread Richard England
Peng Yu wrote the following on 03/16/2007 01:16 PM: Hi, Can somebody let me know how to show the current value of path? Thanks, Peng Inside or outside of vim? Unix/Linux or Windows? Programatically in vim or just as a command? Try: :!echo $PATH inside vim on the command line

Re: How to show path?

2007-03-16 Thread Gary Johnson
On 2007-03-16, Richard England [EMAIL PROTECTED] wrote: Peng Yu wrote the following on 03/16/2007 01:16 PM: Hi, Can somebody let me know how to show the current value of path? Thanks, Peng Inside or outside of vim? Unix/Linux or Windows? Programatically in vim or just

Re: How to show path?

2007-03-16 Thread A.J.Mechelynck
Peng Yu wrote: Hi, Can somebody let me know how to show the current value of path? Thanks, Peng Which path? There are two of them, and they have nothing in common beside the name. There is a PATH environment variable, used by the shell to search for executables, which can be shown

How to display a omni-comletion menu from a vim script function?

2007-03-15 Thread Thomas
the display of the menu from within a vim script. Does somebody have an idea of how to display the menu? Say, we have: fun! MyComplete(findstart, base) ... endf fun! DoSomething() let omnifunc = omnifunc let omnifunc = 'MyComplete' try +++DISPLAY MENU+++ return 0

Re: How to display a omni-comletion menu from a vim script function?

2007-03-15 Thread Karl Guertin
On 3/15/07, Thomas [EMAIL PROTECTED] wrote: Does somebody have an idea of how to display the menu? I've been meaning to get around to doing this myself but haven't done it. There's an example under :help complete-functions

Re: How to display a omni-comletion menu from a vim script function?

2007-03-15 Thread Karl Guertin
On 3/15/07, Thomas [EMAIL PROTECTED] wrote: Does somebody have an idea of how to display the menu? I've been meaning to get around to doing this myself but haven't done it. There's an example under :help complete-functions

Re: How to convert all the buffers into tab

2007-03-15 Thread Dimitar
* lin q [EMAIL PROTECTED] [070315 19:50]: Hi, I usually have such problem: in VIM7 i have many files opened in old way, meaning they are in buffers, now I want to have them opened in TAB, each tab has one buffer. Is there a simple way to do this? Take a look at thisi, it may help:

Re: How to convert all the buffers into tab

2007-03-15 Thread Rick Dooling
- Original Message Subject: Re: How to convert all the buffers into tab I usually have such problem: in VIM7 i have many files opened in old way, meaning they are in buffers, now I want to have them opened in TAB, each tab has one buffer. I think you want: :tab ball rd

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread Raphael Bauduin
On 3/14/07, Gary Johnson [EMAIL PROTECTED] wrote: On 2007-03-13, Peng Yu [EMAIL PROTECTED] wrote: Hi, Suppose I use p to paste something, the cursor always goes to the end of the pasted text. Is there any other key to paste will keep the cursor before the pasted text? See :help `[

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread Albie Janse van Rensburg
Raphael Bauduin wrote: Is it possible to jump to a mark at the exact same position in the line as when the mark was set? When I jump to a mark I always get back to the first character of the line. You are using ' instead of ` On my keyboard, ` is on the same key as ~. ` is used to jump to a

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread A.J.Mechelynck
Raphael Bauduin wrote: On 3/14/07, Gary Johnson [EMAIL PROTECTED] wrote: On 2007-03-13, Peng Yu [EMAIL PROTECTED] wrote: Hi, Suppose I use p to paste something, the cursor always goes to the end of the pasted text. Is there any other key to paste will keep the cursor before the pasted

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread A.J.Mechelynck
Albie Janse van Rensburg wrote: Raphael Bauduin wrote: Is it possible to jump to a mark at the exact same position in the line as when the mark was set? When I jump to a mark I always get back to the first character of the line. You are using ' instead of ` On my keyboard, ` is on the same

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread Raphael Bauduin
On 3/14/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Albie Janse van Rensburg wrote: Raphael Bauduin wrote: Is it possible to jump to a mark at the exact same position in the line as when the mark was set? When I jump to a mark I always get back to the first character of the line. You are

How does vim do filename globbing (as in :e file*)

2007-03-14 Thread John Wiersba
In particular, how does it handle case-sensitivity when globbing for files under cygwin. This question is related to another thread Case-sensitive match for :e under cygwin?. I believe vim/cygwin used to do case-sensitve filename globbing, but now it's doing it case-insensitively and I'd like

Re: How does vim do filename globbing (as in :e file*)

2007-03-14 Thread A.J.Mechelynck
John Wiersba wrote: In particular, how does it handle case-sensitivity when globbing for files under cygwin. This question is related to another thread Case-sensitive match for :e under cygwin?. I believe vim/cygwin used to do case-sensitve filename globbing, but now it's doing it case

Re: How can a script know if we're running without X ?

2007-03-14 Thread hermitte
of the current Vim and I don't know how to do that. Using system('ls -l /proc/self') wouldn't work, because that would return the PID of the ls process called by a subshell called by Vim. libcallnr(/usr/lib/libc.so, getpid, ) should do the trick on most *nix flavours. From here, it should

Re: How does vim do filename globbing (as in :e file*)

2007-03-14 Thread John Wiersba
[EMAIL PROTECTED] To: John Wiersba [EMAIL PROTECTED] Cc: vim@vim.org Sent: Wednesday, March 14, 2007 1:33:56 PM Subject: Re: How does vim do filename globbing (as in :e file*) This is a Unix-like Vim for Cygwin, which requires POSIX paths (as opposed to Dos-like paths) and needs the cygwin1.dll. I

Re: How can a script know if we're running without X ?

2007-03-14 Thread A.J.Mechelynck
to know the process ID of the current Vim and I don't know how to do that. Using system('ls -l /proc/self') wouldn't work, because that would return the PID of the ls process called by a subshell called by Vim. libcallnr(/usr/lib/libc.so, getpid, ) should do the trick on most *nix flavours. From

Re: How can a script know if we're running without X ?

2007-03-14 Thread Dimitar
* A.J.Mechelynck [EMAIL PROTECTED] [070314 07:50]: How can a Vim script know if we're running without an X connection? What about if has('gui') ? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no X11 support compiled

Re: How can a script know if we're running without X ?

2007-03-14 Thread A.J.Mechelynck
Dimitar wrote: * A.J.Mechelynck [EMAIL PROTECTED] [070314 07:50]: How can a Vim script know if we're running without an X connection? What about if has('gui') ? No. This wouldn't distinguish a version -gui +x11 +clipboard +clientserver running in a non-x console (with no clipboard

How to convert all the buffers into tab

2007-03-14 Thread lin q
Hi, I usually have such problem: in VIM7 i have many files opened in old way, meaning they are in buffers, now I want to have them opened in TAB, each tab has one buffer. Is there a simple way to do this? Thanks. _ Rates near

Re: Selecting tag opens file in a new tab - how?

2007-03-13 Thread A.J.Mechelynck
Zarko Coklin wrote: And Tony does it again ;-) Thanks Tony! ~~~ Zarko Coklin wrote: Is it possible to have a setup in .vimrc so that every time I select tag either through CTRL-] or by holding CTRL and pressing left mouse click to open a

Re: How to switch between horizontal split and vertical split?

2007-03-13 Thread Jean-Rene David
* Peng Yu [2007.03.13 12:15]: Suppose I have horizontal splited window1 and window2, is there any way to change them into vertical split and vice versa? CTRL-W H CTRL-W J Note the capital H and J. -- JR

Re: How to switch between horizontal split and vertical split?

2007-03-13 Thread A.J.Mechelynck
Peng Yu wrote: Hi, Suppose I have horizontal splited window1 and window2, is there any way to change them into vertical split and vice versa? Thanks, Peng To change *two* vertically split windows to horizonally split ^Wt^WK Horizontally to vertically: ^Wt^WH where ^W

How to paste while keep the cursor at the same place?

2007-03-13 Thread Peng Yu
Hi, Suppose I use p to paste something, the cursor always goes to the end of the pasted text. Is there any other key to paste will keep the cursor before the pasted text? Thanks, Peng

How can a script know if we're running without X ?

2007-03-13 Thread A.J.Mechelynck
How can a Vim script know if we're running without an X connection? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no X11 support compiled-in. But what about an X-enabled Vim running in console mode, either with the -X command-line

Re: How can a script know if we're running without X ?

2007-03-13 Thread Cameron Simpson
On 13Mar2007 23:29, A.J.Mechelynck [EMAIL PROTECTED] wrote: | How can a Vim script know if we're running without an X connection? | Of course, some cases are obvious, such as | if has('unix') !has('x11') | meaning we're on Unix with no X11 support compiled-in. | | But what about an X

Re: How can a script know if we're running without X ?

2007-03-13 Thread A.J.Mechelynck
Cameron Simpson wrote: On 13Mar2007 23:29, A.J.Mechelynck [EMAIL PROTECTED] wrote: | How can a Vim script know if we're running without an X connection? | Of course, some cases are obvious, such as | if has('unix') !has('x11') | meaning we're on Unix with no X11 support compiled

Re: How can a script know if we're running without X ?

2007-03-13 Thread Luc Hermitte
Hello, * On Tue, Mar 13, 2007 at 11:29:28PM +0100, A.J.Mechelynck [EMAIL PROTECTED] wrote: How can a Vim script know if we're running without an X connection? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no X11 support compiled

Re: How can a script know if we're running without X ?

2007-03-13 Thread A.J.Mechelynck
Luc Hermitte wrote: Hello, * On Tue, Mar 13, 2007 at 11:29:28PM +0100, A.J.Mechelynck [EMAIL PROTECTED] wrote: How can a Vim script know if we're running without an X connection? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix

Re: How to paste while keep the cursor at the same place?

2007-03-13 Thread Gary Johnson
On 2007-03-13, Peng Yu [EMAIL PROTECTED] wrote: Hi, Suppose I use p to paste something, the cursor always goes to the end of the pasted text. Is there any other key to paste will keep the cursor before the pasted text? See :help `[ You could either type `[ after the p to move the

RE: How to paste without replace the content in buffer

2007-03-12 Thread David Fishburn
-Original Message- From: Peng Yu [mailto:[EMAIL PROTECTED] Sent: Saturday, March 10, 2007 10:38 PM To: vim@vim.org Subject: How to paste without replace the content in buffer Hi, Suppose I want to replace string1 with string2 in a file from vim. 1. Highlight string1

Re: How to paste without replace the content in buffer

2007-03-11 Thread Andy Wokula
Peng Yu schrieb: Hi, Suppose I want to replace string1 with string2 in a file from vim. 1. Highlight string1 (in visual mode) and then type y. 2. Highlight string2 (in visual mode) and then type p. However, the problem with the above procedure is that string2, instead of string1, is in

Re: How to make inoremap 's filetype depend

2007-03-10 Thread Joel Brobecker
How do you making inoremap filetype depend? What I want is if (filetype == vim) then inoremap @a A else if (filetype == c) inoremap @a aa else if (filetype == vhdl) inoremap @a AAAaaa else inoremap @a aaaAAA end if untested, but would the following work

Re: How to make inoremap 's filetype depend

2007-03-10 Thread Luc Hermitte
Hello, * On Sat, Mar 10, 2007 at 07:59:21AM +, Eric Leenman [EMAIL PROTECTED] wrote: How do you making inoremap filetype depend? What I want is if (filetype == vim) then inoremap @a A else if (filetype == c) inoremap @a aa else if (filetype == vhdl) I use ftplugins

Re: How to make inoremap 's filetype depend

2007-03-10 Thread A.J.Mechelynck
Eric Leenman wrote: Hi, How do you making inoremap filetype depend? What I want is if (filetype == vim) then inoremap @a A else if (filetype == c) inoremap @a aa else if (filetype == vhdl) inoremap @a AAAaaa else inoremap @a aaaAAA end if Best regards, Eric autocmd

Re: How to paste without replace the content in buffer

2007-03-10 Thread fREW
I think that the best way to do this is just with registers. So what you would do is: vhighlight regionay vhighlight regionap what this does is use the a register to yank to/put from. For more info see :help y and :help p On 3/10/07, Peng Yu [EMAIL PROTECTED] wrote: Hi, Suppose I want to

Selecting tag opens file in a new tab - how?

2007-03-10 Thread Zarko Coklin
Is it possible to have a setup in .vimrc so that every time I select tag either through CTRL-] or by holding CTRL and pressing left mouse click to open a new buffer in a new tab? Regards, Zarko Coklin Finding

Re: How to paste without replace the content in buffer

2007-03-10 Thread A.J.Mechelynck
B in its place, not the opposite. Vim terminology: A buffer contains a whole file being edited. Text being yanked (Vimspeak for copied), deleted (cut) or put (pasted) is held in registers. Then, how to do it: To replace string2 by string1 in the (file) buffer while allowing repeated put

Re: Selecting tag opens file in a new tab - how?

2007-03-10 Thread A.J.Mechelynck
Zarko Coklin wrote: Is it possible to have a setup in .vimrc so that every time I select tag either through CTRL-] or by holding CTRL and pressing left mouse click to open a new buffer in a new tab? Regards, Zarko Coklin :map C-] :exe tab stag expand(cword)CR :map

buffer ring behaviour - how do I make it an MRU ring?

2007-03-09 Thread Keith Hanlan
I want :bprev to take me to the most-recently-used buffer but I can't see a way to do that. It always follows the order in which the buffers where loaded. I use :bnext and :bprev (mapped to cntl-- and cntl--) to cycle through my buffer ring. However, it always cycles the same way; I would like

Re: buffer ring behaviour - how do I make it an MRU ring?

2007-03-09 Thread Christian Ebert
* Keith Hanlan on Friday, March 09, 2007 at 12:48:49 -0500: I want :bprev to take me to the most-recently-used buffer but I can't see a way to do that. It always follows the order in which the buffers where loaded. I use :bnext and :bprev (mapped to cntl-- and cntl--) to cycle through my

How to make inoremap 's filetype depend

2007-03-09 Thread Eric Leenman
Hi, How do you making inoremap filetype depend? What I want is if (filetype == vim) then inoremap @a A else if (filetype == c) inoremap @a aa else if (filetype == vhdl) inoremap @a AAAaaa else inoremap @a aaaAAA end if Best regards, Eric

Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Zarko Coklin
Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2 At a very top level in each of these directories I have ctags files. How can I setup Vim so that it sources right ctags file depending from I

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Gary Johnson
On 2007-03-07, Zarko Coklin [EMAIL PROTECTED] wrote: Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2 At a very top level in each of these directories I have ctags files. How can I

RE: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Michael Wookey
Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2 At a very top level in each of these directories I have ctags files. How can I setup Vim so that it sources right ctags file depending

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread A.J.Mechelynck
. How can I setup Vim so that it sources right ctags file depending from I started Vim. For example, if I go under Code_Rel1 and in Windows use right click to open file in one of subdirectories, ctags should be picked up from C:\Code_Rel1 and not from C:\Code_Rel2. Hard coding path to ctags in .vimrc

RE: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Zarko Coklin
Thanks to all who responded promptly. Special thanks to Michael Wookey. His solution is the most elegant one. It is based on upward search (which I did not know about). Therefore, setting following in .vimrc really did trick for me: Make sure semicolon is there. Used for upward search set

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Yegappan Lakshmanan
Hi, On 3/7/07, Zarko Coklin [EMAIL PROTECTED] wrote: Thanks to all who responded promptly. Special thanks to Michael Wookey. His solution is the most elegant one. It is based on upward search (which I did not know about). Therefore, setting following in .vimrc really did trick for me: Make

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Gary Johnson
At a very top level in each of these directories I have ctags files. How can I setup Vim so that it sources right ctags file depending from I started Vim. For example, if I go under Code_Rel1 and in Windows use right click to open file in one of subdirectories, ctags should be picked up

How to fold text between two regular expressions ?

2007-03-01 Thread MM
How do I create folds such that it starts at matched expression and ends at the line containing part of the matched expression. e.g i'd like to fold procedure xyz ( . : : : : : end xyz; function abc ( : : : : : end abc; impure function pqr ( : : : : : end pqr; Thanks in advance..

Re: How to fold text between two regular expressions ?

2007-03-01 Thread Yakov Lerner
On 3/1/07, MM [EMAIL PROTECTED] wrote: How do I create folds such that it starts at matched expression and ends at the line containing part of the matched expression. e.g i'd like to fold procedure xyz ( . : : : : : end xyz; Does this do what you want (untested): let REGEX1='^procedure

Re: How to fold text between two regular expressions ?

2007-03-01 Thread Yakov Lerner
On 3/1/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 3/1/07, MM [EMAIL PROTECTED] wrote: How do I create folds such that it starts at matched expression and ends at the line containing part of the matched expression. e.g i'd like to fold procedure xyz ( . : : : : : end xyz; Does

Re: How to fold text between two regular expressions ?

2007-03-01 Thread Tim Chase
How do I create folds such that it starts at matched expression and ends at the line containing part of the matched expression. e.g i'd like to fold procedure xyz ( . : : end xyz; function abc ( : : end abc; impure function pqr ( : : end pqr; You might be able to do something like :g

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-28 Thread Bram Moolenaar
Tony Mechelynck wrote: Bram Moolenaar wrote: Tony Mechelynck wrote: here are a few examples; some of them use a fictional subject: Nice overview. Let me add this to the user manual. In the paragraph about :help patternTab with 'wildmenu' on, I let myself be carried away: Up

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-27 Thread Bram Moolenaar
Tony Mechelynck wrote: here are a few examples; some of them use a fictional subject: Nice overview. Let me add this to the user manual. -- panic(Fod fight!); -- In the kernel source aha1542.c, after detecting a bad segment list /// Bram Moolenaar -- [EMAIL PROTECTED] --

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-27 Thread A.J.Mechelynck
to the wildmenu for helptags. Best regards, Tony. -- How wonderful opera would be if there were no singers.

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
for :print and :h is help. So there's two things I don't know: 1. The symbolic (?) language you are using - the same that's used when scripting vim, I would imagine. 2. How to use vim's help efficiently :-) Thanks, cga

RE: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread Sibin P. Thomas
-Original Message- From: cga2000 [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 10:28 PM To: vim@vim.org Subject: Re: How do I make the current working directory follow the active document in Gvim? On Sun, Feb 25, 2007 at 07:57:39PM EST, A.J.Mechelynck wrote

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread Tim Chase
. The symbolic (?) language you are using - the same that's used when scripting vim, I would imagine. If you're impatient, full details can be found at :help filename-modifiers 2. How to use vim's help efficiently There are several attacks one can use to get Vim's help to spit out

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread Christian Ebert
* cga2000 on Monday, February 26, 2007 at 11:57:39 -0500: On Sun, Feb 25, 2007 at 07:57:39PM EST, A.J.Mechelynck wrote: - To change (once) to the dir of the current file :cd %:p:h Nice. But I'm not going to remember it until I understand it. I scoured the :help files but

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 12:24:33PM EST, Sibin P. Thomas wrote: -Original Message- From: cga2000 [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 10:28 PM To: vim@vim.org Subject: Re: How do I make the current working directory follow the active document in Gvim? On Sun

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 12:32:19PM EST, Tim Chase wrote: - To change (once) to the dir of the current file :cd %:p:h [..] If you're impatient, full details can be found at :help filename-modifiers 2. How to use vim's help efficiently There are several attacks one can

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread A.J.Mechelynck
. yes 2. How to use vim's help efficiently :-) here are a few examples; some of them use a fictional subject: :help gives you very general help. Start scrolling and you will see a list of all known helpfiles, including those added locally (i.e. not distributed with Vim

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread A.J.Mechelynck
cga2000 wrote: [...] I find the exercise useful since as, I believe, A. Einstein once remarked .. if you can't explain it .. you don't fully understand it .. or something to that effect. Some French author of the 17th century I think (Boileau?): Ce qui se conçoit bien s'énonce clairement Et

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 08:47:00PM EST, A.J.Mechelynck wrote: cga2000 wrote: [...] I find the exercise useful since as, I believe, A. Einstein once remarked .. if you can't explain it .. you don't fully understand it .. or something to that effect. Some French author of the 17th century I

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 08:06:12PM EST, A.J.Mechelynck wrote: cga2000 wrote: [..] 2. How to use vim's help efficiently here are a few examples; some of them use a fictional subject: :help gives you very general help. Start scrolling and you will see

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread A.J.Mechelynck
cga2000 wrote: On Mon, Feb 26, 2007 at 08:47:00PM EST, A.J.Mechelynck wrote: cga2000 wrote: [...] I find the exercise useful since as, I believe, A. Einstein once remarked .. if you can't explain it .. you don't fully understand it .. or something to that effect. Some French author of the

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 11:39:08PM EST, A.J.Mechelynck wrote: cga2000 wrote: On Mon, Feb 26, 2007 at 08:47:00PM EST, A.J.Mechelynck wrote: [..] Avant donc que d'écrire, apprenez à penser. (Before writing, one must learn to think) .. (rough translation) Let's try to recapture the

How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Noah Spurrier
How do I configure Gvim so that the current directory follows the active document? I know I've seen this somewhere in the Vim docs, but none of my searches are turning it up now. When I'm editing a document in Gvim, I find that Gvim always uses my home directory as the working directory. If I

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Bill McCarthy
On Sun 25-Feb-07 6:22pm -0600, Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? Try this: autocmd BufReadPost * lcd %:h -- Best regards, Bill

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Thor Andreassen
On Sun, Feb 25, 2007 at 06:50:41PM -0600, Bill McCarthy wrote: On Sun 25-Feb-07 6:22pm -0600, Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? Try this: autocmd BufReadPost * lcd %:h You could also try :set autochdir, see :help

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread A.J.Mechelynck
Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? I know I've seen this somewhere in the Vim docs, but none of my searches are turning it up now. When I'm editing a document in Gvim, I find that Gvim always uses my home directory

How to: display only the lines that have a matching pattern and fold /hide others.

2007-02-21 Thread Muddassirali Mirzani
Is there a way to display only the lines that match a search pattern and hide/fold others. Any help appreciated. Thanks .. Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA.

Re: How to: display only the lines that have a matching pattern and fold /hide others.

2007-02-21 Thread Jeenu V
If you pattern happens to be word, then you can place cursor over the word and then press [I or [i. See also :h [I On 2/21/07, Muddassirali Mirzani [EMAIL PROTECTED] wrote: Is there a way to display only the lines that match a search pattern and hide/fold others. Any help appreciated.

Re: How to: display only the lines that have a matching pattern and fold /hide others.

2007-02-21 Thread Yakov Lerner
On 2/21/07, Jeenu V [EMAIL PROTECTED] wrote: If you pattern happens to be word, then you can place cursor over the word and then press [I or [i. See also :h [I On 2/21/07, Muddassirali Mirzani [EMAIL PROTECTED] wrote: Is there a way to display only the lines that match a search pattern and

Re: How to: display only the lines that have a matching pattern and fold /hide others.

2007-02-21 Thread Tim Chase
Is there a way to display only the lines that match a search pattern and hide/fold others. Any help appreciated. There are a number of ways to get the effect you are looking for. One might be: :set foldmethod=expr :set foldexpr=getline(v:lnum)!~'pattern' which will actually use folding

Re: How to: display only the lines that have a matching pattern and fold /hide others.

2007-02-21 Thread Jean-Rene David
* Muddassirali Mirzani [2007.02.21 07:30]: Is there a way to display only the lines that match a search pattern and hide/fold others. The foldutil plugin makes that very easy. I use it quite a bit. http://www.vim.org/scripts/script.php?script_id=158 -- JR

French characters (how?)

2007-02-20 Thread Peter
I am using vim over ssh.  The remote OS is FreeBSD 6.2 and the local OS is Kubuntu.  Both remote and local shells are bash.  So far I can write French characters in the shell remotely (mkdir, touch) and when using vim I can write some characters but when I open the file again with vim some

Re: French characters (how?)

2007-02-20 Thread A.J.Mechelynck
Peter wrote: I am using vim over ssh. The remote OS is FreeBSD 6.2 and the local OS is Kubuntu. Both remote and local shells are bash. So far I can write French characters in the shell remotely (mkdir, touch) and when using vim I can write some characters but when I open the file again with

Re: French characters (how?)

2007-02-20 Thread Peter
Le Mardi 20 Février 2007 11:08, A.J.Mechelynck a écrit : Peter wrote: I am using vim over ssh. The remote OS is FreeBSD 6.2 and the local OS is Kubuntu. Both remote and local shells are bash. So far I can write French characters in the shell remotely (mkdir, touch) and when using vim I

^M [Was] how to read the file created in PC in Linux correctly?

2007-02-15 Thread Guillaume Bog
On 15/02/07, frank wang [EMAIL PROTECTED] wrote: Thanks for the help. My gvim version is 7.0. The files are edited by Matlab editor. gvim cannot automatically handle the ^M. No matter what file format I set. The only thing to do is repleace them with %s/\r/\r/g. This ^M is hard to find in

How to get destructive backspace in command mode?

2007-02-15 Thread Larry Alkoff
What is the proper way to have a destructive backspace key in command mode that works like the X key in vim version 6.4.6. That is, the backspace key should move to the left and delete the character there. Currently my backspace key backspaces but does not delete the character to the left.

Re: How to get destructive backspace in command mode?

2007-02-15 Thread Tim Chase
What is the proper way to have a destructive backspace key in command mode that works like the X key in vim version 6.4.6. That is, the backspace key should move to the left and delete the character there. Currently my backspace key backspaces but does not delete the character to the left.

Re: How to get destructive backspace in command mode?

2007-02-15 Thread Larry Alkoff
Tim Chase wrote: What is the proper way to have a destructive backspace key in command mode that works like the X key in vim version 6.4.6. That is, the backspace key should move to the left and delete the character there. Currently my backspace key backspaces but does not delete the

Re: How to get destructive backspace in command mode?

2007-02-15 Thread Tim Chase
You can easily add the following line to your .vimrc: nnoremap bs X Thanks for your very prompt reply Tim. After putting 'nnoremap bs X in ~.vimrc I see that backspace works differently than X. X will move the cursor left, deleting the character that was there, and 'pulling' all the

<    1   2   3   4   5   6   7   8   >