updated for version 7.0027
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
*help.txt* For Vim version 7.0aa. Last change: 2004 Jul 05
|
||||
*help.txt* For Vim version 7.0aa. Last change: 2004 Dec 30
|
||||
|
||||
VIM - main help file
|
||||
k
|
||||
@ -189,12 +189,6 @@ Standard plugins ~
|
||||
|pi_expl.txt| File explorer
|
||||
|
||||
LOCAL ADDITIONS: *local-additions*
|
||||
|engspchk.txt| English Spelling Checker (v57) May 25, 2004
|
||||
|example.txt| Example for a locally added help file
|
||||
|matchit.txt| Extended "%" matching
|
||||
|test.txt| Testing the h<>lp c<>mm<6D>nd n<>w
|
||||
|typecorr.txt| Plugin for correcting typing mistakes
|
||||
|helpp.txt| Dummy line to avoid an error message
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*bars* Bars example
|
||||
|
||||
261
runtime/lang/menu_pl_pl.utf-8.vim
Normal file
261
runtime/lang/menu_pl_pl.utf-8.vim
Normal file
@ -0,0 +1,261 @@
|
||||
" Menu Translations: Polish
|
||||
" Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl>
|
||||
" Initial Translation: Marcin Dalecki <dalecki@cs.net.pl>
|
||||
" Last Change: 06 Sep 2001
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
finish
|
||||
endif
|
||||
let did_menu_trans = 1
|
||||
|
||||
scriptencoding iso-8859-2
|
||||
|
||||
" Help menu
|
||||
menutrans &Help Po&moc
|
||||
menutrans &Overview<Tab><F1> &Spis\ Tre<EFBFBD>ci<Tab><F1>
|
||||
menutrans &How-to\ links &Odno<EFBFBD>niki\ JTZ
|
||||
menutrans &Credits Po&dzi<EFBFBD>kowania
|
||||
menutrans &User\ Manual Podr<EFBFBD>cznik\ &u<EFBFBD>ytkownika
|
||||
menutrans Co&pying &Kopiowanie
|
||||
menutrans &Version &Wersja
|
||||
menutrans &About o\ &Aplikacji
|
||||
|
||||
" File menu
|
||||
menutrans &File &Plik
|
||||
menutrans &Open\.\.\.<Tab>:e &Otw<EFBFBD>rz\.\.\.<Tab>:e
|
||||
menutrans Sp&lit-Open\.\.\.<Tab>:sp Otw<EFBFBD>rz\ z\ &podzia<EFBFBD>em\.\.\.<Tab>:sp
|
||||
menutrans &New<Tab>:enew &Nowy<Tab>:enew
|
||||
menutrans &Close<Tab>:close &Zamknij<Tab>:close
|
||||
menutrans &Save<Tab>:w Za&pisz<Tab>:w
|
||||
menutrans Save\ &As\.\.\.<Tab>:sav Zapisz\ &jako\.\.\.<Tab>:sav
|
||||
menutrans Split\ &Diff\ with\.\.\. Podziel\ na\ diff-a\ mi<EFBFBD>dzy\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Podziel\ <20>atane\ przez\.\.\.
|
||||
menutrans &Print &Drukuj
|
||||
menutrans Sa&ve-Exit<Tab>:wqa Zapisz\ i\ w&yjd<EFBFBD><Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Wyj<EFBFBD>cie<Tab>:qa
|
||||
|
||||
" Edit menu
|
||||
menutrans &Edit &Edycja
|
||||
menutrans &Undo<Tab>u &Cofnij<Tab>u
|
||||
menutrans &Redo<Tab>^R &Pon<EFBFBD>w<Tab>^R
|
||||
menutrans Rep&eat<Tab>\. P&owt<EFBFBD>rz<Tab>\.
|
||||
menutrans Cu&t<Tab>"+x W&ytnij<Tab>"+x
|
||||
menutrans &Copy<Tab>"+y &Kopiuj<Tab>"+y
|
||||
menutrans &Paste<Tab>"+gP &Wklej<Tab>"+gP
|
||||
menutrans Put\ &Before<Tab>[p Wstaw\ p&rzed<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p Wstaw\ p&o<Tab>]p
|
||||
menutrans &Select\ all<Tab>ggVG Z&aznacz\ ca<EFBFBD>o<EFBFBD><EFBFBD><Tab>ggVG
|
||||
menutrans &Find\.\.\. &Szukaj\.\.\.
|
||||
menutrans &Find<Tab>/ &Szukaj<Tab>/
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Zamie<EFBFBD>\.\.\.
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s &Zamie<EFBFBD><Tab>:%s
|
||||
menutrans Find\ and\ Rep&lace &Zamie<EFBFBD>
|
||||
menutrans Find\ and\ Rep&lace<Tab>:s &Zamie<EFBFBD><Tab>:s
|
||||
menutrans Options\.\.\. Opcje\.\.\.
|
||||
menutrans Settings\ &Window Ustawienia
|
||||
menutrans &Global\ Settings Ustawienia\ &globalne
|
||||
menutrans F&ile\ Settings Ustawienia\ dla\ pliku
|
||||
menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! &Numerowanie\ wierszy<Tab>:set\ nu!
|
||||
menutrans Toggle\ &List\ Mode<Tab>:set\ list! Tryb\ &listowania<Tab>:set\ list!
|
||||
menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! Za&wijanie\ wierszy<Tab>:set\ wrap!
|
||||
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! <09>amanie\ wie&rsza<Tab>:set\ lbr!
|
||||
menutrans Toggle\ &expand-tab<Tab>:set\ et! Rozwijani&e\ tabulator<EFBFBD>w<Tab>:set\ et!
|
||||
menutrans Toggle\ &auto-indent<Tab>:set\ ai! &Automatyczne\ wci<EFBFBD>cia<Tab>:set\ ai!
|
||||
menutrans Toggle\ &C-indenting<Tab>:set\ cin! Wci<EFBFBD>cia\ &C<Tab>:set\ cin!
|
||||
menutrans &Shiftwidth &Szeroko<EFBFBD><EFBFBD>\ wci<EFBFBD>cia
|
||||
menutrans Te&xt\ Width\.\.\. D<EFBFBD>ugo<EFBFBD><EFBFBD>\ linii\.\.\.
|
||||
menutrans &File\ Format\.\.\. &Format\ pliku\.\.\.
|
||||
menutrans Soft\ &Tabstop Rozmiar\ &tabulacji
|
||||
menutrans C&olor\ Scheme Zestawy\ kolor<EFBFBD>w
|
||||
menutrans &Keymap Uk<EFBFBD>ady\ klawiatury
|
||||
menutrans None <09>aden
|
||||
menutrans accents akcenty
|
||||
menutrans hebrew hebrajski
|
||||
menutrans hebrewp hebrajski\ p
|
||||
menutrans russian-jcuken rosyjski-jcuken
|
||||
menutrans russian-jcukenwin rosyjski-jcukenwin
|
||||
menutrans russian-yawerty rosyjski-yawerty
|
||||
|
||||
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! Podkre<EFBFBD>lanie\ &wzorc<EFBFBD>w<Tab>:set\ hls!
|
||||
|
||||
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! &Ignorowanie\ wielko<EFBFBD>ci<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Showmatch<Tab>:set\ sm! &Pokazywanie\ pasuj<EFBFBD>cych<Tab>:set\ sm!
|
||||
|
||||
menutrans &Context\ lines Wiersze\ &kontekstowe
|
||||
menutrans &Virtual\ Edit Obr<EFBFBD>bka\ &wirtualna
|
||||
|
||||
menutrans Never Nigdy
|
||||
menutrans Block\ Selection Zaznaczanie\ zakresu
|
||||
menutrans Insert\ mode Tryb\ wprowadzania
|
||||
menutrans Block\ and\ Insert Zakres\ i\ wprowadzanie
|
||||
menutrans Always Zawsze
|
||||
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! Tryb\ wprowadzania<Tab>:set\ im!
|
||||
menutrans Search\ &Path\.\.\. Scie<EFBFBD>ka\ poszukiwania\.\.\.
|
||||
menutrans Ta&g\ Files\.\.\. Pliki\ tag<EFBFBD>w\.\.\.
|
||||
|
||||
|
||||
"
|
||||
" GUI options
|
||||
menutrans Toggle\ &Toolbar Pasek\ narz<EFBFBD>dzi
|
||||
menutrans Toggle\ &Bottom\ Scrollbar Dolny\ przewijacz
|
||||
menutrans Toggle\ &Left\ Scrollbar &Lewy\ przewijacz
|
||||
menutrans Toggle\ &Right\ Scrollbar P&rawy\ przewijacz
|
||||
|
||||
" Programming menu
|
||||
menutrans &Tools &Narz<EFBFBD>dzia
|
||||
menutrans &Jump\ to\ this\ tag<Tab>g^] &Skocz\ do\ taga<Tab>g^]
|
||||
menutrans Jump\ &back<Tab>^T Skok\ w\ &ty<EFBFBD><Tab>^T
|
||||
menutrans Build\ &Tags\ File &Tw<EFBFBD>rz\ plik\ tag<EFBFBD>w
|
||||
" Folding
|
||||
menutrans &Folding &Zwijanie
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Zwi<77>/rozwi<EFBFBD><Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv &Linia\ kursora<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx &Tylko\ linia\ kursora<Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm Zwi<EFBFBD>\ wi<EFBFBD>cej<Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Z&wi<EFBFBD>\ wszystkie<Tab>zM
|
||||
menutrans &Open\ all\ folds<Tab>zR Rozwi<EFBFBD>\ wszystkie<Tab>zR
|
||||
menutrans O&pen\ more\ folds<Tab>zr R&ozwi<EFBFBD>\ wi<EFBFBD>cej<Tab>zr
|
||||
|
||||
menutrans Create\ &Fold<Tab>zf T&w<EFBFBD>rz\ zawini<EFBFBD>cie<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd U&su<EFBFBD>\ zawini<EFBFBD>cie<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD &Usu<EFBFBD>\ wszystkie\ zawini<EFBFBD>cia<Tab>zD
|
||||
menutrans Fold\ column\ &width Szeroko<EFBFBD><EFBFBD>\ kolumny\ za&wini<EFBFBD><EFBFBD>
|
||||
menutrans Fold\ Met&hod Me&toda\ zawijania
|
||||
menutrans M&anual &R<EFBFBD>cznie
|
||||
menutrans I&ndent W&ci<EFBFBD>cie
|
||||
menutrans E&xpression W&yrazenie
|
||||
menutrans S&yntax S&k<EFBFBD>adnia
|
||||
menutrans Ma&rker Zn&acznik
|
||||
|
||||
" Diff
|
||||
menutrans &Update &Od<EFBFBD>wie<EFBFBD>
|
||||
menutrans &Get\ Block &Pobierz\ blok
|
||||
menutrans &Put\ Block &Wstaw\ blok
|
||||
|
||||
" Make and stuff...
|
||||
menutrans &Make<Tab>:make M&ake<Tab>:make
|
||||
menutrans &List\ Errors<Tab>:cl &Poka<EFBFBD>\ b<EFBFBD><EFBFBD>dy<Tab>:cl
|
||||
menutrans L&ist\ Messages<Tab>:cl! W&ylicz\ powiadomienia<Tab>:cl!
|
||||
menutrans &Next\ Error<Tab>:cn &Nast<EFBFBD>pny\ b<EFBFBD><EFBFBD>d<Tab>:cn
|
||||
menutrans &Previous\ Error<Tab>:cp &Poprzedni\ b<EFBFBD><EFBFBD>d<Tab>:cp
|
||||
menutrans &Older\ List<Tab>:cold &Starsza\ lista<Tab>:cold
|
||||
menutrans N&ewer\ List<Tab>:cnew N&owsza\ lista<Tab>:cnew
|
||||
menutrans Error\ &Window Okno\ komu&nikat<EFBFBD>w
|
||||
menutrans &Update<Tab>:cwin Akt&ualizuj<Tab>:cwin
|
||||
menutrans &Close<Tab>:cclose &Zamknij<Tab>:cclose
|
||||
menutrans &Open<Tab>:copen &Otw<EFBFBD>rz<Tab>:copen
|
||||
|
||||
menutrans &Set\ Compiler U&staw\ kompilator
|
||||
menutrans &Convert\ to\ HEX<Tab>:%!xxd Kody\ szesnastkowe<Tab>:%!xxd
|
||||
menutrans Conve&rt\ back<Tab>:%!xxd\ -r Zwyk<EFBFBD>y\ tekst<Tab>:%!xxd\ -r
|
||||
|
||||
" Names for buffer menu.
|
||||
menutrans &Buffers &Bufory
|
||||
menutrans &Refresh\ menu Od<EFBFBD>wie<EFBFBD>
|
||||
menutrans Delete Skasuj
|
||||
menutrans &Alternate &Zmie<EFBFBD>
|
||||
menutrans &Next &Nast<EFBFBD>pny
|
||||
menutrans &Previous &Poprzedni
|
||||
menutrans [No\ File] [Brak\ Pliku]
|
||||
|
||||
" Window menu
|
||||
menutrans &Window &Widoki
|
||||
menutrans &New<Tab>^Wn &Nowy<Tab>^Wn
|
||||
menutrans S&plit<Tab>^Ws Po&dziel<Tab>^Ws
|
||||
menutrans Sp&lit\ To\ #<Tab>^W^^ P&odziel\ na\ #<Tab>^W^^
|
||||
menutrans Split\ &Vertically<Tab>^Wv Podziel\ pionowo<Tab>^Wv
|
||||
menutrans Split\ File\ E&xplorer Otw<EFBFBD>rz\ mened<EFBFBD>er\ plik<EFBFBD>w
|
||||
|
||||
menutrans &Close<Tab>^Wc &Zamknij<Tab>^Wc
|
||||
menutrans Close\ &Other(s)<Tab>^Wo Zamknij\ &inne<Tab>^Wo
|
||||
menutrans Ne&xt<Tab>^Ww &Nast<EFBFBD>pny<Tab>^Ww
|
||||
menutrans P&revious<Tab>^WW &Poprzedni<Tab>^WW
|
||||
menutrans &Equal\ Size<Tab>^W= &Wyr<EFBFBD>wnaj\ wysoko<EFBFBD>ci<Tab>^W=
|
||||
menutrans &Max\ Height<Tab>^W_ Z&maksymalizuj\ wysoko<EFBFBD><EFBFBD><Tab>^W_
|
||||
menutrans M&in\ Height<Tab>^W1_ Zminim&alizuj\ wysoko<EFBFBD><EFBFBD><Tab>^W1_
|
||||
menutrans Max\ Width<Tab>^W\| Maksymalna\ szeroko<EFBFBD><EFBFBD><Tab>^W\|
|
||||
menutrans Min\ Width<Tab>^W1\| Minimalna\ szeroko<EFBFBD><EFBFBD><Tab>^W1\|
|
||||
menutrans Max\ &Width<Tab>^W\| Zmaksymalizuj\ szeroko<EFBFBD><EFBFBD><Tab>^W\|
|
||||
menutrans Min\ Widt&h<Tab>^W1\| Zminimalizuj\ szeroko<EFBFBD><EFBFBD><Tab>^W1\|
|
||||
menutrans Move\ &To &Id<EFBFBD>\ do
|
||||
menutrans &Top<Tab>^WK &G<EFBFBD>ra<Tab>^WK
|
||||
menutrans &Bottom<Tab>^WJ &D<EFBFBD><EFBFBD><Tab>^WJ
|
||||
menutrans &Left\ side<Tab>^WH &Lewa\ strona<Tab>^WH
|
||||
menutrans &Right\ side<Tab>^WL &Prawa\ strona<Tab>^WL
|
||||
menutrans Rotate\ &Up<Tab>^WR Obr<EFBFBD><EFBFBD>\ w\ &g<EFBFBD>r<EFBFBD><Tab>^WR
|
||||
menutrans Rotate\ &Down<Tab>^Wr Obr<EFBFBD><EFBFBD>\ w\ &d<EFBFBD><EFBFBD><Tab>^Wr
|
||||
menutrans Split\ &Vertically<Tab>^Wv &Podziel\ w\ poziomie<Tab>^Wv
|
||||
menutrans Select\ Fo&nt\.\.\. Wybierz\ &czcionk<EFBFBD>\.\.\.
|
||||
|
||||
" The popup menu
|
||||
menutrans &Undo &Cofnij
|
||||
menutrans Cu&t W&ytnij
|
||||
menutrans &Copy &Kopiuj
|
||||
menutrans &Paste &Wklej
|
||||
menutrans &Delete &Skasuj
|
||||
menutrans Select\ Blockwise Zaznacz\ &blok
|
||||
menutrans Select\ &Word Zaznacz\ &s<EFBFBD>owo
|
||||
menutrans Select\ &Line Zaznacz\ w&iersz
|
||||
menutrans Select\ &Block Zaznacz\ &blok
|
||||
menutrans Select\ &All Zaznacz\ c&a<EFBFBD>o<EFBFBD><EFBFBD>
|
||||
|
||||
" The GUI toolbar
|
||||
if has("toolbar")
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otw<EFBFBD>rz plik
|
||||
tmenu ToolBar.Save Zapisz bie<EFBFBD><EFBFBD>cy plik
|
||||
tmenu ToolBar.SaveAll Zapisz wszystkie pliki
|
||||
tmenu ToolBar.Print Drukuj
|
||||
tmenu ToolBar.Undo Cofnij
|
||||
tmenu ToolBar.Redo Pon<EFBFBD>w
|
||||
tmenu ToolBar.Cut Wytnij
|
||||
tmenu ToolBar.Copy Skopiuj
|
||||
tmenu ToolBar.Paste Wklej
|
||||
tmenu ToolBar.Find Szukaj...
|
||||
tmenu ToolBar.FindNext Szukaj nast<EFBFBD>pnego
|
||||
tmenu ToolBar.FindPrev Szukaj poprzedniego
|
||||
tmenu ToolBar.Replace Szukaj i zamieniaj...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nowy widok
|
||||
tmenu ToolBar.WinSplit Podziel widok
|
||||
tmenu ToolBar.WinMax Zmaksymalizuj widok
|
||||
tmenu ToolBar.WinMin Zminimalizuj widok
|
||||
tmenu ToolBar.WinClose Zamknij widok
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Za<EFBFBD>aduj sesj<EFBFBD>
|
||||
tmenu ToolBar.SaveSesn Zachowaj bie<EFBFBD><EFBFBD>c<EFBFBD> sesj<EFBFBD>
|
||||
tmenu ToolBar.RunScript Uruchom skrypt Vima
|
||||
tmenu ToolBar.Make Wykonaj bie<EFBFBD><EFBFBD>cy projekt
|
||||
tmenu ToolBar.Shell Otw<EFBFBD>rz pow<EFBFBD>ok<EFBFBD>
|
||||
tmenu ToolBar.RunCtags Tw<EFBFBD>rz tagi w bie<EFBFBD><EFBFBD>cym katalogu
|
||||
tmenu ToolBar.TagJump Skok do taga pod kursorem
|
||||
tmenu ToolBar.Help Pomoc Vima
|
||||
tmenu ToolBar.FindHelp Przeszukuj pomoc Vim-a
|
||||
endfun
|
||||
endif
|
||||
|
||||
" Syntax menu
|
||||
menutrans &Show\ filetypes\ in\ menu &Pokazuj\ rodzaj\ pliku\ w\ menue
|
||||
menutrans &Syntax &Sk<EFBFBD>adnia
|
||||
menutrans Set\ '&syntax'\ only Ustaw\ tylko\ '&syntax'
|
||||
menutrans Set\ '&filetype'\ too Ustaw\ r<EFBFBD>wnie<EFBFBD>\ '&filetype'
|
||||
menutrans &Off &Wy<EFBFBD><EFBFBD>cz
|
||||
menutrans &Manual &R<EFBFBD>cznie
|
||||
menutrans A&utomatic A&utomatyczne
|
||||
menutrans on/off\ for\ &This\ file w<><77>cz/w&y<EFBFBD><EFBFBD>cz\ dla\ pliku
|
||||
menutrans Co&lor\ test Test\ &kolor<EFBFBD>w
|
||||
menutrans &Highlight\ test &Test\ pod<EFBFBD>wietlania
|
||||
menutrans &Convert\ to\ HTML Przetw<EFBFBD>rz\ na\ &HTML
|
||||
|
||||
" dialog texts
|
||||
let menutrans_no_file = "[Brak pliku]"
|
||||
let menutrans_help_dialog = "Wprowad<61> komend<6E> lub s<>owo, aby otrzyma<6D> pomoc o:\n\nPrzedrostek i_ oznacza komend<6E> trybu Wprowadzania (np. i_CTRL-X)\nPrzedrostek c_ oznacza komend<6E> edycji wiersza komend (np. c_<Del>)\nPrzedrostek ' oznacza nazw<7A> opcji (np. 'shiftwidth')"
|
||||
let g:menutrans_path_dialog = "Wprowad<61> <20>cie<69>k<EFBFBD> poszukiwania plik<69>w.\nProsz<73> rozdziela<6C> nazwy katalog<6F>w przecinkiem."
|
||||
let g:menutrans_tags_dialog = "Podaj nazwy plik<69>w tag<61>w.\nProsz<73> rozdziela<6C> nazwy przecinkiem."
|
||||
let g:menutrans_textwidth_dialog = "Wprowad<61> now<6F> szeroko<6B><6F> tekstu (0 wy<77><79>cza przewijanie): "
|
||||
let g:menutrans_fileformat_dialog = "Wybierz format w kt<6B>rym ten plik ma by<62> zapisany"
|
||||
@ -382,7 +382,7 @@ if has("keymap")
|
||||
endif
|
||||
unlet s:n
|
||||
endif
|
||||
if has("win32") || has("win16") || has("gui_gtk") || has("gui_kde") || has("gui_photon") || has("gui_mac")
|
||||
if has("win32") || has("win16") || has("gui_motif") || has("gui_gtk") || has("gui_kde") || has("gui_photon") || has("gui_mac")
|
||||
an 20.470 &Edit.Select\ Fo&nt\.\.\. :set guifont=*<CR>
|
||||
endif
|
||||
|
||||
|
||||
185
runtime/plugin/tar.vim
Normal file
185
runtime/plugin/tar.vim
Normal file
@ -0,0 +1,185 @@
|
||||
" vim:set ts=4 sw=4 ai nobackup:
|
||||
|
||||
" tar.vim -- a vim plugin for browsing tarfiles
|
||||
" Copyright (c) 2002, Michael C. Toren <mct@toren.net>
|
||||
"
|
||||
" Updates are available from <http://michael.toren.net/code/>. If you
|
||||
" find this script useful, or have suggestions for improvements, please
|
||||
" let me know.
|
||||
"
|
||||
" Usage:
|
||||
" Once this script is installed, attempting to edit a tarfile will present
|
||||
" the user with a list of files contained in the tar archive. By moving the
|
||||
" cursor over a filename and pressing ENTER, the contents of a file can be
|
||||
" viewed in read-only mode, in a new window. Unfortunately, write support
|
||||
" for tarfile components is not currently possible.
|
||||
"
|
||||
" Requirements:
|
||||
" GNU tar, or a tar implementation that supports the "P" (don't strip
|
||||
" out leading /'s from filenames), and "O" (extract files to standard
|
||||
" output) options. Additionally, gzip is required for handling *.tar.Z,
|
||||
" *.tar.gz, and *.tgz compressed tarfiles, and bzip2 is required for
|
||||
" handling *.tar.bz2 compressed tarfiles. A unix-like operating system
|
||||
" is probably also required.
|
||||
"
|
||||
" Installation:
|
||||
" Place this file, tar.vim, in your $HOME/.vim/plugin directory, and
|
||||
" either restart vim, or execute ":source $HOME/.vim/plugin/tar.vim"
|
||||
"
|
||||
" Todo:
|
||||
" - Handle zipfiles?
|
||||
" - Implement write support, somehow.
|
||||
"
|
||||
" License:
|
||||
" This program is free software; you can redistribute it and/or modify it
|
||||
" under the terms of the GNU General Public License, version 2, as published
|
||||
" by the Free Software Foundation.
|
||||
"
|
||||
" This program is distributed in the hope that it will be useful, but
|
||||
" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
" or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
" for more details.
|
||||
"
|
||||
" A copy of the GNU GPL is available as /usr/doc/copyright/GPL on Debian
|
||||
" systems, or on the World Wide Web at http://www.gnu.org/copyleft/gpl.html
|
||||
" You can also obtain it by writing to the Free Software Foundation, Inc.,
|
||||
" 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
"
|
||||
" Changelog:
|
||||
" Tue Dec 31 13:38:08 EST 2002 First release to beta testers
|
||||
" Sat Jan 4 14:06:19 EST 2003 Version 1.00 released
|
||||
|
||||
let s:version = "1.00"
|
||||
|
||||
if has("autocmd")
|
||||
augroup tar
|
||||
au!
|
||||
au BufReadCmd tarfile:* call s:TarRead(expand("<afile>"), 1)
|
||||
au BufReadCmd tarfile:*/* call s:TarRead(expand("<afile>"), 1)
|
||||
au FileReadCmd tarfile:* call s:TarRead(expand("<afile>"), 0)
|
||||
au FileReadCmd tarfile:*/* call s:TarRead(expand("<afile>"), 0)
|
||||
|
||||
au BufWriteCmd tarfile:* call s:TarWrite(expand("<afile>"))
|
||||
au BufWriteCmd tarfile:*/* call s:TarWrite(expand("<afile>"))
|
||||
au FileWriteCmd tarfile:* call s:TarWrite(expand("<afile>"))
|
||||
au FileWriteCmd tarfile:*/* call s:TarWrite(expand("<afile>"))
|
||||
|
||||
au BufReadCmd *.tar call s:TarBrowse(expand("<afile>"))
|
||||
au BufReadCmd *.tar.gz call s:TarBrowse(expand("<afile>"))
|
||||
au BufReadCmd *.tar.bz2 call s:TarBrowse(expand("<afile>"))
|
||||
au BufReadCmd *.tar.Z call s:TarBrowse(expand("<afile>"))
|
||||
au BufReadCmd *.tgz call s:TarBrowse(expand("<afile>"))
|
||||
augroup END
|
||||
endif
|
||||
|
||||
function! s:TarWrite(argument)
|
||||
echo "ERROR: Sorry, no write support for tarfiles yet"
|
||||
endfunction
|
||||
|
||||
function! s:TarRead(argument, cleanup)
|
||||
let l:argument = a:argument
|
||||
let l:argument = substitute(l:argument, '^tarfile:', '', '')
|
||||
let l:argument = substitute(l:argument, '^\~', $HOME, '')
|
||||
|
||||
let l:tarfile = l:argument
|
||||
while 1
|
||||
if (l:tarfile == "" || l:tarfile == "/")
|
||||
echo "ERROR: Could not find a readable tarfile in path:" l:argument
|
||||
return
|
||||
endif
|
||||
|
||||
if filereadable(l:tarfile) " found it!
|
||||
break
|
||||
endif
|
||||
|
||||
let l:tarfile = fnamemodify(l:tarfile, ":h")
|
||||
endwhile
|
||||
|
||||
let l:toextract = strpart(l:argument, strlen(l:tarfile) + 1)
|
||||
|
||||
if (l:toextract == "")
|
||||
return
|
||||
endif
|
||||
|
||||
let l:cat = s:TarCatCommand(l:tarfile)
|
||||
execute "r !" . l:cat . " < '" . l:tarfile . "'"
|
||||
\ " | tar OPxf - '" . l:toextract . "'"
|
||||
|
||||
if (a:cleanup)
|
||||
0d "blank line
|
||||
execute "doautocmd BufReadPost " . expand("%")
|
||||
setlocal readonly
|
||||
silent preserve
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:TarBrowse(tarfile)
|
||||
setlocal noswapfile
|
||||
setlocal buftype=nofile
|
||||
setlocal bufhidden=hide
|
||||
setlocal filetype=
|
||||
setlocal nobuflisted
|
||||
setlocal buftype=nofile
|
||||
setlocal wrap
|
||||
|
||||
let l:tarfile = a:tarfile
|
||||
let b:tarfile = l:tarfile
|
||||
let l:cat = s:TarCatCommand(l:tarfile)
|
||||
|
||||
if ! filereadable(l:tarfile)
|
||||
let l:tarfile = substitute(l:tarfile, '^tarfile:', '', '')
|
||||
endif
|
||||
|
||||
if ! filereadable(l:tarfile)
|
||||
echo "ERROR: File not readable:" l:tarfile
|
||||
return
|
||||
endif
|
||||
|
||||
call s:Say("\" tar.vim version " . s:version)
|
||||
call s:Say("\" Browsing tarfile " . l:tarfile)
|
||||
call s:Say("\" Hit ENTER to view contents in new window")
|
||||
call s:Say("")
|
||||
|
||||
silent execute "r!" . l:cat . "<'" . l:tarfile . "'| tar Ptf - "
|
||||
0d "blank line
|
||||
/^$/1
|
||||
|
||||
setlocal readonly
|
||||
setlocal nomodifiable
|
||||
noremap <silent> <buffer> <cr> :call <SID>TarBrowseSelect()<cr>
|
||||
endfunction
|
||||
|
||||
function! s:TarBrowseSelect()
|
||||
let l:line = getline(".")
|
||||
|
||||
if (l:line =~ '^" ')
|
||||
return
|
||||
endif
|
||||
|
||||
if (l:line =~ '/$')
|
||||
echo "Please specify a file, not a directory"
|
||||
return
|
||||
endif
|
||||
|
||||
let l:selection = "tarfile:" . b:tarfile . "/" . l:line
|
||||
new
|
||||
wincmd _
|
||||
execute "e " . l:selection
|
||||
endfunction
|
||||
|
||||
" kludge to deal with compressed archives
|
||||
function! s:TarCatCommand(tarfile)
|
||||
if a:tarfile =~# '\.\(gz\|tgz\|Z\)$'
|
||||
let l:cat = "gzip -d -c"
|
||||
elseif a:tarfile =~# '\.bz2$'
|
||||
let l:cat = "bzip2 -d -c"
|
||||
else
|
||||
let l:cat = "cat"
|
||||
endif
|
||||
return l:cat
|
||||
endfunction
|
||||
|
||||
function! s:Say(string)
|
||||
let @" = a:string
|
||||
$ put
|
||||
endfunction
|
||||
@ -2,8 +2,9 @@
|
||||
" Language: BIND 8.x configuration file
|
||||
" Maintainer: glory hump <rnd@web-drive.ru>
|
||||
" Last change: Mon May 21 04:51:01 SAMST 2001
|
||||
" Updated: by Martin Dalecki 2004-12-31
|
||||
" Filenames: named.conf
|
||||
" URL: http://rnd.web-drive.ru/vim/syntax/named.vim
|
||||
" URL: http://rnd.web-drive.ru/vim/syntax/named.vim [DEFUNCT]
|
||||
" $Id$
|
||||
"
|
||||
" NOTE
|
||||
@ -33,10 +34,11 @@ set cpo-=C
|
||||
" BIND configuration file
|
||||
|
||||
syn match namedComment "//.*"
|
||||
syn match namedComment "#.*"
|
||||
syn region namedComment start="/\*" end="\*/"
|
||||
syn region namedString start=/"/ end=/"/ contained
|
||||
" --- omitted trailing semicolon FIXME
|
||||
syn match namedError /[^;{]$/
|
||||
" --- omitted trailing semicolon
|
||||
syn match namedError /[^;{#]$/
|
||||
|
||||
" --- top-level keywords
|
||||
|
||||
|
||||
Reference in New Issue
Block a user