Monday, February 19, 2024

Re: "iabbrev" erratic behaviour

> Is there a way to troubleshoot that?

You can check if it works without your configuration: 

$ vim -Nu NONE
: iabbrev mdate <C-R>=strftime("%a %d/%m/%Y")<CR>

If it isthere must be something in vim config you will need to figure out. One common approach is to bisect your vimrc.

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 <C-R>=strftime("%a %d/%m/%Y")


It used to work fine, but as of recently (3 or 4 weeks or so), this
abbreviation only works if it is the first thing that I input on any
file. If I edit a file, type some characters and then I type "mdate",
it doesn't get expanded. I have to save and exit the file, then
re-open it and then type "mdate".

Is there a way to troubleshoot that?

--
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/b34ee5a3-7464-4697-8611-9716f1bffb23n%40googlegroups.com.

No comments: