diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-01-10 14:55:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-01-10 14:55:01 +0100 |
commit | 6ee8d89cf9c283992323ab6d9ff3b59390639ee9 (patch) | |
tree | 2ba1ccf8a2cf2060a1dbf92cec962cc445cec05a /runtime/autoload/spellfile.vim | |
parent | 64a72303f8048a1288a03b65350c5d6727a78932 (diff) | |
download | vim-git-6ee8d89cf9c283992323ab6d9ff3b59390639ee9.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/autoload/spellfile.vim')
-rw-r--r-- | runtime/autoload/spellfile.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim index 534acc615..e7fd1d8b1 100644 --- a/runtime/autoload/spellfile.vim +++ b/runtime/autoload/spellfile.vim @@ -1,6 +1,6 @@ " Vim script to download a missing spell file " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2008 Nov 29 +" Last Change: 2012 Jan 08 if !exists('g:spellfile_URL') " Prefer using http:// when netrw should be able to use it, since @@ -70,7 +70,7 @@ function! spellfile#LoadFile(lang) " Remember the buffer number, we check it below. new let newbufnr = winbufnr(0) - setlocal bin + setlocal bin fenc= echo 'Downloading ' . fname . '...' call spellfile#Nread(fname) if getline(2) !~ 'VIMspell' @@ -83,7 +83,7 @@ function! spellfile#LoadFile(lang) " Our buffer has vanished!? Open a new window. echomsg "download buffer disappeared, opening a new one" new - setlocal bin + setlocal bin fenc= else exe winnr . "wincmd w" endif @@ -120,6 +120,7 @@ function! spellfile#LoadFile(lang) else let dirname = escape(dirlist[dirchoice], ' ') endif + setlocal fenc= exe "write " . dirname . '/' . fname " Also download the .sug file, if the user wants to. |