Re: vim: revert a specific change in the undo history

2023-07-11 Thread A. S. Budden
On Tue, 11 Jul 2023, 20:26 Christian Brabandt, wrote: > > On Di, 11 Jul 2023, ping song wrote: > > > say I've done 3 changes A, B, C. > > but I realized B is a big mistake. A and C is good. > > can I just delete change B, but keep A and C? > > I believe this is not possible. What you can do is,

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread N i c o l a s
Hi Bram, Sorry but, Out of well indexing, which is faster ? 1) indexing by bytes -> legacy 2) indexing by characters -> vim9script Thank you for your answer. Nicolas ** Le samedi 3 juin 2023 à 13:12:53 UTC+2, Bram Moolenaar a écrit : > > > Legacy Vim script: > > > > let text = 'àbc' > > echo

Re: passing vim9 vars to python3

2023-05-31 Thread N i c o l a s
- From vim9 help I see *Functions and variables are script-local by default* So s: is no mandatory no?, because if I put s: I see E1268: Cannot use s: in Vim9 script: s:yml_f = yml_fpath. - So I delete s: and obtain this 3.12.0b1 (tags/v3.12.0b1:5612078

Re: passing vim9 vars to python3

2023-05-31 Thread N i c o l a s
Hi Bram, Thank you I knew, this is working vim9script def g:Py3_SimpleMinimalTest(yml_fpath: string): void w:yml_f = yml_fpath exe 'py3 print(sys.version)' exe 'py3 print(vim.current.window.vars[''yml_f''])' enddef and what about making this works def g:Py3_SimpleMinimalTest(yml_fpath:

passing vim9 vars to python3

2023-05-31 Thread N i c o l a s
ble to move a VIM9 class to the python3 world? Thank you N i c o l a s -- -- 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 --- You received this

Google C++ Style Guide

2023-05-17 Thread N i c o l a s
n other words Wrap parameter lists of function declaration, at same column's number. Thanks N i c o l a s -- -- 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/mai

Re: vim9 exported func badly indented

2023-02-18 Thread N i c o l a s
ileVimStartup(): void profile start $tmp/vimprofiler.log > profile file *; profile func *;enddef* > > On Thu, Feb 2, 2023 at 4:13 PM N i c o l a s wrote: > >> Hi, >> >> Got this vim9 func, visual select all lines, type =, it is indenting >> badly. >>

Passing python3 file arguments seems failing py3f

2023-02-09 Thread N i c o l a s
Hi, Following vim's python help, *"To pass arguments you need to set sys.argv[] explicitly. Example: > * :python sys.argv = ["foo", "bar"] :pyfile myscript.py *"* I tried to pass argues to python file as this export def PyLinter(): void py3 import sys py3 sys.argv =

vim9 exported func badly indented

2023-02-02 Thread N i c o l a s
Hi, Got this vim9 func, visual select all lines, type =, it is indenting badly. export def ProfileVimStartup(): void profile start $tmp/vimprofiler.log profile file * profile func * enddef Thank you N i co las -- -- You received this message from the "vim_use" maillist. Do not

Re: vim9 autoload script modified : How to reload it On-The-Fly

2023-01-12 Thread N i c o l a s
4:41 UTC+1, Lifepillar a écrit : > On 2023-01-11, N i c o l a s wrote: > > Hum, thanks a lot Life, after one more check: > > > > *./vimfiles/plugged/foo-helper.vim/autoload/vim9fooscript.vim* > > > > vim9script > > > > *# some many defs func* &g

Re: Vim9 Create its own Lambda Def Function

2023-01-11 Thread N i c o l a s
Yess a lot it helps. Thank you Mr Halim. Big Thank to Bram. Le mercredi 11 janvier 2023 à 22:02:30 UTC+1, Salman Halim a écrit : > > > On Wed, Jan 11, 2023 at 3:33 PM N i c o l a s wrote: > >> Hi, >> >> Is it possible to create its own lambda function ? >&

Re: vim9 autoload script modified : How to reload it On-The-Fly

2023-01-11 Thread N i c o l a s
:08 UTC+1, Lifepillar a écrit : > On 2023-01-11, N i c o l a s wrote: > > > > effectively, sourcing does not work sorry lifepillar: it echoes to me a > > message E1091 Function HighCaller (below) is not compiled. > > > > And the calling tree is as this : > &

Vim9 Create its own Lambda Def Function

2023-01-11 Thread N i c o l a s
Hi, Is it possible to create its own lambda function ? I explain I got this def func : def *OutBufAdd*(outbuf: list, str: string) EchoMsg(str) outbuf->add(str) enddef Client code is using it as this : OutBufAdd(outbuf, 'foo') OutBufAdd(outbuf, 'bar') OutBufAdd(outbuf,

Re: vim9 autoload script modified : How to reload it On-The-Fly

2023-01-11 Thread N i c o l a s
Ok Bram that what I do each time I modify an autoload vim9script (so I do the best I can :) effectively, sourcing does not work sorry lifepillar: it echoes to me a message E1091 Function HighCaller (below) is not compiled. And the calling tree is as this : nnoremap *foo * Helper. *HighCaller*

vim9 autoload script modified : How to reload it On-The-Fly

2023-01-11 Thread N i c o l a s
*/*vim9fooscript*.vim def Foo which is currently modifying How to force "recompile" the new modified content of def Foo without touch the nnoremap ? Thank you N i c o l a s -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

Re: Atom and Substitute carraige return only in part of string

2022-12-19 Thread N i c o l a s
Thanks ! Le dimanche 18 décembre 2022 à 14:39:23 UTC+1, xigb...@gmail.com a écrit : > *:s/\zs"[^"]\+"\ze/replace_string_here/g* > > On Sun, Dec 18, 2022 at 11:55 AM N i c o l a s wrote: > >> Hi, >> >> Getting this awfull string containing sev

Atom and Substitute carraige return only in part of string

2022-12-18 Thread N i c o l a s
0^@0;0;0^@0;0;0" ,0.0,0.0,0.0,0.0001,0.003^@ Using atom, I search and fix part of string where carriage return need to be replaced by space : this is the atom pattern \zs,"[^"]\+"\ze How to only substitute on these focused part of string ? Thank you N i c o l a s -- -- You received this mess

Re: vim9script userdef

2022-12-11 Thread N i c o l a s
Thank you Mike. That's why i'm trying to apply what Salman said '' just a dict called g:tagbar_type and then 'type' could just be a key '' Thank you Nicolas Le dimanche 11 décembre 2022 à 16:00:13 UTC+1, Mike a écrit : > On 12/10/2022 9:17 AM, N i c o l a s wrote: > >

Re: vim9script userdef

2022-12-11 Thread N i c o l a s
Thank you Salman, your advise seems to match what I need. In Progress... :) Le samedi 10 décembre 2022 à 19:07:50 UTC+1, Salman Halim a écrit : > On Sat, Dec 10, 2022 at 9:23 AM N i c o l a s wrote: > >> Port in vim9script, do i have to pass by exécutable command as you d

Re: vim9script userdef

2022-12-10 Thread N i c o l a s
Port in vim9script, do i have to pass by exécutable command as you de scribe it ? Thank you Marc Le samedi 10 décembre 2022 à 15:17:52 UTC+1, N i c o l a s a écrit : > Hi Marc, > > >- Not it is not OK. E488 when i try to port autoload/tagbar.vim lin386 > > https://gi

Re: vim9script userdef

2022-12-10 Thread N i c o l a s
Hi Marc, - Not it is not OK. E488 when i try to port autoload/tagbar.vim lin386 https://github.com/preservim/tagbar/blob/master/autoload/tagbar.vim function! s:LoadUserTypeDefs(...) abort if a:0 > 0 let type = a:1 let defdict = {} let defdict[type] =

vim9script userdef

2022-12-10 Thread N i c o l a s
Hi, In vim9script, is it possible to write the equivalent of this legacy vimscript code : let defdict[type] = g:tagbar_type_{type} For instant it results to E488: Trailing characters: {ftype} Thank you Nicolas -- -- You received this message from the "vim_use" maillist. Do not top-post!

Re: Gvim taking a minute or more to start

2022-09-29 Thread A. S. Budden
I've been running Vim with the HOME environment variable set for a couple of weeks now and it's remained consistently fast to start up. As a test I went back to unsetting $HOME and it went back to being very slow to start, so there's definitely some combination of the way I've got vim set up (the

Re: Gvim taking a minute or more to start

2022-09-12 Thread A. S. Budden
On Fri, 9 Sept 2022, 12:45 jr, wrote: > hi, > > On Fri, 9 Sept 2022 at 12:39, A. S. Budden wrote: > > ... > >> I tried removing the HOME environment variable from cygwin (it's not > set to anything in the Windows system, whereas it's set to /home/al in > cygwin)

Re: Gvim taking a minute or more to start

2022-09-12 Thread A. S. Budden
On Fri, 9 Sept 2022, 12:48 Andrew Bernard, wrote: > Take a look at Windows Event Viewer. You may be able to glean something > from that. > I can't see anything obvious, but then I don't really know what I'm looking for. > Do you have an antivirus program running? > As far as I know, only the

Re: Gvim taking a minute or more to start

2022-09-09 Thread A. S. Budden
On Fri, 9 Sept 2022 at 12:06, A. S. Budden wrote: > On Thu, 8 Sept 2022, 19:29 Gary Johnson, wrote: > >> On 2022-09-08, David Lowry-Duda wrote:So if I run Windows gvim from a >> cygwin terminal it starts quickly but if I run it from a windows command >> prompt or from wi

Re: Gvim taking a minute or more to start

2022-09-09 Thread A. S. Budden
sys 0m0.000s > > I had it execute :scriptnames just so it would have something > to do before immediately quitting. And that's with loading all > my plugins. With "-N -u NONE -i NONE", the real time dropped > to 0.17 s. > > I suspect that whatever is causing that 5-s

Re: Gvim taking a minute or more to start

2022-09-09 Thread A. S. Budden
On Thu, 8 Sept 2022, 19:38 Tim Chase, wrote: > On 2022-09-08 11:30, Gary Johnson wrote: > > I suspect that whatever is causing that 5-second startup time is > > contributing to the read times of every file that gvim opens. > > So, while 5 seconds is better than 30, solving that 5-second issue >

Re: [EXTERNAL] Gvim taking a minute or more to start

2022-09-08 Thread A. S. Budden
On Thu, 8 Sept 2022 at 17:51, Kennedy, Marcus A. wrote: > *From:* vim_use@googlegroups.com *On Behalf Of > *A. S. Budden > *Sent:* Thursday, September 8, 2022 9:44 AM > > > On my work PCs, gvim seems to take an incredibly long time to start up, > sometimes

Re: Gvim taking a minute or more to start

2022-09-08 Thread A. S. Budden
On Thu, 8 Sept 2022 at 17:33, David Lowry-Duda wrote: > >I'm pretty sure it's something about my configuration / plugins / > >something (gvim -u NONE -U NONE takes about 5 seconds), but I'm really > >struggling to diagnose the issue / work out which plugin is > >responsible. I've got a lot of

Gvim taking a minute or more to start

2022-09-08 Thread A. S. Budden
000: sourcing C:\vim\vimfiles\bundle\EasyColour\colors\bandit.vim 2424.000 2056.000 904.000: sourcing C:\vim\vimfiles\vimrc 2424.000 2093.000 037.000: sourcing $VIM\_vimrc 2424.000 302.000: sourcing vimrc file(s) 2549.000 002.000 002.000: sourcing C:\vim\vimfiles\plugin\a.vim 2550.000 000.000

Building VIM 9 on Ubuntu

2022-08-12 Thread 'J S' via vim_use
Solved (more or less). I now understand the point of "build-dep" and it works (but see below).  Before posting, I had searched the web and found something about build-dep that implied it was a package to install (rather than a command).  Note that there is also something called

Building VIM 9 on Ubuntu

2022-08-10 Thread 'J S' via vim_use
oups.comOn 2022-08-10, 'J S' via vim_use wrote:  > 1) Can someone give me a good list of all the dependencies and packages that > I  > need to install on my Ubuntu 18.04 (Yes, I know that is old, but that also  > cannot be changed) system so that I can build a GTK3 version of Vim9? (N.

Building VIM 9 on Ubuntu

2022-08-10 Thread 'J S' via vim_use
I tried building the latest VIM on a Ubuntu system, and it worked, except... I followed the instructions on the VIM page, which consists of 3 steps: 1) git clone http://...2) cd vim/src3) make This worked, and 8 minutes later, I had a new vim executable.  However, I noticed that the first thing

"Upgrading" is not an option

2021-04-09 Thread 'J S' via vim_use
I recently started a thread here about syntax highlighting and mentioned that I am using VIM 7.4 Someone "helpfully" suggested "upgrading" my VIM version. Anyway, upgrading is not an option. Please do not mention this again. Thank you. -- -- You received this message from the "vim_use"

Syntax highlighting of multiple languages in a single program

2021-04-09 Thread 'J S' via vim_use
Forgot to mention in the original post. I am testing this wtih VIM 7.4 -- -- 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 --- You received this message

Syntax highlighting of multiple languages in a single program

2021-04-09 Thread 'J S' via vim_use
Check out this URL: https://vim.fandom.com/wiki/Different_syntax_highlighting_within_regions_of_a_file My overarching goal is to be able to write a shell script (bash) with embedded code in other languages (Perl, AWK, sed, Python, Expect, whatever) and have the main script syntax highlighted

Question: Wrap optional plugins in an artificial one to reduce :packadd calls

2020-12-07 Thread Sascha S
o make use of it in some package manager. My only question(s) left are: - - Is the behaviour of calling :packadd {ArtificialWrapPluginName}/{RealChildPluginName} intention or a bug? As everything after / won't have completion entries. - Can I rely on this

Re: ANN: New colorscheme generator (and colorscheme)

2020-10-26 Thread A. S. Budden
On Mon, 26 Oct 2020 at 07:44, Felipe Contreras wrote: > I have maintained my own colorscheme for about ten years, but when I > decided to revamp it I thought of using a generator based on a > template. The closest to my needs was estilo[1], but too gratuitously > complicated in my view. > >

Meta: How to read this forum/board now that Google Groups is busted

2020-08-22 Thread 'J S' via vim_use
As many of you are no doubt aware, GG broke its interface this week so that you have to be logged in in order to read group content. I had been using email to post to this forum (vim) and using GG to read it. I can no longer read GG, because of the aforementioned breakage. None of my old GG

Re: How to quiet the message when filtering...

2020-08-19 Thread 'J S' via vim_use
or me, then you have to do it for the next guy and the next guy and so on? On Tuesday, August 18, 2020, 10:14:50 AM EDT, Christian Brabandt wrote: On Di, 18 Aug 2020, 'J S' via vim_use wrote: >  Actually, I figured out from the help file a workaround, which is to put all >th

Re: How to quiet the message when filtering...

2020-08-18 Thread 'J S' via vim_use
- but I will look into the '-s-ex' option at some later time (I did read about it; just haven't tested it yet). Thanks. P.S. It still seems to me like there should be an option, like "set silent/set nosilent' to just turn it on/off globally. That sounds like something that should be inc

Re: How to quiet the message when filtering...

2020-08-17 Thread 'J S' via vim_use
m silenced - and it to go directly into the editor with no pausing. Assume it is either impractical or impossible to put "sil" in front of every command. Is there a some setting or other to turn on silent mode globally? On Sunday, August 16, 2020, 01:03:02 PM EDT, 'J S' via vim_use

How to quiet the message when filtering...

2020-08-16 Thread 'J S' via vim_use
I have a line in a shell script like: vim -c '%!someFilter' someFile The idea is to run the contents of someFile through someFilter before doing further editing. It works fine, except for one thing. After the filter runs, but before displaying the file onscreen, it displays a message at the

Re: Error in bash syntax file

2020-08-16 Thread 'J S' via vim_use
nk we have reached end of thread. On Saturday, August 15, 2020, 12:13:06 PM EDT, 'J S' via vim_use wrote: > Hmm, that format, ${@:var1:var2} doesn't appear to be explicitly > mentioned in the bash man page (although ${parameter:var1:var2} is). I don't know if it is ever explicitly mentioned,

Re: Error in bash syntax file

2020-08-15 Thread 'J S' via vim_use
29, 2020, 05:57:32 PM EDT, 'J S' via vim_use wrote: The following line of legal bash code gets flagged as an error: echo ${@:i:1} The above line displays the i'th command line argument. I am running vim 8.1, with lots of patches applied.  My sh.vim files (3 of them) are all dated Jun 15, 20

Error in bash syntax file

2020-07-29 Thread 'J S' via vim_use
The following line of legal bash code gets flagged as an error: echo ${@:i:1} The above line displays the i'th command line argument. I am running vim 8.1, with lots of patches applied. My sh.vim files (3 of them) are all dated Jun 15, 2019. -- -- You received this message from the

Problem with Session.vim file

2020-06-14 Thread 'J S' via vim_use
vim version is 8.0, p1453 system is Ubuntu 18.04 I built up a complicates set of windows and tabs in GVIM and saved it as Session.vim When I reload from that file (after a reboot), I get error E35: Not enough room The offending line in the Session.vim file is: set winminheight=1 winheight=1

Re: Reformatting each line independently (how to apply an operation to each line)

2020-03-07 Thread 'J S' via vim_use
at. 2) It just occurred to me that, for this specific case (reformatting each line), you could use "fmt -s" (at least on Unix/GNU version of "fmt"). -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are

Reformatting each line independently (how to apply an operation to each line)

2020-03-05 Thread 'J S' via vim_use
Every so often, I have the need to reformat a text in such a way that each line gets fed to the reformatter (e.g., gqq) by itself. I.e., I don't want to reformat the whole text as a single block. Is there any general way to say "Do this thing (gqq) to each line?" I have found a workaround,

Re: Best way to launch a URL from within VIM

2019-09-27 Thread 'J S' via vim_use
>> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way. > Isn't that what netrw's normal command `gx` provides? Bingo! We have a winner! gx does exactly what I want. Thanks. Note: All other commentary on this thread has been pretty much n/a. -

Best way to launch a URL from within VIM

2019-09-27 Thread 'J S' via vim_use
Vim 7.something under (MS) Windows 7. I want to do the equivalent of: :!start http://something But that doesn't work. This *does* work, but it is ugly (and opens lots of command prompt windows and requries a few "press any key to continues"s. Also, it seems to run CMD twice - i.e

awkembed.vim

2019-07-26 Thread 'J S' via vim_use
I think it should be pretty clear by now that if I thought I could do this myself, I'd have already done so - and would not have posted to this list at all. IOW, if I have to sweat blood to get this done, it's just not worth it. I was hoping that either: 1) It had already been done by someone

awkembed.vim

2019-07-26 Thread 'J S' via vim_use
I get that people read quickly, and also that English is not everyone's first language (a lethal combination, that), but the fact is that in the OP, every word was very carefully chosen, to impart all needed information. Unfortunate, that I need to re-state that which was clearly stated

awkembed.vim

2019-07-14 Thread 'J S' via vim_use
> Have a look at :h sh-embed for the general principle. I'm assuming that you either didn't read the OP or read it very quickly, since it (the OP) makes it very clear that I had already done that. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

awkembed.vim

2019-07-13 Thread 'J S' via vim_use
Perl is off-topic in this thread. Normally, I wouldn't say anything, but I've found that, on boards like this, the first response sets the tone for the thread. People end up reacting more to the first response than to the original post. I do not want any discussion of Perl in this thread.

awkembed.vim

2019-07-13 Thread 'J S' via vim_use
(On the subject of syntax highlighting languages embedded in other languages) I frequently write (bash) shell scripts with embedded AWK scripts, and I've found the awkembed.vim script quite useful. I have it installed at: ~/.vim/after/syntax/sh/awkembed.vim And it works quite well. Now, I

Obscure shell syntax hifghlighting problem: Solved!

2019-05-26 Thread 'J S' via vim_use
On 2019/05/21 13:17, someone replied thusly to 'J S' via vim_use wrote: >> But is also allows the offset (and then length, too, but ignore that >> for now) to be negative.  But, alas, as noted in "man bash", if the >> offset is negative, you have to >> put a sp

(Obscure) problem with bash syntax highlighting

2019-05-24 Thread 'J S' via vim_use
bash allows (yes, it is a "bashism") syntax like: $ echo ${var:9:5} To mean extract a substring of the variable, starting at position 9 and of length 5. But is also allows the offset (and then length, too, but ignore that for now) to benegative.  But, alas, as noted in "man bash", if the offset

Re: ANN: digraphs outside of Vim

2018-06-01 Thread A. S. Budden
On 30 May 2018 at 17:52, Shlomi Fish wrote: > On Mon, 28 May 2018 20:00:09 +0100 > "A. S. Budden" wrote: > >> All, >> >> As my job has changed over the years, I find myself spending less time >> using Vim and (alas) more time using Outlook. Howe

ANN: digraphs outside of Vim

2018-05-30 Thread A. S. Budden
All, As my job has changed over the years, I find myself spending less time using Vim and (alas) more time using Outlook. However, one of my favourite features of Vim for typing (with Pandoc or whatever) is simplicity of entering symbols using Ctrl-K and a two-letter representation of the

Partial current word under cursor

2018-02-02 Thread S
Hello! It's a standard practice of mine having to replace whole words with something else, very useful when coding.  I have the following mapping in my vimrc: nnoremap s :%s/\<\(\)\>//g which lets me just hit \+s and replace the current word under the cursor. Now I've found myself n

gvimrc isfname

2018-01-20 Thread Sachin S
I have a file in Skill script with following line load("/user/getShellEnvVar("$USER")/filename") How do I change isfname to descend into the correct file (path below) when I press gf in gvim Correct file path is: /user/$USER/filename where $USER is the username environment variable. I have

EasyVim

2017-12-02 Thread Spencer S.
I notice that the EasyVim doesn't have all the features of Vim. What are the advantages of EasyVim? I am new to the programs entirely. Which one would you recommend to a technical communicator? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

Re: stray control characters appear on vim startup

2017-10-16 Thread A S
On Monday, October 16, 2017 at 9:22:19 PM UTC+1, John Passaro wrote: > ;2R^[[>0;95;0c Add this to your .vimrc set t_u7= set t_RV= -- -- 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

[ANN] Plugin: MarkdownCopy : A simple plugin for copying markdown text as HTML

2017-09-11 Thread A. S. Budden
Hello Vimmers, Yesterday I created a plugin called MarkdownCopy to allow me to write Outlook emails in Vim with Markdown text formatting, so I thought I'd share it. It doesn't have to be used with Outlook - any application that allows pasting of HTML formatted text will work. To use, write some

Re: How does vim choose a color that is not in the terminals color palette?

2017-06-15 Thread S. Jacobi
On Wed, 14 Jun 2017 17:54:50 -0700 (PDT) Tony Mechelynck <antoine.mechely...@gmail.com> wrote: > On Thursday, June 15, 2017 at 2:35:39 AM UTC+2, S. Jacobi wrote: > > I am using termite as my terminal emulator, which advertises 256 > > colors support via terminfo. I only

How does vim choose a color that is not in the terminals color palette?

2017-06-14 Thread S. Jacobi
I am using termite as my terminal emulator, which advertises 256 colors support via terminfo. I only defined 20 colors: fg, fg_bold, bg, cursor and the 16 colors in their normal and bright variants. I do not use a vim colorscheme, just the terminal colors. In some shell scripts I see colors that I

Re: Vim maximise weirdness

2017-03-14 Thread A. S. Budden
On 14 March 2017 at 10:19, Christian Brabandt <cbli...@256bit.org> wrote: > Hi A.! > > On Di, 14 Mär 2017, A. S. Budden wrote: > >> This is probably one of the most minor problems I've ever had with >> vim, but I thought I'd report it in case anyone understands what'

Vim maximise weirdness

2017-03-14 Thread A. S. Budden
Hi all, This is probably one of the most minor problems I've ever had with vim, but I thought I'd report it in case anyone understands what's going on here. I've just (finally) decided to upgrade to Vim 8. I initially installed the Windows executable version from

Re: Weird rendering issues after grepping some text

2017-03-09 Thread vram . v . s
On Wednesday, 8 March 2017 21:36:59 UTC+1, jostber wrote: > On 08.03.17,09:53, vram@gmail.com wrote: > >In my .vimrc I have the line below, that I use for grepping for word under > >the cursor: > > > >command! -nargs=+ Grp execute 'grep! -I -r -n --include=*.h --include=*.hpp >

Weird rendering issues after grepping some text

2017-03-08 Thread vram . v . s
In my .vimrc I have the line below, that I use for grepping for word under the cursor: command! -nargs=+ Grp execute 'grep! -I -r -n --include=*.h --include=*.hpp --include=*.inl --include=*.cpp --include=*.c . -e ' | copen | execute 'silent /' Every time I run this command most part of the

Re: How to do block pasting?

2017-01-02 Thread Aswin S
With cursor on the 'r' of 'rst', do this key sequence: lll jj d gg A p This is same as what Jan said, just putting down the keystrokes. On Monday, 2 January 2017 04:29:07 UTC+5:30, hiwa wrote: > We only get the [p] result as: > > abc rst > uvw > xyz > def > ghi > > That is, and has been,

Re: What is the blank char in my file?

2016-11-08 Thread A. S. Budden
On 8 November 2016 at 12:44, Tony Mechelynck <antoine.mechely...@gmail.com> wrote: > On Tue, Nov 8, 2016 at 1:22 PM, A. S. Budden <abud...@gmail.com> wrote: >>> On 1 November 2016 at 17:00, 李哲 <imlegend...@gmail.com> wrote: >>>> As the pic say~ >>&g

Re: What is the blank char in my file?

2016-11-08 Thread A. S. Budden
> On 1 November 2016 at 17:00, 李哲 <imlegend...@gmail.com> wrote: >> As the pic say~ >> >> I find a blank char in my file but I can't match it by \s+, I want to delete >> it, what should I do? On 8 November 2016 at 10:01, Yongwei Wu <wuyong...@gmail.com> wro

Re: How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?

2016-10-14 Thread A. S. Budden
On 14 October 2016 at 13:43, Igor Forca <igo...@gmail.com> wrote: > Hi, > I have a text file with a lot of Vim substitution and global commands like: > :%s/\(one\) \(two\)/\1\r\2/gie > :g/(something\c/normal v%2> > and several more commands in file named myfile.vim. > &

Re: Diagnosing a Vim Crash

2016-07-12 Thread A. S. Budden
On 8 February 2016 at 08:52, A. S. Budden <abud...@gmail.com> wrote: > On 5 February 2016 at 17:23, Christian Brabandt <cbli...@256bit.org> wrote: >> On Fr, 05 Feb 2016, Dominique Pellé wrote: >> >>> You're using vim-7.4.827. The latest vim is vim-7.4.1261 >&

Re: sample .vimrc for text use.

2016-05-31 Thread A. S. Budden
On 28 May 2016 at 16:41, John Culleton wrote: > I set up my .vimrc many years ago. recently my > computer died and my .vimrc went with it. I use > vim for creating text documents. It would save me > many hours of cut and try if someone could > recommend or send me a .vimrc

Re: Vim Function: return from within Python Code

2016-03-21 Thread A. S. Budden
On 21 March 2016 at 09:12, A. S. Budden <abud...@gmail.com> wrote: > On 19 March 2016 at 16:38, rameo <rai...@gmail.com> wrote: >> I have a VIM function with a lot of code written in python. >> >> There are many loops and sub-loops with this kind of code: >&g

Re: Vim Function: return from within Python Code

2016-03-21 Thread A. S. Budden
On 19 March 2016 at 16:38, rameo wrote: > I have a VIM function with a lot of code written in python. > > There are many loops and sub-loops with this kind of code: > > if this > exit > else > do this > > Does anyone know how to exit the python code and return to vim? > (or

Re: Diagnosing a Vim Crash

2016-02-08 Thread A. S. Budden
On 5 February 2016 at 17:23, Christian Brabandt wrote: > On Fr, 05 Feb 2016, Dominique Pellé wrote: > >> You're using vim-7.4.827. The latest vim is vim-7.4.1261 >> so you're missing quite a few patches. >> >> Since you wrote that you compiled vim yourself, could you >>

Diagnosing a Vim Crash

2016-02-05 Thread A. S. Budden
93/include/ruby-1.9.1 -I /cygdrive/c/Ruby193/include/ruby-1.9.1/i386-mingw32 -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL="msvcrt-ruby191.dll" -DDYNAMIC_RUBY_VER=191 -DFEAT_PYTHON -DDYNAMIC_PYTHON -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -O3 -fomit-frame-pointer -freg-struct-return -s Linking: i686-pc-

Re: How would you repeatedly produce these lines?

2016-02-01 Thread A. S. Budden
Increment using Dr Chip's visincr plugin (http://vim.sourceforge.net/scripts/script.php?script_id=670) :I Alternatively (if you don't want to use plugins), after copying and pasting, you could do: :let a = 0 | g@^p3@s/0/\=a/ | let a += 1 This creates a variable 'a' and initialises it to z

Re: Clipboard copy and paste

2015-10-23 Thread S Python
> Ah, then you want the "+ register. On X systems (Linux, BSD, etc), > there are two clipboards[*], one is the "primary selection" > clipboard, accessed with "* as you mention. This is the one that is > also fed by selecting things in a terminal and retrieved by using > the middle-mouse. The

Re: I have forgotten what these fns assigned to F keys are for . .

2015-09-21 Thread A. S. Budden
Phil, F10 looks like it's set up to add the current character under the cursor to the '/' register, so if you have "abcdef" on the screen and hit F9 on the first character and then F10 on each subsequent one, you'll get "abcdef" in the / register (this is because you're using .= instead of =

Selecting text in MacVim

2015-04-11 Thread A S
Hi! One of the many nice features of MacVim is that after enabling `macvim_hig_shift_movement` option, it lets you to select text using Shift, Option and Arrows. However, is it possible to modify the selecting behavior? For now, as I can see, if `set selection = exclusive`, when moving

gvim not showing unicode Devanagari - Hindi text

2015-03-03 Thread V S Rawat
Salutes from India I am a new user. Landed here primarily to ask this question. My gvim, vim 7.4 on w8 is not showing unicode Devanagari - Hindi text. What to do? Thanks. -- Rawat -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Regular Expressions: How to restrict match extension to the first occurrence?

2014-10-07 Thread A. S. Budden
Check out \{-} (in :help \{). This is an as few as possible version of *, so you can do: /.\{-}:: If you want to ensure you match something, you can either do: /..\{-}:: or /.\{-1,}:: I tend to use the former as I don't have to think as much... Al On 7 October 2014 11:02, Asis

Re: Regular Expressions: How to restrict match extension to the first occurrence?

2014-10-07 Thread A. S. Budden
On 7 October 2014 12:12, Asis Hallab asis.hal...@gmail.com wrote: Dear Christian, as requested I explain my test of the suggested solutions. I tried three regular expressions and used :set hlsearch to see the matched region. This option will highlight ALL matched regions. One of these

New to Vim

2014-04-10 Thread john s
Hello, I have a quick question that i would greatly appreciate help with. I am taking programming courses to get my degree in Computer Information Systems and i am currently studying about Linux and windows text editors. I was told about VIM and how it is a better text editor than windows power

Re: Poll: What's good about plugin managers?

2014-03-23 Thread A. S. Budden
On 23 March 2014 15:34, Bram Moolenaar b...@moolenaar.net wrote: At some point Vim started supporting plugins. At that time it was fine to add a plugin manually, it was a one-time thing. But now that there are so many plugins and they get updated often, manually updating plugins has become

Re: Syntax Highlighting Question

2014-02-22 Thread J S
On Friday, February 21, 2014 8:59:39 AM UTC-5, J S wrote: Hi, I am wondering why my syntax highlighting is not working on a particular machine. I am executing the following: 1. vim (enter into vim with certain scripts and plugins) I further tested and observed the same unexpected

Syntax Highlighting Question

2014-02-21 Thread J S
Hi, I am wondering why my syntax highlighting is not working on a particular machine. I am executing the following: 1. vim (enter into vim with certain scripts and plugins) 2. :syntax clear (remove all the existing syntax info) 3. :syntax case ignore (treat [a-z] as [a-zA-Z]) 3. :syntax match

Re: Yank current word into a register e.g. register +

2014-01-24 Thread A. S. Budden
On 23 January 2014 16:59, Chris Lott ch...@chrislott.org wrote: On Thu, Jan 23, 2014 at 7:20 AM, A. S. Budden abud...@gmail.com wrote: +yaw or +yiw depending on how much you want to grab What's the shortest/quickest way to grab the current word without changing the cursor position? I don't

Re: Yank current word into a register e.g. register +

2014-01-23 Thread A. S. Budden
+yaw or +yiw depending on how much you want to grab See :help aw and :help iw Al On 23 January 2014 16:17, Paul paul.domas...@gmail.com wrote: Is there a way to yank the current word (in which the cursor resides) into a register? Currently, I do b+ye -- -- You received this message

Re: Yank current word into a register e.g. register +

2014-01-23 Thread A. S. Budden
On 23 January 2014 16:20, A. S. Budden abud...@gmail.com wrote: On 23 January 2014 16:17, Paul paul.domas...@gmail.com wrote: Is there a way to yank the current word (in which the cursor resides) into a register? Currently, I do b+ye +yaw or +yiw depending on how much you want to grab

Re: Encoding to utf-8 changes umlaut in status line

2012-11-13 Thread J S
Tony, thanks for your tips. Your suggestion led me to this answer: http://superuser.com/questions/207264/gvim-utf-8-in-windows which resolved my issues. J. 2012/11/13 Tony Mechelynck antoine.mechely...@gmail.com On 12/11/12 22:47, J S wrote: Thanks Ben, the encoding setting is the first

Encoding to utf-8 changes umlaut in status line

2012-11-12 Thread J S
Hi vim users, I can't figure out a problem with utf-8 in (g)vim. I would like to use utf-8 as encoding but the status line changes when I do that (set encoding=utf-8) and german Umlaute are not displayed correctly any more. There is some odd character representation shown, e.g. e4 instead of ä.

Re: vim: session of sessions

2012-08-08 Thread S. Cowles
On Fri, 13 Jul 2012, ping wrote: here is another approach to this issue. 1) multiple virtual terminal sessions: i switched to tmux from screen/byobu last year. window navigation, for me, is a critical requirement and it is quite straightforward in tmux. the windows i create in tmux have

Re: Good idea to remap s to $?

2012-08-04 Thread A. S. Budden
On 4 August 2012 12:59, Daan bak...@gmail.com wrote: I was thinking about remapping s to $, because: you would gain: sp to append what you yanked to the currently line si to start insert 1 character before the end [count]s to quickly go down [count]-1 lines and go to the end of that line

  1   2   3   >