Re: How do I build vim with clipboard support.

2024-05-04 Thread Gary Johnson
On 2024-05-04, Jose Ignacio Seco wrote: > I'm building with the huge set of features. > > I cannot see any option related when running configure --help. > Then I don't see any error regarding clipboard when configuring or building. I don't think the absence of support for the clipboard shows up

Re: I had to replace gvim with neovim

2024-03-05 Thread Gary Johnson
On 2024-03-05, Steve Litt wrote: > Rory Campbell-Lange said on Mon, 4 Mar 2024 20:21:38 + > > >On 28/02/24, Steve Litt wrote: > >> Gary Johnson said on Wed, 28 Feb 2024 06:45:04 -0800 > >> > >> >On 2024-02-28, Steve Litt wrote: > >> >

Re: I had to replace gvim with neovim

2024-02-28 Thread Gary Johnson
On 2024-02-28, Steve Litt wrote: > Hi all, > > The gvim program became too much of a hassle because it printed all > sorts of GTk errors and warnings to the terminal, obliterating valuable > information that was there. So I had to uninstall Vim and install > neovim, which isn't as good, but all

Re: "iabbrev" erratic behaviour

2024-02-19 Thread Gary Johnson
On 2024-02-19, Maxim Kim wrote: > On Monday, February 19, 2024 at 11:29:19 PM UTC+11 Ottavio Caruso wrote: > > > > Hi, > > > > I have this is in my .vimrc: > > > > iabbrev mdate =strftime("%a %d/%m/%Y") > > > > > > It used to work fine, but as of recently (3 or 4 weeks or so), this > >

Re: Vim 9 problem under Cygwin64

2024-02-16 Thread Gary Johnson
On 2024-02-16, John Cordes wrote: > My apologies for too many posts! I have added the export VIM command to > cygwin's .bash_profile; I believe that should do the trick. > Many thanks to Salman Halim for the suggestion. I'm glad you and Salman got this working, and that is the most important

Re: How to make gvim/vim-gtk3 behave exactly like vim

2024-01-26 Thread Gary Johnson
On 2024-01-26, Steve Litt wrote: > Christian Brabandt said on Fri, 19 Jan 2024 17:50:11 +0100 > > >On Fr, 19 Jan 2024, 'Ottavio Caruso' via vim_use wrote: > >> I also use vim on xterm on Linux. It just is difficult cut/copy/paste > >> data to/from, for example a web browser. Yes, it is possible,

Re: How to make gvim/vim-gtk3 behave exactly like vim

2024-01-19 Thread Gary Johnson
On 2024-01-19, 'Ottavio Caruso' via vim_use wrote: > Am 19/01/2024 um 16:25 schrieb Gary Johnson: > >On 2024-01-19, 'Ottavio Caruso' via vim_use wrote: > >>Am 19/01/2024 um 13:26 schrieb jr: > >>>hi, > >>> > >>>On Fri, 19 Jan 2024 at 12:26,

Re: How to make gvim/vim-gtk3 behave exactly like vim

2024-01-19 Thread Gary Johnson
On 2024-01-19, 'Ottavio Caruso' via vim_use wrote: > Am 19/01/2024 um 13:26 schrieb jr: > >hi, > > > >On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use > > wrote: > >>I have installed and uninstalled gvim many times. I have to re learn > >>some (many) keyboard combinations. Is there a

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

2024-01-08 Thread Gary Johnson
On 2024-01-08, Yegappan Lakshmanan wrote: > 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 fo

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

2024-01-08 Thread Gary Johnson
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 > in the current buffer.  After typing a few letters in the "/" prompt, if you > press > Tab, it

Re: How to make Vim having a little better mouse support

2023-11-14 Thread Gary Johnson
On 2023-11-13, Gary Johnson wrote: > On 2023-11-13, Igor Lerinc wrote: > > > This works as you want it to, right?  Double- and triple- clicks work that > > way for me. > > > > Double click, should select word. Doesn't work. > > That's odd. I've tried g

Re: How to make Vim having a little better mouse support

2023-11-13 Thread Gary Johnson
On 2023-11-13, Igor Lerinc wrote: > > This works as you want it to, right?  Double- and triple- clicks work that > way for me. > > Double click, should select word. Doesn't work. That's odd. I've tried gvim, vim in an xterm, vim in a GNOME Terminal, and vim in an xfce4-terminal (version

Re: How to make Vim having a little better mouse support

2023-11-13 Thread Gary Johnson
On 2023-11-13, Igor Lerinc wrote: > Yes, I did all tips I could apply about enabling mouse support in `.vimrc`, > but > I just want to have mouse support like in every other GUI editor. > > > > 1. I just need it to be able scroll with mouse selection (when I select, and > go > UP, it wont

Re: Is uploading new scripts to vim.org possible?

2023-10-15 Thread Gary Johnson
On 2023-10-15, Christian Brabandt wrote: > On Sa, 14 Okt 2023, Lifepillar wrote: > > > Now, after pressing "upload" I'm sent back to the form page, but the > > script is still not uploaded. > > I tried it yesterday and it worked. I now tried it again and it still > works. I have a cron job

Re: Improving vim startuptime

2023-07-16 Thread Gary Johnson
On 2023-07-17, Manas wrote: > On Sun, Jul 16, 2023 at 01:01:23PM -0700, Gary Johnson wrote: > > All of those things are possible and probably good ideas, but > > driving them all to zero would improve the time by only 656 ms and > > still leaves you with an annoy

Re: Improving vim startuptime

2023-07-16 Thread Gary Johnson
On 2023-07-17, Manas wrote: > On Sun, Jul 16, 2023 at 10:55:04AM -0700, Gary Johnson wrote: > > It depends, of course, on why it is slow. You can start vim with > > the --startuptime option to get a better idea of where the slowdown > > is. See ":help --startupt

Re: Improving vim startuptime

2023-07-16 Thread Gary Johnson
On 2023-07-16, Manas wrote: > Hey folks, today I ran hyperfine on vim and found my startuptime is way > too slow. > > Benchmark 1: /usr/bin/vim > Time (mean ± σ): 2.707 s ± 0.036 s[User: 0.598 s, System: 0.097 s] > Range (min … max):2.674 s … 2.779 s10 runs > > > Are

Re: 'Keyboard input' vs 'cursor copy+paste' for "repeat" (.) action

2023-07-07 Thread Gary Johnson
On 2023-07-07, Eric Marceau wrote: > Thank you, Gary, for all that info.  It will be very helpful. You're welcome. > When I get the *":map"* report, I get the following: > > The report from ":map!" gives: > > > So my interpretation is that there is not deviation from the base. I read all my

Re: 'Keyboard input' vs 'cursor copy+paste' for "repeat" (.) action

2023-07-06 Thread Gary Johnson
On 2023-07-06, Eric Marceau wrote: > Thank you, Salman. > > My customizations are limited to the appearance and layout.  I have not > installed any related to action-key mappings.  I don't know how to obtain a > report of all such mappings (default + custom).  If anything was mapped >

Re: How to know in which patch a feature was added

2023-06-18 Thread Gary Johnson
On 2023-06-19, Enan Ajmain wrote: > On Sun, 18 Jun 2023 14:40:20 -0400 > Salman Halim wrote: > > This isn't exactly what you asked for, but how about a custom command, such > > as Set, that calls a function to do the option set in a try/catch? If it > > succeeds, great. If it fails, you can just

Re: documenting my own plugins?

2023-06-12 Thread Gary Johnson
On 2023-06-12, Jose Caballero wrote: > Indeed, this worked: > >       :set runtimepath=~/.vim/ftplugin/foo,$VIMRUNTIME > > I assume I can add it to .vimrc, so I don't need to do it every time.  > > Thanks a lot for your help !!! You're welcome. I'm glad that worked. By default, 'runtimepath'

Re: documenting my own plugins?

2023-06-11 Thread Gary Johnson
On 2023-06-10, Jose Caballero wrote: > > El sáb, 10 jun 2023 a las 18:51, Gary Johnson escribió: > > On 2023-06-10, Jose Caballero wrote: > > Hi, > > apologies if this is a silly question. > > > > > > I am trying to write doc

Re: documenting my own plugins?

2023-06-10 Thread Gary Johnson
On 2023-06-10, Jose Caballero wrote: > Hi, > apologies if this is a silly question. > > > I am trying to write documentation for my plugins in the ~/.vim/ftplugin/foo/ > directory. > This is what I have tried: > > 1) created  ~/.vim/ftplugin/foo/doc/ > 2) created file

Re: add skeleton to new file based on filetype, not extension

2023-06-05 Thread Gary Johnson
On 2023-06-06, NBaH wrote: > Le 05/06/2023 à 17:50, Gary Johnson a écrit : > > no file name argument has been given to that :new command, so the > BufNewFile > autocommand is not triggered. > > this is the most important part of the reason why it doesn't wo

Re: add skeleton to new file based on filetype, not extension

2023-06-05 Thread Gary Johnson
On 2023-06-05, NBaH wrote: > hello, > > I'm trying to add skeleton to new files having a filetype (eg python) > > here's what  I've tried : > > autocmd BufNewFile if == "python" 0r ~/.vim/python.skel | normal G | > let IndentStyle = "python" | endif One problem with the above is that the

Re: Odd behavior of vim over ssh from Cygwin mintty

2023-05-12 Thread Gary Johnson
On 2023-05-11, Gary Johnson wrote: > I haven't had to use Windows for almost a year and I hardly ever use > a mouse with vim, so I don't know when this behavior might have > changed, but I was verifying the behavior of vim on Ubuntu over an > ssh connection from Cygwin's mintty wh

Odd behavior of vim over ssh from Cygwin mintty

2023-05-11 Thread Gary Johnson
I haven't had to use Windows for almost a year and I hardly ever use a mouse with vim, so I don't know when this behavior might have changed, but I was verifying the behavior of vim on Ubuntu over an ssh connection from Cygwin's mintty when I noticed something odd. Using the mouse, I attempted to

Re: Quick Vim question

2023-04-13 Thread Gary Johnson
On 2023-04-13, 'Susan McElheny' via vim_use wrote: > Sorry I don't understand.  I currently have hlsearch in my _vimrc > file so the search words are highlighted but I can't see the > cursor and I don't know how to make it a black blinking square. When 'hlsearch' is set, the search matches will

Re: Quick Vim question

2023-04-13 Thread Gary Johnson
On 2023-04-13, Roy Fulbright wrote: >> On Thursday, April 13, 2023 at 4:15:19 PM UTC-4 Susan McElheny wrote: >> I've used the Vi editor on Unix for over 30 years and had to recently >> switched my software to Windows so I am now using Vim on my c:drive.  I'm >> confused about how to

Re: How do I replicate vim settings across two machines?

2023-03-14 Thread Gary Johnson
On 2023-03-14, Enan Ajmain wrote: > On Tue, 14 Mar 2023 14:09:47 + > "'Ottavio Caruso' via vim_use" wrote: > > Would it work if I sym-linked the remote .viminfo to the local one (or > > vice versa)? > > First, you _have_ to do that. That's the way you share the info of > which line you

Re: Can I copy/yank into and out of vim?

2023-03-03 Thread Gary Johnson
On 2023-03-04, Tony Mechelynck wrote: > On Sat, Mar 4, 2023 at 3:32 AM Angel M Alganza wrote: > > > > On 2023-03-04 01:08, K otgc wrote: > > > Hello, I would like to copy/yank text from vim out to other programs > > > like > > > dpaste or Google Docs. > > > I would also like to coy/yank text from

Re: vim_runtime: does someone use this...

2023-02-09 Thread Gary Johnson
On 2023-02-09, Gary Johnson wrote: > Next, I would start Vim and execute :scriptnames to see what files > are actually being sourced. The files at the top of the list will > depend on which Linux distribution you're running (I am assuming > that you're running Linux) and whether y

Re: vim_runtime: does someone use this...

2023-02-09 Thread Gary Johnson
On 2023-02-09, 'Sebastian Gödecke' via vim_use wrote: > Hi Gary, yes you're right, my explanation wasn't as good as it had to be.  > I'm "trying" to use vim_runtime from here:  > https://github.com/amix/vimrc > so this adds the hole vim-files to ~/.vim_runtime/ and under this folder there > are

Re: vim_runtime: does someone use this...

2023-02-09 Thread Gary Johnson
On 2023-02-09, 'Sebastian Gödecke' via vim_use wrote: > Hi,  > nobody there? > I checked this twice, in my_config.vim are my default settings, but the > settings wouldn't load. Additional in in the file i "set rnu" but this also > wouldn't be set up.  > So how to start to "debug" this? > > > Am

Re: Searching across a range of lines

2023-01-13 Thread Gary Johnson
On 2023-01-13, Salman Halim wrote: > Hello, > > I want to use something like search(), but only across a specific set of > lines. > The problem is that search() always starts at the current cursor line. > > For example, I want to find a match for 'cat', but only in lines 50 to 100. If > my

Re: Yanking doesn't yank

2023-01-12 Thread Gary Johnson
On 2023-01-12, Tim Chase wrote: > If that doesn't resolve matters, I'd be curious what mappings show > up in play when you experience the issue since this Shouldn't > Happen(tm) with stock vim. To see if y is mapped and where in Normal or Visual Line mode, execute :verbose map y Regards,

Re: automatic C // comments

2022-12-07 Thread Gary Johnson
On 2022-12-07, rwmit...@gmail.com wrote: > Reading runtime/changes.doc, I see using U immediately after an indented > comment line is created, undoes the auto comment and puts the cursor in the > correct column for the next line. This is likely the correct solution for me. > > This is the

Re: What does mean?

2022-12-04 Thread Gary Johnson
On 2022-12-04, Bram Moolenaar wrote: > > On Sat, 3 Dec 2022 23:07:15 -0800 > > Gary Johnson wrote: > > > I was troubleshooting a problem with the behavior of my mouse in > > > gvim when I discovered that typing Ctrl-K in insert mode and moving > > > the mou

What does mean?

2022-12-03 Thread Gary Johnson
I was troubleshooting a problem with the behavior of my mouse in gvim when I discovered that typing Ctrl-K in insert mode and moving the mouse to another window enters the special key code "". I can't find this special key documented anywhere. Even ":helpgrep \cmousenm" didn't return any results.

Re: Strange behavior of vim

2022-10-06 Thread Gary Johnson
On 2022-10-06, Barry Gold wrote: > I have been using vim for many years, but it has lately been behaving very > strangely. I have autoindent and autowrap set, but vim appears to ignore them > while editing some files. > > Note: *some* files. The exact same vim process will work properly on some

Re: Gvim taking a minute or more to start

2022-09-08 Thread Gary Johnson
On 2022-09-08, 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 plugins that I've

Re: Regex with backslashes in a collection

2022-08-14 Thread Gary Johnson
On 2022-08-14, JohnBeckett wrote: > > [\[] is a collection containing two characters, \ and [ > > Yes, that's what my test shows. The problem is that the pattern \\[\[] finds > "\ > \" and "\[" but not "\". Right. Your pattern says to find a \ followed by one of the items of the collection

Re: Regex with backslashes in a collection

2022-08-14 Thread Gary Johnson
On 2022-08-13, arocker wrote: > > I'm using Vim 8 or 9 with 'magic' and re=0 (same using re=1). > > > > I want to find "\[" or "\]" in text like: > > abc\[def\]ghi\\xy\z > > > > The problem may lie in the boundary of a character class, [ and ] and the > rules about its content. > Does the regex

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

2022-08-12 Thread Gary Johnson
On 2022-08-12, Christian Brabandt wrote: > On Fr, 12 Aug 2022, Tim Chase wrote: > > The other settings in defaults.vim don't usually give me much grief, but > > having a non-0 'scrolloff' means my usual > > > > {count}H > > {count}L > > > > no longer land {count} lines from the top/bottom

Re: Building VIM 9 on Ubuntu

2022-08-11 Thread Gary Johnson
On 2022-08-11, Marius Gedminas wrote: > On Wed, Aug 10, 2022 at 10:11:28AM -0700, Gary Johnson wrote: > > b) View the dependencies and install the ones you want or need > > manually. > > > > $ apt show vim-gtk3 | grep ^Depends > > >

Re: Building VIM 9 on Ubuntu

2022-08-10 Thread Gary Johnson
On 2022-08-10, '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 no such package. > >

Re: Building VIM 9 on Ubuntu

2022-08-10 Thread Gary Johnson
On 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.B. > This is the most

Re: vim with gui in windows

2022-07-24 Thread Gary Johnson
On 2022-07-24, Igor Spiridonov wrote: > Thank you Gary for the answer. > I would like for example to have "Visual selection automatically copied to the > clipboard." in windows as it is described here - https://vim.fandom.com/wiki/ > Easy_pasting_to_Windows_applications. > Console vim cannot

Re: vim with gui in windows

2022-07-24 Thread Gary Johnson
On 2022-07-23, Igor Spiridonov wrote: > Hi. > I want to use a console vim and use guioptions. In Linux i can run vim-gtk -v > to run gui vim in tui. In windows -v still opens gvim in a separate window. Is > there a way to do what i want? Strictly speaking, you can't use guioptions in a non-GUI

Re: TERM (was Cursors)

2022-06-15 Thread Gary Johnson
On 2022-06-15, 'Grant Taylor' via vim_use wrote: > On 6/15/22 2:43 PM, Gary Johnson wrote: > >Yeah, but... > > IMHO there's no but about it. [...] Points well made and well taken. > >HP had this problem about 40 years ago when they introduced > >a successor to the 26

Re: Cursors

2022-06-15 Thread Gary Johnson
On 2022-06-15, 'Grant Taylor' via vim_use wrote: > On 6/15/22 11:55 AM, Bram Moolenaar wrote: > >The terminal that I use to run ssh does not support it. > > Hum. > > This sounds like a potential problem in the terminal. Specifically > that the terminal should set TERM to the terminal that it's

Re: How to turn off auto-indenting in Vim for HTML?

2022-06-15 Thread Gary Johnson
On 2022-06-15, Bram Moolenaar wrote: > Steve Litt wrote: > > > How do I turn off auto-indent in Vim for my HTML files? I prefer to > > flush left everything and create blank lines at transitions. > > Add a file: ~/.vim/indent/html.vim containing: > > let b:did_indent = 1 > set

Re: Using autocommand to set local formatprg

2022-06-13 Thread Gary Johnson
On 2022-06-10, Spencer Collyer wrote: > i'm running Vim on an Arch Linux build. > > When editing *.txt files I want to set the formatprg to use the 'fmt' > program, as well as modifying my 'diffopt' value for those files. > > I have the following lines in my .vim/filetype.vim: > > ~ > if

Re: Numbered lists and indentation

2022-06-13 Thread Gary Johnson
On 2022-06-13, Rand Pritelrohm wrote: > Hello, > > Despite having read a lot of posts, I have not found a solution to my > problem. > So I am sorry if the topic has already been discussed. > > I would like to write texts with numbered lists, but I face problems > with indentation from the second

Re: Loading vim plugin in just one pane/tab

2022-06-06 Thread Gary Johnson
On 2022-06-06, Manas wrote: > Hi folks, I am writing a vim plugin and I want it to load in only one > tab. Other tabs should be oblivious to the plugin. Is there a way to > achieve that? Also, is it possible to load it in only one pane? Vim doesn't load plugins into tabs, windows or buffers, it

Mapped doesn't always expand abbreviations

2022-05-11 Thread Gary Johnson
I recently installed Tim Pope's eunuch.vim plugin and soon discovered that my abbreviations were no longer being expanded when followed by a . The eunuch.vim plugin executes a mapping that maps to followed by some processing of the line and tries to make that mapping and processing invisible to

Re: Dictionary Completion of Capitalized Words

2022-03-06 Thread Gary Johnson
On 2022-03-05, Lifepillar wrote: > Have you tried setting infercase? No, I hadn't. That seems to do just what I want. Thank you! Regards, Gary -- -- 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

Re: Dictionary Completion of Capitalized Words

2022-03-04 Thread Gary Johnson
On 2022-03-04, Bram Moolenaar wrote: > Gary Johnson wrote: > > > Typing part of a word, then using Ctrl-X Ctrl-K to complete the word > > from entries in a dictionary works fine as long as the word (not > > a proper noun) is all lower case. But when a wor

Dictionary Completion of Capitalized Words

2022-03-03 Thread Gary Johnson
Typing part of a word, then using Ctrl-X Ctrl-K to complete the word from entries in a dictionary works fine as long as the word (not a proper noun) is all lower case. But when a word that is lower case in the dictionary is capitalized when typed, as at the start of a sentence or in a title,

Re: Blink shell touch actions to custom mouse actions

2022-02-24 Thread Gary Johnson
On 2022-02-24, Julius Hamilton wrote: > On Wed 23. Feb 2022 at 19:34, Christian Brabandt wrote: > I guess it depends on how your terminal receives those gestures. I am > not sure, if a terminal can receive special mouse gestures like touch > scroll but it really depends. > > Try

Re: How to bind scrolling horizontal split windows?

2022-02-21 Thread Gary Johnson
On 2022-02-21, Igor wrote: > Hi, > I am using Vim 7.4 on Linux. > Now to the actual problem. I have text of multiple columns with header. When I > move down a buffer I no longer see head of columns, so I vertically slit > window. Top window is at first line position to see column headers, bottom

Re: Disable Help

2022-01-21 Thread Gary Johnson
On 2022-01-21, Joseph Wulf wrote: > And the answer is:  "set paste" prevents the mapping of out of existence. > Cannot set paste before or after the "map! "; just cannot set it at > all. Congratulations! > Which is a problem in my/our world as we use vim and paste a lot. I'm fortunate to

Re: Disable Help

2022-01-21 Thread Gary Johnson
On 2022-01-21, Joseph Wulf wrote: > Gary, > > I moved .vimrc out of the way. > Executed "\vim"   to negate my bash alias which does:  "alias > vim='/usr/bin/vim > -u ~/.vimrc'" > > I first did '' and got the help, and quit out of it ":q" > I next did 'a' and then did '' and got the help, and

Re: Disable Help

2022-01-20 Thread Gary Johnson
On 2022-01-20, Joseph Wulf wrote: Joe, > "map " is all that works for me, so far, during Normal/Command mode > to prevent bringing up VIM HELP. > This is placed at the bottom of my .vimrc. > > Attempting, "map! "  is accepted, but does not prevent the , > while in INSERT mode, from bringing

Re: Disable Help

2022-01-19 Thread Gary Johnson
On 2022-01-19, Joseph Wulf wrote: > Gary, > > Thank you. > > That's interesting. > In doing  ":verbose map ", I get the following output: > x                       Last set from ~/.vimrc > s                       Last set from ~/.vimrc > o                       Last set from ~/.vimrc

Re: Disable Help

2022-01-19 Thread Gary Johnson
On 2022-01-19, Tim Chase wrote: > On 2022-01-19 07:23, Joseph Wulf wrote: > > When using vim I wish to disable the from popping up the help. > [snip] > > :nmap > [snip] > > I place the SAME string without the quotes or leading colon in > > .vimrc, close/open a new vim session, and immediately

Re: [VIM] Re: [VIM] Re: Persistent undo and swapfile

2022-01-03 Thread Gary Johnson
On 2022-01-03, Brian L. Matthews wrote: > On 1/3/22 1:55 PM, Lifepillar wrote: > >On 2022-01-03, Manfred Lotz wrote: > >>Another point might be interesting. In the undo directory there are > >>undo files where the real files don't exist any longer. Not sure if > >>there is some cleanup procedure

Re: GVIM replace from clipbrard?

2021-12-27 Thread Gary Johnson
On 2021-12-26, Mike Schleif wrote: > I use VIM on various *NIX platforms. > > I use GVIM on various MS Windows hosts. > > I often do this: > 1. Copy a string to the clipboard > 2. Visual mode select a string > 3. :s///g > 4. Enter - replace all substrings > > This works delightfully everywhere

Re: [EXTERNAL] Re: split question

2021-12-01 Thread Gary Johnson
On 2021-12-01, Kennedy, Marcus A. wrote: > > -Original Message- > > From: vim_use@googlegroups.com On > > Behalf Of Marvin Renich > > Sent: Wednesday, December 1, 2021 1:48 PM > > To: vim_use@googlegroups.com > > Subject: [EXTERNAL] Re: split question > > > > * Kennedy, Marcus A.

Re: [vim/vim] [question] How to remap ctrl + Left/Right (Issue #9059)

2021-10-27 Thread Gary Johnson
On 2021-10-27, Julio Guerrero wrote: > Hi Gary, I have applied those changes in my vimrc but the problem remains, > after I ran the verbose command maps are pointing to my vimrc (same lines I > added). I'm sorry I did not know this is the dev repo, will move my question > to > the other repo. >

Re: New User Several Questions and Concerns

2021-09-17 Thread Gary Johnson
On 2021-09-17, Bernard wrote: > Greetings I am learning Vim (Windows 10) It is of no use to me unless I can > effortlessly edit multiple files w/o a mouse I learned of tabs but am > surprised > I can see no way to select any tab of my choice I assumed each tab would be > identified w/ a number so

Re: Prevent vim from polluting the file system with a bunch of temporary $HOME/.viminf[a-z] files

2021-06-30 Thread Gary Johnson
On 2021-06-30, Chris Jones wrote: > No idea where these files come from or what they're for. I ended up > grepping the reference manual for clues and am none the wiser. Internet > searches also failed to give me an answer. > > Is there any way to tell vim NOT to create them in the first place? It

Re: using a variable in a substitute command

2021-05-21 Thread Gary Johnson
On 2021-05-20, Chris Jones wrote: > And as to doubling the textit slash it's needed because vim gobbles up > the initial 't' of 'textit' otherwise .. not sure why. In many contexts, Vim interprets '\t' as a tab character. See :help /\t Regards, Gary -- -- You received this message from

Re: Some basic Vim commands

2021-04-19 Thread Gary Johnson
On 2021-04-19, Julius Hamilton wrote: > Is there any way to have tabs inside of a split window? I currently have tabs > one layer above a split, so if I switch tabs, the split is gone and a single > buffer fills the screen. No. A tab contains one or more windows; windows cannot contain tabs.

Re: Why vimdiff <() <() reset when terminal is switched?

2021-04-13 Thread Gary Johnson
On 2021-04-13, Peng Yu wrote: > > I don't understand what you mean by "switch to another terminal". > > > On macOS, I use iTerm2 to run vimdiff <(seq 3) <(seq 4). Then open a new tab > in > iTerm2. Then go back to the original tab. Then the content in vimdiff > disappears. Thanks for the

Re: Why vimdiff <() <() reset when terminal is switched?

2021-04-13 Thread Gary Johnson
On 2021-04-13, Peng Yu wrote: > When I call `vimdiff <(seq 3) <(seq 4)`, then switch to another terminal then > switch back, the content in vim disappear. How to make the content persistent? I run vimdiff with process substitution like that all the time without losing anything. The outputs of

Re: regex that matches a modeline line

2021-04-12 Thread Gary Johnson
On 2021-04-12, Peng Yu wrote: > Hi, > > It seems that modeline is quite flexible. Could anybody let me know > the regex used by vim to determine what is a modeline and what is not > a modeline? Thanks. Vim doesn't use a regular expression to identify modelines; it finds them algorithmically.

Re: How to setup an external command to indent bash script?

2021-04-02 Thread Gary Johnson
On 2021-04-02, Peng Yu wrote: > > You can enable it in your vimrc for sh and bash files like this: > > > > au FileType sh setlocal equalprg=shfmt > > I put the above line in my ~/.vimrc. It just works. Thanks. > > It seems that this is the simplest solution. > > I don't know what is the

Re: How to setup an external command to indent bash script?

2021-04-02 Thread Gary Johnson
On 2021-04-02, Peng Yu wrote: > > According to the shfmt project page, https://github.com/mvdan/sh, > > someone has written a Vim plugin for shfmt, > > https://github.com/z0mbix/vim-shfmt. You may want to check that > > out, too. > > This probably is a better approach. I am trying to set it up.

Re: How to setup an external command to indent bash script?

2021-04-02 Thread Gary Johnson
On 2021-04-02, Peng Yu wrote: > On 4/2/21, 'Grant Taylor' via vim_use wrote: > > On 4/2/21 3:52 PM, Peng Yu wrote: > >> I want to use shfmt to indent bash script in vim instead of using the > >> default vim indenter. Could anybody show me how to set this up in vim? > > > > I would play with the

Re: tabedit and closing

2021-03-18 Thread Gary Johnson
On 2021-03-18, rwmit...@gmail.com wrote: > On Thursday, March 18, 2021 at 10:51:20 AM UTC-4 BPJ wrote: > >>Den tors 18 mars 2021 15:03rwmit...@gmail.com skrev: >> >>I have multiple tabs open using :tabedit >>I'm in a tab other than the right most. >>:tabedit  opens a

Re: Debugging my config: filetype is set wrongly...

2021-02-15 Thread Gary Johnson
On 2021-02-15, tuxic wrote: > Hi, > > is there any way to pinpoint the line, which is "guilty" for > setting a wrong filetyoe somehow? > > Background: > Currently I am editing troff files a lot. The extension of that files > are *.mm. *.me, *.tmac, *.ms and so on...depending on what troff macro

Re: Improving startup time for autocommands

2021-02-13 Thread Gary Johnson
On 2021-02-13, Manas wrote: > Hi everyone, I am facing some delay in startup time and doing > `--startuptime`, I can see that autocommands are the reason for the > delay. Specifically those autocmds where I am using BufEnter etc. type > events. I have quite a number of autocmds for various

Re: How to remove white space at the end of each line while saveing /only for ft=roff/ ?

2021-02-13 Thread Gary Johnson
On 2021-02-13, tuxic wrote: > Hi, > > The subject nearly says it all: > > When editing nroff or troff files white space at the end of a line > or on a line alone can be poisonous... :) > On other filetypes it is not neccessarily the case and harmless. > > So I want to remove those white space

Re: color settings for different environments in vimrc?

2021-01-27 Thread Gary Johnson
On 2021-01-27, meine wrote: > Hi, > > Working on my computer I sometimes use plain TTY and other times a GUI. > I would like to set different colorschemes for that in my vimrc. > > At this moment I have following code, but it doesn't work at all -- vim > only uses the nighted_16. > > if

Re: E77: Too many files

2020-12-18 Thread Gary Johnson
On 2020-12-18, Manfred Lotz wrote: > I have a simple scratch buffer functionity in scratch.vim like follows > > if exists('g:loaded_scratch') > finish > endif > let g:loaded_scratch = 1 > > let g:scratchbuf_no = 1 > > function! ScratchEdit(cmd) > exe a:cmd '[Scratch' . g:scratchbuf_no .

Re: Vim-script question

2020-12-10 Thread Gary Johnson
On 2020-12-10, 'Klaus Jantzen' via vim_use wrote: > Hi, > > I want to include in my .vimrc an autocommand that writes some new > lines into an empty file e.g. an zsh script. > > So I wrote > > au  BufNewFile *.zsh :a "#! /usr/bin/zsh" > > but that does not do what I want (it does not do

Re: Converting a commandline on the fly...

2020-12-04 Thread Gary Johnson
On 2020-12-04, tuxic wrote: > Hi, > > sorry...the subject is somehow weird... > > When compiling things containing error the compiler spits out > someting like: > > ERROR: Using Freedom() before declaration. File ../source/People.c:12:5 > > where 12 is the line number and 5 the olumn where the

Re: the :sort command does not appear to give expected result

2020-11-01 Thread Gary Johnson
On 2020-11-01, Dominique Pellé wrote: > Dominique Pellé wrote: > > > Tekki wrote: > > > > > Chris Jones schrieb am Samstag, 31. Oktober 2020 um 20:16:53 UTC+1: > > >> > > >> > > >> So what's the next step? > > >> > > > > > > You could create your own sort command in vimrc, for example > > > > > >

Re: v:shell_error is 1 starting gvim

2020-10-27 Thread Gary Johnson
On 2020-10-27, Ni Va wrote: > Got this verbose report in level 4 just after opening tagbar.vim and try > toggle > tagbar. > > sourcing "D:\Logiciels\Vim\vimfiles\plugged\tagbar\autoload\tagbar.vim" > filetype detection:ON plugin:ON indent:ON > finished sourcing

Re: Disable automatic indentation of a block that starts with number+period after issuing gw-type commands

2020-10-26 Thread Gary Johnson
On 2020-10-26, Chris Jones wrote: > I would like to disable this feature. > > I have text that looks like this: > > | 1234. Reprehenderit voluptatem similique quibusdam > | voluptate voluptas. > | Et repellat autem aspernatur sunt aperiam id necessitatibus > | laudantium. Rerum > | eum > |

Re: SOLVED+new Q: Re: How to re-indent text according to type...

2020-10-13 Thread Gary Johnson
On 2020-10-12, L A Walsh wrote: > On 2020/10/10 23:10, Gary Johnson wrote: > >On 2020-10-10, L A Walsh wrote: > >>:%s/>/>^M/g > >>:%s/<\([^>]\+\)>\n\([^>]\+\)<\/\1>/<\1>\2<\\\1> > > > >I don't know of a way to do that

Re: [HINT]: ctags is not working for me

2020-10-12 Thread Gary Johnson
On 2020-10-13, Kunal Chauhan wrote: > a quick search of the web, I found that the causes of that > problem include using a non-English (perhaps non-US) keyboard, or > something remapping Ctrl-]. > Does it work to search for the tag from your keyboard?  That is, try > executing

Re: [HINT]: ctags is not working for me

2020-10-12 Thread Gary Johnson
On 2020-10-13, Kunal Chauhan wrote: > >You should see an error message telling either that the tag was not > >found or that there is no tags file.  Do you see an error message?   > > Gary, > > I am not receiving any error while doing the cntrl +]. Kunal, In a quick search of the web, I

