Moving my vim settings to macvim on an M1 mac
Hi, I have my vim settings and .vimrc, etc. I should be able to move those over to respective locations on my M1 Macvim, right? Would all i have to do is resouce the plugin docs so they are found in the help? Can someone refresh my memory on how to do that? Thanks, Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1038043344.3406714.1638389473988%40mail.yahoo.com.
Re: New User Several Questions and Concerns
I use gt. so to go to the 5th tab i enter: 5gt -Original Message- From: Bernard To: vim_use Sent: Fri, Sep 17, 2021 10:37 am Subject: New User Several Questions and Concerns 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 one can merely type something like ":gototab3" let's say to edit the tab so labeled But when I enter ":tabedit" multiple times all I see is each tab labeled "[ No Name ]" w/ no further distinguishing mark upon it I do not wish to step through a series of tabs to reach my intended destination I prefer random access not sequential Furthermore one horizontal line of text of course offers finite space I saw no mention in the Help file as to how Vim responds to the situation of more tabs created than will fit Of course upon experimentation I observed the result The Help file offers no guidance of course as to how to scroll the list of tabs in such an instance Furthermore I do not see why Vim does not offer filename completion when entering a file name for editing and provide the ability to scroll up/down the list of file and directory names relative to the current directory or relative to the directory entered Furthermore Upon merely starting Vim and resizing the console window it crashes - Cheerio -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1883d4cf-7fbc-4b67-81f0-9f830596b642n%40googlegroups.com. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1667299414.927098.1631895333970%40mail.yahoo.com.
Re: Highlight and annotate plaintext
Hi, You made me remember and find this. Check this out, it is a way to put editing comments into a plain text file like markdown. http://criticmarkup.com/ hth,Russ -Original Message- From: Julius Hamilton To: vim_use@googlegroups.com Sent: Tue, Jun 8, 2021 6:54 am Subject: Highlight and annotate plaintext Hey, Does anyone know a good command line tool for highlighting and annotating plain text documents? Not syntax highlighting via pattern matching. Just going through a document with a cursor, and highlighting it for the purpose of note-taking. Plus adding comments would be good, but optional. Thanks very much,Julius -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAGrXgp33b6Zg8WwucDwXmTWA2eU0aXNwFakFrwbTYex0T1_sag%40mail.gmail.com. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/228110741.3692093.1623247654435%40mail.yahoo.com.
See the contents of an included file
Hi, I'm a tech writer and I use Vim for all my writing. Currently we are authoring in Markdown. To save time and keep consistency, I've been using include files for boilerplate text. It is usually of a form: #include doc/site/pages/include/sample.tmpl Just having that line in another file, I was wondering if there was a way I could expand the contents, temporarily, so I could read the text in the current flow while still keeping it in its include location? Kind of like folding/unfolding. Any help is appreciated! Thanks, Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/2134195416.281210.1620839005520%40mail.yahoo.com.
Cant get \\c to work with vim-visual-multi plugin
I'm using mac vim 8.2.1456. I am trying to use the vim-visual-multi plugin (https://github.com/mg979/vim-visual-multi) about half the commands are working but other, like \\c, are not. I think it has something to do with my leader setting, but I don't know how to debug this. Can anyone give me some help on how to debug this. type commands work, and the plugin appears loaded ok, is just seems to ignore the \\c type commands. Thanks, Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1373846763.20352.1607799503029%40mail.yahoo.com.
Re: Vim online conference - hopin.to account required
I think that works as well as the other responses1 Thanks!!! Russ -Original Message- From: Richard Mitchell To: vim_use Sent: Sat, Sep 26, 2020 2:16 pm Subject: Re: Vim online conference - hopin.to account required On Saturday, September 26, 2020 at 2:51:39 PM UTC-4, russur wrote: Where are all the Vim Conference videos. They look like they have all been taken down? Thanks, Russ Try going to: https://www.youtube.com/playlist?list=PLcTu2VkAIIWzD2kicFNHN2c35XQCeZdsv If that doesn't work, goto youtube and search for VimConf 2020. I think there was an ownership issue with having videos posted elsewhere, the solution was for presenters to post their videos directly on youtube. I was only half paying attention, so that may bear no resemblance to reality. -Original Message- From: Tekki To: vim_use Sent: Sun, Sep 6, 2020 2:50 am Subject: Re: Vim online conference - hopin.to account required They will upload all sessions to vimconf.live after the event. Bram Moolenaar schrieb am Samstag, 5. September 2020 um 17:04:22 UTC+2: Sven wrote: > * Bram Moolenaar [2020-09-05 14:00]: > > Sven wrote: > > > here are some more links to the vimconf: > > > homepage: https://www.vimconf.live/ > > > webpage: https://hopin.to/events/ vimconf-live > > That works, but there are no links in the events. > > i dont think the talks can be linked individually at all. :-/ > in case i am missing these - please let me know so i can add them I can't find links to individual talks, best I could find is a link to the agenda: https://www.vimconf.live/# agenda > > Is it possible to just watch without registering? > > The Terms & Conditions take some time to read... > > official word: > > ABD Today at 3:39 PM: > @guckes unfortunately not, you need to register > for hopin.to's service to enter the conference > it's free of course, but unfortunately > you do need an account > > by the way: > > Vimconf.live > Sep 5, 6:00PM to Sep 6, 6:00PM CEST > 949 people attending > > join us! :) I'm probably not the only one who can't watch live. I would prefer a recording, so I can watch at a time my own choice. Hopefully the recordings will be made available, e.g. on youtube, which doesn't require an account. Having the presentation slides available would also be nice. Anyway, I appreciate setting up the conference! -- ARTHUR: Bloody peasant! DENNIS: Oh, what a give away. Did you hear that, did you hear that, eh? That's what I'm on about -- did you see him repressing me, you saw it didn't you? The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- br...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim...@ googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/vim_use/bcd44349-03d8- 40ae-b480-06d399ebdd85n% 40googlegroups.com. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/af7ec1be-3697-498f-b4af-ed9012e498f5o%40googlegroups.com. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/319054587.908383.1601151253850%40mail.yahoo.com.
Re: Vim online conference - hopin.to account required
Where are all the Vim Conference videos. They look like they have all been taken down? Thanks, Russ -Original Message- From: Tekki To: vim_use Sent: Sun, Sep 6, 2020 2:50 am Subject: Re: Vim online conference - hopin.to account required They will upload all sessions to vimconf.live after the event. Bram Moolenaar schrieb am Samstag, 5. September 2020 um 17:04:22 UTC+2: Sven wrote: > * Bram Moolenaar [2020-09-05 14:00]: > > Sven wrote: > > > here are some more links to the vimconf: > > > homepage: https://www.vimconf.live/ > > > webpage: https://hopin.to/events/vimconf-live > > That works, but there are no links in the events. > > i dont think the talks can be linked individually at all. :-/ > in case i am missing these - please let me know so i can add them I can't find links to individual talks, best I could find is a link to the agenda: https://www.vimconf.live/#agenda > > Is it possible to just watch without registering? > > The Terms & Conditions take some time to read... > > official word: > > ABD Today at 3:39 PM: > @guckes unfortunately not, you need to register > for hopin.to's service to enter the conference > it's free of course, but unfortunately > you do need an account > > by the way: > > Vimconf.live > Sep 5, 6:00PM to Sep 6, 6:00PM CEST > 949 people attending > > join us! :) I'm probably not the only one who can't watch live. I would prefer a recording, so I can watch at a time my own choice. Hopefully the recordings will be made available, e.g. on youtube, which doesn't require an account. Having the presentation slides available would also be nice. Anyway, I appreciate setting up the conference! -- ARTHUR: Bloody peasant! DENNIS: Oh, what a give away. Did you hear that, did you hear that, eh? That's what I'm on about -- did you see him repressing me, you saw it didn't you? The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- br...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/bcd44349-03d8-40ae-b480-06d399ebdd85n%40googlegroups.com. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1683188523.886516.1601146286511%40mail.yahoo.com.
Re: Applying macros to all files, macro stops processing files
Wanted to thank Tim for this. This saved my bacon!!! Thanks for the help! Russ -Original Message- From: russurquhart1 via vim_use To: vim_use@googlegroups.com Sent: Wed, Sep 2, 2020 7:59 pm Subject: Re: Applying macros to all files, macro stops processing files -Original Message- From: Tim Chase To: russurquhart1 via vim_use Sent: Wed, Sep 2, 2020 7:18 pm Subject: Re: Applying macros to all files, macro stops processing files In theory, this should do it :set hidden :argdo 1/---/-2put='beta: true' (this assumes that the first "---" doesn't fall on the first line; otherwise make sure you have 'wrapscan' set too and use '$/---/' instead) Depending on whether you insert the text above or below the line 2 above the "---", you might need to change that to "-3" instead of "-2". IN the case of these files, the FIRST line IS a line of '---'. I was looking for the next line of '---'. Interestingly this: :argdo 1/---/-2put='beta: true' seems to find the second one, and do exactly what I want. i'll try this! Thanks again!! Russ If you like the results, :wall -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/232596974.2044401.1599094758651%40mail.yahoo.com. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/630676035.2256392.1599144435375%40mail.yahoo.com.
Re: Using vimgrep to find files NOT containing a string
Thanks Tim, I'll look at this! All this info helps!! Thanks again! Russ -Original Message- From: Tim Chase To: russurquhart1 via vim_use Sent: Thu, Sep 3, 2020 7:23 am Subject: Re: Using vimgrep to find files NOT containing a string On 2020-09-02 19:14, russurquhart1 via vim_use wrote: > Hi All, > I generally use: > :vim `beta: ` **/*.md | copen > To traverse my Markdown files to find those containing 'beta: '. > I need to do the opposite but can get the pattern right. I tried > :vim -v `beta: ` **/*.md | copen > > thinking that might work but no dice. > I looked through teh vimgrep help but couldn't find anything. > Does anyone know how to do this? While I don't know off the top of my head how to coerce :vim to do this, I'd likely populate the arglist with everything :args **/*.md and then either wipe the buffers you don't want: :argdo g/beta:/bwipe or remove them from the arg list :argdo g/beta:/argd % depending on which you prefer. -tim -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200903072316.377c37f0%40bigbox.attlocal.net. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/982441949.2253819.1599144317943%40mail.yahoo.com.
Re: Using vimgrep to find files NOT containing a string
Thank you for the reply! I will give this a shot! This has been a big help!! Russ -Original Message- From: Marius Gedminas To: vim_use@googlegroups.com Sent: Thu, Sep 3, 2020 2:07 am Subject: Re: Using vimgrep to find files NOT containing a string On Wed, Sep 02, 2020 at 07:14:37PM +, russurquhart1 via vim_use wrote: > I generally use: > > :vim `beta: ` **/*.md | copen > > To traverse my Markdown files to find those containing 'beta: '. > > I need to do the opposite but can get the pattern right. I tried > > :vim -v `beta: ` **/*.md | copen > > thinking that might work but no dice. > > I looked through teh vimgrep help but couldn't find anything. > > Does anyone know how to do this? Not with vimgrep, but on the command line to find files that don't contain a pattern I generally do grep -c "beta: " **/*.md | grep ':0$' | sed -e 's/:0$//' this assumes your shell can do ** and it's probably not the most elegant/efficient way of doing it, but it's one that I can remember how to spell. And then I opened the grep manual page to see if there's an easier way, and lo and behold: -L, --files-without-match Suppress normal output; instead print the name of each input file from which no output would normally have been printed. The scanning will stop on the first match. Just what the doctor ordered! To feed these files to to vim you could play with temporarily setting 'grepprg', or use :args `grep -L "beta: " **/*.md` If your shell doesn't do **, you may need to use something a bit more complicated like find -name '*.md' -exec grep -L "beta: " {} + HTH, Marius Gedminas -- Si hoc legere scis nimium eruditionis habes. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200903070704.trx46k7456rjuhhj%40blynas. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1299755177.202881.1599138996832%40mail.yahoo.com.
Re: Applying macros to all files, macro stops processing files
-Original Message- From: Tim Chase To: russurquhart1 via vim_use Sent: Wed, Sep 2, 2020 7:18 pm Subject: Re: Applying macros to all files, macro stops processing files In theory, this should do it :set hidden :argdo 1/---/-2put='beta: true' (this assumes that the first "---" doesn't fall on the first line; otherwise make sure you have 'wrapscan' set too and use '$/---/' instead) Depending on whether you insert the text above or below the line 2 above the "---", you might need to change that to "-3" instead of "-2". IN the case of these files, the FIRST line IS a line of '---'. I was looking for the next line of '---'. Interestingly this: :argdo 1/---/-2put='beta: true' seems to find the second one, and do exactly what I want. i'll try this! Thanks again!! Russ If you like the results, :wall -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/232596974.2044401.1599094758651%40mail.yahoo.com.
Applying macros to all files, macro stops processing files
Hi All, Yesterday, with the groups help, I was able to apply a macro to a group of Markdown files in my site directory, using: :args ~/site/**/inde*.md :argdo :normal @b :argdo :write (@b is a macro that searches for '---', moves up two lines, and inserts a new line, 'beta: true') I THOUGHT this would work, but i found out it didn't make it through all the files. When I looked I found that one of the files was blank. Thinking that might have caused the macro to stop at that time, I removed the file, and changed all the other files back, and tried running it again. This time, it didn't get further, but the next file it should have processed, is legit, and i can run the macro on that individual file. Are there limitations in trying to run a macro across a bunch of files like this? Has anyone else done this? Thanks again! Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1332550667.2337.1599089030863%40mail.yahoo.com.
Using vimgrep to find files NOT containing a string
Hi All, I generally use: :vim `beta: ` **/*.md | copen To traverse my Markdown files to find those containing 'beta: '. I need to do the opposite but can get the pattern right. I tried :vim -v `beta: ` **/*.md | copen thinking that might work but no dice. I looked through teh vimgrep help but couldn't find anything. Does anyone know how to do this? Thank you, Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1293083986.1897663.1599074077407%40mail.yahoo.com.
Re: Trying to apply macro to all files under a folder
You are correct! -Original Message- > When you set the arg list, where does it start? from your current > working directory? It depends a bit on how you populate it and how your OS expands globs, I suspect. Once you've populated it with :args **/inde*.md or whatever, you can check/display the arg-list by just issuing :args without additional parameters. I think your original glob didn't recurse into subdirectories, so you might also need to prepend "**/" to search into subdirectories :help starstar I found this later, and THIS was the issue/answer! starstar gave me the correct argslist! Thanks!! Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200831185503.4c7e997e%40bigbox.attlocal.net. -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1587143643.999413.1598919507405%40mail.yahoo.com.
Re: Trying to apply macro to all files under a folder
Hi TIm, -Original Message- From: Tim Chase To: russurquhart1 via vim_use Sent: Mon, Aug 31, 2020 6:14 pm Subject: Re: Trying to apply macro to all files under a folder On 2020-08-31 22:57, russurquhart1 via vim_use wrote: > My next step would have been: :argdo :normal @b I *think* you need to apply the :normal to the whole file unless the macro itself does everything in one invocation. The @b macro only adds a single line of text. If I had to point my finger at my first suspect as to why your attempt isn't working the way you want, this is it. > Then i would save my files: > :argdo :write > Should this work? this should work as long as 'hidden' is set. It used to default to off, but I think that recent changes in the defalts flipped this. Regardless, you want to make sure you :set hidden I'll check this! The only other wrinkle is that I am working on a git local branch. I haven't had any issues using Vim in this situation. When you set the arg list, where does it start? from your current working directory? (Just tried copying the Site directory from the git branch to a directory, and then trying the same commands, still the same thing. Just gets the first file in site and does not check the other directories in site.) Thanks Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/155979643.974477.1598917007276%40mail.yahoo.com.
Trying to apply macro to all files under a folder
I found a ref to this and some commands that should work, but wont for me. In my site directory, are other directories and files. I have a macro that I created, @b that i want to run recursively on all files named index.md in all the folders in site. I had initially set CWD to the site directory. In vim i did: : args inde*.md (Thinking this should put all the index.md files into the arg list. That didn't work, it only found the one index.md file in site.) My next step would have been: :argdo :normal @b (That works for the one file it found.) Then i would save my files: :argdo :write Should this work? How can I get this to work. All examples I've found describe this, but it doesn't want to work for me. Any help is greatly appreciated! Thanks, Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/349437253.960842.1598914623663%40mail.yahoo.com.
Problems getting Vim thesaurus plugin to work
Hi All, I spent most of the day today, trying to get this to work: https://www.vim.org/scripts/script.php?script_id=4588 I am using Vim 8 on a Macbook running OS X 10.14.6 Mojave. I installed all the pieces in the correct place, and when i do the control sequence (\k) is see it sending the command, the window opens, but nothing shows up. Is it possibly something with the thesaurus-lookup.sh script? Is anyone running this, or had to correct anything to get this to work? ANY help is greatly appreciated!! Russ -- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/816913379.6181540.1598394071085%40mail.yahoo.com.
Markdown tables in Vim
Hi All, I am creating documents using Markdown formatting. There are many tables in the document i am working on. I'm trying to see if there is a plugin that will allow me to take text like the following: SignedAddition Instructions Effect on OVC/OVCU MOVU OVC,loc16 OVC = [loc16(5:0)] (where there is a tab character between the two columns above.) To something like this: +--++ | **Signed Addition Instructions** | **Effect on OVC/OVCU** | +--++ | MOVU OVC,loc16 | OVC = [loc16(5:0)] | +--++ (I hope this looks alright, the webmail client keeps using a proportional spaced font instead of the Courier i wanted. But it should look like a box, above.) Any help is greatly appreciated! Thanks, Russ -- -- 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 because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
vim to format/prettyprint assembly lang source - Best way?
Hi All, I have some assembly language source, in an older document, that when it was ported to our current platform, the code samples got messed up. I am now faced with the task of going through and reformatting the assembly language examples. I'm using vim, to format the code but it is still a pretty manual task. I was wondering if anyone could suggest a better method. I start with something like this: Code MOVIZF32 R1H, #-2.0 ; R1H = -2.0 (0xC000) ABSF32 R1H, R1H ; R1H = 2.0 (0x4000), ZF = NF = 0 MOVIZF32 R0H, #5.0 ; R0H = 5.0 (0x40A0) ABSF32 R0H, R0H ; R0H = 5.0 (0x40A0), ZF = NF = 0 MOVIZF32 R0H, #0.0 ; R0H = 0.0 ABSF32 R1H, R0H ; R1H = 0.0 ZF = 1, NF = 0/Code And to maintain the formatting i need to end up with something like this: Code MOVIZF32 R1H, #-2.0; R1H = -2.0 (0xC000) ABSF32 R1H, R1H ; R1H = 2.0 (0x4000), ZF = NF = 0 MOVIZF32 R0H, #5.0 ; R0H = 5.0 (0x40A0) ABSF32 R0H, R0H ; R0H = 5.0 (0x40A0), ZF = NF = 0 MOVIZF32 R0H, #0.0 ; R0H = 0.0 ABSF32 R1H, R0H ; R1H = 0.0 ZF = 1, NF = 0/Code Can anyone suggest the best way to do this in Vim? thanks, Russ -- -- 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 because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Fwd: Preferred vim method to put xml tags around selected text
Hi, At my work, i am having to put specialized xml tags around selected text. So for example i might have: The quick brown fox, jumps over the lazy dog. Now i would have to put: The quick Node arch=386, 486, 586brown /Node fox, jumps over the lazy dog. What is the best/elegant way to do this in Vim? Thanks, Russ -- -- 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 because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Fwd: Installing 7.4 windows over 7.2 windows
Hi, I have been very happy using vim 7.2 under windows, but was wondering if i download and install vim 7.4, will that undo all my plugins, customizations, etc. that i have set up currently under 7.2? I'd like to try the new one, but don't want to loose the customizations i have? Thanks, Russ -- -- 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 because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Installing 7.4 windows over 7.2 windows
Hi, I have been very happy using vim 7.2 under windows, but was wondering if i download and install vim 7.4, will that undo all my plugins, customizations, etc. that i have set up currently under 7.2? I'd like to try the new one, but don't want to loose the customizations i have? Thanks, Russ -- -- 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 because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
dtd2vim
Hi, I am trying to use the dtd2vim perl script. I have perl installed, and have been able to use other perl installations, but this one doesn't seem to work. I sent some email to the developer, but haven't heard anything. Has anyone used this, or had any success? Thanks, Russ -- -- 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 because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Re: Updating Syntax menu
I want to thank everyone for their help. I think i found the answer. According to this url: http://www.lesismore.co.za/viminform7.html The relative portion: Last, you can add the Vim syntax to the Syntax menu. Open Vim and enter :ed $VIMRUNTIME/makemenu.vim. Add the line below just after the older Inform entry. You need to source the file (ie. run it) to update the menus: :source $VIMRUNTIME/makemenu.vim. SynMenu HIJK.Inform7:inform7 I entered SynMenu MeNO.MMD:mmd sourced makemenu.vim and that worked! Thanks, Russ So you've wrung your eyes of all your tears And you caught them in a glass To save them for some day next year, when you're waxing over your past And should you ever begin to believe That the good times was worth all the waste Find your glass of last year's tears and you take a taste On 01/24/13, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 24/01/13 17:07, russurquha...@verizon.net wrote: Hi, I've been adding new syntax files, and putting them in the correct location, but i don't know if i am supposed to manually update the synmenu.vim file, or does some other process do that, so that my new syntax files show up in the menu. Any help is greatly appreciated! thanks, Russ IIUC, Syntax → Show filetypes in menu doesn't add menuitems with the name of *syntax* plugins but of *filetype* plugins. If your new syntax scripts don't appear, try adding zero-length files of the same names (not overwriting existing scripts, of course) in ~/.vim/ftplugin/ (for Unix-like) or in ~/vimfiles/ftplugin/ (for Windows). You may have to restart Vim (I'm not sure) to have the new filetypes inserted in the Syntax menu. If *that* doesn't work, then don't modify $VIMRUNTIME/synmenu.vim (in general, NEVER modify ANYTHING in the $VIMRUNTIME directory tree, because any Vim update may silently remove your changes); rather, add additional synmenu.vim files in ~/.vim/ (for Unix-like) or in ~/vimfiles (for Windows). IIUC they will be sourced in addition to the default scripts, because Vim installs them by doing :runtime! synmenu.vim (see :help :runtime). Best regards, Tony. -- You can be stopped by the police for biking over 65 miles per hour. You are not allowed to walk across a street on your hands. [real standing laws in Connecticut, United States of America] -- -- 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 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
Updating Syntax menu
Hi, I've been adding new syntax files, and putting them in the correct location, but i don't know if i am supposed to manually update the synmenu.vim file, or does some other process do that, so that my new syntax files show up in the menu. Any help is greatly appreciated! thanks, Russ -- -- 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
Re: Re: Updating Syntax menu
In this case, i had a syntax file and a ftdetect file. (For multimarkdown.) I put the syntax and ftdetect files in the correct location. the file type is found, but the syntax menu does not update. On 01/24/13, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 24/01/13 17:07, russurquha...@verizon.net wrote: Hi, I've been adding new syntax files, and putting them in the correct location, but i don't know if i am supposed to manually update the synmenu.vim file, or does some other process do that, so that my new syntax files show up in the menu. Any help is greatly appreciated! thanks, Russ IIUC, Syntax → Show filetypes in menu doesn't add menuitems with the name of *syntax* plugins but of *filetype* plugins. If your new syntax scripts don't appear, try adding zero-length files of the same names (not overwriting existing scripts, of course) in ~/.vim/ftplugin/ (for Unix-like) or in ~/vimfiles/ftplugin/ (for Windows). You may have to restart Vim (I'm not sure) to have the new filetypes inserted in the Syntax menu. If *that* doesn't work, then don't modify $VIMRUNTIME/synmenu.vim (in general, NEVER modify ANYTHING in the $VIMRUNTIME directory tree, because any Vim update may silently remove your changes); rather, add additional synmenu.vim files in ~/.vim/ (for Unix-like) or in ~/vimfiles (for Windows). IIUC they will be sourced in addition to the default scripts, because Vim installs them by doing :runtime! synmenu.vim (see :help :runtime). Best regards, Tony. -- You can be stopped by the police for biking over 65 miles per hour. You are not allowed to walk across a street on your hands. [real standing laws in Connecticut, United States of America] -- -- 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 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
Re: Re: Re: Updating Syntax menu
Tony had also suggested creating an empty ftplugin file. I did that, put it in ftplugin, restarted vim, but the syntax menu didn't get updated. I'm thinking something manual has to be done, because i have other syntax files, that work, and have their files in the right place but the syntax menu does not show these either. Thanks everyone for their help, Russ On 01/24/13, Ben Fritzfritzophre...@gmail.com wrote: On Thursday, January 24, 2013 2:07:01 PM UTC-6, russur wrote: In this case, i had a syntax file and a ftdetect file. (For multimarkdown.) I put the syntax and ftdetect files in the correct location. the file type is found, but the syntax menu does not update. Tony suggested that you try creating at ftplugin file, not an ftdetect file. Still, looking at the synmenu.vim file, it doesn't look like that would have made any difference either. I think you will need to copy and then modify the file as Tony suggest. I see another file called makemenu.vim which apparently generates synmenu.vim, perhaps you can modify and use that instead of direct modification. You'll still want to work on a local copy instead of the distribution copy. -- -- 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 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
Re: Re: ANN: OutlookVim - Vim installer did not register OLE on Windows
On 10/11/12, David Fishburndfishburn@gmail.com wrote: . Could you try running the 32-bit installer (as a test) and see if you get different behaviour. Thanks, David Can the two versions co-exist on the same machine? -- 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
vim xml folding/unfolding siblings of current element
I have the folding set for vim when i edit xml files. It's all folded into one fold. That's fine. I like to be able to get a view of the elements that make up the current element. Can i unfold only those siblings contained in the current element, and vice versa? thanks, Russ -- 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
newbie put question
I'm learning and having success with Vim. I just ran into something that i'm sure i'm over looking. I know that when i yank LINES, the put command (p or P) will put those lines before or after the line the cursor is on. When i select something less than a line, it puts it before or after the current position. My question, is there a way to select several LINES and put those before or after the current cursor position, NOT before or after the current line? Thanks, Russ -- 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
Re: Re:
Jul 18, 2009 04:09:23 PM, vim_use@googlegroups.com wrote: Hmm, I don't think so. From the original email, the OP starts his edit> session of this xml file with:>> :let g:xml_syntax_folding = 1> :set foldmethod=syntax> :set synmaxcol=0> :eOh, oops! Hm.. Does the syntax highlighting itself look OK? If itgot so confused that it couldn't tell which open tags went with whichclose tags, I'd expect that you'd be able to see it from thehighlighting...~MattThe syntax highlighting DID look confused! But i think i may have found a solution .I tried this again on a smallerish file, right at 1Mb in size, and still the same problem. I noticed then that, for this file, The entire body of xml was on ONE line. There were NO linebreaks within this xml element. And moving around within the document was kind of slow and it couldn't find that the first element should have been a fold.I put a linefeed between every '><' pair, and each of the files loaded and folded nicely, and moving between the folds was very nice.This make me think that there is something within the xml syntax /folding mechanism that, even though :set synmaxcol=0 is set, it still kind of chokes on long lines, but has little problems when the lines are broken up. I don't know if this should be classified as a bug or not. While xml, syntactically doesn't need to have line breaks, realistically, you probably would if it were created manually.So, is this a bug of sorts?Thanks for all the help!Russ --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
[no subject]
Hi All,With help from everyone here, when i open an xml file, i make sure that the following have been executed::let g:xml_syntax_folding = 1:set foldmethod=syntax:set synmaxcol=0:eAnd this has work well and done it for me. Up till now.I have a longer xml file (2mb) and the syntax folding seems to get confused within an element. When i do a za on one of the elements that is folded, instead of that opening, i get another dash at the beginning of the line, like this:Before:+--4471 lines: after za:+---4471 lines:
Re: Re: Syntax folding + syncing
Jul 16, 2009 07:31:02 PM, vim_use@googlegroups.com wrote:[changing the subject to something meaningful]Thank you, first pass i had a subject, but the browser timed out.> I have a longer xml file (2mb) and the syntax folding seems to get confused > within an element. When i do a za on one of the elements that is folded, instead > of that opening, i get another dash at the beginning of the line, like this:> > Before:> > +--4471 lines:> > after za:> > +---4471 lines:> > and that continues on for about three more presses of the za sequence, each one > adding another '-' to the above line, until the fold opens, but even then it > looks confused.> My guess would be that the syntax syncing gets out of whack which takes the folding out with it as it falls over. You can tell Vim that you want syntax synchronization to start from the beginning of the file, but this comes with performance-related issues. :help :syn-syncparticularly this section: :help :syn-sync-firstshows how to force vim to sync up from the beginning of the file.I had tried that, after doing some research, but it doesn't have any effect. Everything worked the same way, again.I did a :syntax sync fromstartthen did a :e to reload the file. Same results.Russ --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Re: Problem with xml syntax folding?
Looking at this, and trying both :syntax sync fromstart and:syntax sync minilines=61000(the number of lines in the file. That should be enough, right?)No change? After i did these commands, i did a :e to get the syntax folding restarted. (That was the right thing to do, right?)Thanks,RussJul 6, 2009 05:59:25 PM, vim_use@googlegroups.com wrote:Saluton r...@verizon.net :)r...@verizon.net dixit: My xml files are of a form: ... When i did the syntax folding on a sample, albeit large (1.8 Mb) xml file, the closing tag seems to be folded in the fold. Everything, however, works when i try this on a smaller sample file. Is there something about the xml syntax file that might explain this?Blind shot, from ":help syntax"::syntax sync fromstart:syntax syng minlines=The second line may result in very slow redrawing and highlighting, Ihaven't tested it.I swear I saw once an option to fix this kind of things, but I cannotremember. Looks like Charles Campbell has updated the conversation whileI was replying, so he may be of help.-- Raúl "DervishD" Núñez de Arenas CoronadoLinux Registered User 88736 | http://www.dervishd.netIt's my PC and I'll cry if I want to... RAmen! --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Re: Problem with xml syntax folding?
That did it! I set synmaxcol=0 and now everything seems to work properly.I was thinking there might be an issue as in several LONG lines of a Code element, the syntax coloring was getting confused.Thanks againRussJul 6, 2009 07:14:01 PM, vim_use@googlegroups.com wrote:Hi Raúl!On Mo, 06 Jul 2009, Raúl Núñez de Arenas Coronado wrote: I swear I saw once an option to fix this kind of things, but I cannot remember. Looks like Charles Campbell has updated the conversation while I was replying, so he may be of help.:h 'synmaxcol'regards,Christian-- :wq! --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Accessing xml elements in vim
Hi,As a newbie-ish user of Vim, i need to able to cut and paste between xml files. A lot of what i do is to either replace an entire xml element, and its contents, with another same named xml element OR replace just the CONTENTS of a specific xml element with the content of another xml element. Is there a way to easily select either an entire xml element or just the contents of a given element?Thanks,Russ --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---