Mercurial > vim
comparison runtime/autoload/netrwSettings.vim @ 25700:d4faa2c5211b
Update runtime files
Commit: https://github.com/vim/vim/commit/89a9c159f23fb7b3e24e6d09068adfc24a73afcb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 29 21:55:35 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 29 Aug 2021 22:00:05 +0200 |
parents | 1a951a4beee3 |
children | b2e8663e6dcc |
comparison
equal
deleted
inserted
replaced
25699:8088e687c3d7 | 25700:d4faa2c5211b |
---|---|
1 " netrwSettings.vim: makes netrw settings simpler | 1 " netrwSettings.vim: makes netrw settings simpler |
2 " Date: Nov 09, 2016 | 2 " Date: Aug 12, 2021 |
3 " Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> | 3 " Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> |
4 " Version: 16 | 4 " Version: 17 ASTRO-ONLY |
5 " Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1 | 5 " Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1 |
6 " Permission is hereby granted to use and distribute this code, | 6 " Permission is hereby granted to use and distribute this code, |
7 " with or without modifications, provided that this copyright | 7 " with or without modifications, provided that this copyright |
8 " notice is copied with it. Like anything else that's free, | 8 " notice is copied with it. Like anything else that's free, |
9 " netrwSettings.vim is provided *as is* and comes with no | 9 " netrwSettings.vim is provided *as is* and comes with no |
17 " every disease and every sickness among the people. | 17 " every disease and every sickness among the people. |
18 " Load Once: {{{1 | 18 " Load Once: {{{1 |
19 if exists("g:loaded_netrwSettings") || &cp | 19 if exists("g:loaded_netrwSettings") || &cp |
20 finish | 20 finish |
21 endif | 21 endif |
22 let g:loaded_netrwSettings = "v16" | 22 let g:loaded_netrwSettings = "v17" |
23 if v:version < 700 | 23 if v:version < 700 |
24 echohl WarningMsg | 24 echohl WarningMsg |
25 echo "***warning*** this version of netrwSettings needs vim 7.0" | 25 echo "***warning*** this version of netrwSettings needs vim 7.0" |
26 echohl Normal | 26 echohl Normal |
27 finish | 27 finish |
29 | 29 |
30 " --------------------------------------------------------------------- | 30 " --------------------------------------------------------------------- |
31 " NetrwSettings: {{{1 | 31 " NetrwSettings: {{{1 |
32 fun! netrwSettings#NetrwSettings() | 32 fun! netrwSettings#NetrwSettings() |
33 " this call is here largely just to insure that netrw has been loaded | 33 " this call is here largely just to insure that netrw has been loaded |
34 call netrw#SavePosn() | 34 call netrw#WinPath("") |
35 if !exists("g:loaded_netrw") | 35 if !exists("g:loaded_netrw") |
36 echohl WarningMsg | echomsg "***sorry*** netrw needs to be loaded prior to using NetrwSettings" | echohl None | 36 echohl WarningMsg | echomsg "***sorry*** netrw needs to be loaded prior to using NetrwSettings" | echohl None |
37 return | 37 return |
38 endif | 38 endif |
39 | 39 |