Got it. Makes sense. Thanks, Christian!
> On Jul 26, 2015, at 12:12 PM, Christian Brabandt <cblists@256bit.org> wrote:
>
> Hi Sergei!
>
> On So, 26 Jul 2015, Sergei Gerasenko wrote:
>
>> I new about paste toggle and I thought i could only assign it to one key (like F5), but it appears that it works ever for something like <leader>]
>
> You can't toggle the paste option from a mapping, because the whole
> point when paste is set is to disable any mappings.
>
> That's why you have the pastetoggle option.
>
> Best,
> Christian
> --
> 1. Der Computer nützt dem Menschen.
> 2. Die Erde ist eine Scheibe.
> 3. Computer lösen Probleme, die man ohne sie nicht hätte.
> 4. Nichts ist so einfach, daß man es nicht falsch machen könnte.
>
> --
> --
> 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 a topic in the Google Groups "vim_use" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/Bh23dt9uiBM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
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/d/optout.
Sunday, July 26, 2015
Re: toggle PASTE in insert mode
Aaaaaaaaaaah :)
Brilliant, thanks Dmitri!
> On Jul 26, 2015, at 12:12 PM, Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com> wrote:
>
> * Sergei Gerasenko <gerases@gmail.com> [2015-07-26 20:01]:
>> But still, why the behavior with inoremap?
>
> Insert mode mappings and abbreviations are disabled if paste option is
> on.
>
> --
> Dmitri Vereshchagin
>
> --
> --
> 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 a topic in the Google Groups "vim_use" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/Bh23dt9uiBM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
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/d/optout.
Brilliant, thanks Dmitri!
> On Jul 26, 2015, at 12:12 PM, Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com> wrote:
>
> * Sergei Gerasenko <gerases@gmail.com> [2015-07-26 20:01]:
>> But still, why the behavior with inoremap?
>
> Insert mode mappings and abbreviations are disabled if paste option is
> on.
>
> --
> Dmitri Vereshchagin
>
> --
> --
> 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 a topic in the Google Groups "vim_use" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/Bh23dt9uiBM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
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/d/optout.
Re: toggle PASTE in insert mode
* Sergei Gerasenko <gerases@gmail.com> [2015-07-26 20:01]:
> But still, why the behavior with inoremap?
Insert mode mappings and abbreviations are disabled if paste option is
on.
--
Dmitri Vereshchagin
--
--
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/d/optout.
> But still, why the behavior with inoremap?
Insert mode mappings and abbreviations are disabled if paste option is
on.
--
Dmitri Vereshchagin
--
--
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/d/optout.
Re: toggle PASTE in insert mode
Hi Sergei!
On So, 26 Jul 2015, Sergei Gerasenko wrote:
> I new about paste toggle and I thought i could only assign it to one key (like F5), but it appears that it works ever for something like <leader>]
You can't toggle the paste option from a mapping, because the whole
point when paste is set is to disable any mappings.
That's why you have the pastetoggle option.
Best,
Christian
--
1. Der Computer nützt dem Menschen.
2. Die Erde ist eine Scheibe.
3. Computer lösen Probleme, die man ohne sie nicht hätte.
4. Nichts ist so einfach, daß man es nicht falsch machen könnte.
--
--
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/d/optout.
On So, 26 Jul 2015, Sergei Gerasenko wrote:
> I new about paste toggle and I thought i could only assign it to one key (like F5), but it appears that it works ever for something like <leader>]
You can't toggle the paste option from a mapping, because the whole
point when paste is set is to disable any mappings.
That's why you have the pastetoggle option.
Best,
Christian
--
1. Der Computer nützt dem Menschen.
2. Die Erde ist eine Scheibe.
3. Computer lösen Probleme, die man ohne sie nicht hätte.
4. Nichts ist so einfach, daß man es nicht falsch machen könnte.
--
--
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/d/optout.
Re: toggle PASTE in insert mode
I new about paste toggle and I thought i could only assign it to one key (like F5), but it appears that it works ever for something like <leader>]
So thanks!!
But still, why the behavior with inoremap?
> On Jul 26, 2015, at 11:55 AM, Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com> wrote:
>
> * surge <gerases@gmail.com> [2015-07-26 19:35]:
>> I'm trying to create a mapping in the insert mode that would toggle
>> the PASTE option.
>
> Check pastetoggle option.
>
> --
> Dmitri Vereshchagin
>
> --
> --
> 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 a topic in the Google Groups "vim_use" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/Bh23dt9uiBM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
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/d/optout.
So thanks!!
But still, why the behavior with inoremap?
> On Jul 26, 2015, at 11:55 AM, Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com> wrote:
>
> * surge <gerases@gmail.com> [2015-07-26 19:35]:
>> I'm trying to create a mapping in the insert mode that would toggle
>> the PASTE option.
>
> Check pastetoggle option.
>
> --
> Dmitri Vereshchagin
>
> --
> --
> 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 a topic in the Google Groups "vim_use" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/Bh23dt9uiBM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
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/d/optout.
Re: toggle PASTE in insert mode
* surge <gerases@gmail.com> [2015-07-26 19:35]:
> I'm trying to create a mapping in the insert mode that would toggle
> the PASTE option.
Check pastetoggle option.
--
Dmitri Vereshchagin
--
--
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/d/optout.
> I'm trying to create a mapping in the insert mode that would toggle
> the PASTE option.
Check pastetoggle option.
--
Dmitri Vereshchagin
--
--
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/d/optout.
toggle PASTE in insert mode
Hi everybody,
I'm trying to create a mapping in the insert mode that would toggle the PASTE option.
The mapping is defined like this:
inoremap - <ESC>:set map!<CR>i
The thing is, it works the first time and after that, when i type '-', a literal '-' is put in. According to :verbose onramp -, the mapping doesn't change.
Any ideas?
Thanks!!
--
--
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/d/optout.
I'm trying to create a mapping in the insert mode that would toggle the PASTE option.
The mapping is defined like this:
inoremap - <ESC>:set map!<CR>i
The thing is, it works the first time and after that, when i type '-', a literal '-' is put in. According to :verbose onramp -, the mapping doesn't change.
Any ideas?
Thanks!!
--
--
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/d/optout.
Subscribe to:
Posts (Atom)