Re: inoremap and typing pace?

Marc Chantreux <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <Z-J6uqW6ln1IC9gW@prometheus>
hello,

On Tue, Mar 25, 2025 at 09:03:48AM -0000, Steven H. wrote:
> Are you using my .vimrc which I provided initially?

no because

* I didn't understand that was your actual and entire .vimrc
* I expected from you to read instructions and ask when you didn't
  know (that's how learing works). especially:
  * I mention this is a vim9script and put the keyword in some examples
  * I told you you should get back to the original mapping

I copied the whole thing in ~/stevenrc:

vim9script
set listchars=eol:⏎,tab:>·,trail:▪,space:␣,extends:>,precedes:<,nbsp:+
set ai ci noet
command -nargs=0 ArgIndent {
        y y | put y
        var s = @/
        s!\v^\s*\zs(\S+\s+).*!\=repeat(' ', 1 + len(submatch(1)))!
        @/ = s
}
inoremap \\<cr> \<c-o>:ArgIndent<cr>

then invoked vim -u ~/stevenrc

and it works.

> If it is a different one, could you please share it?

I'm in the middle of the process of publication of my dotiles. you can
pick some files here:

https://git.unistra.fr/mc/dot/-/tree/main/vim/

the best of all is already there:

https://git.unistra.fr/mc/dot/-/blob/main/vim/r/parentheses.vim
https://git.unistra.fr/mc/dot/-/blob/main/vim/r/buffer_navigation.vim

I wrote the first version of those in the '90 and will never turn back.

-- 
Marc Chantreux

-- 
-- 
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 [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z-J6uqW6ln1IC9gW%40prometheus.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.