Sunday, May 1, 2011

Re: file-persistent settings plugin ?

I believe you may be looking to use modelines, or vim's session
feature (:mksession).

On Mon, May 2, 2011 at 12:20 AM, Lena <ririna10@gmail.com> wrote:
> Is this possible, such hypothetic plugin:
>   "file-persistent settings":
> the plugin would save (automatically) and restore (automatically)
> settings per file-name(pathname). Namely, those settings that were
> different from default vim settings (or from global vim settings).
> By analogy with "persistent line-numbers" (.viminfo), this
> must be possible, because.viminfo does something similar.
>
> For example. My "set nu" is normally off.
> Let's say I do "set nu" on buffr ~/hello.c.
> Then I quit vim, then restart vim ~/hello.c.
> Then vim would starts with "set nu" turned on only on this
> buffer, because vim(plugin) recorded
> that setting "set nu" was != default on this buffer(pathname).
>
> Just like .viminfo is automatically saves and restores
> line# per per-pathname.
>
> Thanks
> L
>
> --
> 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
>

--
Harsh J
http://harshj.com

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