Saturday, April 14, 2012

Re: MRU plugin

Hi,


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

Several MRU plugin users reported that it is hard to see the name of the file
when using very long path names. In my day-to-day use, I found that having

the file name at the beginning of the line in the MRU window helps.


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


User defined command names must start with an upper case letter.
You can try using the ":Mru" command.


- Yegappan

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