Re: Access class member from command line

2024-05-09 Thread Yegappan Lakshmanan
Hi, On Thu, May 9, 2024 at 1:16 AM Lifepillar wrote: > > On 2024-05-09, Yegappan Lakshmanan wrote: > > Hi, > > > > On Wed, May 8, 2024 at 2:11 PM Lifepillar wrote: > >> > Looks like a bug. Should be able to do `foo.Config.option = true` > >> >

Re: Access class member from command line

2024-05-08 Thread Yegappan Lakshmanan
Hi, On Wed, May 8, 2024 at 2:11 PM Lifepillar wrote: > > On 2024-05-07, Girish wrote: > > On Sunday 5 May 2024 at 15:39:53 UTC+2 Lifepillar wrote: > > >> Let's say I have this class in some `foo.vim` file: > >> > >> export class Config > >> public static var option = false > >> endclass > >> >

Re: matchbufline and ignorecase/smartcase

2024-02-19 Thread Yegappan Lakshmanan
Hi, On Mon, Feb 19, 2024 at 12:11 PM Salman Halim wrote: > > Hello, > > I'm using 64-bit GVim 9.1 patches 1-95 on Windows 10. > > Is it possible to have matchbufline() observe 'ignorecase' and 'smartcase'? > Currently, if I have 'ignorecase' and 'smartcase' set, it behaves as if only > 'ignorec

Re: Termdebug does not show messaged back from openocd.

2024-01-29 Thread Yegappan Lakshmanan
Hi, On Sun, Jan 28, 2024 at 9:46 PM Ubaldo Tiberi wrote: > > Ok, I somehow expected that. :) > > Unfortunately I am not skilled enough nor have enough time budget for this > kind of investigation, but on the positive side I managed to setup Termdebug > as a client for an openocd server who was

Re: Commit: patch 9.1.0009: Cannot easily get the list of matches

2024-01-09 Thread Yegappan Lakshmanan
On Sun, Jan 7, 2024 at 8:30 AM Yegappan Lakshmanan wrote: > Hi all, > > On Thu, Jan 4, 2024 at 1:45 PM Christian Brabandt > wrote: > >> patch 9.1.0009: Cannot easily get the list of matches >> >> Commit: >> https://github.com/vim/vim/commit/f93b1c881a9

Re: Commit: patch 9.1.0009: Cannot easily get the list of matches

2024-01-08 Thread Yegappan Lakshmanan
Hi Gary, On Mon, Jan 8, 2024 at 12:14 PM Gary Johnson wrote: > On 2024-01-07, Yegappan Lakshmanan wrote: > > > To demonstrate the use of the new matchbufline() function, I have created > > the following script. This does search text completion from the list of > words >

Re: Commit: patch 9.1.0009: Cannot easily get the list of matches

2024-01-07 Thread Yegappan Lakshmanan
Hi all, On Thu, Jan 4, 2024 at 1:45 PM Christian Brabandt wrote: > patch 9.1.0009: Cannot easily get the list of matches > > Commit: > https://github.com/vim/vim/commit/f93b1c881a99fa847a1bafa71877d7e16f18e6ef > Author: Yegappan Lakshmanan > Date: Thu Jan 4 22:28:46 2024 +

Re: Function to find all matches in a string?

2023-12-24 Thread Yegappan Lakshmanan
Hi Tim, On Sat, Dec 23, 2023 at 2:35 PM Tim Chase wrote: > I was looking for something similar to Python's re.findall()/finditer() > function to answer a question on Reddit[1] but was surprised I > couldn't find anything in > > :help function-list > > The general intent would be to take an inp

Re: Location list entries for unsaved buffer open a new buffer

2023-10-24 Thread Yegappan Lakshmanan
On Sat, Oct 21, 2023 at 10:08 AM Lifepillar wrote: > On 2023-10-21, Yegappan Lakshmanan wrote: > > On Sat, Oct 21, 2023 at 7:09 AM Lifepillar > wrote: > >> How do I generate location list entries that refer to the proper unsaved > >> buffer? > >> > &g

Re: Location list entries for unsaved buffer open a new buffer

2023-10-21 Thread Yegappan Lakshmanan
text': 'some message', > ...}]} > > Therefore, selecting such entries causes a new buffer 2 to be created. > > How do I generate location list entries that refer to the proper unsaved > buffer? > > There is a item in the todo list for more than 20 years now

Re: Are function evaluated at Lambda declaration ?

2023-10-14 Thread Yegappan Lakshmanan
Hi, On Sat, Oct 14, 2023 at 9:05 AM Nicolas wrote: > Hi, > > Is this line declaration in vim9script evaluate the LogX_FOOBAR function > or not ? > > > var LambdDetectInLine: func = function('LogX_FOOBAR', > [ LogX.pattern.start.func, > LogX.codefunc]) # la

Re: Vim after Bram?

2023-09-18 Thread Yegappan Lakshmanan
Hi, On Sun, Sep 17, 2023 at 7:47 PM 'Philip Rhoades' via vim_use wrote: > > People, > > I have been using Vim for so many decades that I sort of felt that Bram > would always be there developing and improving the program - and while I > have asked plenty of questions on the lists etc, I never rea

Re: Where is Bram?

2023-08-05 Thread Yegappan Lakshmanan
Hi, On Sat, Aug 5, 2023 at 9:11 AM Christian Brabandt wrote: > > Am 2023-08-05 16:30, schrieb Yegappan Lakshmanan: > > On Sat, Aug 5, 2023 at 5:53 AM Maxim Kim wrote: > >> > >> https://groups.google.com/g/vim_announce/c/tWahca9zkt4 > >> > > > >

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Yegappan Lakshmanan
On Tue, Jul 4, 2023 at 1:11 PM Lifepillar wrote: > > On 2023-07-04, Nicolas wrote: > > Hi, > > > > Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ > > usage in C++ > > > > > For __LINE__ and __F

Re: How to quickly move to a specific buffer?

2022-12-14 Thread Yegappan Lakshmanan
On Wed, Dec 14, 2022 at 11:09 AM Enan Ajmain <3nan.ajm...@gmail.com> wrote: > On Wed, 14 Dec 2022 08:26:03 +0530 > Yegappan Lakshmanan wrote: > > Starting with Vim9, fuzzy completion of buffer names is supported. > > By fuzzy completion, do you mean ':b cdent'

Re: How to quickly move to a specific buffer?

2022-12-14 Thread Yegappan Lakshmanan
On Wed, Dec 14, 2022 at 8:55 AM Steve Litt wrote: > Yegappan Lakshmanan said on Wed, 14 Dec 2022 08:26:03 +0530 > > >Starting with Vim9, fuzzy completion of buffer names is supported. > > > >- Yegappan > > I did :h fuzzy but it said nothing about fuzzy comple

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Yegappan Lakshmanan
Starting with Vim9, fuzzy completion of buffer names is supported. - Yegappan On Wed, Dec 14, 2022 at 8:16 AM Tim Chase wrote: > On 2022-12-13 20:29, John Passaro wrote: > > and ^6 is not only good for going between two, not if you have > > three and can remember their buffer numbers via :ls, ^

Re: [PATCH] fix: powershell :! filter commands

2022-10-02 Thread Yegappan Lakshmanan
Hi, On Sat, Oct 1, 2022 at 8:04 AM Enan Ajmain <3nan.ajm...@gmail.com> wrote: > > On Sat, 01 Oct 2022 15:47:40 +0100 > Bram Moolenaar wrote: > > > > Would be good if this can be turned into a PR. Hopefully with a test. > > Can you do that, or would this need to be done by someone else? > > I can

Re: Building VIM 9 on Ubuntu

2022-08-10 Thread Yegappan Lakshmanan
Hi, On Wed, Aug 10, 2022 at 10:43 AM 'J S' via vim_use wrote: > > Not trying to be difficult or insulting or anything like that, but so it > boils down to, no, there is no easy way to do it. > You (i.e., me) just have to figure it out. By the way, my system doesn't > have "build-dep". It says

Re: New version of vim unsolicitedly sourcing defaults.vim?

2022-08-09 Thread Yegappan Lakshmanan
Hi, The following FreeBSD bug may be relevant to this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251420 - Yegappan On Tue, Aug 9, 2022 at 2:06 PM Bram Moolenaar wrote: > > Tim Chase wrote: > > > I upgraded packages on my FreeBSD box yesterday and noticed that > > vimrc behavior had ch

Re: news about vim9?

2022-04-26 Thread Yegappan Lakshmanan
Hi, On Tue, Apr 26, 2022 at 9:39 AM Matthias Erich Popp wrote: > > Last Commit ist from 26. Jan. 2020 ??? > The Vim9 development happens in the main branch (https://github.com/vim/vim) now. You can use any of the recent Vim builds. A lot of Vim9 related changes have been made in the last two yea

Re: Out_cb callback handler in vim9

2022-02-27 Thread Yegappan Lakshmanan
Hi, On Sun, Feb 27, 2022 at 4:27 AM Ni Va wrote: > > Hi All, > > In §9 of channel help is mentionned the legacy vimscript out_cb handler. > > > " let job = job_start(command, {"out_cb": "MyHandler"}) > The function will be called with the channel and a message. You would define > it like this: >

Re: A new book about Vi/Vim

2022-02-13 Thread Yegappan Lakshmanan
Hi Bram, On Sun, Feb 13, 2022 at 8:59 AM Bram Moolenaar wrote: > > Yegappan wrote: > > > I came across a new (revision) book about Vim: > > > > https://www.amazon.com/Learning-Vim-Editors-Agility-Editing/dp/1492078808/ > > Thanks for letting us know. I had not heard yet that it was ready and > a

A new book about Vi/Vim

2022-02-13 Thread Yegappan Lakshmanan
Hi, I came across a new (revision) book about Vim: https://www.amazon.com/Learning-Vim-Editors-Agility-Editing/dp/1492078808/ Regards, Yegappan -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more informatio

Vim turns 30 today!

2021-11-02 Thread Yegappan Lakshmanan
https://www.reddit.com/r/vim/comments/ql30pm/vim_turns_30_today/ Happy 30th Birthday!!! Thanks Bram. Regards, Yegappan -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.or

Re: how to replace very slow html/css syntax plugin

2021-09-02 Thread Yegappan Lakshmanan
Hello, On Thu, Sep 2, 2021 at 6:53 AM 'Fetchinson' via vim_use wrote: > > Hi all, > > I opened this issue on the issue tracker, > > https://github.com/vim/vim/issues/8825 > > which was eventually closed because the problem is not about vim but > rather a plugin. > > The default synax plugin that

Re: Search for pattern in the first few lines of a buffer

2021-06-20 Thread Yegappan Lakshmanan
Hi, On Sun, Jun 20, 2021 at 3:59 AM Lifepillar wrote: > > I need to programmatically search for a pattern in the first ten lines > of a given buffer, and save the match in a variable when found. Say, the > pattern is: > > % KEY = value > > I need to extract the value if the above appears in t

Re: What is fuzzy matching?

2021-04-30 Thread Yegappan Lakshmanan
Hi, On Fri, Apr 30, 2021 at 2:15 AM BPJ wrote: > > > Den fre 30 apr. 2021 07:56Tony Mechelynck > skrev: >> >> On Fri, Apr 30, 2021 at 5:10 AM Yegappan Lakshmanan >> wrote: >> > >> > Hi Tony, >> > >> > On Thu, Apr 29, 2021

Re: What is fuzzy matching?

2021-04-29 Thread Yegappan Lakshmanan
Hi Tony, On Thu, Apr 29, 2021 at 3:07 AM Tony Mechelynck wrote: > > The help for :vimgrep (in quickfix.txt with "Last change: 2021 Feb > 05", maybe that date is in error) now mentions an [f] flag without > saying what it does. One recent vim_dev thread makes me think that > with the 'f' flag "fuz

Re: Quickfix window clearing on any change

2021-04-15 Thread Yegappan Lakshmanan
Hi David, On Thu, Apr 15, 2021 at 5:40 AM David Fishburn wrote: > > My quickfix window is being cleared anytime a file is modified, this is a new > behaviour and I don't want it. > > Work flow: > :grep something * > :copen > Work through each file in the list > > But (it has been a while now may

Re: Syntax highlighting

2021-01-19 Thread Yegappan Lakshmanan
Hi, On Tue, Jan 19, 2021 at 4:04 AM Dominique Pellé wrote: > Tony Mechelynck wrote: > > > On Tue, Jan 19, 2021 at 9:53 AM Softwafe Engineer > wrote: > > > > > > Hello. Any plans about improving of syntax highlighting? I've tried > treesitter in neovim and it's pretty cool. In other hand vim's r

Re: Bug somewhere in :put/map/range/lambda functions?

2021-01-09 Thread Yegappan Lakshmanan
Hi, Tim, On Sat, Jan 9, 2021 at 11:27 AM Tim Chase wrote: > Tried this: > > :put=range(1,10) > > and it worked as expected, appending the numbers 1..10 to my file. > Same with: > > :put=map(range(1,10), 'v:val') > > which worked as expected. However using a no-op lambda function: > > :put

Language Server Protocol (LSP) plugin using Vim9 script

2021-01-03 Thread Yegappan Lakshmanan
Hi all, I have created a language server protocol (LSP) client plugin using the Vim9 script features. It is available at: https://github.com/yegappan/lsp You need the latest Vim to use this plugin. Note that this is still a work in progress. Any comments, suggestions, bug reports and PRs are wel

Re: Getting the current character position of the cursor

2020-12-26 Thread Yegappan Lakshmanan
On Sat, Dec 26, 2020 at 8:58 AM Yegappan Lakshmanan wrote: > Hi, > > The getcurpos() and col() functions return the byte position of the cursor. > Is there a function that returns the character position of the cursor in > the current line? > > The byteidx() function returns

Getting the current character position of the cursor

2020-12-26 Thread Yegappan Lakshmanan
Hi, The getcurpos() and col() functions return the byte position of the cursor. Is there a function that returns the character position of the cursor in the current line? The byteidx() function returns the byte index given the character index in a string. I am looking for the opposite. Thanks, Y

Re: :ls with range

2020-12-09 Thread Yegappan Lakshmanan
On Wed, Dec 9, 2020 at 7:44 AM Yegappan Lakshmanan wrote: > Hi, > > On Wed, Dec 9, 2020 at 7:06 AM Sven Guckes wrote: > >> my list of buffers is ever so long.. >> but it is quite practical to have it >> since i can switch to buffers quickly. >> still.. the

Re: :ls with range

2020-12-09 Thread Yegappan Lakshmanan
Hi, On Wed, Dec 9, 2020 at 7:06 AM Sven Guckes wrote: > my list of buffers is ever so long.. > but it is quite practical to have it > since i can switch to buffers quickly. > still.. the recent buffers are at the > end of the list, and when listing them > with ":ls" i have to page down a bit. >

Re: Switching to last-used tab [SOLVED]

2020-10-09 Thread Yegappan Lakshmanan
Hi, On Fri, Oct 9, 2020 at 7:19 AM edes wrote: > el Mon, 5 Oct 2020 05:47:35 +0530 > Manas escribió: > > > I suppose sometimes it's better to read help pages first instead > > of googling in a hurry. > > > > I found out about `g` in the help section. > > Is this something new? I'm using 8.2.081

Re: Vim online conference is this weekend

2020-09-01 Thread Yegappan Lakshmanan
Hi, On Tue, Sep 1, 2020 at 9:09 AM Thomas Köhler wrote: > Hi, > > On Tue, Sep 01, 2020 at 08:19:12AM -0700, Yegappan Lakshmanan < > yegapp...@gmail.com> wrote: > > Hi, > > > > The Vim online conference is this weekend: > > > > https://hopin.to/eve

Vim online conference is this weekend

2020-09-01 Thread Yegappan Lakshmanan
Hi, The Vim online conference is this weekend: https://hopin.to/events/vimconf-live - Yegappan -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- Yo

Fwd: VimConf.live : an online vim conference

2020-07-23 Thread Yegappan Lakshmanan
Forwarding an announcement posted to reddit.com/r/vim ( https://www.reddit.com/r/vim/comments/hupylb/vimconflive_an_online_vim_conference/ ) Hi all, We're hosting a global virtual vim conference this yea

Re: Vim easter egg in command line completion

2020-06-28 Thread Yegappan Lakshmanan
Hi, On Sun, Jun 28, 2020 at 1:24 PM Dominique Pellé wrote: > Yegappan Lakshmanan wrote: > > > Hi, > > > > Try pressing Tab after entering the following (you need a space after > Ni): > > > >:hi Ni > > > > I haven't noticed this ea

Vim easter egg in command line completion

2020-06-28 Thread Yegappan Lakshmanan
Hi, Try pressing Tab after entering the following (you need a space after Ni): :hi Ni I haven't noticed this easter egg mentioned before. - Yegappan -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more i

Re: VimScript for Python developers

2020-06-13 Thread Yegappan Lakshmanan
>> wrote: >> >>> >>> On So, 31 Mai 2020, Yegappan Lakshmanan wrote: >>> >>> > Hi all, >>> > >>> > I have put together the following gist to help Python developers >>> > with VimScript: >>> > >>> >

Re: VimScript for Python developers

2020-06-01 Thread Yegappan Lakshmanan
Hi Christian, On Mon, Jun 1, 2020 at 9:31 AM Christian Brabandt wrote: > > On So, 31 Mai 2020, Yegappan Lakshmanan wrote: > > > Hi all, > > > > I have put together the following gist to help Python developers > > with VimScript: > &g

Re: VimScript for Python developers

2020-06-01 Thread Yegappan Lakshmanan
Hi Bram, On Mon, Jun 1, 2020 at 5:09 AM Bram Moolenaar wrote: > > Yegappan wrote: > > > I have put together the following gist to help Python developers > > with VimScript: > > > > https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0 > > Very useful! > > > Let me know if you have an

VimScript for Python developers

2020-05-31 Thread Yegappan Lakshmanan
Hi all, I have put together the following gist to help Python developers with VimScript: https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0 Let me know if you have any comments/suggestions. Thanks, Yegappan -- -- You received this message from the "vim_use" maillist. Do not to

Re: error list

2020-05-22 Thread Yegappan Lakshmanan
Hi, On Fri, May 22, 2020 at 12:18 PM Joseph wrote: > Is there an easy way to dump the error list to the current vim > buffer/window? > > Actually, is there a general way to do this for other commands too? > > So - I want to type something like ':clist/m 0' would be great > > > Are you looking fo

Re: Quickfix window: Hide full paths?

2020-05-08 Thread Yegappan Lakshmanan
Hi, On Fri, May 8, 2020 at 8:43 AM Nathan Neff wrote: > Hello all, > > I would like to be able to hide /really/really/really/long/file/paths/ from > my quick fix results. > > I found this post from 2009: > > https://groups.google.com/forum/#!msg/vim_use/fLhZySx3IUA/qO90VGcVhGUJ;context-place=for

Introduction to Vim popup windows

2020-04-05 Thread Yegappan Lakshmanan
Hi, FYI: I came across a good article about the new Vim popup windows today: https://vi.stackexchange.com/questions/24462/what-are-the-new-popup-windows-in-vim-8-2 - Yegappan -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are r

Re: how do I determine the status of a process within a terminal tab?

2020-01-03 Thread Yegappan Lakshmanan
Hi, On Sat, Jan 4, 2020 at 3:12 AM surge wrote: > > The ":ls" command in Vim output the current buffers in Vim. If one of the > buffers is a terminal, there are some useful flags to examine there. For > example, if the command was > > :term echo "test" > > :ls will contain an entry similar to:

Re: "Press ENTER" prompt when edit file with long path

2019-12-11 Thread Yegappan Lakshmanan
commit that introduced this bug was: > > 473952e85286eb9c6098801f1819981ba61ad153 is the first bad commit > commit 473952e85286eb9c6098801f1819981ba61ad153 > Author: Bram Moolenaar > Date: Sat Sep 28 16:30:04 2019 +0200 > > patch 8.1.2094: the fileio.c

Re: [vim/vim] :cdo does not abort on error (and the test for it seems wrong) (#5102)

2019-10-23 Thread Yegappan Lakshmanan
Hi Ralf, Thanks for testing the changes. See below. On Tue, Oct 22, 2019 at 12:01 PM Ralf Schandl wrote: > > On 21.10.19 21:57, Yegappan Lakshmanan wrote: > > Hi, > > > > On Mon, Oct 21, 2019 at 12:12 PM D. Ben Knoble > ... > > > > Hi, > > >

Re: [vim/vim] :cdo does not abort on error (and the test for it seems wrong) (#5102)

2019-10-21 Thread Yegappan Lakshmanan
Hi, On Mon, Oct 21, 2019 at 12:12 PM D. Ben Knoble wrote: > @yegappan thanks for the comparison to the > other do commands, for the explanation of the test, and for demonstrating > that *that* definition of :cdo explains basically all the behavior. > > It is still *

Re: :new and :tag

2019-08-26 Thread Yegappan Lakshmanan
Hi, On Mon, Aug 26, 2019 at 1:17 PM Eli the Bearded wrote: > > I find myself often wanting to open a new buffer and then lookup a tag. > In visual mode, I can use while on top of a tag word. > In ex (command line) I have been using: > >:cmap ,nt new\|tag > > and then typing ":,nt" which exp

Re: Problem with signcolum=number

2019-07-02 Thread Yegappan Lakshmanan
Hi, On Mon, Jul 1, 2019 at 11:56 AM Bram Moolenaar wrote: > > Yegappan wrote: > > > On Mon, Jul 1, 2019 at 7:57 AM Salman Halim wrote: > > >> > > >> On Mon, Jul 1, 2019 at 7:09 AM Salman Halim > > >> wrote: > > >> > > > >> > Hello, > > >> > > > >> > When setting 'signcolumn' to number, if I ed

Re: Problem with signcolum=number

2019-07-01 Thread Yegappan Lakshmanan
Hi, On Mon, Jul 1, 2019 at 7:57 AM Salman Halim wrote: >> >> On Mon, Jul 1, 2019 at 7:09 AM Salman Halim wrote: >> > >> > Hello, >> > >> > When setting 'signcolumn' to number, if I edit a file containing fewer >> > than ten lines and have a plug-in that shows marks as signs (or have >> > manuall

Re: Problem with signcolum=number

2019-07-01 Thread Yegappan Lakshmanan
Hi, On Mon, Jul 1, 2019 at 7:33 AM Yegappan Lakshmanan wrote: > > On Mon, Jul 1, 2019 at 7:09 AM Salman Halim wrote: > > > > Hello, > > > > When setting 'signcolumn' to number, if I edit a file containing fewer > > than ten lines and hav

Re: Problem with signcolum=number

2019-07-01 Thread Yegappan Lakshmanan
Hi, On Mon, Jul 1, 2019 at 7:09 AM Salman Halim wrote: > > Hello, > > When setting 'signcolumn' to number, if I edit a file containing fewer > than ten lines and have a plug-in that shows marks as signs (or have > manually created signs), the signs are occasionally three columns > wide, thus wide

Re: Window-local and Tab-local previous directories?

2019-05-14 Thread Yegappan Lakshmanan
Hi, On Sat, May 11, 2019 at 10:12 AM Manuel Ortega wrote: > > On Friday, May 10, 2019 at 5:20:08 PM UTC-4, Bram Moolenaar wrote: > > > I think that's the best way we provide this functionality. But I like > > to hear from others. > > I think this is adding complexity, a maintenance burden, and y

Re: ":helptags $VIMRUNTIME/doc" gives Error E154: Duplicate tag ":cbe" in quickfix.txt

2019-05-05 Thread Yegappan Lakshmanan
Hi Tony, On Sun, May 5, 2019 at 10:38 AM Tony Mechelynck wrote: > > Hit before finishing to add all addressees > > -- Forwarded message - > From: Tony Mechelynck > Date: Sun, May 5, 2019 at 7:34 PM > Subject: ":helptags $VIMRUNTIME/doc" gives Error E154: Duplicate tag > ":cbe" i

Re: How to execute autocmd command after "cd " event?

2019-04-05 Thread Yegappan Lakshmanan
Hi, On Fri, Apr 5, 2019 at 5:56 AM Igor Forca wrote: > > Hi, > I have written some vim commands that I would like to execute every time after > :cd > command is executed. > > I searched the help: > :help autocmd-events > but can't find "change directory" event. > You can use the DirChanged auto

Change in Quickfix/Location list window buffer management

2019-03-17 Thread Yegappan Lakshmanan
Hi all, Patches 8.1.0877 and 8.1.1015 changed the way the quickfix/location list window buffers are managed. Before these patches, whenever the quickfix window is opened, a quickfix buffer is created. When the quickfix window is closed, the quickfix buffer is wiped out. This results in a new quic

Re: Vim modes state diagram

2018-11-13 Thread Yegappan Lakshmanan
Hi, On Tue, Nov 13, 2018 at 12:29 PM Eike Rathke wrote: > > Hi, > > On Tuesday, 2018-11-13 07:25:46 -0800, Yegappan Lakshmanan wrote: > > > https://rawgit.com/darcyparker/1886716/raw/vimModeStateDiagram.svg > > Great one. > Also note that "most of the

Vim modes state diagram

2018-11-13 Thread Yegappan Lakshmanan
Hi, I came across this state diagram for the different Vim modes in a recent reddit thread: https://rawgit.com/darcyparker/1886716/raw/vimModeStateDiagram.svg This looked interesting so posting it here for future reference. - Yegappan -- -- You received this message from the "vim_use" mailli

Re: Updating a quickfix/location list asynchronously without interfering with another plugin

2018-09-02 Thread Yegappan Lakshmanan
Hi, On Sun, Sep 2, 2018 at 9:25 PM Liu Sha wrote: > > > A plugin can create a quickfix list and store/cache the id of the > > list immediately in a plugin variable. > > > > call setqflist([], ' ', {'title' : 'Output from command abc'}) > > let qfid = getqflist({'id' : 0}).id > > Should we

RFC: New cfilter plugin

2018-08-29 Thread Yegappan Lakshmanan
Hi all, Patch 8.1.0311 adds a new optional cfilter.vim plugin to Vim. A recent runtime update adds additional functionality to this plugin. This plugin provides commands (:Cfilter and :Lfilter) which can be used to filter entries from a quickfix or a location list. For example, the command ":Cfi

Re: Stale Vim plugins at github.com/vim-scripts

2018-05-02 Thread Yegappan Lakshmanan
Hi, On Wed, May 2, 2018 at 9:23 AM, 'Andy Wokula' via vim_use wrote: > Am 02.05.2018 um 17:04 schrieb Yegappan Lakshmanan: >> >> Hi all, >> >> The plugins available at https://github.com/vim-scripts are not >> updated for a long time now. This is su

Stale Vim plugins at github.com/vim-scripts

2018-05-02 Thread Yegappan Lakshmanan
Hi all, The plugins available at https://github.com/vim-scripts are not updated for a long time now. This is supposed to mirror the latest plugins from www.vim.org. Is the maintainer of https://github.com/vim-scripts still subscribed to this list? If this is not a maintained repository, then it s

Re: Updating a quickfix/location list asynchronously without interfering with another plugin

2018-03-22 Thread Yegappan Lakshmanan
Hi, On Thu, Mar 22, 2018 at 12:36 AM, zechfox wrote: > 在 2017年11月16日星期四 UTC+8下午10:44:41,Yegappan写道: >> Hi all, >> >> There was a recent thread in reddit/r/vim about two Vim plugins updating >> the same quickfix list at the same time thereby interfering with each other: >> >> https://www.reddit.co

Asynchronous grep and integration with the ripgrep/ag/ack search tools

2018-02-27 Thread Yegappan Lakshmanan
Hi all, I have updated the grep.vim plugin to use the new asynchronous features in Vim 8.0. Now the grep commands are run in the background and the results are added to the quickfix list. I have also updated the plugin to integrate ripgrep, ack and ag search tools. You can download the plugin fro

FYI: Functions to get the various Vim lists

2018-02-15 Thread Yegappan Lakshmanan
Hi all, With the recent addition of the getchangelist() and getjumplist() functions, Vim now has the following functions to get information about the various internal lists: argv() - Argument list getbufinfo() - Buffer list getchangelist() - Change list getjumplist() - Jump list getloclist() - Lo

Re: Window ID Conventions

2018-01-12 Thread Yegappan Lakshmanan
Hi, On Fri, Jan 12, 2018 at 1:28 PM, Charles Sheridan wrote: > Window ids in my use of Vim8 MacVim start their count at 1000 and increment > by 1 with each new window. > > Is this convention the same across Vim8 ? > Yes. But you should treat the window identifier as an opaque number. > > Does

Re: QuickFixCmdPost autocmd not always invoked

2017-11-25 Thread Yegappan Lakshmanan
Copying vim_use to get additional comments. On Sat, Nov 25, 2017 at 10:44 AM, Yegappan Lakshmanan wrote: > Hi, > > The QuickFixCmdPost autocmd is not invoked for some quickfix commands > that fail to add/modify the quickfix list. > > For the cfile, cgetfile, caddfile, m

Updating a quickfix/location list asynchronously without interfering with another plugin

2017-11-16 Thread Yegappan Lakshmanan
Hi all, There was a recent thread in reddit/r/vim about two Vim plugins updating the same quickfix list at the same time thereby interfering with each other: https://www.reddit.com/r/vim/comments/7c5f1a/two_plugins_writing_to_quickfixloc_list_at_the/ As many other plugin authors may need to know

Re: Directing which window is changed with :copen

2017-10-21 Thread Yegappan Lakshmanan
Hi, On Fri, Oct 20, 2017 at 7:24 PM, Tim Chase wrote: > On 2017-10-20 21:04, Tim Chase wrote: >> Long a nagging annoyance, I figured it's time to ask. I frequently >> will do a :vimgrep on a term under the cursor, but want the >> resulting navigation to open in a new window. > > Digging a little

Re: Summary of new quickfix features since Vim 8.0

2017-09-13 Thread Yegappan Lakshmanan
Hi Tony, On Wed, Sep 13, 2017 at 6:59 PM, Tony Mechelynck wrote: > On Thu, Sep 14, 2017 at 3:47 AM, Yegappan Lakshmanan > wrote: >> Hi all, >> >> Below is a summary of the new quickfix features introduced since Vim 8.0. > [...] > > I notice that in the q

Summary of new quickfix features since Vim 8.0

2017-09-13 Thread Yegappan Lakshmanan
Hi all, Below is a summary of the new quickfix features introduced since Vim 8.0. Most of the changes are in the getqflist()/getloclist() and setqflist()/setloclist() functions. These are useful to Vim plugin developers. 1. Quickfix list identifier. Each quickfix list is now assigned a unique

Re: Sample asynchronous make plugin

2017-09-04 Thread Yegappan Lakshmanan
Hi Bram, On Mon, Sep 4, 2017 at 11:30 AM, Bram Moolenaar wrote: > > Yegappan wrote: > >> >> I am attaching a sample asynchronous make plugin which runs >> >> the make command in the background and adds the make output >> >> to a quickfix list. This plugin relies on recent quickfix features >> >>

Re: Sample asynchronous make plugin

2017-09-04 Thread Yegappan Lakshmanan
Hi Bram, On Sun, Sep 3, 2017 at 6:48 AM, Bram Moolenaar wrote: > > Yegappan wrote: > >> I am attaching a sample asynchronous make plugin which runs >> the make command in the background and adds the make output >> to a quickfix list. This plugin relies on recent quickfix features >> added to Vim.

Sample asynchronous make plugin

2017-09-02 Thread Yegappan Lakshmanan
Hi, I am attaching a sample asynchronous make plugin which runs the make command in the background and adds the make output to a quickfix list. This plugin relies on recent quickfix features added to Vim. To run make in the background, use the following command: AsyncMake You can supply argu

Re: Quickfix/Location list identifier feature

2017-09-01 Thread Yegappan Lakshmanan
Hi Bram, On Fri, Sep 1, 2017 at 9:50 AM, Bram Moolenaar wrote: > > Yegappan wrote: > >> Patch 8.0.1023 added supported for the quickfix list identifier. Now >> each quickfix and location list can be uniquely identified. This is >> needed because the quickfix list number in the quickfix stack is

Quickfix/Location list identifier feature

2017-09-01 Thread Yegappan Lakshmanan
Hi all, Patch 8.0.1023 added supported for the quickfix list identifier. Now each quickfix and location list can be uniquely identified. This is needed because the quickfix list number in the quickfix stack is not unique and can change as new quickfix lists are added. A Vim plugin that asynchron

Re: wrong encoding for digraph page

2017-08-15 Thread Yegappan Lakshmanan
Hi Christian, On Tue, Aug 15, 2017 at 2:26 AM, Christian Brabandt wrote: > > On Di, 15 Aug 2017, Tony Mechelynck wrote: > >> On Tue, Aug 15, 2017 at 7:16 AM, Adam Monsen wrote: >> > Looks like this is still an issue. >> > >> > On Sun, Feb 26, 2012 at 7:59 PM, Adam Monsen wrote: >> >> I think th

Re: quickfix information

2017-05-24 Thread Yegappan Lakshmanan
Hi, I am reviving an old thread. On Monday, April 13, 2015 at 5:04:20 AM UTC-7, herm...@free.fr wrote: > Hello, > > I did not expect that many reactions. This is nice. Thank you all for > your interest in the matter. > > > > Ah, but as long as you are OK with that information showing up in > > >

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread Yegappan Lakshmanan
Hi, On Tue, Mar 14, 2017 at 2:41 PM, Christian Brabandt wrote: > Hi Bram! > > On Di, 14 Mär 2017, Bram Moolenaar wrote: > >> Would you need more than setline() and getline()? > > We already have getbufline() but are missing setbufline() > I submitted a patch back in 2003 to add the setbufline()

Re: what is the read file command in the vim script , I try to debug the taglist.vim

2015-11-06 Thread Yegappan Lakshmanan
Hi, On Fri, Nov 6, 2015 at 4:10 AM, wrote: > 在 2015年11月6日星期五 UTC+8下午7:56:58,imleg...@gmail.com写道: >> I think that the taglist.vim must read the tags file at some place, but I >> can't get it . > > The problem is that I open the taglist what I get is only the current > filename and I can't see

Re: [viml help] getting the behavior of `helpgrep` quickfixlist

2015-01-18 Thread Yegappan Lakshmanan
Hi, On Sun, Jan 18, 2015 at 3:45 AM, Bruno Sutic wrote: > Hi group! > I'm working on a small "grep for manpages" plugin. Ideally, it whould mimic > how vim's `helpgrep` functionality works. > > Here's the helpgrep quick highlight to describe the wanted feature: > - a user enters `helpgrep some_p

Re: how to fix a bug in VIM?

2014-11-01 Thread Yegappan Lakshmanan
Hi, On Sat, Nov 1, 2014 at 12:19 PM, Ricardo Teles wrote: > Hello, > > My name is Ricardo, I study at São Paulo university and I am beginner here. > Welcome to the list. > > I'd like to know how I can contribute to vim? Is there some todo's list? > How can I take a issue to solve? > You should

Re: How to use

2014-10-11 Thread Yegappan Lakshmanan
Hi, >> >> On Friday, October 10, 2014 12:04:17 PM UTC+2, jiaxing_wang wrote: >> > This wiki page: >> > >> > http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_3) >> > >> > >> > >> > >> > says with the following maps in a script file: >> > >

Re: taglist: how to display tcl variables?

2014-04-23 Thread Yegappan Lakshmanan
Hi, On Sat, Apr 19, 2014 at 10:20 AM, ping song wrote: > I remember I ever saw the variables in tlist window. > but currently I only see functions/procedures,nothing else. > I change the taglist.vim : > > let s:tlist_def_tcl_settings = > 'tcl;c:class;v:variable;f:method;m:method;p:procedure' > >

Re: Help needed in reproducing an error with the mru plugin

2014-01-20 Thread Yegappan Lakshmanan
Hi Gary, On Mon, Jan 20, 2014 at 10:07 AM, Gary Johnson wrote: > On 2014-01-20, Yegappan Lakshmanan wrote: >> Hi all, >> >> If you are not an user of the MRU plugin, you can skip this e-mail. >> >> I need some help in reproducing a problem reported by a mru

Help needed in reproducing an error with the mru plugin

2014-01-20 Thread Yegappan Lakshmanan
Hi all, If you are not an user of the MRU plugin, you can skip this e-mail. I need some help in reproducing a problem reported by a mru plugin user on stack overflow (http://stackoverflow.com/questions/15481723/vim-mru-plugin-issue). On opening the MRU window, the following error is seen: Error

Re: Rgrep not working on vim 64-bit, win7

2014-01-14 Thread Yegappan Lakshmanan
Hi, On Tue, Jan 14, 2014 at 5:17 AM, lazureus wrote: > W dniu wtorek, 14 stycznia 2014 11:03:04 UTC+1 użytkownik JohnBeckett napisał: >> It looks like the wiki has had the answer since March 2013: >> >> http://vim.wikia.com/wiki/Script:311 >> >> That is linked in the top line at: >> >> http://www

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-22 Thread Yegappan Lakshmanan
Hi, On Sun, Dec 22, 2013 at 11:48 AM, ping song wrote: > gee..I just tried this idea on another scenario, didn't work... > > "this doesn't work, guess overided by taglist > augroup MyTagListCommand > au! > au BufEnter FileType taglist nnoremap p > augroup END > > > n *@:call 11

Announcing a new version (3.7) of the MRU plugin

2013-12-22 Thread Yegappan Lakshmanan
Hi all, I have uploaded a new version (3.7) of the Most Recently Used Files (MRU) plugin to the Vim online site. You can download it from: http://vim.sourceforge.net/scripts/script.php?script_id=521 The following changes are made in this version: 1. When deleting the last empty line in the MRU

Re: Tabs vs buffers

2013-11-22 Thread Yegappan Lakshmanan
Hi, On Fri, Nov 22, 2013 at 6:06 AM, Nikolay Pavlov wrote: >>> > >>> > Is there a way to see for each tabs only the files opened in that tab? >>> > The ls or buffers command will show all buffers for all tabs, I would like >>> > the tab to behave like mini projects or categories of tasks. >>> >>>

Re: ctags: how to search through results of tag finding

2013-07-03 Thread Yegappan Lakshmanan
Hi, On Wed, Jul 3, 2013 at 1:01 AM, Jacek Czaja wrote: > Hello, > > Quite often I come across an issue that when I locate some tag from Vim I'm > given few dozen of results. Even That I have tags generated for my C++ code > base still I have plenty of results and It took a time to pick the one I

Re: how to set quickfix to get tags infomation

2013-05-21 Thread Yegappan Lakshmanan
Hi, On Tue, May 21, 2013 at 1:53 AM, Steve liu wrote: > I'm enable ctags. > > And if a lot of tags is matching when I stroke Ctrl+]. Some info will be > shown. > I want those info goes into quickfix window. > > how to do that. > You can use the ":ltag " command to add all the matching tags to th

Re: Vim freezes with 100% cpu usage on exit

2013-04-20 Thread Yegappan Lakshmanan
Hi, On Sat, Apr 20, 2013 at 7:33 AM, Christian Brabandt wrote: > Hi Thiago! > > On Sa, 20 Apr 2013, Thiago Padilha wrote: > > > Dominique thanks for your help. > > > > I have attached gdb to vim in both cases: when I re-attach to tmux after > a > > reboot(which hangs without cpu activity for a w

  1   2   >