Wednesday, February 26, 2014

Re: fixing mistakes in the command line

On Wednesday, February 26, 2014 4:57:18 AM UTC-6, Matteo Cavalleri wrote:
> Il giorno mercoledì 26 febbraio 2014 11:49:20 UTC+1, Matteo Cavalleri ha scritto:
>
>
>
> > I discovered just now abbreviations works also in command line mode, so I suppose my problem is solved :) thanks anyway and sorry for the noise
>
>
>
> and I discovered just now again they also mess with my search patterns... :(

You can fix this with techniques here: http://vim.wikia.com/wiki/Replace_a_builtin_command_using_cabbrev

This tip uses getcmdtype() to make sure only ex commands (not searches) get expanded, and getcmdpos() to make sure it only happens if it's the first character you type on the command-line.

--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: