Re: Something to wrap a selection

2013-09-28 Thread Paul Isambert
Harry Putnam rea...@newsguy.com a écrit: Paul Isambert zappathus...@free.fr writes: The code relies on an analysis of the “comments” option, which is normally set by filetype. For .conf files, I can see that the option is ambiguous (for our purpose), as it contains several characters for

Re: Delete from search history

2013-09-28 Thread Bram Moolenaar
Dimitar Dimitrov wrote: Hi, The call to histdel below doesn't seem to be doing what I want it to do. It doesn't delete my 3 search patterns added by the 2 :substitute and the :global calls. Not sure what it does exactly, it seems to delete one correct entry and 2 wrong ones. All I want is

Re: Something to wrap a selection

2013-09-28 Thread Harry Putnam
Paul Isambert zappathus...@free.fr writes: I say goodbye here, the code follows. I’ll hope you’ll be satisfied this time (there might be glitches, I did not test the command much, just basic tries). Oh boy, yup this baby works now. Man, you went so far beyond the call of duty, and let me

Re: Delete from search history

2013-09-28 Thread Dimitar DIMITROV
Hi, The call to histdel below doesn't seem to be doing what I want it to do. It doesn't delete my 3 search patterns added by the 2 :substitute and the :global calls.  Not sure what it does exactly, it seems to delete one correct entry and 2 wrong ones. All I want is no trace of those

BufEnter buggy?

2013-09-28 Thread Aaron Bohannon
I have an autocmd that updates the window title in my terminal based on the current file name. BufEnter clearly seems to be the event I would want to trigger it with. But I've noticed two problems: (a) BufEnter isn't getting triggered after closing the last window in a tab and ending up in a

Re: Calling a user function via a map cancels visual mode

2013-09-28 Thread skeept
The : in your mappings is what ends visual mode. You can't avoid this, but you can go back into visual mode with the same region as you had, simply by adding 'gv' to the end of your mapping. :help gv Thanks Ben, I modified my function and mappings to the following: function!

Re: Wishlist item: comma object-selecting motion

2013-09-28 Thread Aaron Bohannon
I've been meaning to implement that sort of text region on top of textobj-user but haven't found the time. On a related note, it's worth mentioning...you can probably get more mileage out of the % motion than you realize. I didn't pay attention to this fact until recently, but you do not have