On May 19, 11:29 pm, Charles E Campbell Jr <[email protected]>
wrote:
>Paul wrote:
>> Ben Fritz wrote:
>>> On Wednesday, May 16, 2012 10:26:37 AM UTC-5, Paul wrote:
>>>> One thing I found not to be remembered is "setl ts=14" (or
>>>> whatever number you use to get the file timestamp column closer
>>>> to the filename column).  Is there a way to have this setting
>>>> stick?
>>>
>>> I don't have input for your main problem, sorry about that.
>>>
>>> But this one I can handle.
>>>
>>> netrw sets the 'netrw' filetype on its buffers.
>>>
>>> So simply use a FileType autocmd, or a filetype plugin file (in
>>> the after directory).
>>>
>>> I.e., either create this autocmd:
>>>
>>> au FileType netrw setl ts=14
>>>
>>> or create file ~/.vim/after/ftplugin/netrw.vim with contents:
>>>
>>> setl ts=14
>>
>> Ben, thanks for that.  Unfortunately, the specific local value for
>> tabstop depends on the longest filename of interest (not
>> necessarily the longest filename in the directory.  This is set on
>> a per-directory basis (and may change if the directory contents
>> change).  I just need the local tabstop value to stick to the
>> buffer for a particular directory.  So I need (or rather, want) vim
>> to treat a netrw window in the same manner as it does other
>> buffers.  That way, even if I close the window, then open it again
>> (for example, using :e Directory/Path), the ts value stays the same
>> as it was set to last time.
>
>> I get the feeling that I'm asking for the impossible, but there
>> have been occassions in the past in which I have been pleasantly
>> surprised.
>
> Netrw sets   g:netrw_maxfilenamelen  to 32 by default; you can
> change that as you wish (ie. via .vimrc, etc).  It is used to set
> netrw buffers' local tabstop value.  See :help
> g:netrw_maxfilenamelen .

Sorry about that last email, it was posted under another nym (the
wrong one).  I erased it from google groups.  Here it is again, with
proper identification.

Thanks, but I need to be able to manually change it depending on the
longest filename in the folder being viewed.  Then I need the ts value
to stick for that directory.

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

Reply via email to