diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 20:36:49 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 20:36:49 +1200 |
commit | 69dbdc47735e4a9b8e9ac686aafbaefdc1cab9e6 (patch) | |
tree | d618e7bcd124b78de83a3bccf3acf0f62424730b | |
parent | Sort 'backupskip' patterns before reversing (diff) | |
download | dotfiles-69dbdc47735e4a9b8e9ac686aafbaefdc1cab9e6.tar.gz dotfiles-69dbdc47735e4a9b8e9ac686aafbaefdc1cab9e6.zip |
Explain sort-reverse of 'backupskip' patterns
-rw-r--r-- | vim/vimrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -136,6 +136,9 @@ if has('unix') " This might be a bug in Vim. To work around this, we attempt to remove " each pattern before we add it. " + " We sort and add them backwards only so that they're in alphabetical order + " in the final option! + " for s:pattern in reverse(sort(s:backupskip_patterns)) execute 'set backupskip-='.vimrc#EscapeSetPart(s:pattern) execute 'set backupskip^='.vimrc#EscapeSetPart(s:pattern) |