Re: Defining new visual-mode motions?

2007-06-02 Thread Yegappan Lakshmanan
Hi, On 6/2/07, Andy Wokula <[EMAIL PROTECTED]> wrote: Joseph Barker schrieb: >> The following is possible: >> >> function VisualMove() >>normal! gv >>call search('\u') >>" visual mode still on >> endfunction >> >> vmap ,w :call VisualMove() > > That works per

Re: Defining new visual-mode motions?

2007-06-01 Thread Yegappan Lakshmanan
Hi, On 5/31/07, Joseph Barker <[EMAIL PROTECTED]> wrote: Hello, all. I was recently helping someone out with a vim script (camelcasemotion.vim) which adds additional motion commands (they treat camel-cased words (WordsLikeThis) as separate words, rather than as a single word). This is easy enou

Re: [PATCH] new ex command :lscscope

2007-04-29 Thread Yegappan Lakshmanan
Hi, On 4/28/07, Navdeep Parhar <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > > > > > Currently :cscope has a variant :lcscope that allows the use of > > > > the location list instead of the quickfix list. However, :scscope > > > > has no equivalent that uses the location list. Please not

Re: [PATCH] new ex command :lscscope

2007-04-27 Thread Yegappan Lakshmanan
Hi Gary, On 4/27/07, Gary Johnson <[EMAIL PROTECTED]> wrote: On 2007-04-27, Gary Johnson <[EMAIL PROTECTED]> wrote: > On 2007-04-26, Navdeep Parhar <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Currently :cscope has a variant :lcscope that allows the use of > > the location list instead of the q

Re: problems compiling on solaris

2007-03-11 Thread Yegappan Lakshmanan
Hi all, On 3/7/07, Paul Stuart <[EMAIL PROTECTED]> wrote: Hi there, I'm having some problems compiling vim 7 on solaris 8, and I'd really appreciate it if someone could point me in the right direction. Here is the error I'm getting : make[1]: Entering directory `/export/home/pstuart/R42014/

Re: [!] missing from :cb and related commands?

2007-03-06 Thread Yegappan Lakshmanan
Hi, On 3/6/07, Gary Johnson <[EMAIL PROTECTED]> wrote: On 2007-03-07, "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: > Gary Johnson wrote: > > If I open a new window, read into it the results of a grep command, > > e.g., > > > > :r !grep -nH somepattern somefileset > > > > and then try to use t

Re: [!] missing from :cb and related commands?

2007-03-06 Thread Yegappan Lakshmanan
Hi Gary, On 3/6/07, Gary Johnson <[EMAIL PROTECTED]> wrote: If I open a new window, read into it the results of a grep command, e.g., :r !grep -nH somepattern somefileset and then try to use that buffer as a quickfix list or location list with either the :cb or :lb commands, respectively,

Re: Jump to tag in a file opened in another session

2007-03-06 Thread Yegappan Lakshmanan
Hi, On 3/6/07, Corinna Vinschen <[EMAIL PROTECTED]> wrote: Hi, I've searched for this for some time now but it's either not available or I have to hone my search skills a lot. Most of the time I have multiple xterms opened, running vim sessions within the same project. The files are tagged an

Re: Quickfix window not working anymore

2007-02-19 Thread Yegappan Lakshmanan
Hi, On 2/19/07, Bill McCarthy <[EMAIL PROTECTED]> wrote: On Mon 19-Feb-07 7:21am -0600, A.J.Mechelynck wrote: > Works for me. For me too. BTW, Tony, I've never used :copen before - I use :cw . There look the same but the documentation doesn't seem to indicate that they are the same. What's

Re: Apparent Vim 7.0 bug (re comments)

2007-01-10 Thread Yegappan Lakshmanan
Hello, On 1/10/07, Robert Lee <[EMAIL PROTECTED]> wrote: I discovered that the problem was caused by the lines: au BufWinLeave * mkview au BufWinEnter * silent loadview Apparently the view file that is created contains a copy of the vimrc settings. This prevents changes to the vimrc to be hon

Re: problem with taglist plugin

2007-01-03 Thread Yegappan Lakshmanan
Hi, On 1/3/07, flyfish <[EMAIL PROTECTED]> wrote: hi, i have used vim for some days and i would like to use the taglist plugin which is very hot in internet, my os is ubuntu 6 and the version of vim is 7, i downloaded the taglist package and unziped it, then i put the two files taglist.vim and

Re: VIM window restores incorrectly

2006-11-26 Thread Yegappan Lakshmanan
Hi Liu, On 11/23/06, Liu Yubao <[EMAIL PROTECTED]> wrote: Bram Moolenaar wrote: > Yegappan Lakshmanan wrote: > >> On 11/22/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >>> It does happen for me: >>> >>> "gvim somefile" >

Re: VIM window restores incorrectly

2006-11-22 Thread Yegappan Lakshmanan
Hi Bram, On 11/22/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > > > VIM 7.0, MS-Windows 32 bit GUI version with OLE support > > > Included patches: 1-162 > > > > > > run "gvim a.txt"; > > > maximize the VIM window, then minimize it to task bar; > > > run "gvim --remote-tab b.txt"; > > > V

Re: VIM window restores incorrectly

2006-11-22 Thread Yegappan Lakshmanan
Hi Bram, On 11/22/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > > > > > > > VIM 7.0, MS-Windows 32 bit GUI version with OLE support > > > > > Included patches: 1-162 > > > > > > > > > > run "gvim a.txt"; > > > > > maximize the VIM window, then minimize it to task bar; > > > > > run "gvim -

Calling a non-existing dictionary function doesn't result in an error

2006-10-23 Thread Yegappan Lakshmanan
Hi all, When a non-existing dictionary function is invoked using the ":call" command, there is no error. But when it is used in an expression, an error message is displayed. Is this the expected behavior? let a = {} call a.xyz() The ":call" command silently returns without any errors. But t

Re: missing setbufline()?

2006-10-23 Thread Yegappan Lakshmanan
Hi Bram, On 10/23/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > You can try the attached patch against the latest Vim7 sources. > The syntax of the new function is: > > setbufline({expr}, {lnum}, {line}) > > where, {expr} specifies the loaded buffer name/number, {lnum} specifies

Re: missing setbufline()?

2006-10-23 Thread Yegappan Lakshmanan
Hi Bram, On 10/23/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yegappan Lakshmanan wrote: > On 10/22/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: > > > On 10/22/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: > > > > > > > > I

Re: Autocommand-Event for Clipboard-Changed

2006-10-03 Thread Yegappan Lakshmanan
Hi Charles, On 10/3/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Bram Moolenaar wrote: >Suresh Govindachar wrote: > > >>Is it possible to add an autocommand-event for "Clipboard Changed"? >> >> > >Not really. This is not something that happens inside Vim. Polling for >changes in the s

Re: no winclose event

2006-09-25 Thread Yegappan Lakshmanan
Hi Charles, On 9/25/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Hello! Just a suggestion -- I'd appreciate a WinClose event. BufWinLeave would almost do, but if two or more windows are open on the same buffer, then no event. WinLeave fires whenever one changes windows, which isn't w

BufWinEnter autocmd is not invoked when splitting a window

2006-09-02 Thread Yegappan Lakshmanan
Hi all, The BufWinEnter autocmd is not invoked when splitting a window. According to the help for the BufWinEnter autocmd, this autocmd is invoked when a buffer is displayed in a window. For example, use the following autocmd: au BufWinEnter * echomsg "Entering buffer " . expand("") With the

Re: Proposal: New command/feature for quickfix

2006-06-28 Thread Yegappan Lakshmanan
Hi, On 6/28/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote: Hi, On 6/28/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote: > On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: > > On Wed, Jun 28, 2006 at 11:21:00PM +0200, Mikolaj Machowski wrote: > > > Dnia

Re: Proposal: New command/feature for quickfix

2006-06-28 Thread Yegappan Lakshmanan
Hi, On 6/28/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote: On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: > On Wed, Jun 28, 2006 at 11:21:00PM +0200, Mikolaj Machowski wrote: > > Dnia ?roda, 28 czerwca 2006 22:07, Jochen Baier napisa?: > > > i think a command like "cbefore" or "croot" could

Re: Proposal: New command/feature for quickfix

2006-06-28 Thread Yegappan Lakshmanan
Hi Jochen, On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: hi, i think a command like "cbefore" or "croot" could be usefull. using this command after a quickfix trip (vimgrep, make etc) will jump to the buffer and line the user used before. with this command it will be easy to go back to b

Re: VS2005 linking errors with FEATURES=TINY GUI=yes OLE=yes

2006-06-04 Thread Yegappan Lakshmanan
Hi Mathias, On 6/4/06, Mathias Michaelis <[EMAIL PROTECTED]> wrote: Hi developers If I compile vim on Windows XP with Microsoft Visual Studio 2005 Express Edition on the command line with nmake -f Make_mvc.mak DEBUG=yes FEATURES=TINY GUI=yes OLE=yes I get the errors: ex_cmds2.obj : error LNK

Re: [Bug] On Unix-like systems, cannot redir to register +

2006-06-02 Thread Yegappan Lakshmanan
Hi Antoine, On 6/2/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Bug: Cannot redir to @+ Redirecting the Ex command output and messages to the + register is not (yet?) supported and is not mentioned in the help for the ":redir" command. - Yegappan - Symptom: Trying to :redir to register +

Re: commandline window

2006-06-01 Thread Yegappan Lakshmanan
Hi, On 6/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: All, Is there an elegant way of checking if the current window is a "command line" window other than seeing if the buffer name is "command-line" ? You can use the CmdwinEnter and CmdwinLeave autocmds and set buffer-local variables.

Re: VIM 7.0 on WinXP - Strange garbage during editing.

2006-05-16 Thread Yegappan Lakshmanan
On 5/16/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote: Hello, On 5/16/06, Ali Akcaagac <[EMAIL PROTECTED]> wrote: > Hello, > > At work I am using VIM 7.0 on WindowsXP and detected some garbage during > editing process. Say I am loading a normal Textfile. I edit it

Re: VIM 7.0 on WinXP - Strange garbage during editing.

2006-05-16 Thread Yegappan Lakshmanan
Hello, On 5/16/06, Ali Akcaagac <[EMAIL PROTECTED]> wrote: Hello, At work I am using VIM 7.0 on WindowsXP and detected some garbage during editing process. Say I am loading a normal Textfile. I edit it, move around with the arrows, press ESC move around even more, scroll around a bit.. And quit

Re: :cw messes with _ =

2006-05-15 Thread Yegappan Lakshmanan
Hi Benji, On 5/15/06, Benji Fisher <[EMAIL PROTECTED]> wrote: After opening the quickfix window and using _ to make it larger, I find that = no longer works until I close the quickfix window. This is because the quickfix window has the 'winfixheight' option set. So when you try to make t

Re: How to convert a string into a "file"

2006-05-05 Thread Yegappan Lakshmanan
Hi Zdenek, On 5/5/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: I have this problem (trivially simplified a real case): let a="a\nb\nc" When echo'ing it, it displays lines: :echo a a b c Now I need to call system() and have the contents of 'a' as the file, without actually writing the 'a' int

Re: Tab menu?

2006-05-01 Thread Yegappan Lakshmanan
Hi Robert, On 5/1/06, Robert Webb <[EMAIL PROTECTED]> wrote: From the help: "In the GUI tab pages line you can use the right mouse button to open menu." This doesn't seem to work on Windows2000. Which beta version of Vim7 are you using? The tabline menu should work in the GUI version on Win

Re: Comments about 7.0g

2006-05-01 Thread Yegappan Lakshmanan
Hello, On 5/1/06, Robert Webb <[EMAIL PROTECTED]> wrote: > This is the last chance to report problems. This is my first look at the version 7 line. Here's a few things I noticed: - I was excited about tabs, but a bit disappointed to see that they're only implemented using text in the Win

Re: functions that take much time in load_dummy_buffer() [vimgrep]

2006-04-28 Thread Yegappan Lakshmanan
Hi Yakov, On 4/28/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: I identified which functions are slow and which are fast out of functions called (load_dummy_buffer() + wipe_dummy_buffer()) pair. As I wrote earlier this pair of functions is what slows down vimgrep, not the search. The loop of 1000

Re: Now that we have feedkeys()...

2006-04-26 Thread Yegappan Lakshmanan
Hi Nikolai, On 4/26/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote: > a readkeys() can't be far behind. Having a readkey() - singular > probably makes more sense - function would allow us (i.e., me) to do > something like this: > What will be difference between the existing getchar() function and

Re: changing cursor position from search prompt doesn't work

2006-04-19 Thread Yegappan Lakshmanan
Hi Hari, On 4/19/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: > > If you execute a function that changes the cursor position from the > search prompt, vim completely ignores it, but the same works fine from > the command prompt. Say, you have something like this: > > function! TT() > call cu

Re: Vim 70 and multibyte printing

2006-04-13 Thread Yegappan Lakshmanan
Hello, On 4/13/06, Valery Kondakoff <[EMAIL PROTECTED]> wrote: > Hello, vim-developers! > > Please, bring some lite on this topic: is this true, that it is > still impossible to print mutibyte textes using (g)Vim 7.0 when you > set 'encoding' to 'utf-8'? > > At least all my experiments were un

Re: :!gvim does not work

2006-04-13 Thread Yegappan Lakshmanan
Hi Bram, On 4/13/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > Benji Fisher wrote: > > > I just tried > > > > :!gvim > > > > and all I got was > > > > Vim: Caught deadly signal SEGV > > Vim: Finished. > > > > Command terminated > > > > Press ENTER or type command to continue > > > > I am

Re: vim split buffer bug

2006-04-10 Thread Yegappan Lakshmanan
Hi, On 4/10/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote: > Hello, > > On 4/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > ...this also reminds me of another related issue: > > > > 1. press in the top window repeatedly until you ge

Re: vim split buffer bug

2006-04-10 Thread Yegappan Lakshmanan
Hello, On 4/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > ...this also reminds me of another related issue: > > > 1. press in the top window repeatedly until you get to the last > > > line of this three line buffer > > > 2. do a :tab split > > > 3. do a :tabclose > > > > > > Notice th