Monday, January 20, 2014

Re: Help needed in reproducing an error with the mru plugin

On Monday, January 20, 2014 10:50:01 AM UTC-6, Yegappan wrote:
> Hi all,
>
>
>
> If you are not an user of the MRU plugin, you can skip this e-mail.
>
>
>
> I need some help in reproducing a problem reported by a mru plugin user
>
> on stack overflow
>
> (http://stackoverflow.com/questions/15481723/vim-mru-plugin-issue).
>
>
>
> On opening the MRU window, the following error is seen:
>
>
>
> Error detected while processing function
>
> <SNR>10_MRU_Cmd..<SNR>10_MRU_Open_Window:
>
> line 125
>
> E21: Cannot make changes, 'modifiable' is off: $delete
>
>
>
> I am not able to reproduce this problem. He is using version 3.5 of the plugin.
>
> Is anyone else seeing this problem?

I have this in my .vimrc:

" set readonly files to also be non-modifiable by default, and others to be
" modifiable by default
autocmd BufRead,BufWinEnter * if &ft!='qf' | let &l:modifiable = (&readonly ? 0 : 1) | endif


I think I remember seeing that error sometimes a long time ago, related to this autocmd, but I have not seen it recently. I don't think I did anything in particular to fix it. Perhaps using the global value of modifiable instead of the local value?

--
--
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:

Post a Comment