From b8a7b560b1c25a059dfb57cbe40f0a3f98ed8e97 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 1 Feb 2006 21:47:16 +0000 Subject: updated for version 7.0191 --- runtime/plugin/netrwPlugin.vim | 18 ++++++++++++------ runtime/plugin/spellfile.vim | 15 +++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 runtime/plugin/spellfile.vim (limited to 'runtime/plugin') diff --git a/runtime/plugin/netrwPlugin.vim b/runtime/plugin/netrwPlugin.vim index 6e33d51c13..2a691cdc1f 100644 --- a/runtime/plugin/netrwPlugin.vim +++ b/runtime/plugin/netrwPlugin.vim @@ -35,7 +35,7 @@ set cpo&vim " Local Browsing: {{{2 augroup FileExplorer au! - au BufEnter * call s:LocalBrowse(expand("")) + au BufEnter * silent! call s:LocalBrowse(expand("")) augroup END " Network Browsing Reading Writing: {{{2 @@ -47,10 +47,10 @@ augroup Network au BufReadCmd file://* exe "silent doau BufReadPre ".netrw#RFC2396(expand(""))|exe 'e '.substitute(netrw#RFC2396(expand("")),'file://\(.*\)','\1',"")|exe "silent doau BufReadPost ".netrw#RFC2396(expand("")) au BufReadCmd file://localhost/* exe "silent doau BufReadPre ".netrw#RFC2396(expand(""))|exe 'e '.substitute(netrw#RFC2396(expand("")),'file://localhost/\(.*\)','\1',"")|exe "silent doau BufReadPost ".netrw#RFC2396(expand("")) endif - au BufReadCmd ftp://*,rcp://*,scp://*,http://*,dav://*,rsync://*,sftp://* exe "silent doau BufReadPre ".expand("")|exe "Nread 0r ".expand("")|exe "silent doau BufReadPost ".expand("") - au FileReadCmd ftp://*,rcp://*,scp://*,http://*,dav://*,rsync://*,sftp://* exe "silent doau FileReadPre ".expand("")|exe "Nread " .expand("")|exe "silent doau FileReadPost ".expand("") - au BufWriteCmd ftp://*,rcp://*,scp://*,dav://*,rsync://*,sftp://* exe "silent doau BufWritePre ".expand("")|exe "Nwrite " .expand("")|exe "silent doau BufWritePost ".expand("") - au FileWriteCmd ftp://*,rcp://*,scp://*,dav://*,rsync://*,sftp://* exe "silent doau FileWritePre ".expand("")|exe "'[,']Nwrite " .expand("")|exe "silent doau FileWritePost ".expand("") + au BufReadCmd ftp://*,rcp://*,scp://*,http://*,dav://*,rsync://*,sftp://* exe "silent doau BufReadPre ".expand("")|exe 'Nread 0r "'.expand("").'"'|exe "silent doau BufReadPost ".expand("") + au FileReadCmd ftp://*,rcp://*,scp://*,http://*,dav://*,rsync://*,sftp://* exe "silent doau FileReadPre ".expand("")|exe 'Nread "' .expand("").'"'|exe "silent doau FileReadPost ".expand("") + au BufWriteCmd ftp://*,rcp://*,scp://*,dav://*,rsync://*,sftp://* exe "silent doau BufWritePre ".expand("")|exe 'Nwrite "' .expand("").'"'|exe "silent doau BufWritePost ".expand("") + au FileWriteCmd ftp://*,rcp://*,scp://*,dav://*,rsync://*,sftp://* exe "silent doau FileWritePre ".expand("")|exe "'[,']".'Nwrite "' .expand("").'"'|exe "silent doau FileWritePost ".expand("") augroup END " Commands: :Nread, :Nwrite, :NetUserPass {{{2 @@ -69,6 +69,12 @@ com! -nargs=? -bar -bang Pexplore call netrw#Explore(-2,0,0,) " Commands: NetrwSettings {{{2 com! -nargs=0 NetrwSettings :call netrwSettings#NetrwSettings() +" Maps: +if !hasmapto('NetrwBrowseX') + nmap gx NetrwBrowseX +endif +nno NetrwBrowseX :call netrw#NetBrowseX(expand(""),0) + " --------------------------------------------------------------------- " LocalBrowse: {{{2 fun! s:LocalBrowse(dirname) @@ -76,7 +82,7 @@ fun! s:LocalBrowse(dirname) " the BufEnter event causes triggering when attempts to write to " the DBG buffer are made. if isdirectory(a:dirname) - call netrw#DirBrowse(a:dirname) + silent! call netrw#DirBrowse(a:dirname) endif " not a directory, ignore it endfun diff --git a/runtime/plugin/spellfile.vim b/runtime/plugin/spellfile.vim new file mode 100644 index 0000000000..437296090c --- /dev/null +++ b/runtime/plugin/spellfile.vim @@ -0,0 +1,15 @@ +" Vim plugin for downloading spell files +" Maintainer: Bram Moolenaar +" Last Change: 2006 Feb 01 + +" Exit quickly when: +" - this plugin was already loaded +" - when 'compatible' is set +" - some autocommands are already taking care of spell files +if exists("loaded_spellfile_plugin") || &cp || exists("#SpellFileMissing") + finish +endif +let loaded_spellfile_plugin = 1 + +" The function is in the autoload directory. +autocmd SpellFileMissing * call spellfile#LoadFile(expand('')) -- cgit v1.2.3