Re: [HINT]: ctags is not working for me

2020-10-12 Thread Gary Johnson
On 2020-10-12, Kunal Chauhan wrote: > Hi Team, > > My tags are not working as I do the : > > 1. ctags -R * or ctags -R. > 2. I used set tags? To see my current file tags location and set to set tags = > ./tags,  etc means where i am in directory which contains tags. > 3. Still not able to go to

Re: How to re-indent text according to type

2020-10-11 Thread Gary Johnson
On 2020-10-10, L A Walsh wrote: > Sometimes, I get some unformatted text, like HTML or XML that has all > the newlines removed. > > To make it easier to read, I'll sometimes add newlines and pair > up adjacent tags, using something like: > > :%s/>/>^M/g >

Re: Command mode move to matching paren/brace/bracket/angles... like '%'

2020-10-08 Thread Gary Johnson
On 2020-10-08, 'jjlu...@yahoo.com' via vim_use wrote: > Please help me find a way to move to the matching char pair from within a > :source'd script... > Something like the Command mode move to matching paren/brace/bracket/angles... > using the '%' key... but from the :source'd script... > > Tim

Re: vimrc: identify "small" version vs "huge" version

2020-10-02 Thread Gary Johnson
On 2020-10-02, ping song wrote: > experts: > I found in centos 7 there is /usr/bin/vi and /usr/bin/vim, with same version, > patches. > but vi is the "small" version and "vim" is the huge one.  > obviously both will use same .vimrc, and when vi is used a lot of errors pop > up > because of the 

Re: `set t_Co=16` in vimrc file has no effect

2020-10-01 Thread Gary Johnson
On 2020-10-01, Christian Brabandt wrote: > On Mi, 30 Sep 2020, Bram Moolenaar wrote: > > > > As I recall, VimEnter is too early. > > Would a timer work? Perhaps. And it might be better than nothing. But timers carry the risk that you wait too long on fast systems/connections and not long

Re: `set t_Co=16` in vimrc file has no effect

2020-09-30 Thread Gary Johnson
On 2020-09-30, Christian Brabandt wrote: > On Di, 29 Sep 2020, Gary Johnson wrote: > > > I'm too busy at the moment to give this a very thoughtful response, > > and it was a while ago that I looked at that code, but it seems that > > there were several things done

  1   2   3   4   5   6   7   8   9   10   >