mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Merge branch 'vim73' into macvim73
Conflicts: src/normal.c src/vim.h
This commit is contained in:
@@ -9,10 +9,10 @@ Vim Vi IMproved. A clone of the UNIX text editor Vi. Very useful
|
||||
messages, shows current file name in window title, on-line
|
||||
help, rectangular cut/paste, etc., etc., etc...
|
||||
|
||||
Version 7.3c. Also runs under UNIX, MSDOS and other systems.
|
||||
vim73crt.tgz contains the documentation and syntax files.
|
||||
vim73cbin.tgz contains the binaries.
|
||||
vim73csrc.tgz contains the sources.
|
||||
Version 7.3d. Also runs under UNIX, MSDOS and other systems.
|
||||
vim73drt.tgz contains the documentation and syntax files.
|
||||
vim73dbin.tgz contains the binaries.
|
||||
vim73dsrc.tgz contains the sources.
|
||||
Author: Bram Moolenaar et al.
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
||||
# Before creating an archive first delete all backup files, *.orig, etc.
|
||||
|
||||
MAJOR = 7
|
||||
MINOR = 3c
|
||||
MINOR = 3d
|
||||
|
||||
# Uncomment this line if the Win32s version is to be included.
|
||||
DOSBIN_S = dosbin_s
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
|
||||
WHAT IS VIM
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_ami.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_ami.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on Amiga systems.
|
||||
See README.txt for general information about Vim.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_amibin.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_amibin.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
See "README.txt" for general information about Vim.
|
||||
See "README_ami.txt" for installation instructions for the Amiga.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_amisrc.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_amisrc.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
See "README.txt" for general information about Vim.
|
||||
See "README_ami.txt" for installation instructions for the Amiga.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_bindos.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_bindos.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
See "README.txt" for general information about Vim.
|
||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_dos.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_dos.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_extra.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_extra.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
The extra archive of Vim is to be used in combination with the source archive
|
||||
(vim-7.2-src.tar.gz). The extra archive is useless without it.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_lang.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_lang.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This file contains files for non-English languages:
|
||||
- Translated messages.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_mac.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_mac.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on Macintosh systems.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
README_ole.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_ole.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This archive contains gvim.exe with OLE interface and VisVim.
|
||||
This version of gvim.exe can also load a number of interface dynamically (you
|
||||
@@ -16,5 +16,5 @@ Win32 with OLE - "MS-Windows 32 bit GUI version with OLE support"
|
||||
For further information, type this inside Vim:
|
||||
:help if_ole
|
||||
|
||||
Futhermore, this archive contains VISVIM.DLL. It can be used to integrate
|
||||
Furthermore, this archive contains VISVIM.DLL. It can be used to integrate
|
||||
the OLE gvim with Microsoft Visual Developer Studio. See VisVim/README.txt.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_os2.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_os2.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on OS/2 systems.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
README_zOS.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_zOS.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
||||
Most likley there are not many users out there using Vim on z/OS. So chances
|
||||
Most likely there are not many users out there using Vim on z/OS. So chances
|
||||
are good, that some bugs are still undiscovered.
|
||||
|
||||
Getting the source to z/OS:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_src.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_src.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
The source archive contains the files needed to compile Vim on Unix systems.
|
||||
It is packed for Unix systems (NL line separator). It is also used for other
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_srcdos.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_srcdos.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
See "README.txt" for general information about Vim.
|
||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_unix.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_unix.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on Unix systems.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_vms.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_vms.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on VMS systems.
|
||||
See "README.txt" in the runtime archive for information about Vim.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
README_w32s.txt for version 7.3c of Vim: Vi IMproved.
|
||||
README_w32s.txt for version 7.3d of Vim: Vi IMproved.
|
||||
|
||||
This archive contains the gvim.exe that was specifically compiled for use in
|
||||
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
# NSIS file to create a self-installing exe for Vim.
|
||||
# It requires NSIS version 2.0 or later.
|
||||
# Last change: 2004 May 02
|
||||
# Last Change: 2010 Jul 30
|
||||
|
||||
# WARNING: if you make changes to this script, look out for $0 to be valid,
|
||||
# because uninstall deletes most files in $0.
|
||||
@@ -22,7 +22,7 @@
|
||||
!define HAVE_NLS
|
||||
|
||||
!define VER_MAJOR 7
|
||||
!define VER_MINOR 3c
|
||||
!define VER_MINOR 3d
|
||||
|
||||
# ----------- No configurable settings below this line -----------
|
||||
|
||||
@@ -450,7 +450,7 @@ Section Uninstall
|
||||
AskRemove:
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION \
|
||||
"Remove all files in your $1\vimfiles directory? \
|
||||
$\nIf you have created something there that you want to keep, click No" IDNO Fin
|
||||
$\nCAREFUL: If you have created something there that you want to keep, click No" IDNO Fin
|
||||
RMDir /r $1\vimfiles
|
||||
NoRemove:
|
||||
|
||||
|
||||
+117
-114
@@ -1,10 +1,10 @@
|
||||
" netrw.vim: Handles file transfer and remote directory listing across
|
||||
" AUTOLOAD SECTION
|
||||
" Date: May 14, 2010
|
||||
" Version: 138
|
||||
" Date: Jul 27, 2010
|
||||
" Version: 140
|
||||
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
|
||||
" Copyright: Copyright (C) 1999-2009 Charles E. Campbell, Jr. {{{1
|
||||
" Copyright: Copyright (C) 1999-2010 Charles E. Campbell, Jr. {{{1
|
||||
" Permission is hereby granted to use and distribute this code,
|
||||
" with or without modifications, provided that this copyright
|
||||
" notice is copied with it. Like anything else that's free,
|
||||
@@ -22,7 +22,7 @@
|
||||
if &cp || exists("g:loaded_netrw")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_netrw = "v138"
|
||||
let g:loaded_netrw = "v140"
|
||||
if v:version < 702
|
||||
echohl WarningMsg
|
||||
echo "***warning*** this version of netrw needs vim 7.2"
|
||||
@@ -153,6 +153,7 @@ call s:NetrwInit("g:netrw_alto" , &sb)
|
||||
call s:NetrwInit("g:netrw_altv" , &spr)
|
||||
call s:NetrwInit("g:netrw_banner" , 1)
|
||||
call s:NetrwInit("g:netrw_browse_split", 0)
|
||||
call s:NetrwInit("g:netrw_bufsettings" , "noma nomod nonu nobl nowrap ro")
|
||||
call s:NetrwInit("g:netrw_chgwin" , -1)
|
||||
call s:NetrwInit("g:netrw_compress" , "gzip")
|
||||
call s:NetrwInit("g:netrw_ctags" , "ctags")
|
||||
@@ -163,7 +164,7 @@ if !exists("g:netrw_cursorline")
|
||||
endif
|
||||
" Default values - d-g ---------- {{{3
|
||||
call s:NetrwInit("g:netrw_dirhist_cnt" , 0)
|
||||
call s:NetrwInit("g:netrw_decompress" , '{ ".gz" : "gunzip", ".bz2" : "bunzip2", ".zip" : "unzip", ".tar" : "tar -xf"}')
|
||||
call s:NetrwInit("g:netrw_decompress" , '{ ".gz" : "gunzip", ".bz2" : "bunzip2", ".zip" : "unzip", ".tar" : "tar -xf", ".xz" : "unxz" }')
|
||||
call s:NetrwInit("g:netrw_dirhistmax" , 10)
|
||||
call s:NetrwInit("g:netrw_fastbrowse" , 1)
|
||||
call s:NetrwInit("g:netrw_ftp_browse_reject", '^total\s\+\d\+$\|^Trying\s\+\d\+.*$\|^KERBEROS_V\d rejected\|^Security extensions not\|No such file\|: connect to address [0-9a-fA-F:]*: No route to host$')
|
||||
@@ -325,7 +326,7 @@ fun! s:NetrwOptionSave(vt)
|
||||
" call Dret("s:NetrwOptionSave : options already saved")
|
||||
return
|
||||
endif
|
||||
" call Decho("fo=".&fo.(exists("&acd")? " acd=".&acd : " acd doesn't exist"))
|
||||
" call Decho("fo=".&fo.(exists("&acd")? " acd=".&acd : " acd doesn't exist")." diff=".&l:diff)
|
||||
|
||||
" Save current settings and current directory
|
||||
let s:yykeep = @@
|
||||
@@ -340,6 +341,7 @@ fun! s:NetrwOptionSave(vt)
|
||||
let {a:vt}netrw_cinokeep = &l:cino
|
||||
let {a:vt}netrw_comkeep = &l:com
|
||||
let {a:vt}netrw_cpokeep = &l:cpo
|
||||
let {a:vt}netrw_diffkeep = &l:diff
|
||||
if g:netrw_keepdir
|
||||
let {a:vt}netrw_dirkeep = getcwd()
|
||||
endif
|
||||
@@ -349,6 +351,7 @@ fun! s:NetrwOptionSave(vt)
|
||||
let {a:vt}netrw_imkeep = &l:im
|
||||
let {a:vt}netrw_magickeep = &l:magic
|
||||
let {a:vt}netrw_repkeep = &l:report
|
||||
let {a:vt}netrw_selkeep = &l:sel
|
||||
let {a:vt}netrw_spellkeep = &l:spell
|
||||
let {a:vt}netrw_twkeep = &l:tw " textwidth
|
||||
let {a:vt}netrw_wigkeep = &l:wig " wildignore
|
||||
@@ -398,6 +401,7 @@ fun! s:NetrwOptionRestore(vt)
|
||||
if exists("{a:vt}netrw_cinokeep") |let &l:cino = {a:vt}netrw_cinokeep |unlet {a:vt}netrw_cinokeep |endif
|
||||
if exists("{a:vt}netrw_comkeep") |let &l:com = {a:vt}netrw_comkeep |unlet {a:vt}netrw_comkeep |endif
|
||||
if exists("{a:vt}netrw_cpokeep") |let &l:cpo = {a:vt}netrw_cpokeep |unlet {a:vt}netrw_cpokeep |endif
|
||||
if exists("{a:vt}netrw_diffkeep") |let &l:diff = {a:vt}netrw_diffkeep |unlet {a:vt}netrw_diffkeep |endif
|
||||
if exists("{a:vt}netrw_dirkeep") && isdirectory({a:vt}netrw_dirkeep) && g:netrw_keepdir
|
||||
let dirkeep = substitute({a:vt}netrw_dirkeep,'\\','/','g')
|
||||
if exists("{a:vt}netrw_dirkeep") |exe "keepjumps lcd ".fnameescape(dirkeep)|unlet {a:vt}netrw_dirkeep |endif
|
||||
@@ -408,6 +412,7 @@ fun! s:NetrwOptionRestore(vt)
|
||||
if exists("{a:vt}netrw_imkeep") |let &l:im = {a:vt}netrw_imkeep |unlet {a:vt}netrw_imkeep |endif
|
||||
if exists("{a:vt}netrw_magic") |let &l:magic = {a:vt}netrw_magic |unlet {a:vt}netrw_magic |endif
|
||||
if exists("{a:vt}netrw_repkeep") |let &l:report = {a:vt}netrw_repkeep |unlet {a:vt}netrw_repkeep |endif
|
||||
if exists("{a:vt}netrw_selkeep") |let &l:sel = {a:vt}netrw_selkeep |unlet {a:vt}netrw_selkeep |endif
|
||||
if exists("{a:vt}netrw_spellkeep")|let &l:spell = {a:vt}netrw_spellkeep |unlet {a:vt}netrw_spellkeep|endif
|
||||
if exists("{a:vt}netrw_twkeep") |let &l:tw = {a:vt}netrw_twkeep |unlet {a:vt}netrw_twkeep |endif
|
||||
if exists("{a:vt}netrw_wigkeep") |let &l:wig = {a:vt}netrw_wigkeep |unlet {a:vt}netrw_wigkeep |endif
|
||||
@@ -433,6 +438,7 @@ fun! s:NetrwOptionRestore(vt)
|
||||
" call Decho("g:netrw_keepdir=".g:netrw_keepdir.": getcwd<".getcwd()."> acd=".&acd)
|
||||
" call Decho("fo=".&fo.(exists("&acd")? " acd=".&acd : " acd doesn't exist"))
|
||||
" call Decho("ro=".&l:ro." ma=".&l:ma." mod=".&l:mod." wrap=".&l:wrap)
|
||||
" call Decho("diff=".&l:diff." win#".winnr()." w:netrw_diffkeep=".(exists("w:netrw_diffkeep")? w:netrw_diffkeep : "doesn't exist"))
|
||||
" call Dret("s:NetrwOptionRestore : win#".winnr()." buf#".bufnr("%"))
|
||||
endfun
|
||||
|
||||
@@ -450,12 +456,14 @@ fun! s:NetrwSafeOptions()
|
||||
setlocal tw=0
|
||||
setlocal report=10000
|
||||
setlocal isk+=@ isk+=* isk+=/
|
||||
setlocal sel=inclusive
|
||||
if g:netrw_use_noswf && has("win32") && !has("win95")
|
||||
setlocal noswf
|
||||
endif
|
||||
call s:NetrwCursorline()
|
||||
|
||||
" allow the user to override safe options
|
||||
" call Decho("ft<".&ft."> ei=".&ei)
|
||||
if &ft == "netrw"
|
||||
" call Decho("do any netrw FileType autocmds")
|
||||
silent keepalt keepjumps doau FileType netrw
|
||||
@@ -920,7 +928,7 @@ fun! netrw#NetRead(mode,...)
|
||||
unlet b:netrw_method
|
||||
unlet b:netrw_fname
|
||||
endif
|
||||
if s:FileReadable(tmpfile) && tmpfile !~ '.tar.bz2$' && tmpfile !~ '.tar.gz$' && tmpfile !~ '.zip' && tmpfile !~ '.tar' && readcmd != 't'
|
||||
if s:FileReadable(tmpfile) && tmpfile !~ '.tar.bz2$' && tmpfile !~ '.tar.gz$' && tmpfile !~ '.zip' && tmpfile !~ '.tar' && readcmd != 't' && tmpfile !~ '.tar.xz$' && tmpfile !~ '.txz'
|
||||
" call Decho("cleanup by deleting tmpfile<".tmpfile.">")
|
||||
call s:NetrwDelete(tmpfile)
|
||||
endif
|
||||
@@ -1371,8 +1379,8 @@ fun! s:NetrwGetFile(readcmd, tfile, method)
|
||||
else
|
||||
let tfile= a:tfile
|
||||
endif
|
||||
" call Decho("exe silent! keepalt file ".fnameescape(tfile))
|
||||
exe "silent! keepalt file ".fnameescape(tfile)
|
||||
" call Decho("exe sil! keepalt file ".fnameescape(tfile))
|
||||
exe "sil! keepalt file ".fnameescape(tfile)
|
||||
|
||||
" edit temporary file (ie. read the temporary file in)
|
||||
if rfile =~ '\.zip$'
|
||||
@@ -1381,19 +1389,25 @@ fun! s:NetrwGetFile(readcmd, tfile, method)
|
||||
elseif rfile =~ '\.tar$'
|
||||
" call Decho("handling remote tar file with tar#Browse(tfile<".tfile.">)")
|
||||
call tar#Browse(tfile)
|
||||
elseif rfile =~ '\.tar\.gz'
|
||||
elseif rfile =~ '\.tar\.gz$'
|
||||
" call Decho("handling remote gzip-compressed tar file")
|
||||
call tar#Browse(tfile)
|
||||
elseif rfile =~ '\.tar\.bz2'
|
||||
elseif rfile =~ '\.tar\.bz2$'
|
||||
" call Decho("handling remote bz2-compressed tar file")
|
||||
call tar#Browse(tfile)
|
||||
elseif rfile =~ '\.tar\.xz$'
|
||||
" call Decho("handling remote xz-compressed tar file")
|
||||
call tar#Browse(tfile)
|
||||
elseif rfile =~ '\.txz$'
|
||||
" call Decho("handling remote xz-compressed tar file (.txz)")
|
||||
call tar#Browse(tfile)
|
||||
else
|
||||
" call Decho("edit temporary file")
|
||||
e!
|
||||
endif
|
||||
|
||||
" rename buffer back to remote filename
|
||||
" call Decho("exe silent! keepalt file ".fnameescape(rfile))
|
||||
" call Decho("exe sil! keepalt file ".fnameescape(rfile))
|
||||
exe "sil! keepalt file ".fnameescape(rfile)
|
||||
filetype detect
|
||||
" call Dredir("renamed buffer back to remote filename<".rfile."> : expand(%)<".expand("%").">","ls!")
|
||||
@@ -2242,8 +2256,6 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
if !exists("s:netrw_initbookhist")
|
||||
call s:NetrwBookHistRead()
|
||||
endif
|
||||
" call FOTEST(7)
|
||||
"call Decho("COMBAK#01 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
" simplify the dirname (especially for ".."s in dirnames)
|
||||
if a:dirname !~ '^\a\+://'
|
||||
@@ -2251,8 +2263,6 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
else
|
||||
let dirname= a:dirname
|
||||
endif
|
||||
" call FOTEST(8)
|
||||
"call Decho("COMBAK#02 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
if exists("s:netrw_skipbrowse")
|
||||
unlet s:netrw_skipbrowse
|
||||
@@ -2271,17 +2281,13 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
return
|
||||
endif
|
||||
|
||||
call s:NetrwOptionSave("w:")
|
||||
" call FOTEST(9)
|
||||
"call Decho("COMBAK#03 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
call s:NetrwOptionSave("w:")
|
||||
|
||||
" re-instate any marked files
|
||||
if exists("s:netrwmarkfilelist_{bufnr('%')}")
|
||||
" call Decho("clearing marked files")
|
||||
exe "2match netrwMarkFile /".s:netrwmarkfilemtch_{bufnr("%")}."/"
|
||||
endif
|
||||
" call FOTEST(10)
|
||||
"call Decho("COMBAK#04 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
if a:islocal && exists("w:netrw_acdkeep") && w:netrw_acdkeep
|
||||
" call Decho("handle w:netrw_acdkeep:")
|
||||
@@ -2308,11 +2314,11 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
setlocal ma noro
|
||||
" call Decho("setlocal ma noro")
|
||||
let b:netrw_curdir= dirname
|
||||
" call Decho("exe silent! keepalt file ".fnameescape(s:method."://".s:user.s:machine."/".s:path)." (bt=".&bt.")")
|
||||
" call Decho("exe sil! keepalt file ".fnameescape(s:method."://".s:user.s:machine."/".s:path)." (bt=".&bt.")")
|
||||
exe "sil! keepalt file ".fnameescape(s:method."://".s:user.s:machine."/".s:path)
|
||||
exe "sil keepalt doau BufReadPre ".fnameescape(s:fname)
|
||||
exe "sil! keepalt doau BufReadPre ".fnameescape(s:fname)
|
||||
silent call netrw#NetRead(2,s:method."://".s:user.s:machine."/".s:path)
|
||||
if s:path !~ '.tar.bz2$' && s:path !~ '.tar.gz'
|
||||
if s:path !~ '.tar.bz2$' && s:path !~ '.tar.gz' && s:path !~ '.tar.xz' && s:path !~ '.txz'
|
||||
" netrw.vim and tar.vim have already handled decompression of the tarball; avoiding gzip.vim error
|
||||
exe "sil keepalt doau BufReadPost ".fnameescape(s:fname)
|
||||
endif
|
||||
@@ -2326,8 +2332,6 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
" call Dret("s:NetrwBrowse : file<".s:fname.">")
|
||||
return
|
||||
endif
|
||||
" call FOTEST(11)
|
||||
"call Decho("COMBAK#05 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
" use buffer-oriented WinVars if buffer ones exist but window ones don't {{{3
|
||||
call s:UseBufWinVars()
|
||||
@@ -2339,8 +2343,6 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
|
||||
" set up menu {{{3
|
||||
call s:NetrwMenu(1)
|
||||
" call FOTEST(12)
|
||||
"call Decho("COMBAK#06 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
" set up buffer {{{3
|
||||
let reusing= s:NetrwGetBuffer(a:islocal,dirname)
|
||||
@@ -2360,12 +2362,10 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
" call Dret("s:NetrwBrowse : re-using buffer")
|
||||
return
|
||||
endif
|
||||
"" call FOTEST(13) " PROBLEM WITH LISTING
|
||||
"call Decho("COMBAK#07 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
" set b:netrw_curdir to the new directory name {{{3
|
||||
" call Decho("set b:netrw_curdir to the new directory name: (buf#".bufnr("%").")")
|
||||
let b:netrw_curdir= dirname
|
||||
let b:netrw_curdir= dirname
|
||||
if b:netrw_curdir =~ '[/\\]$'
|
||||
let b:netrw_curdir= substitute(b:netrw_curdir,'[/\\]$','','e')
|
||||
endif
|
||||
@@ -2383,8 +2383,6 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
let b:netrw_curdir= b:netrw_curdir.'/'
|
||||
endif
|
||||
" call Decho("b:netrw_curdir<".b:netrw_curdir.">")
|
||||
"" call FOTEST(14) " PROBLEM WITH LISTING
|
||||
"call Decho("COMBAK#08 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
" ------------
|
||||
" (local only) {{{3
|
||||
@@ -2456,17 +2454,12 @@ fun! s:NetrwBrowse(islocal,dirname)
|
||||
let b:netrw_curdir= dirname
|
||||
" call Decho("b:netrw_curdir<".b:netrw_curdir."> (remote)")
|
||||
endif " (additional remote handling)
|
||||
"" call FOTEST(15) " PROBLEM WITH LISTING
|
||||
"call Decho("COMBAK#09 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
" -----------------------
|
||||
" Directory Listing: {{{3
|
||||
" -----------------------
|
||||
call s:BrowserMaps(a:islocal)
|
||||
"" call FOTEST(16) " PROBLEM WITH LISTING
|
||||
call s:PerformListing(a:islocal)
|
||||
" call FOTEST(17)
|
||||
"call Decho("COMBAK#10 buf(%)#".bufnr("%")."<".bufname("%")."> win#".winnr()." bufnr(win#1)=".winbufnr(1)."<".bufname(winbufnr(1))." bufnr(win#2)=".winbufnr(2)."<".bufname(winbufnr(2)).">")
|
||||
|
||||
" The s:LocalBrowseShellCmdRefresh() function is called by an autocmd
|
||||
" installed by s:LocalFastBrowser() when g:netrw_fastbrowse <= 1 (ie. slow, medium speed).
|
||||
@@ -2534,7 +2527,7 @@ fun! s:NetrwGetBuffer(islocal,dirname)
|
||||
" call Decho(" re-use w:netrw_treebufnr=".w:netrw_treebufnr)
|
||||
let eikeep= &ei
|
||||
set ei=all
|
||||
exe "b ".w:netrw_treebufnr
|
||||
exe "sil! b ".w:netrw_treebufnr
|
||||
let &ei= eikeep
|
||||
" call Dret("s:NetrwGetBuffer : bufnum#".w:netrw_treebufnr."<NetrwTreeListing>")
|
||||
return
|
||||
@@ -2614,7 +2607,7 @@ fun! s:NetrwGetBuffer(islocal,dirname)
|
||||
endif
|
||||
|
||||
" get enew buffer and name it -or- re-use buffer {{{3
|
||||
keepj mark '
|
||||
sil! keepj mark '
|
||||
if bufnum < 0 || !bufexists(bufnum)
|
||||
" call Decho("--get enew buffer and name it (bufexists([bufnum=".bufnum."])=".bufexists(bufnum).")")
|
||||
call s:NetrwEnew(dirname)
|
||||
@@ -2629,7 +2622,7 @@ fun! s:NetrwGetBuffer(islocal,dirname)
|
||||
let s:netrw_treelistnum= s:netrw_treelistnum + 1
|
||||
endif
|
||||
let w:netrw_treebufnr= bufnr("%")
|
||||
" call Decho(" exe silent! keepalt file NetrwTreeListing ".fnameescape(s:netrw_treelistnum))
|
||||
" call Decho(" exe sil! keepalt file NetrwTreeListing ".fnameescape(s:netrw_treelistnum))
|
||||
exe 'sil! keepalt file NetrwTreeListing\ '.fnameescape(s:netrw_treelistnum)
|
||||
set bt=nofile noswf
|
||||
nnoremap <silent> <buffer> [ :silent call <SID>TreeListMove('[')<cr>
|
||||
@@ -2641,7 +2634,7 @@ fun! s:NetrwGetBuffer(islocal,dirname)
|
||||
" let v:errmsg= "" " Decho
|
||||
let escdirname= fnameescape(dirname)
|
||||
" call Decho(" errmsg<".v:errmsg."> bufnr(escdirname<".escdirname.">)=".bufnr(escdirname)." bufname()<".bufname(bufnr(escdirname)).">")
|
||||
" call Decho(' exe silent! keepalt file '.escdirname)
|
||||
" call Decho(' exe sil! keepalt file '.escdirname)
|
||||
" let v:errmsg= "" " Decho
|
||||
exe 'sil! keepalt file '.escdirname
|
||||
" call Decho(" errmsg<".v:errmsg."> bufnr(".escdirname.")=".bufnr(escdirname)."<".bufname(bufnr(escdirname)).">")
|
||||
@@ -2654,13 +2647,13 @@ fun! s:NetrwGetBuffer(islocal,dirname)
|
||||
set ei=all
|
||||
if getline(2) =~ '^" Netrw Directory Listing'
|
||||
" call Decho(" re-use buffer#".bufnum."<".((bufnum > 0)? bufname(bufnum) : "")."> using: keepalt b ".bufnum)
|
||||
exe "keepalt b ".bufnum
|
||||
exe "sil! keepalt b ".bufnum
|
||||
else
|
||||
" call Decho(" reusing buffer#".bufnum."<".((bufnum > 0)? bufname(bufnum) : "")."> using: b ".bufnum)
|
||||
exe "b ".bufnum
|
||||
exe "sil! b ".bufnum
|
||||
endif
|
||||
if bufname("%") == '.'
|
||||
" call Decho("exe silent! keepalt file ".fnameescape(getcwd()))
|
||||
" call Decho("exe sil! keepalt file ".fnameescape(getcwd()))
|
||||
exe "sil! keepalt file ".fnameescape(getcwd())
|
||||
endif
|
||||
let &ei= eikeep
|
||||
@@ -2689,8 +2682,8 @@ fun! s:NetrwGetBuffer(islocal,dirname)
|
||||
" call Decho("--do netrw settings: make this buffer#".bufnr("%")." not-a-file, modifiable, not line-numbered, etc--")
|
||||
let fname= expand("%")
|
||||
call s:NetrwListSettings(a:islocal)
|
||||
" call Decho("exe keepalt file ".fnameescape(fname))
|
||||
exe "keepalt file ".fnameescape(fname)
|
||||
" call Decho("exe sil! keepalt file ".fnameescape(fname))
|
||||
exe "sil! keepalt file ".fnameescape(fname)
|
||||
|
||||
" delete all lines from buffer {{{3
|
||||
" call Decho("--delete all lines from buffer--")
|
||||
@@ -2831,8 +2824,8 @@ fun! s:NetrwListSettings(islocal)
|
||||
let fname= bufname("%")
|
||||
" call Decho("setlocal bt=nofile nobl ma nonu nowrap noro")
|
||||
setlocal bt=nofile nobl ma nonu nowrap noro
|
||||
" call Decho("exe keepalt file ".fnameescape(fname))
|
||||
exe "keepalt file ".fnameescape(fname)
|
||||
" call Decho("exe sil! keepalt file ".fnameescape(fname))
|
||||
exe "sil! keepalt file ".fnameescape(fname)
|
||||
if g:netrw_use_noswf
|
||||
setlocal noswf
|
||||
endif
|
||||
@@ -2891,7 +2884,7 @@ fun! s:NetrwListStyle(islocal)
|
||||
|
||||
" clear buffer - this will cause NetrwBrowse/LocalBrowseCheck to do a refresh
|
||||
" call Decho("clear buffer<".expand("%")."> with :%d")
|
||||
keepj %d
|
||||
sil! keepj %d
|
||||
" following prevents tree listing buffer from being marked "modified"
|
||||
setlocal nomod
|
||||
|
||||
@@ -2903,11 +2896,11 @@ fun! s:NetrwListStyle(islocal)
|
||||
call s:NetrwCursorline()
|
||||
|
||||
" keep cursor on the filename
|
||||
sil keepj $
|
||||
sil! keepj $
|
||||
let result= search('\%(^\%(|\+\s\)\=\|\s\{2,}\)\zs'.escape(fname,'.\[]*$^').'\%(\s\{2,}\|$\)','bc')
|
||||
" call Decho("search result=".result." w:netrw_bannercnt=".(exists("w:netrw_bannercnt")? w:netrw_bannercnt : 'N/A'))
|
||||
if result <= 0 && exists("w:netrw_bannercnt")
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepj ".w:netrw_bannercnt
|
||||
endif
|
||||
|
||||
" call Dret("NetrwListStyle".(exists("w:netrw_liststyle")? ' : w:netrw_liststyle='.w:netrw_liststyle : ""))
|
||||
@@ -3095,6 +3088,7 @@ fun! s:NetrwBrowseChgDir(islocal,newdir,...)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
" the point where netrw actually edits the (local) file
|
||||
" if its local only: LocalBrowseCheck() doesn't edit a file, but NetrwBrowse() will
|
||||
if a:islocal
|
||||
@@ -3110,9 +3104,12 @@ fun! s:NetrwBrowseChgDir(islocal,newdir,...)
|
||||
" or as a list of function references. It will ignore anything that's not
|
||||
" a function reference. See :help Funcref for information about function references.
|
||||
if exists("g:Netrw_funcref")
|
||||
" call Decho("handle optional Funcrefs")
|
||||
if type(g:Netrw_funcref) == 2
|
||||
" call Decho("handling a g:Netrw_funcref")
|
||||
call g:Netrw_funcref()
|
||||
elseif type(g:Netrw_funcref) == 3
|
||||
" call Decho("handling a list of g:Netrw_funcrefs")
|
||||
for Fncref in g:Netrw_funcref
|
||||
if type(FncRef) == 2
|
||||
call FncRef()
|
||||
@@ -3246,8 +3243,14 @@ fun! s:NetrwBrowseChgDir(islocal,newdir,...)
|
||||
|
||||
call s:NetrwOptionRestore("s:")
|
||||
if dolockout
|
||||
" call Decho("doing modification lockout settings: ma nomod noro")
|
||||
setlocal ma nomod noro
|
||||
" call Decho("filewritable(dirname<".dirname.">)=".filewritable(dirname))
|
||||
if filewritable(dirname)
|
||||
" call Decho("doing modification lockout settings: ma nomod noro")
|
||||
setlocal ma nomod noro
|
||||
else
|
||||
" call Decho("doing modification lockout settings: ma nomod ro")
|
||||
setlocal ma nomod ro
|
||||
endif
|
||||
" call Decho("setlocal ma nomod noro")
|
||||
endif
|
||||
|
||||
@@ -3510,7 +3513,6 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
||||
let curdir = simplify(b:netrw_curdir)
|
||||
let curfiledir = substitute(expand("%:p"),'^\(.*[/\\]\)[^/\\]*$','\1','e')
|
||||
" call Decho("curdir<".curdir."> curfiledir<".curfiledir.">")
|
||||
" call FOTEST(1)
|
||||
|
||||
" save registers
|
||||
sil! let keepregstar = @*
|
||||
@@ -3561,7 +3563,6 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
||||
" call Decho("case a:dosplit=".a:dosplit." AND modified=".&modified." AND a:style=".a:style." is not 6")
|
||||
endif
|
||||
keepj norm! 0
|
||||
" call FOTEST(2)
|
||||
|
||||
if a:0 > 0
|
||||
" call Decho("case [a:0=".a:0."] > 0: a:1<".a:1.">")
|
||||
@@ -3596,7 +3597,6 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
||||
return
|
||||
endif
|
||||
|
||||
" call FOTEST(3)
|
||||
" call Decho("dirname<".dirname.">")
|
||||
if dirname =~ '\.\./\=$'
|
||||
let dirname= simplify(fnamemodify(dirname,':p:h'))
|
||||
@@ -3648,7 +3648,6 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
||||
let starpat= 0
|
||||
" call Decho("default case: starpat=".starpat)
|
||||
endif
|
||||
" call FOTEST(4)
|
||||
|
||||
if starpat == 0 && a:indx >= 0
|
||||
" [Explore Hexplore Vexplore Sexplore] [dirname]
|
||||
@@ -3875,7 +3874,6 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
||||
call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,newdir))
|
||||
endif
|
||||
endif
|
||||
" call FOTEST(5)
|
||||
|
||||
" visual display of **/ **// */ Exploration files
|
||||
" call Decho("w:netrw_explore_indx=".(exists("w:netrw_explore_indx")? w:netrw_explore_indx : "doesn't exist"))
|
||||
@@ -3920,7 +3918,6 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
||||
echo " "
|
||||
" call Decho("cleared explore match list")
|
||||
endif
|
||||
" call FOTEST(6)
|
||||
|
||||
sil! let @* = keepregstar
|
||||
sil! let @+ = keepregstar
|
||||
@@ -4390,7 +4387,7 @@ endfun
|
||||
" using g:netrw_compress_suffix to know which to
|
||||
" do. By default:
|
||||
" g:netrw_compress = "gzip"
|
||||
" g:netrw_decompress = { ".gz" : "gunzip" , ".bz2" : "bunzip2" , ".zip" : "unzip" , ".tar" : "tar -xf"}
|
||||
" g:netrw_decompress = { ".gz" : "gunzip" , ".bz2" : "bunzip2" , ".zip" : "unzip" , ".tar" : "tar -xf", ".xz" : "unxz"}
|
||||
fun! s:NetrwMarkFileCompress(islocal)
|
||||
" call Dfunc("s:NetrwMarkFileCompress(islocal=".a:islocal.")")
|
||||
let svpos = netrw#NetrwSavePosn()
|
||||
@@ -4423,6 +4420,7 @@ fun! s:NetrwMarkFileCompress(islocal)
|
||||
endif
|
||||
break
|
||||
endif
|
||||
unlet sfx
|
||||
endfor
|
||||
if exists("exe")
|
||||
unlet exe
|
||||
@@ -5219,6 +5217,7 @@ fun! s:NetrwMenu(domenu)
|
||||
exe 'sil! menu '.g:NetrwMenuPriority.'.9.4 '.g:NetrwTopLvlMenu.'Browsing\ Control.Refresh\ Listing<tab>'."<ctrl-l> \<c-l>"
|
||||
exe 'sil! menu '.g:NetrwMenuPriority.'.9.5 '.g:NetrwTopLvlMenu.'Browsing\ Control.Settings/Options<tab>:NetrwSettings '.":NetrwSettings\<cr>"
|
||||
exe 'sil! menu '.g:NetrwMenuPriority.'.10 '.g:NetrwTopLvlMenu.'Delete\ File/Directory<tab>D D'
|
||||
exe 'sil! menu '.g:NetrwMenuPriority.'.11.1 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.Create\ New\ File<tab>% %'
|
||||
exe 'sil! menu '.g:NetrwMenuPriority.'.11.1 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.In\ Current\ Window<tab><cr> '."\<cr>"
|
||||
exe 'sil! menu '.g:NetrwMenuPriority.'.11.2 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.Preview\ File/Directory<tab>p p'
|
||||
exe 'sil! menu '.g:NetrwMenuPriority.'.11.3 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.In\ Previous\ Window<tab>P P'
|
||||
@@ -5814,7 +5813,7 @@ fun! s:NetrwRefresh(islocal,dirname)
|
||||
setlocal ma noro
|
||||
" call Decho("setlocal ma noro")
|
||||
" call Decho("clear buffer<".expand("%")."> with :%d")
|
||||
keepj %d
|
||||
sil! keepj %d
|
||||
if a:islocal
|
||||
call netrw#LocalBrowseCheck(a:dirname)
|
||||
else
|
||||
@@ -6093,7 +6092,7 @@ fun! s:NetrwTreeDir()
|
||||
" call Decho("user attempted to close treeroot")
|
||||
" now force a refresh
|
||||
" call Decho("clear buffer<".expand("%")."> with :%d")
|
||||
keepj %d
|
||||
sil! keepj %d
|
||||
" call Dret("NetrwTreeDir <".treedir."> : (side effect) s:treecurpos<".string(s:treecurpos).">")
|
||||
return b:netrw_curdir
|
||||
endif
|
||||
@@ -6174,7 +6173,7 @@ fun! s:NetrwTreeDisplay(dir,depth)
|
||||
call s:NetrwTreeDisplay(direntry.'/',depth)
|
||||
else
|
||||
" call Decho("<".entry."> is not a key in treedict (no subtree)")
|
||||
keepj call setline(line("$")+1,depth.entry)
|
||||
sil! keepj call setline(line("$")+1,depth.entry)
|
||||
endif
|
||||
endfor
|
||||
" call Dret("NetrwTreeDisplay")
|
||||
@@ -6206,10 +6205,10 @@ fun! s:NetrwTreeListing(dirname)
|
||||
" update the directory listing for the current directory
|
||||
" call Decho("updating dictionary with ".a:dirname.":[..directory listing..]")
|
||||
" call Decho("bannercnt=".w:netrw_bannercnt." line($)=".line("$"))
|
||||
exe "silent! keepjumps ".w:netrw_bannercnt.',$g@^\.\.\=/$@d'
|
||||
exe "sil! keepj ".w:netrw_bannercnt.',$g@^\.\.\=/$@d'
|
||||
let w:netrw_treedict[a:dirname]= getline(w:netrw_bannercnt,line("$"))
|
||||
" call Decho("w:treedict[".a:dirname."]= ".string(w:netrw_treedict[a:dirname]))
|
||||
exe "silent! keepjumps ".w:netrw_bannercnt.",$d"
|
||||
exe "sil! keepj ".w:netrw_bannercnt.",$d"
|
||||
|
||||
" if past banner, record word
|
||||
if exists("w:netrw_bannercnt") && line(".") > w:netrw_bannercnt
|
||||
@@ -6263,21 +6262,21 @@ fun! s:NetrwWideListing()
|
||||
let newcolstart = w:netrw_bannercnt + fpc
|
||||
let newcolend = newcolstart + fpc - 1
|
||||
" call Decho("bannercnt=".w:netrw_bannercnt." fpl=".w:netrw_fpl." fpc=".fpc." newcol[".newcolstart.",".newcolend."]")
|
||||
silent! let keepregstar = @*
|
||||
sil! let keepregstar = @*
|
||||
while line("$") >= newcolstart
|
||||
if newcolend > line("$") | let newcolend= line("$") | endif
|
||||
let newcolqty= newcolend - newcolstart
|
||||
exe newcolstart
|
||||
if newcolqty == 0
|
||||
exe "sil keepj norm! 0\<c-v>$hx".w:netrw_bannercnt."G$p"
|
||||
exe "sil! keepj norm! 0\<c-v>$hx".w:netrw_bannercnt."G$p"
|
||||
else
|
||||
exe "sil keepj norm! 0\<c-v>".newcolqty.'j$hx'.w:netrw_bannercnt.'G$p'
|
||||
exe "sil! keepj norm! 0\<c-v>".newcolqty.'j$hx'.w:netrw_bannercnt.'G$p'
|
||||
endif
|
||||
exe "sil keepj ".newcolstart.','.newcolend.'d'
|
||||
exe 'sil keepj '.w:netrw_bannercnt
|
||||
exe "sil! keepj ".newcolstart.','.newcolend.'d'
|
||||
exe 'sil! keepj '.w:netrw_bannercnt
|
||||
endwhile
|
||||
silent! let @*= keepregstar
|
||||
exe "sil keepj ".w:netrw_bannercnt.',$s/\s\+$//e'
|
||||
exe "sil! keepj ".w:netrw_bannercnt.',$s/\s\+$//e'
|
||||
call histdel("/",-1)
|
||||
setlocal noma nomod ro
|
||||
" call Dret("NetrwWideListing")
|
||||
@@ -6302,7 +6301,7 @@ fun! s:PerformListing(islocal)
|
||||
if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict")
|
||||
" force a refresh for tree listings
|
||||
" call Decho("force refresh for treelisting: clear buffer<".expand("%")."> with :%d")
|
||||
keepj %d
|
||||
sil! keepj %d
|
||||
endif
|
||||
|
||||
" save current directory on directory history list
|
||||
@@ -6316,7 +6315,7 @@ fun! s:PerformListing(islocal)
|
||||
keepj put ='\" '.b:netrw_curdir
|
||||
keepj 1d
|
||||
let w:netrw_bannercnt= 3
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepj ".w:netrw_bannercnt
|
||||
else
|
||||
keepj 1
|
||||
let w:netrw_bannercnt= 1
|
||||
@@ -6342,7 +6341,7 @@ fun! s:PerformListing(islocal)
|
||||
keepj put ='\" Sorted by '.sortby
|
||||
let w:netrw_bannercnt= w:netrw_bannercnt + 1
|
||||
endif
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepj ".w:netrw_bannercnt
|
||||
endif
|
||||
|
||||
" show copy/move target, if any
|
||||
@@ -6351,15 +6350,15 @@ fun! s:PerformListing(islocal)
|
||||
" call Decho("show copy/move target<".s:netrwmftgt.">")
|
||||
keepj put =''
|
||||
if s:netrwmftgt_islocal
|
||||
keepj call setline(line("."),'" Copy/Move Tgt: '.s:netrwmftgt.' (local)')
|
||||
sil! keepj call setline(line("."),'" Copy/Move Tgt: '.s:netrwmftgt.' (local)')
|
||||
else
|
||||
keepj call setline(line("."),'" Copy/Move Tgt: '.s:netrwmftgt.' (remote)')
|
||||
sil! keepj call setline(line("."),'" Copy/Move Tgt: '.s:netrwmftgt.' (remote)')
|
||||
endif
|
||||
let w:netrw_bannercnt= w:netrw_bannercnt + 1
|
||||
else
|
||||
" call Decho("s:netrwmftgt does not exist, don't make Copy/Move Tgt")
|
||||
endif
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepj ".w:netrw_bannercnt
|
||||
endif
|
||||
|
||||
" Hiding... -or- Showing... {{{3
|
||||
@@ -6382,14 +6381,14 @@ fun! s:PerformListing(islocal)
|
||||
" bannercnt should index the line just after the banner
|
||||
if g:netrw_banner
|
||||
let w:netrw_bannercnt= w:netrw_bannercnt + 1
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepj ".w:netrw_bannercnt
|
||||
" call Decho("bannercnt=".w:netrw_bannercnt." (should index line just after banner) line($)=".line("$"))
|
||||
endif
|
||||
|
||||
" set up syntax highlighting {{{3
|
||||
" call Decho("set up syntax highlighting")
|
||||
if has("syntax")
|
||||
setlocal ft=netrw
|
||||
setf netrw
|
||||
if !exists("g:syntax_on") || !g:syntax_on
|
||||
setlocal ft=
|
||||
endif
|
||||
@@ -6430,7 +6429,7 @@ fun! s:PerformListing(islocal)
|
||||
endif
|
||||
" remove priority pattern prefix
|
||||
" call Decho("remove priority pattern prefix")
|
||||
exe 'sil keepj '.w:netrw_bannercnt.',$s/^\d\{3}'.g:netrw_sepchr.'//e'
|
||||
exe 'sil! keepj '.w:netrw_bannercnt.',$s/^\d\{3}'.g:netrw_sepchr.'//e'
|
||||
call histdel("/",-1)
|
||||
|
||||
elseif a:islocal
|
||||
@@ -6438,12 +6437,12 @@ fun! s:PerformListing(islocal)
|
||||
" call Decho("g:netrw_sort_direction=".g:netrw_sort_direction)
|
||||
if g:netrw_sort_direction =~ 'n'
|
||||
" call Decho('exe silent keepjumps '.w:netrw_bannercnt.',$sort')
|
||||
exe 'sil keepj '.w:netrw_bannercnt.',$sort'.' '.g:netrw_sort_options
|
||||
exe 'sil! keepj '.w:netrw_bannercnt.',$sort'.' '.g:netrw_sort_options
|
||||
else
|
||||
" call Decho('exe silent keepjumps '.w:netrw_bannercnt.',$sort!')
|
||||
exe 'sil keepj '.w:netrw_bannercnt.',$sort!'.' '.g:netrw_sort_options
|
||||
exe 'sil! keepj '.w:netrw_bannercnt.',$sort!'.' '.g:netrw_sort_options
|
||||
endif
|
||||
exe 'sil keepj '.w:netrw_bannercnt.',$s/^\d\{-}\///e'
|
||||
exe 'sil! keepj '.w:netrw_bannercnt.',$s/^\d\{-}\///e'
|
||||
call histdel("/",-1)
|
||||
endif
|
||||
endif
|
||||
@@ -6451,7 +6450,7 @@ fun! s:PerformListing(islocal)
|
||||
elseif g:netrw_sort_direction =~ 'r'
|
||||
" call Decho('reverse the sorted listing')
|
||||
if !g:netrw_banner || w:netrw_bannercnt < line('$')
|
||||
exe 'sil keepj '.w:netrw_bannercnt.',$g/^/m '.w:netrw_bannercnt
|
||||
exe 'sil! keepj '.w:netrw_bannercnt.',$g/^/m '.w:netrw_bannercnt
|
||||
call histdel("/",-1)
|
||||
endif
|
||||
endif
|
||||
@@ -6465,8 +6464,8 @@ fun! s:PerformListing(islocal)
|
||||
if exists("w:netrw_bannercnt") && (line("$") > w:netrw_bannercnt || !g:netrw_banner)
|
||||
" place cursor on the top-left corner of the file listing
|
||||
" call Decho("place cursor on top-left corner of file listing")
|
||||
exe 'sil keepj '.w:netrw_bannercnt
|
||||
keepj norm! 0
|
||||
exe 'sil! keepj '.w:netrw_bannercnt
|
||||
sil! keepj norm! 0
|
||||
endif
|
||||
|
||||
" record previous current directory
|
||||
@@ -6479,7 +6478,7 @@ fun! s:PerformListing(islocal)
|
||||
|
||||
" set display to netrw display settings
|
||||
" call Decho("set display to netrw display settings (noma nomod etc)")
|
||||
setlocal noma nomod nonu nobl nowrap ro
|
||||
exe "setl ".g:netrw_bufsettings
|
||||
if exists("s:treecurpos")
|
||||
|
||||
call netrw#NetrwRestorePosn(s:treecurpos)
|
||||
@@ -6586,16 +6585,16 @@ fun! s:NetrwRemoteListing()
|
||||
endif
|
||||
" call Decho("listcmd<".listcmd."> (using g:netrw_ftp_list_cmd)")
|
||||
call s:NetrwRemoteFtpCmd(s:path,listcmd)
|
||||
" exe "keepj ".w:netrw_bannercnt.',$g/^./call Decho("raw listing: ".getline("."))'
|
||||
" exe "sil! keepalt keepj ".w:netrw_bannercnt.',$g/^./call Decho("raw listing: ".getline("."))'
|
||||
|
||||
if w:netrw_liststyle == s:THINLIST || w:netrw_liststyle == s:WIDELIST || w:netrw_liststyle == s:TREELIST
|
||||
" shorten the listing
|
||||
" call Decho("generate short listing")
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepalt keepj ".w:netrw_bannercnt
|
||||
|
||||
" cleanup
|
||||
if g:netrw_ftp_browse_reject != ""
|
||||
exe "sil! keepj g/".g:netrw_ftp_browse_reject."/keepj d"
|
||||
exe "sil! keepalt keepj g/".g:netrw_ftp_browse_reject."/keepj d"
|
||||
call histdel("/",-1)
|
||||
endif
|
||||
sil! keepj %s/\r$//e
|
||||
@@ -6603,15 +6602,15 @@ fun! s:NetrwRemoteListing()
|
||||
|
||||
" if there's no ../ listed, then put ./ and ../ in
|
||||
let line1= line(".")
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepj ".w:netrw_bannercnt
|
||||
let line2= search('^\.\.\/\%(\s\|$\)','cnW')
|
||||
if line2 == 0
|
||||
" call Decho("netrw is putting ./ and ../ into listing")
|
||||
keepj put='../'
|
||||
keepj put='./'
|
||||
sil! keepj put='../'
|
||||
sil! keepj put='./'
|
||||
endif
|
||||
exe "keepj ".line1
|
||||
keepjumps norm! 0
|
||||
exe "sil! keepj ".line1
|
||||
sil! keepj norm! 0
|
||||
|
||||
" call Decho("line1=".line1." line2=".line2." line(.)=".line("."))
|
||||
if search('^\d\{2}-\d\{2}-\d\{2}\s','n') " M$ ftp site cleanup
|
||||
@@ -6636,25 +6635,25 @@ fun! s:NetrwRemoteListing()
|
||||
" call Decho("listcmd<".listcmd."> (using g:netrw_list_cmd)")
|
||||
if g:netrw_scp_cmd =~ '^pscp'
|
||||
" call Decho("1: exe silent r! ".shellescape(listcmd.s:path, 1))
|
||||
exe "silent r! ".listcmd.shellescape(s:path, 1)
|
||||
exe "sil! keepj r! ".listcmd.shellescape(s:path, 1)
|
||||
" remove rubbish and adjust listing format of 'pscp' to 'ssh ls -FLa' like
|
||||
keepj g/^Listing directory/keepj d
|
||||
keepj g/^d[-rwx][-rwx][-rwx]/keepj s+$+/+e
|
||||
sil keepj g/^l[-rwx][-rwx][-rwx]/keepj s+$+@+e
|
||||
sil! keepj g/^Listing directory/keepj d
|
||||
sil! keepj g/^d[-rwx][-rwx][-rwx]/keepj s+$+/+e
|
||||
sil! keepj g/^l[-rwx][-rwx][-rwx]/keepj s+$+@+e
|
||||
call histdel("/",-1)
|
||||
call histdel("/",-1)
|
||||
call histdel("/",-1)
|
||||
if g:netrw_liststyle != s:LONGLIST
|
||||
keepj g/^[dlsp-][-rwx][-rwx][-rwx]/keepj s/^.*\s\(\S\+\)$/\1/e
|
||||
sil! keepj g/^[dlsp-][-rwx][-rwx][-rwx]/keepj s/^.*\s\(\S\+\)$/\1/e
|
||||
call histdel("/",-1)
|
||||
endif
|
||||
else
|
||||
if s:path == ""
|
||||
" call Decho("2: exe silent r! ".listcmd)
|
||||
exe "sil r! ".listcmd
|
||||
exe "sil! keepalt r! ".listcmd
|
||||
else
|
||||
" call Decho("3: exe silent r! ".listcmd.' '.shellescape(s:path,1))
|
||||
exe "sil r! ".listcmd.' '.shellescape(s:path,1)
|
||||
exe "sil! keepalt r! ".listcmd.' '.shellescape(s:path,1)
|
||||
" call Decho("listcmd<".listcmd."> path<".s:path.">")
|
||||
endif
|
||||
endif
|
||||
@@ -6662,7 +6661,7 @@ fun! s:NetrwRemoteListing()
|
||||
" cleanup
|
||||
if g:netrw_ftp_browse_reject != ""
|
||||
" call Decho("(cleanup) exe silent! g/".g:netrw_ssh_browse_reject."/keepjumps d")
|
||||
exe "sil! g/".g:netrw_ssh_browse_reject."/keepjumps d"
|
||||
exe "sil! g/".g:netrw_ssh_browse_reject."/keepj d"
|
||||
call histdel("/",-1)
|
||||
endif
|
||||
endif
|
||||
@@ -6673,23 +6672,23 @@ fun! s:NetrwRemoteListing()
|
||||
|
||||
if s:method == "ftp"
|
||||
" cleanup
|
||||
exe "keepj ".w:netrw_bannercnt
|
||||
exe "sil! keepj ".w:netrw_bannercnt
|
||||
while getline('.') =~ g:netrw_ftp_browse_reject
|
||||
keepj d
|
||||
sil! keepj d
|
||||
endwhile
|
||||
" if there's no ../ listed, then put ./ and ../ in
|
||||
let line1= line(".")
|
||||
keepj 1
|
||||
sil keepj call search('^\.\.\/\%(\s\|$\)','W')
|
||||
sil! keepj 1
|
||||
sil! keepj call search('^\.\.\/\%(\s\|$\)','W')
|
||||
let line2= line(".")
|
||||
if line2 == 0
|
||||
exe 'keepj '.w:netrw_bannercnt."put='./'"
|
||||
exe 'sil! keepj '.w:netrw_bannercnt."put='./'"
|
||||
if b:netrw_curdir != '/'
|
||||
exe 'keepj '.w:netrw_bannercnt."put='../'"
|
||||
exe 'sil! keepj '.w:netrw_bannercnt."put='../'"
|
||||
endif
|
||||
endif
|
||||
exe "keepj ".line1
|
||||
keepjumps norm! 0
|
||||
exe "sil! keepj ".line1
|
||||
sil! keepj norm! 0
|
||||
endif
|
||||
|
||||
if search('^\d\{2}-\d\{2}-\d\{2}\s','n') " M$ ftp site cleanup
|
||||
@@ -6796,7 +6795,7 @@ fun! s:NetrwRemoteRmFile(path,rmfile,all)
|
||||
if path =~ '^\a\+://'
|
||||
let path= substitute(path,'^\a\+://[^/]\+/','','')
|
||||
endif
|
||||
silent! keepjumps .,$d
|
||||
sil! keepj .,$d
|
||||
call s:NetrwRemoteFtpCmd(path,"delete ".'"'.a:rmfile.'"')
|
||||
else
|
||||
" call Decho("case ssh: g:netrw_rm_cmd<".g:netrw_rm_cmd.">")
|
||||
@@ -7868,8 +7867,10 @@ fun! s:GetTempfile(fname)
|
||||
if a:fname != ""
|
||||
if a:fname =~ '\.[^./]\+$'
|
||||
" call Decho("using fname<".a:fname.">'s suffix")
|
||||
if a:fname =~ '.tar.gz' || a:fname =~ '.tar.bz2'
|
||||
if a:fname =~ '\.tar\.gz$' || a:fname =~ '\.tar\.bz2$' || a:fname =~ '\.tar\.xz$'
|
||||
let suffix = ".tar".substitute(a:fname,'^.*\(\.[^./]\+\)$','\1','e')
|
||||
elseif a:fname =~ '.txz$'
|
||||
let suffix = ".txz".substitute(a:fname,'^.*\(\.[^./]\+\)$','\1','e')
|
||||
else
|
||||
let suffix = substitute(a:fname,'^.*\(\.[^./]\+\)$','\1','e')
|
||||
endif
|
||||
@@ -8023,7 +8024,9 @@ fun! s:NetrwEnew(...)
|
||||
|
||||
call s:NetrwOptionRestore("w:")
|
||||
" call Decho("generate a buffer with keepjumps keepalt enew!")
|
||||
let netrw_keepdiff= &l:diff
|
||||
keepj keepalt enew!
|
||||
let &l:diff= netrw_keepdiff
|
||||
" call Decho("bufnr($)=".bufnr("$"))
|
||||
call s:NetrwOptionSave("w:")
|
||||
|
||||
|
||||
@@ -1,25 +1,44 @@
|
||||
" Vim OMNI completion script for SQL
|
||||
" Language: SQL
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Version: 9.0
|
||||
" Last Change: 2010 Apr 20
|
||||
" Version: 10.0
|
||||
" Last Change: 2010 Jun 11
|
||||
" Usage: For detailed help
|
||||
" ":help sql.txt"
|
||||
" or ":help ft-sql-omni"
|
||||
" or read $VIMRUNTIME/doc/sql.txt
|
||||
|
||||
" History
|
||||
" Version 10.0
|
||||
" Updated PreCacheSyntax()
|
||||
" - Now returns a List of the syntax items it finds.
|
||||
" This allows other plugins / scripts to use this list for their own
|
||||
" purposes. In this case XPTemplate can use them for a Choose list.
|
||||
" - Verifies the parameters are the correct type and displays a
|
||||
" warning if not.
|
||||
" - Verifies the parameters are the correct type and displays a
|
||||
" warning if not.
|
||||
" Updated SQLCWarningMsg()
|
||||
" - Prepends warning message with SQLComplete so you know who issued
|
||||
" the warning.
|
||||
" Updated SQLCErrorMsg()
|
||||
" - Prepends error message with SQLComplete so you know who issued
|
||||
" the error.
|
||||
"
|
||||
" Version 9.0
|
||||
" This change removes some of the support for tables with spaces in their
|
||||
" names in order to simplify the regexes used to pull out query table
|
||||
" aliases for more robust table name and column name code completion.
|
||||
" Full support for "table names with spaces" can be added in again
|
||||
" after 7.3.
|
||||
"
|
||||
" Version 8.0
|
||||
" Incorrectly re-executed the g:ftplugin_sql_omni_key_right and g:ftplugin_sql_omni_key_left
|
||||
" when drilling in and out of a column list for a table.
|
||||
"
|
||||
" Version 7.0
|
||||
" Better handling of object names
|
||||
"
|
||||
" Version 6.0
|
||||
" Supports object names with spaces "my table name"
|
||||
"
|
||||
@@ -37,7 +56,7 @@ endif
|
||||
if exists('g:loaded_sql_completion')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_sql_completion = 70
|
||||
let g:loaded_sql_completion = 100
|
||||
|
||||
" Maintains filename of dictionary
|
||||
let s:sql_file_table = ""
|
||||
@@ -363,7 +382,13 @@ endfunc
|
||||
|
||||
function! sqlcomplete#PreCacheSyntax(...)
|
||||
let syn_group_arr = []
|
||||
let syn_items = []
|
||||
|
||||
if a:0 > 0
|
||||
if type(a:1) != 3
|
||||
call s:SQLCWarningMsg("Parameter is not a list. Example:['syntaxGroup1', 'syntaxGroup2']")
|
||||
return ''
|
||||
endif
|
||||
let syn_group_arr = a:1
|
||||
else
|
||||
let syn_group_arr = g:omni_sql_precache_syntax_groups
|
||||
@@ -372,7 +397,36 @@ function! sqlcomplete#PreCacheSyntax(...)
|
||||
" the sytnax items.
|
||||
if !empty(syn_group_arr)
|
||||
for group_name in syn_group_arr
|
||||
call s:SQLCGetSyntaxList(group_name)
|
||||
let syn_items = extend( syn_items, s:SQLCGetSyntaxList(group_name) )
|
||||
endfor
|
||||
endif
|
||||
|
||||
return syn_items
|
||||
endfunction
|
||||
|
||||
function! sqlcomplete#ResetCacheSyntax(...)
|
||||
let syn_group_arr = []
|
||||
|
||||
if a:0 > 0
|
||||
if type(a:1) != 3
|
||||
call s:SQLCWarningMsg("Parameter is not a list. Example:['syntaxGroup1', 'syntaxGroup2']")
|
||||
return ''
|
||||
endif
|
||||
let syn_group_arr = a:1
|
||||
else
|
||||
let syn_group_arr = g:omni_sql_precache_syntax_groups
|
||||
endif
|
||||
" For each group specified in the list, precache all
|
||||
" the sytnax items.
|
||||
if !empty(syn_group_arr)
|
||||
for group_name in syn_group_arr
|
||||
let list_idx = index(s:syn_list, group_name, 0, &ignorecase)
|
||||
if list_idx > -1
|
||||
" Remove from list of groups
|
||||
call remove( s:syn_list, list_idx )
|
||||
" Remove from list of keywords
|
||||
call remove( s:syn_value, list_idx )
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
endfunction
|
||||
@@ -430,13 +484,13 @@ endfunction
|
||||
|
||||
function! s:SQLCWarningMsg(msg)
|
||||
echohl WarningMsg
|
||||
echomsg a:msg
|
||||
echomsg 'SQLComplete:'.a:msg
|
||||
echohl None
|
||||
endfunction
|
||||
|
||||
function! s:SQLCErrorMsg(msg)
|
||||
echohl ErrorMsg
|
||||
echomsg a:msg
|
||||
echomsg 'SQLComplete:'.a:msg
|
||||
echohl None
|
||||
endfunction
|
||||
|
||||
@@ -462,7 +516,7 @@ function! s:SQLCGetSyntaxList(syn_group)
|
||||
let g:omni_syntax_group_include_sql = syn_group
|
||||
endif
|
||||
let g:omni_syntax_group_exclude_sql = ''
|
||||
let syn_value = OmniSyntaxList()
|
||||
let syn_value = syntaxcomplete#OmniSyntaxList()
|
||||
let g:omni_syntax_group_include_sql = s:save_inc
|
||||
let g:omni_syntax_group_exclude_sql = s:save_exc
|
||||
" Cache these values for later use
|
||||
|
||||
@@ -1,14 +1,34 @@
|
||||
" Vim completion script
|
||||
" Language: All languages, uses existing syntax highlighting rules
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Version: 5.0
|
||||
" Last Change: 2010 Jan 31
|
||||
" Version: 7.0
|
||||
" Last Change: 2010 Jul 29
|
||||
" Usage: For detailed help, ":help ft-syntax-omni"
|
||||
|
||||
" History
|
||||
"
|
||||
" Version 7.0
|
||||
" Updated syntaxcomplete#OmniSyntaxList()
|
||||
" - Looking up the syntax groups defined from a syntax file
|
||||
" looked for only 1 format of {filetype}GroupName, but some
|
||||
" syntax writers use this format as well:
|
||||
" {b:current_syntax}GroupName
|
||||
" OmniSyntaxList() will now check for both if the first
|
||||
" method does not find a match.
|
||||
"
|
||||
" Version 6.0
|
||||
" Added syntaxcomplete#OmniSyntaxList()
|
||||
" - Allows other plugins to use this for their own
|
||||
" purposes.
|
||||
" - It will return a List of all syntax items for the
|
||||
" syntax group name passed in.
|
||||
" - XPTemplate for SQL will use this function via the
|
||||
" sqlcomplete plugin to populate a Choose box.
|
||||
"
|
||||
" Version 5.0
|
||||
" When processing a list of syntax groups, the final group
|
||||
" was missed in function SyntaxCSyntaxGroupItems.
|
||||
" Updated SyntaxCSyntaxGroupItems()
|
||||
" - When processing a list of syntax groups, the final group
|
||||
" was missed in function SyntaxCSyntaxGroupItems.
|
||||
"
|
||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||
" This check is in place in case this script is
|
||||
@@ -24,7 +44,7 @@ endif
|
||||
if exists('g:loaded_syntax_completion')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntax_completion = 40
|
||||
let g:loaded_syntax_completion = 70
|
||||
|
||||
" Set ignorecase to the ftplugin standard
|
||||
" This is the default setting, but if you define a buffer local
|
||||
@@ -128,7 +148,30 @@ function! syntaxcomplete#Complete(findstart, base)
|
||||
return compl_list
|
||||
endfunc
|
||||
|
||||
function! OmniSyntaxList()
|
||||
function! syntaxcomplete#OmniSyntaxList(...)
|
||||
if a:0 > 0
|
||||
let parms = []
|
||||
if 3 == type(a:1)
|
||||
let parms = a:1
|
||||
elseif 1 == type(a:1)
|
||||
let parms = split(a:1, ',')
|
||||
endif
|
||||
return OmniSyntaxList( parms )
|
||||
else
|
||||
return OmniSyntaxList()
|
||||
endif
|
||||
endfunc
|
||||
|
||||
function! OmniSyntaxList(...)
|
||||
let list_parms = []
|
||||
if a:0 > 0
|
||||
if 3 == type(a:1)
|
||||
let list_parms = a:1
|
||||
elseif 1 == type(a:1)
|
||||
let list_parms = split(a:1, ',')
|
||||
endif
|
||||
endif
|
||||
|
||||
" Default to returning a dictionary, if use_dictionary is set to 0
|
||||
" a list will be returned.
|
||||
" let use_dictionary = 1
|
||||
@@ -157,16 +200,40 @@ function! OmniSyntaxList()
|
||||
endif
|
||||
|
||||
let saveL = @l
|
||||
let filetype = substitute(&filetype, '\.', '_', 'g')
|
||||
|
||||
if empty(list_parms)
|
||||
" Default the include group to include the requested syntax group
|
||||
let syntax_group_include_{filetype} = ''
|
||||
" Check if there are any overrides specified for this filetype
|
||||
if exists('g:omni_syntax_group_include_'.filetype)
|
||||
let syntax_group_include_{filetype} =
|
||||
\ substitute( g:omni_syntax_group_include_{filetype},'\s\+','','g')
|
||||
let list_parms = split(g:omni_syntax_group_include_{filetype}, ',')
|
||||
if syntax_group_include_{filetype} =~ '\w'
|
||||
let syntax_group_include_{filetype} =
|
||||
\ substitute( syntax_group_include_{filetype},
|
||||
\ '\s*,\s*', '\\|', 'g'
|
||||
\ )
|
||||
endif
|
||||
endif
|
||||
else
|
||||
" A specific list was provided, use it
|
||||
endif
|
||||
|
||||
" Loop through all the syntax groupnames, and build a
|
||||
" syntax file which contains these names. This can
|
||||
" work generically for any filetype that does not already
|
||||
" have a plugin defined.
|
||||
" This ASSUMES the syntax groupname BEGINS with the name
|
||||
" of the filetype. From my casual viewing of the vim7\syntax
|
||||
" directory.
|
||||
" directory this is true for almost all syntax definitions.
|
||||
" As an example, the SQL syntax groups have this pattern:
|
||||
" sqlType
|
||||
" sqlOperators
|
||||
" sqlKeyword ...
|
||||
redir @l
|
||||
silent! exec 'syntax list '
|
||||
silent! exec 'syntax list '.join(list_parms)
|
||||
redir END
|
||||
|
||||
let syntax_full = "\n".@l
|
||||
@@ -181,31 +248,23 @@ function! OmniSyntaxList()
|
||||
|
||||
let filetype = substitute(&filetype, '\.', '_', 'g')
|
||||
|
||||
" Default the include group to include the requested syntax group
|
||||
let syntax_group_include_{filetype} = ''
|
||||
" Check if there are any overrides specified for this filetype
|
||||
if exists('g:omni_syntax_group_include_'.filetype)
|
||||
let syntax_group_include_{filetype} =
|
||||
\ substitute( g:omni_syntax_group_include_{filetype},'\s\+','','g')
|
||||
if syntax_group_include_{filetype} =~ '\w'
|
||||
let syntax_group_include_{filetype} =
|
||||
\ substitute( syntax_group_include_{filetype},
|
||||
\ '\s*,\s*', '\\|', 'g'
|
||||
\ )
|
||||
endif
|
||||
endif
|
||||
|
||||
" Default the exclude group to nothing
|
||||
let syntax_group_exclude_{filetype} = ''
|
||||
" Check if there are any overrides specified for this filetype
|
||||
if exists('g:omni_syntax_group_exclude_'.filetype)
|
||||
let syntax_group_exclude_{filetype} =
|
||||
\ substitute( g:omni_syntax_group_exclude_{filetype},'\s\+','','g')
|
||||
if syntax_group_exclude_{filetype} =~ '\w'
|
||||
let syntax_group_exclude_{filetype} =
|
||||
\ substitute( syntax_group_exclude_{filetype},
|
||||
\ '\s*,\s*', '\\|', 'g'
|
||||
\ )
|
||||
let list_exclude_groups = []
|
||||
if a:0 > 0
|
||||
" Do nothing since we have specific a specific list of groups
|
||||
else
|
||||
" Default the exclude group to nothing
|
||||
let syntax_group_exclude_{filetype} = ''
|
||||
" Check if there are any overrides specified for this filetype
|
||||
if exists('g:omni_syntax_group_exclude_'.filetype)
|
||||
let syntax_group_exclude_{filetype} =
|
||||
\ substitute( g:omni_syntax_group_exclude_{filetype},'\s\+','','g')
|
||||
let list_exclude_groups = split(g:omni_syntax_group_exclude_{filetype}, ',')
|
||||
if syntax_group_exclude_{filetype} =~ '\w'
|
||||
let syntax_group_exclude_{filetype} =
|
||||
\ substitute( syntax_group_exclude_{filetype},
|
||||
\ '\s*,\s*', '\\|', 'g'
|
||||
\ )
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -230,47 +289,51 @@ function! OmniSyntaxList()
|
||||
let index = 0
|
||||
let index = match(syntax_full, next_group_regex, index)
|
||||
|
||||
if index == -1 && exists('b:current_syntax') && ft_part_name != b:current_syntax
|
||||
" There appears to be two standards when writing syntax files.
|
||||
" Either items begin as:
|
||||
" syn keyword {filetype}Keyword values ...
|
||||
" let b:current_syntax = "sql"
|
||||
" let b:current_syntax = "sqlanywhere"
|
||||
" Or
|
||||
" syn keyword {syntax_filename}Keyword values ...
|
||||
" let b:current_syntax = "mysql"
|
||||
" So, we will make the format of finding the syntax group names
|
||||
" a bit more flexible and look for both if the first fails to
|
||||
" find a match.
|
||||
let next_group_regex = '\n' .
|
||||
\ '\zs'.b:current_syntax.'\w\+\ze'.
|
||||
\ '\s\+xxx\s\+'
|
||||
let index = 0
|
||||
let index = match(syntax_full, next_group_regex, index)
|
||||
endif
|
||||
|
||||
while index > -1
|
||||
let group_name = matchstr( syntax_full, '\w\+', index )
|
||||
|
||||
let get_syn_list = 1
|
||||
" if syntax_group_include_{&filetype} == ''
|
||||
" if syntax_group_exclude_{&filetype} != ''
|
||||
" if '\<'.syntax_group_exclude_{&filetype}.'\>' =~ '\<'.group_name.'\>'
|
||||
for exclude_group_name in list_exclude_groups
|
||||
if '\<'.exclude_group_name.'\>' =~ '\<'.group_name.'\>'
|
||||
let get_syn_list = 0
|
||||
endif
|
||||
endfor
|
||||
|
||||
" This code is no longer needed in version 6.0 since we have
|
||||
" augmented the syntax list command to only retrieve the syntax
|
||||
" groups we are interested in.
|
||||
"
|
||||
" if get_syn_list == 1
|
||||
" if syntax_group_include_{filetype} != ''
|
||||
" if '\<'.syntax_group_include_{filetype}.'\>' !~ '\<'.group_name.'\>'
|
||||
" let get_syn_list = 0
|
||||
" endif
|
||||
" endif
|
||||
" else
|
||||
" if '\<'.syntax_group_include_{&filetype}.'\>' !~ '\<'.group_name.'\>'
|
||||
" let get_syn_list = 0
|
||||
" endif
|
||||
" endif
|
||||
if syntax_group_exclude_{filetype} != ''
|
||||
if '\<'.syntax_group_exclude_{filetype}.'\>' =~ '\<'.group_name.'\>'
|
||||
let get_syn_list = 0
|
||||
endif
|
||||
endif
|
||||
|
||||
if get_syn_list == 1
|
||||
if syntax_group_include_{filetype} != ''
|
||||
if '\<'.syntax_group_include_{filetype}.'\>' !~ '\<'.group_name.'\>'
|
||||
let get_syn_list = 0
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
if get_syn_list == 1
|
||||
" Pass in the full syntax listing, plus the group name we
|
||||
" are interested in.
|
||||
let extra_syn_list = s:SyntaxCSyntaxGroupItems(group_name, syntax_full)
|
||||
|
||||
" if !empty(extra_syn_list)
|
||||
" for elem in extra_syn_list
|
||||
" let item = {'word':elem, 'kind':'t', 'info':group_name}
|
||||
" let compl_list += [item]
|
||||
" endfor
|
||||
" endif
|
||||
|
||||
let syn_list = syn_list . extra_syn_list . "\n"
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" tar.vim: Handles browsing tarfiles
|
||||
" AUTOLOAD PORTION
|
||||
" Date: Dec 28, 2009
|
||||
" Version: 24
|
||||
" Date: Jul 27, 2010
|
||||
" Version: 25
|
||||
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||
" License: Vim License (see vim's :help license)
|
||||
"
|
||||
@@ -22,7 +22,7 @@
|
||||
if &cp || exists("g:loaded_tar")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_tar= "v24"
|
||||
let g:loaded_tar= "v25"
|
||||
if v:version < 702
|
||||
echohl WarningMsg
|
||||
echo "***warning*** this version of tar needs vim 7.2"
|
||||
@@ -164,6 +164,9 @@ fun! tar#Browse(tarfile)
|
||||
elseif tarfile =~# '\.lzma$'
|
||||
" call Decho("3: exe silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
|
||||
exe "silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
|
||||
elseif tarfile =~# '\.\(xz\|txz\)$'
|
||||
" call Decho("3: exe silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
|
||||
exe "silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
|
||||
else
|
||||
if tarfile =~ '^\s*-'
|
||||
" A file name starting with a dash is taken as an option. Prepend ./ to avoid that.
|
||||
@@ -265,10 +268,13 @@ fun! tar#Read(fname,mode)
|
||||
elseif fname =~ '\.lzma$' && executable("lzcat")
|
||||
let decmp= "|lzcat"
|
||||
let doro = 1
|
||||
elseif fname =~ '\.xz$' && executable("xzcat")
|
||||
let decmp= "|xzcat"
|
||||
let doro = 1
|
||||
else
|
||||
let decmp=""
|
||||
let doro = 0
|
||||
if fname =~ '\.bz2$\|\.gz$\|\.lzma$\|\.zip$\|\.Z$'
|
||||
if fname =~ '\.bz2$\|\.gz$\|\.lzma$\|\.xz$\|\.zip$\|\.Z$'
|
||||
setlocal bin
|
||||
endif
|
||||
endif
|
||||
@@ -290,6 +296,9 @@ fun! tar#Read(fname,mode)
|
||||
elseif tarfile =~# '\.lzma$'
|
||||
" call Decho("7: exe silent r! lzma -d -c ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
|
||||
exe "silent r! lzma -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
elseif tarfile =~# '\.\(xz\|txz\)$'
|
||||
" call Decho("3: exe silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
|
||||
exe "silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
else
|
||||
if tarfile =~ '^\s*-'
|
||||
" A file name starting with a dash is taken as an option. Prepend ./ to avoid that.
|
||||
@@ -387,17 +396,22 @@ fun! tar#Write(fname)
|
||||
call system("gzip -d -- ".shellescape(tarfile,0))
|
||||
let tarfile = substitute(tarfile,'\.gz','','e')
|
||||
let compress= "gzip -- ".shellescape(tarfile,0)
|
||||
" call Decho("compress<".compress.">")
|
||||
elseif tarfile =~# '\.lzma'
|
||||
call system("lzma -d -- ".shellescape(tarfile,0))
|
||||
let tarfile = substitute(tarfile,'\.lzma','','e')
|
||||
let compress= "lzma -- ".shellescape(tarfile,0)
|
||||
" call Decho("compress<".compress.">")
|
||||
elseif tarfile =~# '\.tgz'
|
||||
call system("gzip -d -- ".shellescape(tarfile,0))
|
||||
let tarfile = substitute(tarfile,'\.tgz','.tar','e')
|
||||
let compress= "gzip -- ".shellescape(tarfile,0)
|
||||
let tgz = 1
|
||||
" call Decho("compress<".compress.">")
|
||||
elseif tarfile =~# '\.xz'
|
||||
call system("xz -d -- ".shellescape(tarfile,0))
|
||||
let tarfile = substitute(tarfile,'\.xz','','e')
|
||||
let compress= "xz -- ".shellescape(tarfile,0)
|
||||
" call Decho("compress<".compress.">")
|
||||
elseif tarfile =~# '\.lzma'
|
||||
call system("lzma -d -- ".shellescape(tarfile,0))
|
||||
let tarfile = substitute(tarfile,'\.lzma','','e')
|
||||
let compress= "lzma -- ".shellescape(tarfile,0)
|
||||
" call Decho("compress<".compress.">")
|
||||
endif
|
||||
" call Decho("tarfile<".tarfile.">")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" Vim autoload file for the tohtml plugin.
|
||||
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
||||
" Last Change: 2010 July 24
|
||||
" Last Change: 2010 Jul 29
|
||||
"
|
||||
" Additional contributors:
|
||||
"
|
||||
@@ -39,7 +39,6 @@ func! tohtml#Convert2HTML(line1, line2)
|
||||
let g:html_diff_win_num += 1
|
||||
runtime syntax/2html.vim
|
||||
call add(buf_list, bufnr('%'))
|
||||
"exec '%s#<span id=''\zsfold\d\+\ze''#win'.win_num.'\0#ge'
|
||||
endfor
|
||||
unlet g:html_diff_win_num
|
||||
if !save_hwf
|
||||
@@ -56,7 +55,9 @@ endfunc
|
||||
|
||||
func! tohtml#Diff2HTML(win_list, buf_list)
|
||||
" TODO: add logic for xhtml
|
||||
let style = []
|
||||
let style = ['-->']
|
||||
let body_line = ''
|
||||
|
||||
let html = []
|
||||
call add(html, '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"')
|
||||
call add(html, ' "http://www.w3.org/TR/html4/loose.dtd">')
|
||||
@@ -69,6 +70,7 @@ func! tohtml#Diff2HTML(win_list, buf_list)
|
||||
" validate without warnings about encoding
|
||||
|
||||
call add(html, '</head>')
|
||||
let body_line_num = len(html)
|
||||
call add(html, '<body>')
|
||||
call add(html, '<table border="1" width="100%">')
|
||||
|
||||
@@ -78,6 +80,9 @@ func! tohtml#Diff2HTML(win_list, buf_list)
|
||||
endfor
|
||||
call add(html, '</tr><tr>')
|
||||
|
||||
let diff_style_start = 0
|
||||
let insert_index = 0
|
||||
|
||||
for buf in a:buf_list
|
||||
let temp = []
|
||||
exe bufwinnr(buf) . 'wincmd w'
|
||||
@@ -86,13 +91,40 @@ func! tohtml#Diff2HTML(win_list, buf_list)
|
||||
" to act on everything in a fold by mistake.
|
||||
setlocal nofoldenable
|
||||
|
||||
" When not using CSS or when using xhtml, the <body> line can be important.
|
||||
" Assume it will be the same for all buffers and grab it from the first
|
||||
" buffer. Similarly, need to grab the body end line as well.
|
||||
if body_line == ''
|
||||
1
|
||||
call search('<body')
|
||||
let body_line = getline('.')
|
||||
$
|
||||
call search('</body>', 'b')
|
||||
let s:body_end_line = getline('.')
|
||||
endif
|
||||
|
||||
" Grab the style information. Some of this will be duplicated...
|
||||
1
|
||||
let style_start = search('^<style type="text/css">')
|
||||
1
|
||||
let style_end = search('^</style>')
|
||||
if style_start > 0 && style_end > 0
|
||||
let style += getline(style_start + 1, style_end - 1)
|
||||
let buf_styles = getline(style_start + 1, style_end - 1)
|
||||
for a_style in buf_styles
|
||||
if index(style, a_style) == -1
|
||||
if diff_style_start == 0
|
||||
if a_style =~ '\<Diff\(Change\|Text\|Add\|Delete\)'
|
||||
let diff_style_start = len(style)-1
|
||||
endif
|
||||
endif
|
||||
call insert(style, a_style, insert_index)
|
||||
let insert_index += 1
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
|
||||
if diff_style_start != 0
|
||||
let insert_index = diff_style_start
|
||||
endif
|
||||
|
||||
" Delete those parts that are not needed so
|
||||
@@ -115,9 +147,11 @@ func! tohtml#Diff2HTML(win_list, buf_list)
|
||||
quit!
|
||||
endfor
|
||||
|
||||
let html[body_line_num] = body_line
|
||||
|
||||
call add(html, '</tr>')
|
||||
call add(html, '</table>')
|
||||
call add(html, '</body>')
|
||||
call add(html, s:body_end_line)
|
||||
call add(html, '</html>')
|
||||
|
||||
let i = 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*arabic.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*arabic.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*autocmd.txt* For Vim version 7.3c. Last change: 2010 Jul 22
|
||||
*autocmd.txt* For Vim version 7.3d. Last change: 2010 Jul 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 7.3c. Last change: 2010 Mar 23
|
||||
*change.txt* For Vim version 7.3d. Last change: 2010 Jul 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1245,7 +1245,8 @@ gq{motion} Format the lines that {motion} moves over.
|
||||
:nnoremap Q gq
|
||||
|
||||
gqgq *gqgq* *gqq*
|
||||
gqq Format the current line. {not in Vi}
|
||||
gqq Format the current line. With a count format that
|
||||
many lines. {not in Vi}
|
||||
|
||||
*v_gq*
|
||||
{Visual}gq Format the highlighted text. (for {Visual} see
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*cmdline.txt* For Vim version 7.3c. Last change: 2010 May 07
|
||||
*cmdline.txt* For Vim version 7.3d. Last change: 2010 May 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*debug.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*debug.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*debugger.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*debugger.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Gordon Prieur
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*develop.txt* For Vim version 7.3c. Last change: 2008 Dec 17
|
||||
*develop.txt* For Vim version 7.3d. Last change: 2008 Dec 17
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*diff.txt* For Vim version 7.3c. Last change: 2009 Sep 15
|
||||
*diff.txt* For Vim version 7.3d. Last change: 2010 Jul 31
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -57,6 +57,7 @@ In each of the edited files these options are set:
|
||||
|
||||
'diff' on
|
||||
'scrollbind' on
|
||||
'cursorbind' on
|
||||
'scrollopt' includes "hor"
|
||||
'wrap' off
|
||||
'foldmethod' "diff"
|
||||
@@ -133,6 +134,7 @@ the old values are not remembered.
|
||||
|
||||
'diff' off
|
||||
'scrollbind' off
|
||||
'cursorbind' off
|
||||
'scrollopt' without "hor"
|
||||
'wrap' on
|
||||
'foldmethod' "manual"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*digraph.txt* For Vim version 7.3c. Last change: 2010 Apr 11
|
||||
*digraph.txt* For Vim version 7.3d. Last change: 2010 Apr 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*editing.txt* For Vim version 7.3c. Last change: 2010 Jul 21
|
||||
*editing.txt* For Vim version 7.3d. Last change: 2010 Jul 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1622,10 +1622,13 @@ There are three different types of searching:
|
||||
|
||||
In the above example you might want to set path to: >
|
||||
:set path=**,/u/user_x/**
|
||||
< This searches: >
|
||||
/u/user_x/work/release/**
|
||||
/u/user_x/**
|
||||
< This searches the same directories, but in a different order.
|
||||
< This searches:
|
||||
/u/user_x/work/release/** ~
|
||||
/u/user_x/** ~
|
||||
This searches the same directories, but in a different order.
|
||||
|
||||
Note that completion for ":find", ":sfind", and ":tabfind" commands do not
|
||||
currently work with 'path' items that contain a url or use the double star
|
||||
(/usr/**2) or upward search (;) notations. >
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.3c. Last change: 2010 Jul 25
|
||||
*eval.txt* For Vim version 7.3d. Last change: 2010 Jul 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -5094,7 +5094,7 @@ setreg({regname}, {value} [,{options}])
|
||||
Set the register {regname} to {value}.
|
||||
If {options} contains "a" or {regname} is upper case,
|
||||
then the value is appended.
|
||||
{options} can also contains a register type specification:
|
||||
{options} can also contain a register type specification:
|
||||
"c" or "v" |characterwise| mode
|
||||
"l" or "V" |linewise| mode
|
||||
"b" or "<CTRL-V>" |blockwise-visual| mode
|
||||
|
||||
@@ -17,10 +17,10 @@ e imposta le opzioni per farlo comportare come un editore "modeless".
|
||||
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
|
||||
Simile all'uso di Notepad in MS-Windows.
|
||||
.B evim
|
||||
richiede la presenza della GUI, per avere a disposizione menu e barra
|
||||
richiede la presenza della GUI, per avere a disposizione menù e barra
|
||||
strumenti.
|
||||
.PP
|
||||
Da usarsi solo da parte di chi non è in grado di lavorare con Vim nella
|
||||
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
|
||||
maniera usuale.
|
||||
La modifica file sarà molto meno efficiente.
|
||||
.PP
|
||||
@@ -34,7 +34,7 @@ L'opzione 'insertmode'
|
||||
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
|
||||
familiari tasti usati sotto MS-Windows.
|
||||
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
|
||||
Usate CTRL-Q per ottenere quello chs si ottierrebbe con CTRL-V in Vim nativo.
|
||||
Usate CTRL-Q per ottenere quello che si otterrebbe con CTRL-V in Vim nativo.
|
||||
.SH OPZIONI
|
||||
Vedere vim(1).
|
||||
.SH FILE
|
||||
@@ -51,4 +51,4 @@ vim(1)
|
||||
Buona parte di
|
||||
.B Vim
|
||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
||||
Vedere il Menu "Aiuto/Crediti".
|
||||
Vedere il menù "Aiuto/Crediti".
|
||||
|
||||
@@ -17,10 +17,10 @@ e imposta le opzioni per farlo comportare come un editore "modeless".
|
||||
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
|
||||
Simile all'uso di Notepad in MS-Windows.
|
||||
.B evim
|
||||
richiede la presenza della GUI, per avere a disposizione menu e barra
|
||||
richiede la presenza della GUI, per avere a disposizione menù e barra
|
||||
strumenti.
|
||||
.PP
|
||||
Da usarsi solo da parte di chi non è in grado di lavorare con Vim nella
|
||||
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
|
||||
maniera usuale.
|
||||
La modifica file sarà molto meno efficiente.
|
||||
.PP
|
||||
@@ -34,7 +34,7 @@ L'opzione 'insertmode' è impostata per poter immettere del testo direttamente.
|
||||
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
|
||||
familiari tasti usati sotto MS-Windows.
|
||||
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
|
||||
Usate CTRL-Q per ottenere quello chs si ottierrebbe con CTRL-V in Vim nativo.
|
||||
Usate CTRL-Q per ottenere quello che si otterrebbe con CTRL-V in Vim nativo.
|
||||
.SH OPZIONI
|
||||
Vedere vim(1).
|
||||
.SH FILE
|
||||
@@ -51,4 +51,4 @@ vim(1)
|
||||
Buona parte di
|
||||
.B Vim
|
||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
||||
Vedere il Menu "Aiuto/Crediti".
|
||||
Vedere il menù "Aiuto/Crediti".
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*farsi.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*farsi.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*filetype.txt* For Vim version 7.3c. Last change: 2008 Jul 15
|
||||
*filetype.txt* For Vim version 7.3d. Last change: 2008 Jul 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*fold.txt* For Vim version 7.3c. Last change: 2010 May 13
|
||||
*fold.txt* For Vim version 7.3d. Last change: 2010 May 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*ft_ada.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*ft_ada.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*ft_sql.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*ft_sql.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
by David Fishburn
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
*gui.txt* For Vim version 7.3c. Last change: 2010 May 14
|
||||
*gui.txt* For Vim version 7.3d. Last change: 2010 May 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*gui_w16.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*gui_w16.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*gui_w32.txt* For Vim version 7.3c. Last change: 2007 Aug 30
|
||||
*gui_w32.txt* For Vim version 7.3d. Last change: 2007 Aug 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*gui_x11.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*gui_x11.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*hangulin.txt* For Vim version 7.3c. Last change: 2009 Jun 24
|
||||
*hangulin.txt* For Vim version 7.3d. Last change: 2009 Jun 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*hebrew.txt* For Vim version 7.3c. Last change: 2007 Jun 14
|
||||
*hebrew.txt* For Vim version 7.3d. Last change: 2007 Jun 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*help.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*help.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
VIM - main help file
|
||||
k
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*helphelp.txt* For Vim version 7.3c. Last change: 2008 Jul 21
|
||||
*helphelp.txt* For Vim version 7.3d. Last change: 2010 Jul 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -60,11 +60,20 @@ Help on help files *helphelp*
|
||||
If there are several matches, you can have them listed
|
||||
by hitting CTRL-D. Example: >
|
||||
:help cont<Ctrl-D>
|
||||
< To use a regexp |pattern|, first do ":help" and then
|
||||
|
||||
< Instead of typing ":help CTRL-V" to search for help
|
||||
for CTRL-V you can type: >
|
||||
:help ^V
|
||||
< This also works together with other characters, for
|
||||
example to find help for CTRL-V in Insert mode: >
|
||||
:help i^V
|
||||
<
|
||||
To use a regexp |pattern|, first do ":help" and then
|
||||
use ":tag {pattern}" in the help window. The
|
||||
":tnext" command can then be used to jump to other
|
||||
matches, "tselect" to list matches and choose one. >
|
||||
:help index| :tse z.
|
||||
|
||||
< When there is no argument you will see matches for
|
||||
"help", to avoid listing all possible matches (that
|
||||
would be very slow).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*howto.txt* For Vim version 7.3c. Last change: 2006 Apr 02
|
||||
*howto.txt* For Vim version 7.3d. Last change: 2006 Apr 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_cscop.txt* For Vim version 7.3c. Last change: 2009 Mar 18
|
||||
*if_cscop.txt* For Vim version 7.3d. Last change: 2009 Mar 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Andy Kahn
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_lua.txt* For Vim version 7.3c. Last change: 2010 Jul 22
|
||||
*if_lua.txt* For Vim version 7.3d. Last change: 2010 Jul 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Luis Carvalho
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_mzsch.txt* For Vim version 7.3c. Last change: 2010 Feb 11
|
||||
*if_mzsch.txt* For Vim version 7.3d. Last change: 2010 Feb 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Sergey Khorev
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_ole.txt* For Vim version 7.3c. Last change: 2008 Aug 16
|
||||
*if_ole.txt* For Vim version 7.3d. Last change: 2008 Aug 16
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Paul Moore
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_perl.txt* For Vim version 7.3c. Last change: 2010 Jul 21
|
||||
*if_perl.txt* For Vim version 7.3d. Last change: 2010 Jul 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Sven Verdoolaege
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_pyth.txt* For Vim version 7.3c. Last change: 2010 Jul 25
|
||||
*if_pyth.txt* For Vim version 7.3d. Last change: 2010 Jul 25
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Paul Moore
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_ruby.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*if_ruby.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Shugo Maeda
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_sniff.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*if_sniff.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_tcl.txt* For Vim version 7.3c. Last change: 2008 Aug 16
|
||||
*if_tcl.txt* For Vim version 7.3d. Last change: 2008 Aug 16
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Ingo Wilken
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*indent.txt* For Vim version 7.3c. Last change: 2010 Mar 27
|
||||
*indent.txt* For Vim version 7.3d. Last change: 2010 Jul 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -549,7 +549,7 @@ those useless characters first with a command like: >
|
||||
:%s /\r$//g
|
||||
|
||||
Or, you can simply |:let| the variable PHP_removeCRwhenUnix to 1 and the
|
||||
script will silently remove them when Vim loads a PHP file (at each |BufRead|).
|
||||
script will silently remove them when Vim loads a PHP file (at each|BufRead|).
|
||||
|
||||
OPTIONS: ~
|
||||
|
||||
@@ -557,7 +557,7 @@ PHP indenting can be altered in several ways by modifying the values of some
|
||||
variables:
|
||||
|
||||
*php-comment*
|
||||
To not enable auto-formatting of comments by default (if you want to use your
|
||||
To not enable auto-formating of comments by default (if you want to use your
|
||||
own 'formatoptions'): >
|
||||
:let g:PHP_autoformatcomment = 0
|
||||
|
||||
@@ -584,6 +584,10 @@ For example, with N = 1, this will give:
|
||||
(Notice the extra indent between the PHP container markers and the code)
|
||||
-------------
|
||||
|
||||
To indent PHP tags as the surrounding code: >
|
||||
:let g:PHP_outdentphpescape = 0
|
||||
-------------
|
||||
|
||||
To automatically remove '\r' characters when the 'fileformat' is set to Unix: >
|
||||
:let g:PHP_removeCRwhenUnix = 1
|
||||
-------------
|
||||
@@ -609,7 +613,7 @@ NOTE: Indenting will be a bit slower if this option is used because some
|
||||
To indent 'case:' and 'default:' statements in switch() blocks: >
|
||||
:let g:PHP_vintage_case_default_indent = 1
|
||||
|
||||
(By default they are indented at the same level than the 'switch()' to avoid
|
||||
(Since in PHP braces are not required inside 'case/default' blocks, by default they are indented at the same level than the 'switch()' to avoid
|
||||
unnecessary indentation)
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 7.3c. Last change: 2010 Jul 21
|
||||
*index.txt* For Vim version 7.3d. Last change: 2010 Jul 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
+33
-1
@@ -1,4 +1,4 @@
|
||||
*insert.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*insert.txt* For Vim version 7.3d. Last change: 2010 Jul 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1488,6 +1488,38 @@ on word characters. This can be controlled adding the following to your
|
||||
vimrc: >
|
||||
let g:omni_syntax_use_iskeyword = 0
|
||||
|
||||
For plugin developers, the plugin exposes a public function OmniSyntaxList.
|
||||
This function can be used to request a List of syntax items. When editing a
|
||||
SQL file (:e syntax.sql) you can use the ":syntax list" command to see the
|
||||
various groups and syntax items. For example: >
|
||||
syntax list
|
||||
|
||||
Yields data similar to this: >
|
||||
sqlOperator xxx some prior all like and any escape exists in is not
|
||||
or intersect minus between distinct
|
||||
links to Operator
|
||||
sqlType xxx varbit varchar nvarchar bigint int uniqueidentifier
|
||||
date money long tinyint unsigned xml text smalldate
|
||||
double datetime nchar smallint numeric time bit char
|
||||
varbinary binary smallmoney
|
||||
image float integer timestamp real decimal
|
||||
|
||||
There are two syntax groups listed here: sqlOperator and sqlType. To retrieve
|
||||
a List of syntax items you can call OmniSyntaxList a number of different
|
||||
ways. To retrieve all syntax items regardless of syntax group: >
|
||||
echo OmniSyntaxList( [] )
|
||||
|
||||
To retrieve only the syntax items for the sqlOperator syntax group: >
|
||||
echo OmniSyntaxList( ['sqlOperator'] )
|
||||
|
||||
To retrieve all syntax items for both the sqlOperator and sqlType groups: >
|
||||
echo OmniSyntaxList( ['sqlOperator', 'sqlType'] )
|
||||
|
||||
From within a plugin, you would typically assign the output to a List: >
|
||||
let myKeywords = []
|
||||
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
||||
|
||||
|
||||
|
||||
SQL *ft-sql-omni*
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*intro.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*intro.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
+6
-2
@@ -1,4 +1,4 @@
|
||||
*map.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*map.txt* For Vim version 7.3d. Last change: 2010 Jul 31
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1208,13 +1208,15 @@ completion can be enabled:
|
||||
-complete=event autocommand events
|
||||
-complete=expression Vim expression
|
||||
-complete=file file and directory names
|
||||
-complete=shellcmd Shell command
|
||||
-complete=filetype filetype names |'filetype'|
|
||||
-complete=function function name
|
||||
-complete=help help subjects
|
||||
-complete=highlight highlight groups
|
||||
-complete=mapping mapping name
|
||||
-complete=menu menus
|
||||
-complete=option options
|
||||
-complete=shellcmd Shell command
|
||||
-complete=syntax syntax file names |'syntax'|
|
||||
-complete=tag tags
|
||||
-complete=tag_listfiles tags, file names are shown when CTRL-D is hit
|
||||
-complete=var user variables
|
||||
@@ -1266,6 +1268,8 @@ the 'path' option: >
|
||||
: return split(globpath(&path, a:A), "\n")
|
||||
:endfun
|
||||
<
|
||||
This example does not work for file names with spaces!
|
||||
|
||||
|
||||
Range handling *E177* *E178* *:command-range*
|
||||
*:command-count*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*mbyte.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*mbyte.txt* For Vim version 7.3d. Last change: 2010 Jul 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||
@@ -928,7 +928,7 @@ See 'imactivatekey' for the format.
|
||||
|
||||
{only works Windows GUI and compiled with the |+multi_byte_ime| feature}
|
||||
|
||||
To input multibyte characters on Windows, you have to use Input Method Editor
|
||||
To input multibyte characters on Windows, you can use an Input Method Editor
|
||||
(IME). In process of your editing text, you must switch status (on/off) of
|
||||
IME many many many times. Because IME with status on is hooking all of your
|
||||
key inputs, you cannot input 'j', 'k', or almost all of keys to Vim directly.
|
||||
|
||||
+11
-2
@@ -1,4 +1,4 @@
|
||||
*message.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*message.txt* For Vim version 7.3d. Last change: 2010 Jul 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -467,7 +467,16 @@ Oh, oh. You must have been doing something complicated, or some other program
|
||||
is consuming your memory. Be careful! Vim is not completely prepared for an
|
||||
out-of-memory situation. First make sure that any changes are saved. Then
|
||||
try to solve the memory shortage. To stay on the safe side, exit Vim and
|
||||
start again. Also see |msdos-limitations|.
|
||||
start again.
|
||||
|
||||
Buffers are only partly kept in memory, thus editing a very large file is
|
||||
unlikely to cause an out-of-memory situation. Undo information is completely
|
||||
in memory, you can reduce that with these options:
|
||||
- 'undolevels' Set to a low value, or to -1 to disable undo completely. This
|
||||
helps for a change that affects all lines.
|
||||
- 'undoreload' Set to zero to disable.
|
||||
|
||||
Also see |msdos-limitations|.
|
||||
|
||||
*E339* >
|
||||
Pattern too long
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*mlang.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*mlang.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*motion.txt* For Vim version 7.3c. Last change: 2010 May 14
|
||||
*motion.txt* For Vim version 7.3d. Last change: 2010 May 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*netbeans.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*netbeans.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
||||
|
||||
+10
-7
@@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 7.3c. Last change: 2010 Jul 25
|
||||
*options.txt* For Vim version 7.3d. Last change: 2010 Aug 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1746,12 +1746,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
Value Effect ~
|
||||
0 Text is shown normally
|
||||
1 Each block of concealed text is replaced with the
|
||||
character defined in 'listchars' (default is a dash)
|
||||
and highlighted with the "Conceal" highlight group.
|
||||
1 Each block of concealed text is replaced with one
|
||||
character. If the syntax item does not have a custom
|
||||
replacement character defined (see |:syn-cchar|) the
|
||||
character defined in 'listchars' is used (default is a
|
||||
space).
|
||||
It is highlighted with the "Conceal" highlight group.
|
||||
2 Concealed text is completely hidden unless it has a
|
||||
custom replacement character defined (see
|
||||
|:syn-cchar|.
|
||||
|:syn-cchar|).
|
||||
3 Concealed text is completely hidden.
|
||||
|
||||
Note: in the cursor line concealed text is not hidden, so that you can
|
||||
@@ -4588,8 +4591,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'listchars' 'lcs' string (default "eol:$")
|
||||
global
|
||||
{not in Vi}
|
||||
Strings to use in 'list' mode. It is a comma separated list of string
|
||||
settings.
|
||||
Strings to use in 'list' mode and for the |:list| command. It is a
|
||||
comma separated list of string settings.
|
||||
eol:c Character to show at the end of each line. When
|
||||
omitted, there is no extra character at the end of the
|
||||
line.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_390.txt* For Vim version 7.3c. Last change: 2010 May 30
|
||||
*os_390.txt* For Vim version 7.3d. Last change: 2010 May 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Ralf Schandl
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_amiga.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*os_amiga.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_beos.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*os_beos.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_dos.txt* For Vim version 7.3c. Last change: 2006 Mar 30
|
||||
*os_dos.txt* For Vim version 7.3d. Last change: 2006 Mar 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_mac.txt* For Vim version 7.3c. Last change: 2006 Apr 30
|
||||
*os_mac.txt* For Vim version 7.3d. Last change: 2006 Apr 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_mint.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*os_mint.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Jens M. Felderhoff
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_msdos.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*os_msdos.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_os2.txt* For Vim version 7.3c. Last change: 2007 Apr 22
|
||||
*os_os2.txt* For Vim version 7.3d. Last change: 2007 Apr 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Paul Slootman
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_qnx.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*os_qnx.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Julian Kinraid
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_risc.txt* For Vim version 7.3c. Last change: 2008 Jun 28
|
||||
*os_risc.txt* For Vim version 7.3d. Last change: 2008 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Thomas Leonard
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_unix.txt* For Vim version 7.3c. Last change: 2005 Mar 29
|
||||
*os_unix.txt* For Vim version 7.3d. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
+11
-7
@@ -1,4 +1,4 @@
|
||||
*os_vms.txt* For Vim version 7.3c. Last change: 2009 Oct 28
|
||||
*os_vms.txt* For Vim version 7.3d. Last change: 2010 Jul 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL
|
||||
@@ -766,16 +766,20 @@ GNU_TOOLS.ZIP package downloadable from http://www.polarhome.com/vim/
|
||||
|
||||
9. VMS related changes *vms-changes*
|
||||
|
||||
Recent changes
|
||||
- The following plugins are included into VMS runtime:
|
||||
genutils 2.4, multiselect 2.2, multvals 3.1, selectbuf 4.3,
|
||||
bufexplorer 7.1.7, taglist 4.5
|
||||
- minor changes in vimrc (just in VMS runtime)
|
||||
Version 7.3
|
||||
- CTAGS 5.8 included
|
||||
- VMS compile warnings fixed - floating-point overflow warning corrected on VAX
|
||||
- filepath completition corrected - too many chars were escaped in filename
|
||||
and shell commands
|
||||
- the following plugins are included into VMS runtime:
|
||||
genutils 2.4, multiselect 2.2, multvals 3.1, selectbuf 4.3,
|
||||
bufexplorer 7.1.7, taglist 4.5
|
||||
- minor changes in vimrc (just in VMS runtime)
|
||||
- make_vms.mms - HUGE model is the default
|
||||
- [TESTDIR]make_vms.mms include as many tests possible
|
||||
- modify test30 and test54 for VMS
|
||||
- enable FLOAT feature in VMS port
|
||||
- os_vms.txt updated
|
||||
- os_vms.txt updated
|
||||
|
||||
Version 7.2 (2008 Aug 9)
|
||||
- VCF files write corrected
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_win32.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*os_win32.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by George Reilly
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pattern.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*pattern.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_getscript.txt* For Vim version 7.3c. Last change: 2009 Oct 14
|
||||
*pi_getscript.txt* For Vim version 7.3d. Last change: 2009 Oct 14
|
||||
>
|
||||
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell, Jr.
|
||||
<
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_gzip.txt* For Vim version 7.3c. Last change: 2002 Oct 29
|
||||
*pi_gzip.txt* For Vim version 7.3d. Last change: 2002 Oct 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
+83
-55
@@ -1,4 +1,4 @@
|
||||
*pi_netrw.txt* For Vim version 7.3c. Last change: 2010 May 14
|
||||
*pi_netrw.txt* For Vim version 7.3d. Last change: 2010 Jul 28
|
||||
|
||||
-----------------------------------------------------
|
||||
NETRW REFERENCE MANUAL by Charles E. Campbell, Jr.
|
||||
@@ -316,86 +316,95 @@ settings are described below, in |netrw-browser-options|, and in
|
||||
|netrw-externapp|:
|
||||
|
||||
*b:netrw_lastfile* last file Network-read/written retained on a
|
||||
per-buffer basis (supports plain :Nw )
|
||||
per-buffer basis (supports plain :Nw )
|
||||
|
||||
*g:netrw_bufsettings* the settings that netrw buffers have
|
||||
(default) noma nomod nonu nowrap ro nobl
|
||||
|
||||
*g:netrw_chgwin* specifies a window number where file edits will take
|
||||
place. (also see |netrw-C|)
|
||||
(default) not defined
|
||||
|
||||
*g:Netrw_funcref* specifies a function to be called when netrw edits
|
||||
a file. The file is first edited, and then the
|
||||
function reference (|Funcref|) is called.
|
||||
(default) not defined
|
||||
place. (also see |netrw-C|)
|
||||
(default) not defined
|
||||
|
||||
*g:Netrw_funcref* specifies a function (or functions) to be called when
|
||||
netrw edits a file. The file is first edited, and
|
||||
then the function reference (|Funcref|) is called.
|
||||
This variable may also hold a |List| of Funcrefs.
|
||||
(default) not defined
|
||||
>
|
||||
Example: place in .vimrc; affects all file opening
|
||||
fun! MyFuncRef()
|
||||
endfun
|
||||
let g:Netrw_funcref= function("MyFuncRef")
|
||||
<
|
||||
*g:netrw_ftp* if it doesn't exist, use default ftp
|
||||
=0 use default ftp (uid password)
|
||||
=1 use alternate ftp method (user uid password)
|
||||
If you're having trouble with ftp, try changing the
|
||||
value of this variable to see if the alternate ftp
|
||||
method works for your setup.
|
||||
=0 use default ftp (uid password)
|
||||
=1 use alternate ftp method (user uid password)
|
||||
If you're having trouble with ftp, try changing the
|
||||
value of this variable to see if the alternate ftp
|
||||
method works for your setup.
|
||||
|
||||
*g:netrw_ftpextracmd* default: doesn't exist
|
||||
If this variable exists, then any string it contains
|
||||
will be placed into the commands set to your ftp
|
||||
client. As an example:
|
||||
="passive"
|
||||
If this variable exists, then any string it contains
|
||||
will be placed into the commands set to your ftp
|
||||
client. As an example:
|
||||
="passive"
|
||||
|
||||
*g:netrw_ftpmode* ="binary" (default)
|
||||
="ascii"
|
||||
="ascii"
|
||||
|
||||
*g:netrw_ignorenetrc* =0 (default for linux, cygwin)
|
||||
=1 If you have a <.netrc> file but it doesn't work and
|
||||
you want it ignored, then set this variable as
|
||||
shown. (default for Windows + cmd.exe)
|
||||
=1 If you have a <.netrc> file but it doesn't work and
|
||||
you want it ignored, then set this variable as
|
||||
shown. (default for Windows + cmd.exe)
|
||||
|
||||
*g:netrw_menu* =0 disable netrw's menu
|
||||
=1 (default) netrw's menu enabled
|
||||
=1 (default) netrw's menu enabled
|
||||
|
||||
*g:netrw_nogx* if this variable exists, then the "gx" map will not
|
||||
be available (see |netrw-gx|)
|
||||
be available (see |netrw-gx|)
|
||||
|
||||
*g:netrw_uid* (ftp) user-id, retained on a per-vim-session basis
|
||||
*s:netrw_passwd* (ftp) password, retained on a per-vim-session basis
|
||||
|
||||
*g:netrw_preview* =0 (default) preview window shown in a horizontally
|
||||
split window
|
||||
=1 preview window shown in a vertically split window.
|
||||
Also affects the "previous window" (see |netrw-P|) in
|
||||
the same way.
|
||||
split window
|
||||
=1 preview window shown in a vertically split window.
|
||||
Also affects the "previous window" (see |netrw-P|) in
|
||||
the same way.
|
||||
|
||||
*g:netrw_scpport* = "-P" : option to use to set port for scp
|
||||
*g:netrw_sshport* = "-p" : option to use to set port for ssh
|
||||
|
||||
*g:netrw_sepchr* =\0xff
|
||||
=\0x01 for enc == euc-jp (and perhaps it should be for
|
||||
=\0x01 for enc == euc-jp (and perhaps it should be for
|
||||
others, too, please let me
|
||||
know)
|
||||
Separates priority codes from filenames internally.
|
||||
See |netrw-p12|.
|
||||
Separates priority codes from filenames internally.
|
||||
See |netrw-p12|.
|
||||
|
||||
*g:netrw_silent* =0 : transfers done normally
|
||||
=1 : transfers done silently
|
||||
=1 : transfers done silently
|
||||
|
||||
*g:netrw_use_errorwindow* =1 : messages from netrw will use a separate one
|
||||
line window. This window provides reliable
|
||||
delivery of messages. (default)
|
||||
=0 : messages from netrw will use echoerr ;
|
||||
messages don't always seem to show up this
|
||||
way, but one doesn't have to quit the window.
|
||||
line window. This window provides reliable
|
||||
delivery of messages. (default)
|
||||
=0 : messages from netrw will use echoerr ;
|
||||
messages don't always seem to show up this
|
||||
way, but one doesn't have to quit the window.
|
||||
|
||||
*g:netrw_win95ftp* =1 if using Win95, will remove four trailing blank
|
||||
lines that o/s's ftp "provides" on transfers
|
||||
=0 force normal ftp behavior (no trailing line removal)
|
||||
lines that o/s's ftp "provides" on transfers
|
||||
=0 force normal ftp behavior (no trailing line removal)
|
||||
|
||||
*g:netrw_cygwin* =1 assume scp under windows is from cygwin. Also
|
||||
permits network browsing to use ls with time and
|
||||
size sorting (default if windows)
|
||||
=0 assume Windows' scp accepts windows-style paths
|
||||
Network browsing uses dir instead of ls
|
||||
This option is ignored if you're using unix
|
||||
permits network browsing to use ls with time and
|
||||
size sorting (default if windows)
|
||||
=0 assume Windows' scp accepts windows-style paths
|
||||
Network browsing uses dir instead of ls
|
||||
This option is ignored if you're using unix
|
||||
|
||||
*g:netrw_use_nt_rcp* =0 don't use the rcp of WinNT, Win2000 and WinXP
|
||||
=1 use WinNT's rcp in binary mode (default)
|
||||
=1 use WinNT's rcp in binary mode (default)
|
||||
|
||||
PATHS *netrw-path* {{{2
|
||||
|
||||
@@ -456,7 +465,7 @@ browsed remote directories, for example.
|
||||
On the other hand, thanks go to Jan M. for pointing out the many
|
||||
vulnerabilities that netrw (and vim itself) had had in handling "crafted"
|
||||
filenames. The |shellescape()| and |fnameescape()| functions were written in
|
||||
response by Bram Moolenaar to handle this sort of problems, and netrw has
|
||||
response by Bram Moolenaar to handle these sort of problems, and netrw has
|
||||
been modified to use them. Still, my advice is, if the "filename" looks like
|
||||
a vim command that you aren't comfortable with having executed, don't open it.
|
||||
|
||||
@@ -589,7 +598,7 @@ password.
|
||||
PASSWORD *netrw-passwd*
|
||||
|
||||
The script attempts to get passwords for ftp invisibly using |inputsecret()|,
|
||||
a built-in Vim function. See |NetUserPass()| for how to change the password
|
||||
a built-in Vim function. See |netrw-userpass| for how to change the password
|
||||
after one has set it.
|
||||
|
||||
Unfortunately there doesn't appear to be a way for netrw to feed a password to
|
||||
@@ -778,8 +787,10 @@ variables listed below, and may be modified by the user.
|
||||
|
||||
The g:netrw_..._cmd options (|g:netrw_ftp_cmd| and |g:netrw_sftp_cmd|)
|
||||
specify the external program to use handle the ftp protocol. They may
|
||||
include command line options (such as -p for passive mode).
|
||||
include command line options (such as -p for passive mode). Example: >
|
||||
|
||||
let g:netrw_ftp_cmd= "ftp -p"
|
||||
<
|
||||
Browsing is supported by using the |g:netrw_list_cmd|; the substring
|
||||
"HOSTNAME" will be changed via substitution with whatever the current request
|
||||
is for a hostname.
|
||||
@@ -798,12 +809,12 @@ temporary file:
|
||||
open machine [port] open machine [port]
|
||||
user userid password userid password
|
||||
[g:netrw_ftpmode] password
|
||||
[g:netrw_extracmd] [g:netrw_ftpmode]
|
||||
[g:netrw_ftpextracmd] [g:netrw_ftpmode]
|
||||
get filename tempfile [g:netrw_extracmd]
|
||||
get filename tempfile >
|
||||
---------------------------------------------------------------------
|
||||
<
|
||||
The |g:netrw_ftpmode| and g:netrw_extracmd are optional.
|
||||
The |g:netrw_ftpmode| and |g:netrw_ftpextracmd| are optional.
|
||||
|
||||
Netrw then executes the lines above by use of a filter:
|
||||
>
|
||||
@@ -2544,13 +2555,13 @@ Associated setting variables: |g:netrw_chgwin|
|
||||
|
||||
(Vit Gottwald) How to generate public/private key and save
|
||||
public key it on server: >
|
||||
http://www.tartarus.org/~simon/puttydoc/Chapter8.html#pubkey-gettingready
|
||||
8.3 Getting ready for public key authentication
|
||||
http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter8.html#pubkey-gettingready
|
||||
(8.3 Getting ready for public key authentication)
|
||||
<
|
||||
How to use a private key with 'pscp': >
|
||||
|
||||
http://www.tartarus.org/~simon/puttydoc/Chapter5.html
|
||||
5.2.4 Using public key authentication with PSCP
|
||||
http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter5.html
|
||||
(5.2.4 Using public key authentication with PSCP)
|
||||
<
|
||||
(Ben Schmidt) I find the ssh included with cwRsync is
|
||||
brilliant, and install cwRsync or cwRsyncServer on most
|
||||
@@ -2695,9 +2706,26 @@ which is loaded automatically at startup (assuming :set nocp).
|
||||
==============================================================================
|
||||
12. History *netrw-history* {{{1
|
||||
|
||||
v140: Jul 27, 2010 * (Lech Lorens) unexpected change of window
|
||||
v139: May 14, 2010 * when viewing remote directory listings and
|
||||
changing listing style, going to tree listing
|
||||
mode was issuing two rather useless messages
|
||||
about the buffer name. They have now been
|
||||
silenced.
|
||||
* (Jean Johner) with "behave mswin", clicking
|
||||
on a filename in wide mode opened a new file
|
||||
with a missing first letter
|
||||
* (Britton Kerin) wanted netrw listings to be
|
||||
buflisted; the |g:netrw_bufsettings| option
|
||||
permits that.
|
||||
Jun 18, 2010 * (Jan Steffens) added support for xz compression
|
||||
Jun 23, 2010 * vimdiff dir1 dir2 now works
|
||||
Jul 27, 2010 * (John Orr) pointed out that the intended maparg
|
||||
test for gx was actually testing for g rather
|
||||
than gx. Fixed.
|
||||
v138: May 01, 2010 * added the bomb setting to the Save-Set-Restore
|
||||
option handling (for Tony M)
|
||||
* (Bram Moolenaar) netrw optionally sets cursorline
|
||||
May 14, 2010 * (Bram Moolenaar) netrw optionally sets cursorline
|
||||
(and sometimes cursorcolumn) for its display.
|
||||
This option setting was leaking through with
|
||||
remote file handling.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_paren.txt* For Vim version 7.3c. Last change: 2008 Jun 16
|
||||
*pi_paren.txt* For Vim version 7.3d. Last change: 2008 Jun 16
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_spec.txt* For Vim version 7.3c. Last change: 2006 Apr 24
|
||||
*pi_spec.txt* For Vim version 7.3d. Last change: 2006 Apr 24
|
||||
|
||||
by Gustavo Niemeyer ~
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_tar.txt* For Vim version 7.3c. Last change: 2009 Dec 28
|
||||
*pi_tar.txt* For Vim version 7.3d. Last change: 2010 Jul 27
|
||||
|
||||
+====================+
|
||||
| Tar File Interface |
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
|
||||
(remove NOSPAM from Campbell's email first)
|
||||
Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright*
|
||||
Copyright 2005-2010: The GPL (gnu public license) applies to *tar-copyright*
|
||||
tar.vim, tarPlugin.vim, and pi_tar.txt.
|
||||
No warranty, express or implied. Use At-Your-Own-Risk.
|
||||
|
||||
@@ -26,10 +26,10 @@ Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright*
|
||||
also write to the file. Currently, one may not make a new file in
|
||||
tar archives via the plugin.
|
||||
|
||||
*:Untarvim*
|
||||
UNTARVIM~
|
||||
*:Vimuntar*
|
||||
VIMUNTAR~
|
||||
|
||||
:Untarvim [vimhome]
|
||||
:Vimuntar [vimhome]
|
||||
|
||||
This command copies, if necessary, the tarball to the .vim or vimfiles
|
||||
directory using the first writable directory in the |'runtimepath'|
|
||||
@@ -83,6 +83,7 @@ Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright*
|
||||
4. History *tar-history*
|
||||
|
||||
|
||||
v25 Jun 19, 2010 * (Jan Steffens) added support for xz compression
|
||||
v24 Apr 07, 2009 * :Untarvim command implemented
|
||||
Sep 28, 2009 * Added lzma support
|
||||
v22 Aug 08, 2008 * security fixes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_vimball.txt* For Vim version 7.3c. Last change: 2010 Apr 12
|
||||
*pi_vimball.txt* For Vim version 7.3d. Last change: 2010 Apr 12
|
||||
|
||||
----------------
|
||||
Vimball Archiver
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_zip.txt* For Vim version 7.3c. Last change: 2010 Apr 12
|
||||
*pi_zip.txt* For Vim version 7.3d. Last change: 2010 Apr 12
|
||||
|
||||
+====================+
|
||||
| Zip File Interface |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*print.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*print.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quickfix.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*quickfix.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quickref.txt* For Vim version 7.3c. Last change: 2010 Jul 24
|
||||
*quickref.txt* For Vim version 7.3d. Last change: 2010 Jul 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quotes.txt* For Vim version 7.3c. Last change: 2006 Apr 24
|
||||
*quotes.txt* For Vim version 7.3d. Last change: 2006 Apr 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*recover.txt* For Vim version 7.3c. Last change: 2010 Jul 20
|
||||
*recover.txt* For Vim version 7.3d. Last change: 2010 Jul 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*remote.txt* For Vim version 7.3c. Last change: 2008 May 24
|
||||
*remote.txt* For Vim version 7.3d. Last change: 2008 May 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user