Monday, April 13, 2026

Re: New Line Criteria ?

On 2026-04-13 14:28, 'Paul' via vim_use wrote: > On Mon, Mar 30, 2026 at 01:43:23PM -0700, Christopher wrote: >> How do I get vim to show a file to display for example where there is >> */bin:* place it on a new line but revert back to how it was before the >> file was loaded into vim ? > > Put all "/bin:"s on a new line: :%s/\/bin:/\r&/g > Revert (if simply undoing (u) isn't enough): :e! Or, if you don't intend to do any other edits that you'll want to save: :q! That quits Vim without saving your edited version of the file. Stan Brown Tehachapi, CA, USA https://BrownMath.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+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/bd43b933-22f6-4701-8959-a0888d8dcd4a%40fastmail.fm.

Re: New Line Criteria ?

On Mon, Mar 30, 2026 at 01:43:23PM -0700, Christopher wrote: > How do I get vim to show a file to display for example where there is >*/bin:* place it on a new line but revert back to how it was before the >file was loaded into vim ? Put all "/bin:"s on a new line: :%s/\/bin:/\r&/g Revert (if simply undoing (u) isn't enough): :e! -- -- 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+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/ad1gCX-UJQpFNQQa%40kitt.

Saturday, April 4, 2026

How hard would it be to have :term windows operate with "nowrap" ?

I find the ability to have a vim window operate as a terminal really useful (the :terminal command).  

The one thing I really find annoying about it is the fact that it wraps lines that are longer than the window width with a hard carriage return, so that if you go back and select text from the terminal, it contains carriage returns that were not actually present in the program output.  As far as I can tell, there are no settings to change that.  How hard would it be to add that capability?


--
--
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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAJjaVfVHJd%2BbRY5BpuYfL0QgdUo34ShTufWuvVf5py0i51tcew%40mail.gmail.com.

Friday, April 3, 2026

Re: autocmds general usage

On Wednesday, April 1, 2026 at 10:43:09 AM UTC-4 Christopher wrote:
I have a general question about autocmd, how can I use it without always having invoke it by using ":" then loading the appropriate commands then finally the file to which I want it to apply or must I script it ?

I don't understand the question (what do you mean "use it" without "using ':'", etc.?), but:

The typical practice for autocommands is to put them in your vimrc (~/.vim/vimrc, etc.) or a local plugin (~/.vim/plugin/<name>.vim) so they are established during startup.

Some customizations don't required autocommands, though: if you're customizing the behavior of a particular filetype, then use an ftplugin, indent, or syntax script. (Or your filetype may already have knobs to tweak; see `:help :syn-file-remarks`, `:help ftplugin-docs`, `:help local-additions`, etc. Completing with `:help ft-<filetype><Ctrl-d>` is usually good too.)

--
--
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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/75d80253-9b2f-414c-af30-6b8909714b86n%40googlegroups.com.

Wednesday, April 1, 2026

autocmds general usage

I have a general question about autocmd, how can I use it without always having invoke it by using ":" then loading the appropriate commands then finally the file to which I want it to apply or must I script it ?



--
--
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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/8c22618b-c796-4dd8-ae79-e674df044fe6n%40googlegroups.com.