Saturday, April 14, 2012

Re: MRU plugin

On Fri, 13 Apr 2012 16:36:08 -0700 (PDT)
Yegappan Lakshmanan <yegappan@yahoo.com> wrote:

>>________________________________
>> From: Ben Fritz <fritzophrenic@gmail.com>
>>To: vim_use@googlegroups.com
>>Cc: yegappan@yahoo.com
>>Sent: Friday, April 13, 2012 1:39 PM
>>Subject: Re: MRU plugin
>>
>>On Friday, April 13, 2012 2:21:55 PM UTC-5, Tarlika Elisabeth Schmitz
>>wrote:
>>> On Mon, 2 Apr 2012 07:06:15 -0700 (PDT)
>>> Ben Fritz wrote:
>>> >
>>> >Unfortunately if there is only one match (e.g. if you use tab
>>> >completion of the file name), the file opens directly. I've not yet
>>> >bothered to change the way this works, but it annoys me
>>> >occasionally.
>>>
>>> Ben, I have fixed your problem and my problem.
>>>
>Hi,
>
>I have updated the MRU plugin and added the following features:
>
>* Support for opening files always in tabs (MRU_Open_File_Use_Tabs
>option)
>* Support for opening the MRU window always even for single filename
>matches (MRU_Window_Open_Always)
>* Support for opening files in vertically split windows.
>
>To open a file from the MRU list always in a tab, you can now set the
>MRU_Open_File_Use_Tabs variable to 1 in your .vimrc file. To open the
>MRU window even for single matched filename, you can
>
>set the MRU_Window_Open_Always variable to 1.
>
>
>I am attaching the updated plugin to this e-mail. Let me know if you
>see any problems with it. I will shortly upload this to the Vim online
>site.
>
>- Yegappan
>

Yegappan,
This is great! It will save dozens of tabopen keystrokes a day!

The only bit I hate is the way you changed the display of the :MRU
window: filename with full in brackets. I find this works ok in
File->Recent but in the :MRU window I can't easi;y see what I'm looking
for.

For now, I have changed it back:

" let output = map(m, 'fnamemodify(v:val, ":t") . " (" . v:val . ")"')
" XXX silent! 0put =output
silent! 0put =m " XXX

When I modified the plugin, I also created an additional :mru
command to avoid the shift or is there a reason for having caps?

--

Tarlika Elisabeth Schmitz, Scotland
Saor Alba

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

No comments: