Christian Brabandt wrote:

> On Mi, 22 Mär 2017, Marco Ippolito wrote:
>
>> Should editing .gitignore swap to ..gitignore.swp rather than .gitignore.swp?
>
> Why would you think so?


:help swapname says:

==
    :sw[apname]                    *:sw* *:swapname*

The name of the swap file is normally the same as the file you are editing,
with the extension ".swp".
- On Unix, a '.' is prepended to swap file names in the same directory as the
  edited file.  This avoids that the swap file shows up in a directory
  listing.
===

The doc could be clearer to say that if the file name already starts with '.'
then the '.' is not preprended.

Dominique

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui