Very good solution! thank you very much!
On mer., 2019-07-10 at 16:22 +0200, Andreas Perstinger wrote:
> On 10.07.19 10:30, Mathieu Roux wrote:
> > I use many text files to write many things on my laptop, and i use
> > aliases to access them.
> > For exemple, suppose that i have the alias "foo" to access ~/bar
> > with
> > vim.
> >
> > alias foo='vim ~/bar'
> >
> > So it works when i write "foo" in my terminal.
>
> I suppose you use the aliases because your filenames are rather long
> and/or the files are in a deeply nested directory (e.g.
> /very/long/path/to/the/file/foo.txt)
>
> If that's the case I would suggest to
>
> a) create a directory in your $HOME and create symbolic links to all
> the
> files you want to access with a short name in that directory.
>
> b) in vim set the 'path' option to that directory
>
> c) to open the files use :find instead of :new or :edit.
>
> See also :help path and :help find
>
> Bye, Andreas
>
> --
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/4b1d8c56a2833cf10c7b42bdf33719edec268c8c.camel%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment