diff options
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | CMakeLists.txt | 64 | ||||
-rw-r--r-- | cmake/InstallHelpers.cmake | 136 | ||||
-rw-r--r-- | runtime/doc/Makefile | 212 | ||||
-rw-r--r-- | runtime/doc/eval.txt | 2 | ||||
-rw-r--r-- | runtime/doc/evim-fr.1 | 57 | ||||
-rwxr-xr-x | runtime/doc/evim-it.1 | 54 | ||||
-rw-r--r-- | runtime/doc/evim-pl.1 | 53 | ||||
-rw-r--r-- | runtime/doc/evim-ru.1 | 59 | ||||
-rw-r--r-- | runtime/doc/index.txt | 1 | ||||
-rw-r--r-- | runtime/doc/makehtml.awk | 7 | ||||
-rw-r--r-- | runtime/doc/manpages/de/vim-de.1 (renamed from runtime/doc/vim-de.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/evim.1 (renamed from runtime/doc/evim.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/fr/evim-fr.1 (renamed from runtime/doc/evim-fr.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/fr/vim-fr.1 (renamed from runtime/doc/vim-fr.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/fr/vimdiff-fr.1 (renamed from runtime/doc/vimdiff-fr.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/fr/vimtutor-fr.1 (renamed from runtime/doc/vimtutor-fr.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/fr/xxd-fr.1 (renamed from runtime/doc/xxd-fr.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/it/evim-it.1 (renamed from runtime/doc/evim-it.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/it/vim-it.1 (renamed from runtime/doc/vim-it.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/it/vimdiff-it.1 (renamed from runtime/doc/vimdiff-it.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/it/vimtutor-it.1 (renamed from runtime/doc/vimtutor-it.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/it/xxd-it.1 (renamed from runtime/doc/xxd-it.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ja/evim-ja.1 (renamed from runtime/doc/evim-ja.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ja/vim-ja.1 (renamed from runtime/doc/vim-ja.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ja/vimdiff-ja.1 (renamed from runtime/doc/vimdiff-ja.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ja/vimtutor-ja.1 (renamed from runtime/doc/vimtutor-ja.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ja/xxd-ja.1 (renamed from runtime/doc/xxd-ja.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/pl/evim-pl.1 (renamed from runtime/doc/evim-pl.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/pl/vim-pl.1 (renamed from runtime/doc/vim-pl.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/pl/vimdiff-pl.1 (renamed from runtime/doc/vimdiff-pl.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/pl/vimtutor-pl.1 (renamed from runtime/doc/vimtutor-pl.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/pl/xxd-pl.1 (renamed from runtime/doc/xxd-pl.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ru/evim-ru.1 (renamed from runtime/doc/evim-ru.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ru/vim-ru.1 (renamed from runtime/doc/vim-ru.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ru/vimdiff-ru.1 (renamed from runtime/doc/vimdiff-ru.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ru/vimtutor-ru.1 (renamed from runtime/doc/vimtutor-ru.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/ru/xxd-ru.1 (renamed from runtime/doc/xxd-ru.UTF-8.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/vim.1 (renamed from runtime/doc/vim.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/vimdiff.1 (renamed from runtime/doc/vimdiff.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/vimtutor.1 (renamed from runtime/doc/vimtutor.1) | 0 | ||||
-rw-r--r-- | runtime/doc/manpages/xxd.1 (renamed from runtime/doc/xxd.1) | 0 | ||||
-rw-r--r-- | runtime/doc/message.txt | 2 | ||||
-rw-r--r-- | runtime/doc/os_390.txt | 1 | ||||
-rw-r--r-- | runtime/doc/various.txt | 2 | ||||
-rw-r--r-- | runtime/doc/vim-de.1 | 478 | ||||
-rw-r--r-- | runtime/doc/vim-fr.1 | 589 | ||||
-rwxr-xr-x | runtime/doc/vim-it.1 | 566 | ||||
-rw-r--r-- | runtime/doc/vim-pl.1 | 558 | ||||
-rw-r--r-- | runtime/doc/vim-ru.1 | 489 | ||||
-rw-r--r-- | runtime/doc/vim.man | 428 | ||||
-rwxr-xr-x[-rw-r--r--] | runtime/doc/vim2html.pl | 0 | ||||
-rw-r--r-- | runtime/doc/vimdiff-fr.1 | 54 | ||||
-rwxr-xr-x | runtime/doc/vimdiff-it.1 | 48 | ||||
-rw-r--r-- | runtime/doc/vimdiff-pl.1 | 46 | ||||
-rw-r--r-- | runtime/doc/vimdiff-ru.1 | 50 | ||||
-rw-r--r-- | runtime/doc/vimdiff.man | 46 | ||||
-rw-r--r-- | runtime/doc/vimtutor-fr.1 | 60 | ||||
-rwxr-xr-x | runtime/doc/vimtutor-it.1 | 58 | ||||
-rw-r--r-- | runtime/doc/vimtutor-pl.1 | 51 | ||||
-rw-r--r-- | runtime/doc/vimtutor-ru.1 | 51 | ||||
-rw-r--r-- | runtime/doc/vimtutor.man | 50 | ||||
-rw-r--r-- | runtime/doc/xxd-fr.1 | 396 | ||||
-rwxr-xr-x | runtime/doc/xxd-it.1 | 402 | ||||
-rw-r--r-- | runtime/doc/xxd-pl.1 | 389 | ||||
-rw-r--r-- | runtime/doc/xxd-ru.1 | 408 | ||||
-rw-r--r-- | runtime/doc/xxd.man | 262 | ||||
-rw-r--r--[-rwxr-xr-x] | runtime/indent/lifelines.vim | 0 | ||||
-rw-r--r-- | src/nvim/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/nvim/api/tabpage.c | 25 | ||||
-rw-r--r-- | src/nvim/api/vim.c | 2 | ||||
-rw-r--r-- | src/nvim/buffer.c | 20 | ||||
-rw-r--r-- | src/nvim/diff.c | 21 | ||||
-rw-r--r-- | src/nvim/eval.c | 38 | ||||
-rw-r--r-- | src/nvim/ex_cmds.c | 9 | ||||
-rw-r--r-- | src/nvim/ex_cmds2.c | 17 | ||||
-rw-r--r-- | src/nvim/ex_docmd.c | 55 | ||||
-rw-r--r-- | src/nvim/fileio.c | 20 | ||||
-rw-r--r-- | src/nvim/globals.h | 15 | ||||
-rw-r--r-- | src/nvim/main.c | 8 | ||||
-rw-r--r-- | src/nvim/mark.c | 73 | ||||
-rw-r--r-- | src/nvim/memory.c | 10 | ||||
-rw-r--r-- | src/nvim/misc1.c | 17 | ||||
-rw-r--r-- | src/nvim/option.c | 21 | ||||
-rw-r--r-- | src/nvim/po/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/nvim/quickfix.c | 17 | ||||
-rw-r--r-- | src/nvim/screen.c | 22 | ||||
-rw-r--r-- | src/nvim/window.c | 125 |
88 files changed, 502 insertions, 6154 deletions
diff --git a/.gitignore b/.gitignore index 4a6bbfec0f..5332ef5c76 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,11 @@ # local make targets local.mk +# runtime/doc +/runtime/doc/*.html +/runtime/doc/**/*.man +/runtime/doc/tags +/runtime/doc/tags.ref +/runtime/doc/doctags +/runtime/doc/errors.log + diff --git a/CMakeLists.txt b/CMakeLists.txt index cb680da902..3622dabb23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,12 +119,13 @@ endif() message(STATUS "Using the Lua interpreter ${LUA_PRG}") -add_subdirectory(config) -add_subdirectory(src/nvim) -add_subdirectory(test/includes) - +# Setup busted. find_program(BUSTED_PRG busted) +if(NOT BUSTED_OUTPUT_TYPE) + set(BUSTED_OUTPUT_TYPE "utfTerminal") +endif() +# Setup make. find_program(MAKE_PRG NAMES gmake make) if(MAKE_PRG) execute_process( @@ -146,10 +147,47 @@ if(CMAKE_GENERATOR MATCHES "Makefiles") set(MAKE_PRG "$(MAKE)") endif() -if(NOT BUSTED_OUTPUT_TYPE) - set(BUSTED_OUTPUT_TYPE "utfTerminal") -endif() +# CMake is painful here. It will create the destination using the user's +# current umask, and we don't want that. And we don't just want to install +# the target directory, as it will mess with existing permissions. So this +# seems like the best compromise. If we create it, then everyone can see it. +# If it's preexisting, leave it alone. +include(InstallHelpers) + +install_helper( + DIRECTORY runtime + DESTINATION share/nvim) + +file(GLOB_RECURSE RUNTIME_PROGRAMS + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + runtime/*.pl runtime/*.awk runtime/*.sh + runtime/tools/ref + runtime/tools/vimm) + +foreach(PROG ${RUNTIME_PROGRAMS}) + get_filename_component(BASEDIR ${PROG} PATH) + install_helper(PROGRAMS ${PROG} DESTINATION share/nvim/${BASEDIR}) +endforeach() + +install(SCRIPT ${CMAKE_MODULE_PATH}/GenerateHelptags.cmake) + +# Unfortunately, the below does not work under Ninja. Ninja doesn't use a +# pseudo-tty when launching processes, because it can put many jobs in parallel +# and eat-up all the available pseudo-ttys. Unfortunately, that doesn't work +# well with the legacy tests. I have a branch that converts them to run under +# CTest, but it needs a little more work. +# add_custom_target(test +# COMMAND ${MAKE_PRG} -C ${CMAKE_CURRENT_SOURCE_DIR}/src/nvim/testdir +# VIMPROG=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/nvim) + +# Go down the tree. +add_subdirectory(config) +add_subdirectory(src/nvim) +add_subdirectory(test/includes) + +# Setup some test-related bits. We do this after going down the tree because we +# need some of the targets. if(BUSTED_PRG) get_property(TEST_INCLUDE_DIRS DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES) @@ -176,15 +214,3 @@ if(BUSTED_PRG) -P ${CMAKE_MODULE_PATH}/RunUnittests.cmake DEPENDS nvim-test unittest-headers) endif() - -install(DIRECTORY runtime DESTINATION share/nvim) -install(SCRIPT ${CMAKE_MODULE_PATH}/GenerateHelptags.cmake) - -# Unfortunately, the below does not work under Ninja. Ninja doesn't use a -# pseudo-tty when launching processes, because it can put many jobs in parallel -# and eat-up all the available pseudo-ttys. Unfortunately, that doesn't work -# well with the legacy tests. I have a branch that converts them to run under -# CTest, but it needs a little more work. -# add_custom_target(test -# COMMAND ${MAKE_PRG} -C ${CMAKE_CURRENT_SOURCE_DIR}/src/nvim/testdir -# VIMPROG=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/nvim) diff --git a/cmake/InstallHelpers.cmake b/cmake/InstallHelpers.cmake new file mode 100644 index 0000000000..de2f970cc1 --- /dev/null +++ b/cmake/InstallHelpers.cmake @@ -0,0 +1,136 @@ +# This will create any directories that need to be created in the destination +# path with the typical owner, group, and user permissions--independent of the +# umask setting. +function(create_install_dir_with_perms) + cmake_parse_arguments(_install_dir + "" + "DESTINATION" + "DIRECTORY_PERMISSIONS" + ${ARGN} + ) + + if(NOT _install_dir_DESTINATION) + message(FATAL_ERROR "Must specify DESTINATION") + endif() + + if(NOT _install_dir_DIRECTORY_PERMISSIONS) + set(_install_dir_DIRECTORY_PERMISSIONS + OWNER_READ OWNER_WRITE OWNER_EXECUTE + GROUP_READ GROUP_EXECUTE + WORLD_READ WORLD_EXECUTE) + endif() + + install(CODE + " + if(ENV{DESTDIR}) + set(PREFIX \$ENV{DESTDIR}/\${CMAKE_INSTALL_PREFIX}) + else() + set(PREFIX \${CMAKE_INSTALL_PREFIX}) + endif() + + set(_current_dir \"\${PREFIX}/${_install_dir_DESTINATION}\") + set(_dir_permissions \"${_install_dir_DIRECTORY_PERMISSIONS}\") + + set(_parent_dirs) + while(NOT EXISTS \${_current_dir}) + list(APPEND _parent_dirs \${_current_dir}) + get_filename_component(_current_dir \${_current_dir} PATH) + endwhile() + + if(_parent_dirs) + list(REVERSE _parent_dirs) + endif() + + # Create any missing folders with the useful permissions. Note: this uses + # a hidden option of CMake, but it's been shown to work with 2.8.11 thru + # 3.0.2. + foreach(_current_dir \${_parent_dirs}) + if(NOT IS_DIRECTORY \${_current_dir}) + file(INSTALL DESTINATION \${_current_dir} + TYPE DIRECTORY + DIR_PERMISSIONS \${_dir_permissions} + FILES \"\") + endif() + endforeach() + ") +endfunction() + +# This is to prevent the user's umask from corrupting the expected permissions +# for the parent directories. We want to behave like the install tool here: +# preserve what's there already, but create new things with useful permissions. +function(install_helper) + cmake_parse_arguments(_install_helper + "" + "DESTINATION;DIRECTORY;RENAME" + "FILES;PROGRAMS;TARGETS;DIRECTORY_PERMISSIONS;FILE_PERMISSIONS" + ${ARGN} + ) + + if(NOT _install_helper_DESTINATION AND NOT _install_helper_TARGETS) + message(FATAL_ERROR "Must specify the DESTINATION path") + endif() + + if(NOT _install_helper_FILES AND NOT _install_helper_DIRECTORY AND + NOT _install_helper_PROGRAMS AND NOT _install_helper_TARGETS) + message(FATAL_ERROR "Must specify FILES, PROGRAMS, TARGETS, or a DIRECTORY to install") + endif() + + if(NOT _install_helper_DIRECTORY_PERMISSIONS) + set(_install_helper_DIRECTORY_PERMISSIONS + OWNER_READ OWNER_WRITE OWNER_EXECUTE + GROUP_READ GROUP_EXECUTE + WORLD_READ WORLD_EXECUTE) + endif() + + if(NOT _install_helper_FILE_PERMISSIONS) + set(_install_helper_FILE_PERMISSIONS + OWNER_READ OWNER_WRITE + GROUP_READ + WORLD_READ) + endif() + + if(_install_helper_RENAME) + set(RENAME RENAME ${_install_helper_RENAME}) + endif() + + if(_install_helper_TARGETS) + set(_install_helper_DESTINATION "") + endif() + + if(_install_helper_TARGETS) + # Ensure the bin area exists with the correct permissions. + create_install_dir_with_perms(DESTINATION bin) + + install( + TARGETS ${_install_helper_TARGETS} + RUNTIME DESTINATION bin) + else() + create_install_dir_with_perms( + DESTINATION ${_install_helper_DESTINATION} + DIRECTORY_PERMISSIONS ${_install_helper_DIRECTORY_PERMISSIONS}) + endif() + + if(_install_helper_DIRECTORY) + install( + DIRECTORY ${_install_helper_DIRECTORY} + DESTINATION ${_install_helper_DESTINATION} + DIRECTORY_PERMISSIONS ${_install_helper_DIRECTORY_PERMISSIONS} + FILE_PERMISSIONS ${_install_helper_FILE_PERMISSIONS}) + endif() + + if(_install_helper_FILES) + install( + FILES ${_install_helper_FILES} + DESTINATION ${_install_helper_DESTINATION} + PERMISSIONS ${_install_helper_FILE_PERMISSIONS} + ${RENAME}) + endif() + + if(_install_helper_PROGRAMS) + install( + PROGRAMS ${_install_helper_PROGRAMS} + DESTINATION ${_install_helper_DESTINATION} + PERMISSIONS ${_install_helper_FILE_PERMISSIONS} + ${RENAME}) + endif() +endfunction() diff --git a/runtime/doc/Makefile b/runtime/doc/Makefile index 8bd5aaf049..16ce4d9082 100644 --- a/runtime/doc/Makefile +++ b/runtime/doc/Makefile @@ -9,10 +9,6 @@ AWK = awk # Set to $(VIMTARGET) when executed from src/Makefile. VIMEXE = vim -# include the config.mk from the source directory. It's only needed to set -# AWK, used for "make html". Comment this out if the include gives problems. -include ../../src/auto/config.mk - DOCS = \ arabic.txt \ autocmd.txt \ @@ -34,7 +30,6 @@ DOCS = \ gui_w16.txt \ gui_w32.txt \ gui_x11.txt \ - hangulin.txt \ hebrew.txt \ help.txt \ helphelp.txt \ @@ -52,12 +47,17 @@ DOCS = \ index.txt \ insert.txt \ intro.txt \ + job_control.txt \ map.txt \ mbyte.txt \ message.txt \ mlang.txt \ motion.txt \ + msgpack_rpc.txt \ netbeans.txt \ + nvim_clipboard.txt \ + nvim_intro.txt \ + nvim_python.txt \ options.txt \ os_390.txt \ os_amiga.txt \ @@ -162,7 +162,6 @@ HTMLS = \ gui_w16.html \ gui_w32.html \ gui_x11.html \ - hangulin.html \ hebrew.html \ helphelp.html \ howto.html \ @@ -179,12 +178,17 @@ HTMLS = \ index.html \ insert.html \ intro.html \ + job_control.html \ map.html \ mbyte.html \ message.html \ mlang.html \ motion.html \ + msgpack_rpc.html \ netbeans.html \ + nvim_clipboard.html \ + nvim_intro.html \ + nvim_python.html \ options.html \ os_390.html \ os_amiga.html \ @@ -270,32 +274,43 @@ HTMLS = \ windows.html \ workshop.html -CONVERTED = \ - vim-fr.UTF-8.1 \ - evim-fr.UTF-8.1 \ - vimdiff-fr.UTF-8.1 \ - vimtutor-fr.UTF-8.1 \ - xxd-fr.UTF-8.1 \ - vim-it.UTF-8.1 \ - evim-it.UTF-8.1 \ - vimdiff-it.UTF-8.1 \ - vimtutor-it.UTF-8.1 \ - xxd-it.UTF-8.1 \ - vim-pl.UTF-8.1 \ - evim-pl.UTF-8.1 \ - vimdiff-pl.UTF-8.1 \ - vimtutor-pl.UTF-8.1 \ - xxd-pl.UTF-8.1 \ - vim-ru.UTF-8.1 \ - evim-ru.UTF-8.1 \ - vimdiff-ru.UTF-8.1 \ - vimtutor-ru.UTF-8.1 \ - xxd-ru.UTF-8.1 +MANPAGES = \ + manpages/vim.man \ + manpages/evim.man \ + manpages/vimdiff.man \ + manpages/vimtutor.man \ + manpages/xxd.man \ + manpages/de/vim-de.man \ + manpages/fr/vim-fr.man \ + manpages/fr/evim-fr.man \ + manpages/fr/vimdiff-fr.man \ + manpages/fr/vimtutor-fr.man \ + manpages/fr/xxd-fr.man \ + manpages/pl/vim-pl.man \ + manpages/pl/evim-pl.man \ + manpages/pl/vimdiff-pl.man \ + manpages/pl/vimtutor-pl.man \ + manpages/pl/xxd-pl.man \ + manpages/it/vim-it.man \ + manpages/it/evim-it.man \ + manpages/it/vimdiff-it.man \ + manpages/it/vimtutor-it.man \ + manpages/it/xxd-it.man \ + manpages/ru/vim-ru.man \ + manpages/ru/evim-ru.man \ + manpages/ru/vimdiff-ru.man \ + manpages/ru/vimtutor-ru.man \ + manpages/ru/xxd-ru.man \ + manpages/ja/vim-ja.man \ + manpages/ja/evim-ja.man \ + manpages/ja/vimdiff-ja.man \ + manpages/ja/vimtutor-ja.man \ + manpages/ja/xxd-ja.man .SUFFIXES: -.SUFFIXES: .c .o .txt .html +.SUFFIXES: .c .o .txt .html .1 .man -all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED) +all: tags manpages html # Use Vim to generate the tags file. Can only be used when Vim has been # compiled and installed. Supports multiple languages. @@ -310,28 +325,15 @@ tags: doctags $(DOCS) doctags: doctags.c $(CC) doctags.c -o doctags -vim.man: vim.1 - nroff -man vim.1 | sed -e s/.//g > vim.man - -evim.man: evim.1 - nroff -man evim.1 | sed -e s/.//g > evim.man - -vimdiff.man: vimdiff.1 - nroff -man vimdiff.1 | sed -e s/.//g > vimdiff.man +manpages: $(MANPAGES) -vimtutor.man: vimtutor.1 - nroff -man vimtutor.1 | sed -e s/.//g > vimtutor.man - -xxd.man: xxd.1 - nroff -man xxd.1 | sed -e s/.//g > xxd.man - -uganda.nsis.txt: uganda.txt - sed -e 's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e 's/vim:tw=78://' \ - uganda.txt | uniq >uganda.nsis.txt +# OSX groff dosn't support utf-8 as input encoding, so this won't work there. +.1.man: + groff -k -mandoc -Tutf8 $< | sed -e s/.^H//g > $@ # Awk version of .txt to .html conversion. html: noerrors tags $(HTMLS) - @if test -f errors.log; then more errors.log; fi + @if test -f errors.log; then cat errors.log; fi noerrors: -rm -f errors.log @@ -359,119 +361,5 @@ perlhtml: tags $(DOCS) ./vim2html.pl tags $(DOCS) clean: - -rm doctags *.html tags.ref - -# These files are in the extra archive, skip if not present - -arabic.txt: - touch arabic.txt - -farsi.txt: - touch farsi.txt - -hebrew.txt: - touch hebrew.txt - -russian.txt: - touch russian.txt - -gui_w16.txt: - touch gui_w16.txt - -gui_w32.txt: - touch gui_w32.txt - -if_ole.txt: - touch if_ole.txt - -os_390.txt: - touch os_390.txt - -os_amiga.txt: - touch os_amiga.txt - -os_beos.txt: - touch os_beos.txt - -os_dos.txt: - touch os_dos.txt - -os_mac.txt: - touch os_mac.txt - -os_mint.txt: - touch os_mint.txt - -os_os2.txt: - touch os_os2.txt - -os_qnx.txt: - touch os_qnx.txt - -os_risc.txt: - touch os_risc.txt - -os_win32.txt: - touch os_win32.txt - -# Note that $< works with GNU make while $> works for BSD make. -# Is there a solution that works for both?? -vim-fr.UTF-8.1: vim-fr.1 - iconv -f latin1 -t utf-8 $< >$@ - -evim-fr.UTF-8.1: evim-fr.1 - iconv -f latin1 -t utf-8 $< >$@ - -vimdiff-fr.UTF-8.1: vimdiff-fr.1 - iconv -f latin1 -t utf-8 $< >$@ - -vimtutor-fr.UTF-8.1: vimtutor-fr.1 - iconv -f latin1 -t utf-8 $< >$@ - -xxd-fr.UTF-8.1: xxd-fr.1 - iconv -f latin1 -t utf-8 $< >$@ - -vim-it.UTF-8.1: vim-it.1 - iconv -f latin1 -t utf-8 $< >$@ - -evim-it.UTF-8.1: evim-it.1 - iconv -f latin1 -t utf-8 $< >$@ - -vimdiff-it.UTF-8.1: vimdiff-it.1 - iconv -f latin1 -t utf-8 $< >$@ - -vimtutor-it.UTF-8.1: vimtutor-it.1 - iconv -f latin1 -t utf-8 $< >$@ - -xxd-it.UTF-8.1: xxd-it.1 - iconv -f latin1 -t utf-8 $< >$@ - -vim-pl.UTF-8.1: vim-pl.1 - iconv -f latin2 -t utf-8 $< >$@ - -evim-pl.UTF-8.1: evim-pl.1 - iconv -f latin2 -t utf-8 $< >$@ - -vimdiff-pl.UTF-8.1: vimdiff-pl.1 - iconv -f latin2 -t utf-8 $< >$@ - -vimtutor-pl.UTF-8.1: vimtutor-pl.1 - iconv -f latin2 -t utf-8 $< >$@ - -xxd-pl.UTF-8.1: xxd-pl.1 - iconv -f latin2 -t utf-8 $< >$@ - -vim-ru.UTF-8.1: vim-ru.1 - iconv -f KOI8-R -t utf-8 $< >$@ - -evim-ru.UTF-8.1: evim-ru.1 - iconv -f KOI8-R -t utf-8 $< >$@ - -vimdiff-ru.UTF-8.1: vimdiff-ru.1 - iconv -f KOI8-R -t utf-8 $< >$@ - -vimtutor-ru.UTF-8.1: vimtutor-ru.1 - iconv -f KOI8-R -t utf-8 $< >$@ + -rm -f doctags *.html tags.ref $(MANPAGES) $(HTMLS) errors.log -xxd-ru.UTF-8.1: xxd-ru.1 - iconv -f KOI8-R -t utf-8 $< >$@ diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index ec2086e3eb..5953648148 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -6714,7 +6714,7 @@ gui_photon Compiled with Photon GUI. gui_running Vim is running in the GUI, or it will start soon. gui_win32 Compiled with MS Windows Win32 GUI. gui_win32s idem, and Win32s system being used (Windows 3.1) -hangul_input Compiled with Hangul input support. |hangul| +hangul_input Compiled with Hangul input support. iconv Can use iconv() for conversion. insert_expand Compiled with support for CTRL-X expansion commands in Insert mode. diff --git a/runtime/doc/evim-fr.1 b/runtime/doc/evim-fr.1 deleted file mode 100644 index 898ed70c2a..0000000000 --- a/runtime/doc/evim-fr.1 +++ /dev/null @@ -1,57 +0,0 @@ -.TH EVIM 1 "16 février 2002" -.SH NAME -evim \- « Easy Vim », édite un fichier avec Vim sans utiliser les modes -.SH SYNOPSIS -.br -.B evim -[options] [fichier ...] -.br -.B eview -.SH DESCRIPTION -.B eVim -lance -.B Vim -et configure ses options afin qu'il se comporte comme un éditeur sans mode. -Cela reste Vim, mais vous pouvez l'utiliser comme un éditeur « cliquer-taper ». -Cela ressemble beaucoup à l'édition avec Notepad sur MS-Windows. -.B eVim -ne fonctionne qu'avec l'interface graphique, qui est nécessaire pour permettre -l'utilisation des menus et de la barre d'outils. -.PP -Il n'est utile qu'aux personnes qui ne parviennent vraiment pas à utiliser Vim -de façon traditionnelle. L'édition est alors bien moins efficace. -.PP -.B eview -fait la même chose, mais démarre Vim en mode Lecture-seule. -Cela revient à lancer evim \-R. -.PP -Voir vim(1) pour davantage d'informations sur Vim, les options, etc. -.PP -L'option 'insertmode' est activée pour permettre de taper directement du texte. -.br -Les mappages sont configurés pour que Copier et Coller fonctionnent avec les -raccourcis habituels de MS-Windows. CTRL-X coupe le texte, CTRL-C copie le -texte et CTRL-V colle le texte. -Vous pouvez utiliser CTRL-Q pour obtenir la fonction originale de CTRL-V. -.SH OPTIONS -Voir vim(1). -.SH FICHIERS -.TP 15 -/usr/local/lib/vim/evim.vim -Le script chargé pour initialiser eVim. -.SH AUSSI CONNU SOUS -Également connu sous le nom « Vim pour gumbies » [N.D.T. : Flying Circus...]. -Quand vous utilisez eVim, vous êtes censé prendre un mouchoir de poche, -faire un noeud à chaque coin et le porter sur votre tête. -.SH VOIR AUSSI -vim(1) -.SH AUTEUR -La majeure partie de -.B Vim -a été écrite par Bram Moolenaar, avec l'aide de nombreux autres contributeurs. -Voir le menu Aide/Remerciements ou ":help credits" dans -.B Vim. -.SH TRADUCTION -Cette page de manuel a été traduite David Blanchet. -<david.blanchet@free.fr> 2005-03-26. -Mise à jour 2013-05-10, Dominique Pellé <dominique.pelle@gmail.com> diff --git a/runtime/doc/evim-it.1 b/runtime/doc/evim-it.1 deleted file mode 100755 index 1e98a2d3f7..0000000000 --- a/runtime/doc/evim-it.1 +++ /dev/null @@ -1,54 +0,0 @@ -.TH EVIM 1 "16 febbraio 2002 " -.SH NOME -evim \- Vim "facile", Vim impostato in modo da poter essere usato -facilmente per modificare file, anche da chi non abbia familiarità -con i comandi. -.SH SINTASSI -.br -.B evim -[opzioni] [file ..] -.br -.B eview -.SH DESCRIZIONE -.B evim -Inizia -.B Vim -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 menù e barra -strumenti. -.PP -Da usarsi soltanto se non si è in grado di lavorare con Vim nella -maniera usuale. -La modifica file sarà molto meno efficiente. -.PP -.B eview -come sopra, ma parte in modalità "Sola Lettura". Funziona come evim \-R. -.PP -Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc. -.PP -L'opzione 'insertmode' è impostata per poter immettere del testo direttamente. -.br -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 che si otterrebbe con CTRL-V in Vim nativo. -.SH OPZIONI -Vedere vim(1). -.SH FILE -.TP 15 -/usr/local/lib/vim/evim.vim -Lo script caricato per inizializzare eVim. -.SH NAC [NOTO ANCHE COME] -Noto Anche Come "Vim per semplici". -Quando usate evim si suppone che prendiate un fazzoletto, -facciate un nodo ad ogni angolo e ve lo mettiate in testa. -.SH VEDERE ANCHE -vim(1) -.SH AUTORE -Buona parte di -.B Vim -è stato scritto da Bram Moolenaar, con molto aiuto da altri. -Vedere il menù "Aiuto/Crediti". diff --git a/runtime/doc/evim-pl.1 b/runtime/doc/evim-pl.1 deleted file mode 100644 index 490ee3a7ce..0000000000 --- a/runtime/doc/evim-pl.1 +++ /dev/null @@ -1,53 +0,0 @@ -.TH EVIM 1 "2002 Lut 16" -.SH NAZWA -evim \- ³atwy Vim, edytuj plik w Vimie z ustawieniami dla edycji bez -trybów -.SH SYNOPSIS -.br -.B evim -[opcje] [plik ...] -.br -.B eview -.SH OPIS -.B eVim -uruchamia -.B Vima -i ustawia opcje tak by zachowywa³ siê jak edytor bez trybów. -To jest ca³y czas Vim ale u¿ywany jako edytor wska¿-i-kliknij. -Zachowanie w stylu Notepada dla MS-Windows. -.B eVim -bêdzie zawsze uruchomiony w GUI by w³±czyæ menu i pasek narzêdzi. -.PP -Przeznaczony tylko dla ludzi, którzy naprawdê nie mog± pracowaæ -z Vimem w normalny sposób. Edycja bêdzie o wiele mniej efektywna. -.PP -.B eview -dzia³a tak samo, ale zaczyna w trybie tylko do odczytu. Dzia³a tak -samo jak evim \-R. -.PP -Zobacz vim(1) by poznaæ wiêcej szczegó³ów o Vimie, opcjach, itd. -.PP -Opcja 'insertmode' jest ustawiona by mo¿na by³o od razu wpisywaæ -tekst. -.br -Mapowania s± ustawione tak by Kopiowanie i Wklejanie dzia³a³o -z klawiszami MS-Windows. CTRL-X wycina, CTRL-C kopiuje a CTRL-V -wkleja tekst. U¿yj CTRL-Q by uzyskaæ oryginalne przeznaczenie -CTRL-V. -.SH OPCJE -Zobacz vim(1). -.SH PLIKI -.TP 15 -/usr/local/lib/vim/evim.vim -Skrypt uruchamiania dla eVima. -.SH ZNANY JAKO -Znany jako "Vim dla frajerów". -Je¶li u¿ywasz eVima oczekuje siê, ¿e wyjmiesz chusteczkê do nosa, -zrobisz wêzê³ w ka¿dym rogu i bêdziesz to nosi³ na g³owie. -.SH ZOBACZ TAK¯E -vim(1) -.SH AUTOR -Wiêkszo¶æ -.B Vima -zosta³a napisana przez Brama Moolenaara z du¿± pomoc± innych osób. -Zobacz menu Help/Credits. diff --git a/runtime/doc/evim-ru.1 b/runtime/doc/evim-ru.1 deleted file mode 100644 index 6d6f5debf3..0000000000 --- a/runtime/doc/evim-ru.1 +++ /dev/null @@ -1,59 +0,0 @@ -.TH EVIM 1 "2002 February 16" -.SH éíñ -evim \- ÐÒÏÓÔÏÊ Vim, ÐÏÚ×ÏÌÑÅÔ ÒÅÄÁËÔÉÒÏ×ÁÔØ ÆÁÊÌ Ó ÐÏÍÏÝØÀ Vim × ÂÅÚÒÅÖÉÍÎÏÍ ÒÅÖÉÍÅ -.SH ëïíáîäîáñ óôòïëá -.br -.B evim -[ËÌÀÞÉ] [ÆÁÊÌ ..] -.br -.B eview -.SH ïðéóáîéå -ëÏÍÁÎÄÁ -.B evim -ÚÁÐÕÓËÁÅÔ -.B Vim -É ÎÁÓÔÒÁÉ×ÁÅÔ ÒÑÄ ÏÐÃÉÊ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÞÔÏ ÏÎ ÎÁÞÉÎÁÅÔ ×ÅÓÔÉ ÓÅÂÑ -ËÁË ÏÂÙÞÎÙÊ ÂÅÚÒÅÖÉÍÎÙÊ ÒÅÄÁËÔÏÒ. ÷ ÜÔÏÍ ÒÅÖÉÍÅ Vim ÎÁÐÏÍÉÎÁÅÔ -Notepad ÉÚ MS-Windows. -.B eVim -×ÓÅÇÄÁ ÚÁÐÕÓËÁÅÔÓÑ Ó ÐÏÄÄÅÒÖËÏÊ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ, ÞÔÏÂÙ ÏÂÅÓÐÅÞÉÔØ -ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÍÅÎÀ É ÉÎÓÔÒÕÍÅÎÔÁÌØÎÏÊ ÐÁÎÅÌÉ. -.PP -üÔÁ ËÏÍÁÎÄÁ ÓÏÚÄÁÎÁ ÄÌÑ ÔÅÈ, ËÔÏ ÐÏ ËÁËÉÍ-ÔÏ ÐÒÉÞÉÎÁÍ ÎÅ × ÓÏÓÔÏÑÎÉÉ -ÒÁÂÏÔÁÔØ Ó Vim × ÏÂÙÞÎÏÍ ÒÅÖÉÍÅ. òÅÄÁËÔÉÒÏ×ÁÎÉÅ ÆÁÊÌÏ× ÐÒÉ ÜÔÏÍ ÐÒÏÉÓÈÏÄÉÔ -ÇÏÒÁÚÄÏ ÍÅÎÅÅ ÜÆÆÅËÔÉ×ÎÏ, ÞÅÍ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÏÂÙÞÎÏÇÏ Vim. -.PP -ëÏÍÁÎÄÁ -.B eview -×ÙÐÏÌÎÑÅÔ ÐÏÞÔÉ ÔÕ ÖÅ ÓÁÍÕÀ ÚÁÄÁÞÕ, ÎÏ ÆÁÊÌ ÏÔËÒÙ×ÁÅÔÓÑ × ÒÅÖÉÍÅ "ÔÏÌØËÏ -ÄÌÑ ÞÔÅÎÉÑ". éÓÐÏÌØÚÏ×ÁÎÉÅ ÜÔÏÊ ËÏÍÁÎÄÙ ÐÏÌÎÏÓÔØÀ ÉÄÅÎÔÉÞÎÏ ÉÓÐÏÌØÚÏ×ÁÎÉÀ -evim \-R. -.PP -ðÏÄÒÏÂÎÅÅ Ï Vim, ËÌÀÞÁÈ ÚÁÐÕÓËÁ É Ô.Ð. ÓÍÏÔÒÉÔÅ ÎÁ ÓÔÒÁÎÉÃÅ ÓÐÒÁ×ÏÞÎÉËÁ -vim(1). -.PP -ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ -.B evim -×ËÌÀÞÁÅÔÓÑ ÏÐÃÉÑ 'insertmode', ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ××ÏÄÉÔØ ÔÅËÓÔ ÎÁÐÒÑÍÕÀ. -.br -ëÒÏÍÅ ÔÏÇÏ, ÎÁÓÔÒÁÉ×ÁÀÔÓÑ ÐÒÉ×ÑÚËÉ, ÐÏÚ×ÏÌÑÀÝÉÅ ÉÓÐÏÌØÚÏ×ÁÔØ ËÎÏÐËÉ MS-Windows -ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ËÏÐÉÒÏ×ÁÎÉÑ É ×ËÌÅÊËÉ. CTRL-X ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ ×ÙÒÅÚÁÎÉÑ -ÔÅËÓÔÁ, CTRL-C ÄÌÑ ËÏÐÉÒÏ×ÁÎÉÑ É CTRL-V ÄÌÑ ×ËÌÅÊËÉ. þÔÏÂÙ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ -ÉÚÎÁÞÁÌØÎÙÍ ÚÎÁÞÅÎÉÅÍ ËÎÏÐËÉ CTRL-V, ÉÓÐÏÌØÚÕÊÔÅ CTRL-Q. -.SH ðáòáíåôòù úáðõóëá -óÍ. vim(1). -.SH æáêìù -.TP 15 -/usr/local/lib/vim/evim.vim -óÃÅÎÁÒÉÊ, ËÏÔÏÒÙÊ ÚÁÇÒÕÖÁÅÔÓÑ ÄÌÑ ÉÎÉÃÉÁÌÉÚÁÃÉÉ eVim. -.SH AKA -eVim ÔÁËÖÅ ÉÚ×ÅÓÔÅÎ ËÁË "Vim ÄÌÑ ÞÁÊÎÉËÏ×". -äÌÑ ÎÁÉÌÕÞÛÅÇÏ ÜÆÆÅËÔÁ ÒÅËÏÍÅÎÄÕÅÔÓÑ ×Ï ×ÒÅÍÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÏ×ÑÚÁÔØ -ÎÁ ÇÏÌÏ×Å ÐÌÁÔÏË, ÐÒÅÄ×ÁÒÉÔÅÌØÎÏ ÚÁ×ÑÚÁ× ÎÁ ËÁÖÄÏÍ ËÏÎÃÅ ÐÏ ÕÚÅÌËÕ. -.SH óíïôòé ôáëöå -vim(1) -.SH á÷ôïòù -âÏÌØÛÁÑ ÞÁÓÔØ -.B Vim -ÓÏÚÄÁÎÁ âÒÁÍÏÍ íÏÏÌÅÎÁÁÒÏÍ (Bram Moolenaar), ËÏÔÏÒÏÍÕ ÐÏÍÏÇÁÅÔ ÏÇÒÏÍÎÏÅ -ËÏÌÉÞÅÓÔ×Ï ÌÀÄÅÊ. óÍ. ÍÅÎÀ óÐÒÁ×ËÁ/âÌÁÇÏÄÁÒÎÏÓÔÉ. diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index cda17681fd..a9e884777e 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -34,7 +34,6 @@ tag char action in Insert mode ~ |i_CTRL-@| CTRL-@ insert previously inserted text and stop insert |i_CTRL-A| CTRL-A insert previously inserted text - CTRL-B not used |i_CTRL-B-gone| |i_CTRL-C| CTRL-C quit insert mode, without checking for abbreviation, unless 'insertmode' set. |i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current diff --git a/runtime/doc/makehtml.awk b/runtime/doc/makehtml.awk index 5e40069391..a1f77f5aba 100644 --- a/runtime/doc/makehtml.awk +++ b/runtime/doc/makehtml.awk @@ -6,6 +6,13 @@ BEGIN { sample="no"; while ( getline ti <"tags.ref" > 0 ) { nf=split(ti,tag," "); + # as help.txt renders into index.html and index.txt -> vimindex.html, + # this hack is needed to get the links right to those pages. + if ( tag[2] == "index.txt" ) { + tag[2] = "vimindex.txt" + } else if ( tag[2] == "help.txt" ) { + tag[2] = "index.txt" + } tagkey[tag[1]]="yes";tagref[tag[1]]=tag[2]; } skip_word["and"]="yes"; diff --git a/runtime/doc/vim-de.UTF-8.1 b/runtime/doc/manpages/de/vim-de.1 index f79e622a74..f79e622a74 100644 --- a/runtime/doc/vim-de.UTF-8.1 +++ b/runtime/doc/manpages/de/vim-de.1 diff --git a/runtime/doc/evim.1 b/runtime/doc/manpages/evim.1 index bb859ceada..bb859ceada 100644 --- a/runtime/doc/evim.1 +++ b/runtime/doc/manpages/evim.1 diff --git a/runtime/doc/evim-fr.UTF-8.1 b/runtime/doc/manpages/fr/evim-fr.1 index 2b38e66cb5..2b38e66cb5 100644 --- a/runtime/doc/evim-fr.UTF-8.1 +++ b/runtime/doc/manpages/fr/evim-fr.1 diff --git a/runtime/doc/vim-fr.UTF-8.1 b/runtime/doc/manpages/fr/vim-fr.1 index 67be106673..67be106673 100644 --- a/runtime/doc/vim-fr.UTF-8.1 +++ b/runtime/doc/manpages/fr/vim-fr.1 diff --git a/runtime/doc/vimdiff-fr.UTF-8.1 b/runtime/doc/manpages/fr/vimdiff-fr.1 index 3b44a3dd58..3b44a3dd58 100644 --- a/runtime/doc/vimdiff-fr.UTF-8.1 +++ b/runtime/doc/manpages/fr/vimdiff-fr.1 diff --git a/runtime/doc/vimtutor-fr.UTF-8.1 b/runtime/doc/manpages/fr/vimtutor-fr.1 index f47f840ec1..f47f840ec1 100644 --- a/runtime/doc/vimtutor-fr.UTF-8.1 +++ b/runtime/doc/manpages/fr/vimtutor-fr.1 diff --git a/runtime/doc/xxd-fr.UTF-8.1 b/runtime/doc/manpages/fr/xxd-fr.1 index 7956b3ba2a..7956b3ba2a 100644 --- a/runtime/doc/xxd-fr.UTF-8.1 +++ b/runtime/doc/manpages/fr/xxd-fr.1 diff --git a/runtime/doc/evim-it.UTF-8.1 b/runtime/doc/manpages/it/evim-it.1 index f96d0cb42c..f96d0cb42c 100644 --- a/runtime/doc/evim-it.UTF-8.1 +++ b/runtime/doc/manpages/it/evim-it.1 diff --git a/runtime/doc/vim-it.UTF-8.1 b/runtime/doc/manpages/it/vim-it.1 index 51e7e043da..51e7e043da 100644 --- a/runtime/doc/vim-it.UTF-8.1 +++ b/runtime/doc/manpages/it/vim-it.1 diff --git a/runtime/doc/vimdiff-it.UTF-8.1 b/runtime/doc/manpages/it/vimdiff-it.1 index 090892fa93..090892fa93 100644 --- a/runtime/doc/vimdiff-it.UTF-8.1 +++ b/runtime/doc/manpages/it/vimdiff-it.1 diff --git a/runtime/doc/vimtutor-it.UTF-8.1 b/runtime/doc/manpages/it/vimtutor-it.1 index a33dcb00b0..a33dcb00b0 100644 --- a/runtime/doc/vimtutor-it.UTF-8.1 +++ b/runtime/doc/manpages/it/vimtutor-it.1 diff --git a/runtime/doc/xxd-it.UTF-8.1 b/runtime/doc/manpages/it/xxd-it.1 index b6ccabd2e3..b6ccabd2e3 100644 --- a/runtime/doc/xxd-it.UTF-8.1 +++ b/runtime/doc/manpages/it/xxd-it.1 diff --git a/runtime/doc/evim-ja.UTF-8.1 b/runtime/doc/manpages/ja/evim-ja.1 index 1b7a657ebc..1b7a657ebc 100644 --- a/runtime/doc/evim-ja.UTF-8.1 +++ b/runtime/doc/manpages/ja/evim-ja.1 diff --git a/runtime/doc/vim-ja.UTF-8.1 b/runtime/doc/manpages/ja/vim-ja.1 index a4788b3c48..a4788b3c48 100644 --- a/runtime/doc/vim-ja.UTF-8.1 +++ b/runtime/doc/manpages/ja/vim-ja.1 diff --git a/runtime/doc/vimdiff-ja.UTF-8.1 b/runtime/doc/manpages/ja/vimdiff-ja.1 index 56fadfef6e..56fadfef6e 100644 --- a/runtime/doc/vimdiff-ja.UTF-8.1 +++ b/runtime/doc/manpages/ja/vimdiff-ja.1 diff --git a/runtime/doc/vimtutor-ja.UTF-8.1 b/runtime/doc/manpages/ja/vimtutor-ja.1 index 29b9b48f2c..29b9b48f2c 100644 --- a/runtime/doc/vimtutor-ja.UTF-8.1 +++ b/runtime/doc/manpages/ja/vimtutor-ja.1 diff --git a/runtime/doc/xxd-ja.UTF-8.1 b/runtime/doc/manpages/ja/xxd-ja.1 index 8a8d54b021..8a8d54b021 100644 --- a/runtime/doc/xxd-ja.UTF-8.1 +++ b/runtime/doc/manpages/ja/xxd-ja.1 diff --git a/runtime/doc/evim-pl.UTF-8.1 b/runtime/doc/manpages/pl/evim-pl.1 index 096a12add2..096a12add2 100644 --- a/runtime/doc/evim-pl.UTF-8.1 +++ b/runtime/doc/manpages/pl/evim-pl.1 diff --git a/runtime/doc/vim-pl.UTF-8.1 b/runtime/doc/manpages/pl/vim-pl.1 index f3551d2f63..f3551d2f63 100644 --- a/runtime/doc/vim-pl.UTF-8.1 +++ b/runtime/doc/manpages/pl/vim-pl.1 diff --git a/runtime/doc/vimdiff-pl.UTF-8.1 b/runtime/doc/manpages/pl/vimdiff-pl.1 index d66fdc9c03..d66fdc9c03 100644 --- a/runtime/doc/vimdiff-pl.UTF-8.1 +++ b/runtime/doc/manpages/pl/vimdiff-pl.1 diff --git a/runtime/doc/vimtutor-pl.UTF-8.1 b/runtime/doc/manpages/pl/vimtutor-pl.1 index 199fcd0e8f..199fcd0e8f 100644 --- a/runtime/doc/vimtutor-pl.UTF-8.1 +++ b/runtime/doc/manpages/pl/vimtutor-pl.1 diff --git a/runtime/doc/xxd-pl.UTF-8.1 b/runtime/doc/manpages/pl/xxd-pl.1 index e63ce64b74..e63ce64b74 100644 --- a/runtime/doc/xxd-pl.UTF-8.1 +++ b/runtime/doc/manpages/pl/xxd-pl.1 diff --git a/runtime/doc/evim-ru.UTF-8.1 b/runtime/doc/manpages/ru/evim-ru.1 index 581c364c22..581c364c22 100644 --- a/runtime/doc/evim-ru.UTF-8.1 +++ b/runtime/doc/manpages/ru/evim-ru.1 diff --git a/runtime/doc/vim-ru.UTF-8.1 b/runtime/doc/manpages/ru/vim-ru.1 index ef527213e3..ef527213e3 100644 --- a/runtime/doc/vim-ru.UTF-8.1 +++ b/runtime/doc/manpages/ru/vim-ru.1 diff --git a/runtime/doc/vimdiff-ru.UTF-8.1 b/runtime/doc/manpages/ru/vimdiff-ru.1 index 2f17e9c2e5..2f17e9c2e5 100644 --- a/runtime/doc/vimdiff-ru.UTF-8.1 +++ b/runtime/doc/manpages/ru/vimdiff-ru.1 diff --git a/runtime/doc/vimtutor-ru.UTF-8.1 b/runtime/doc/manpages/ru/vimtutor-ru.1 index 6b1ba90df0..6b1ba90df0 100644 --- a/runtime/doc/vimtutor-ru.UTF-8.1 +++ b/runtime/doc/manpages/ru/vimtutor-ru.1 diff --git a/runtime/doc/xxd-ru.UTF-8.1 b/runtime/doc/manpages/ru/xxd-ru.1 index 647845bab4..647845bab4 100644 --- a/runtime/doc/xxd-ru.UTF-8.1 +++ b/runtime/doc/manpages/ru/xxd-ru.1 diff --git a/runtime/doc/vim.1 b/runtime/doc/manpages/vim.1 index 820caa24f5..820caa24f5 100644 --- a/runtime/doc/vim.1 +++ b/runtime/doc/manpages/vim.1 diff --git a/runtime/doc/vimdiff.1 b/runtime/doc/manpages/vimdiff.1 index bed2b32889..bed2b32889 100644 --- a/runtime/doc/vimdiff.1 +++ b/runtime/doc/manpages/vimdiff.1 diff --git a/runtime/doc/vimtutor.1 b/runtime/doc/manpages/vimtutor.1 index 0aa7e8d8d9..0aa7e8d8d9 100644 --- a/runtime/doc/vimtutor.1 +++ b/runtime/doc/manpages/vimtutor.1 diff --git a/runtime/doc/xxd.1 b/runtime/doc/manpages/xxd.1 index e8f7358591..e8f7358591 100644 --- a/runtime/doc/xxd.1 +++ b/runtime/doc/manpages/xxd.1 diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt index 84afe2f2b1..9365f39b2a 100644 --- a/runtime/doc/message.txt +++ b/runtime/doc/message.txt @@ -476,8 +476,6 @@ in memory, you can reduce that with these options: helps for a change that affects all lines. - 'undoreload' Set to zero to disable. -Also see |msdos-limitations|. - *E339* > Pattern too long diff --git a/runtime/doc/os_390.txt b/runtime/doc/os_390.txt index 5e564d8416..5501b8009b 100644 --- a/runtime/doc/os_390.txt +++ b/runtime/doc/os_390.txt @@ -103,7 +103,6 @@ Disabled at compile time: Never tested: - Perl interface (|perl|) - - Hangul input (|hangul|) - Encryption support (|encryption|) - Langmap (|'langmap'|) - Python support (|Python|) diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt index 2f1868e84e..a7050fa2e8 100644 --- a/runtime/doc/various.txt +++ b/runtime/doc/various.txt @@ -357,7 +357,7 @@ N *+gettext* message translations |multi-lang| *+GUI_GTK* Unix only: GTK+ |GUI| *+GUI_Motif* Unix only: Motif |GUI| *+GUI_Photon* QNX only: Photon |GUI| -m *+hangul_input* Hangul input support |hangul| +m *+hangul_input* Hangul input support hangul *+iconv* Compiled with the |iconv()| function *+iconv/dyn* Likewise |iconv-dynamic| |/dyn| N *+insert_expand* |insert_expand| Insert mode completion diff --git a/runtime/doc/vim-de.1 b/runtime/doc/vim-de.1 deleted file mode 100644 index 0ba4938f7a..0000000000 --- a/runtime/doc/vim-de.1 +++ /dev/null @@ -1,478 +0,0 @@ -.\"******************************************************************* -.\" -.\" This file was generated with po4a. Translate the source file. -.\" -.\"******************************************************************* -.\" Translated by bw1 (2008) and Florian Rehnisch <fm-r@gmx.de> (2012) -.\" Kudos to the folks on vim-dev and debian-l10n-german -.TH VIM 1 "2006 Apr 11" -.SH BEZEICHNUNG -vim \- Vi IMproved, ein Text\-Editor für Programmierer -.SH ÜBERSICHT -.br -\fBvim\fP [Optionen] [Datei ...] -.br -\fBvim\fP [Optionen] \- -.br -\fBvim\fP [Optionen] \-t Tag -.br -\fBvim\fP [Optionen] \-q [Fehlerdatei] -.PP -.br -\fBex\fP -.br -\fBview\fP -.br -\fBgvim\fP \fBgview\fP \fBevim\fP \fBeview\fP -.br -\fBrvim\fP \fBrview\fP \fBrgvim\fP \fBrgview\fP -.SH BESCHREIBUNG -\fBVim\fP ist ein Text\-Editor, der aufwärtskompatibel zu Vi ist. Er kann -verwendet werden, um alle Arten von Klartext zu bearbeiten. Er ist besonders -nützlich, um Programme zu bearbeiten. -.PP -Vim hat einige Erweiterungen gegenüber Vi, z.B.: Rückgängigmachen in -mehreren Schritten, mehrere Fenster und Puffer, Syntax\-Hervorhebung, -Bearbeiten der Befehlszeile, Dateinamenergänzung, eingebaute Hilfe, visuelle -Auswahl, usw. ... Siehe »:help vi_diff.txt« für eine Übersicht der -Unterschiede zwischen \fBVim\fP und Vi. -.PP -Im laufenden \fBVim\fP kann mit dem Befehl »:help« viel Hilfe durch das -eingebaute Hilfesystem erlangt werden. Siehe den Abschnitt EINGEBAUTE HILFE -weiter unten. -.PP -Meistens wird \fBVim\fP zum Editieren einer einzigen Datei mit dem folgende -Befehl gestartet: -.PP - vim Datei -.PP -Allgemeiner betrachtet, wird \fBVim\fP folgendermaßen gestartet: -.PP - vim [Optionen] [Dateiliste] -.PP -Bei einer fehlenden Dateiliste startet der Editor mit einem leeren -Puffer. Andernfalls werden nach den folgenden vier Möglichkeiten eine oder -mehrere Dateien bearbeitet: -.TP 12 -Datei ... -Eine Liste von Dateinamen. Die erste Datei wird in den Puffer geladen und -zur aktuellen. Der Cursor wird auf der ersten Zeile des Puffers -platziert. Zu den anderen Dateien kann mit dem Befehl »:next« gelangt -werden. Falls einer der Dateinamen mit einem Bindestrich beginnt, stellen -Sie der Dateiliste »\-\-« voran. -.TP -\- -Die zu bearbeitende Datei wird von der Standardeingabe gelesen. Befehle -werden von der Standardfehlerausgabe gelesen, die ein Text\-Terminal sein -sollte. -.TP -\-t {Tag} -Die zu editierende Datei und die anfängliche Cursor\-Position hängen von -einem »Tag« ab, einer Art Sprungmarke. {Tag} wird in der Tag\-Datei -nachgeschlagen, die zugehörige Datei wird zur aktuellen und der zugehörige -Befehl wird ausgeführt. Dies wird meistens für Programme in der Sprache »C« -benutzt, wobei {Tag} ein Funktionsname sein könnte. Die Wirkung dieses -Befehls ist, dass die Datei, die die Funktion enthält, als aktuelle im -Editor geöffnet und angezeigt wird und der Cursor auf dem Beginn der -Funktion positioniert wird. Siehe »:help tag\-commands«. -.TP -\-q [Fehlerdatei] -Startet im QuickFix\-Modus. Die Datei [Fehlerdatei] wird gelesen und der -erste Fehler wird angezeigt. Falls [Fehlerdatei] ausgelassen wird, wird der -Dateiname aus der Option 'errorfile' verwendet (bei AmigaOS ist dies -vorgabemäßig »AztecC.Err«, sowie "errors.err« bei anderen). Weitere Fehler -können mit dem »:cn«\-Befehl angesprungen werden. Siehe ":help quickfix«. -.PP -\fBVim\fP reagiert unterschiedlich auf den Namen, der verwendet wird, um Vim zu -starten (die ausführbare Datei kann dieselbe sein). -.TP 10 -vim -der »normale« Weg, alles ist standardmäßig -.TP -ex -Startet im Ex\-Modus. Mit dem Befehl »:vi« gelangt man in den normalen -Modus. Funktioniert auch mit dem Argument »\-e«. -.TP -view -Startet im Nur\-Lesen\-Modus. Die Datei wird vor dem Überschreiben -geschützt. Dasselbe wird mit dem Parameter »\-R« erreicht. -.TP -gvim gview -Die grafische Version: Öffnet ein neues Fenster. Dasselbe wird mit dem -Parameter »\-g« erreicht. -.TP -evim eview -Die grafische Version im einfachen Modus: Öffnet ein neues Fenster. Dasselbe -wird mit dem Parameter »\-y« erreicht. -.TP -rvim rview rgvim rgview -Wie die obigen, aber mit Beschränkungen: Es ist nicht möglich, Shell\-Befehle -aufzurufen oder mit Unterbrechung in eine Shell zurückzuspringen. Dasselbe -wird mit dem Parameter »\-Z« erreicht. -.SH OPTIONEN -Die Optionen können in beliebiger Reihenfolge vor oder nach den Dateinamen -angegeben werden. Optionen ohne Parameter können hinter einem einzigen -Bindestrich gruppiert werden. -.TP 12 -+[Nummer] -In der ersten Datei wird der Cursor auf die Zeile [Nummer] gesetzt. Falls -[Nummer] nicht angegeben wird, wird der Cursor in die letzte Zeile der Datei -gesetzt. -.TP -+/{Suchmuster} -In der ersten Datei wird der Cursor auf das erste Auftreten von {Suchmuster} -gesetzt. Siehe »:help search\-pattern«. -.TP -+{Befehl} -.TP -\-c {Befehl} -{Befehl} wird nach dem Lesen der ersten Datei ausgeführt. Als {Befehl} wird -ein Ex\-Befehl erwartet. Sind in {Befehl} Leerzeichen vorhanden, muss alles -in Anführungszeichen gesetzt werden (hängt von der verwendeten Shell -ab). Beispiel: vim "+set si" main.c -.br -Anmerkung: Sie können bis zu 10 »+«\- oder "\-c«\-Befehle verwenden. -.TP -\-S {Datei} -{Datei} wird nach dem Lesen der ersten Datei ausgeführt. Dies entspricht »\-c -"source {Datei}"«. {Datei} darf nicht mit einem Bindestrich (\-) -anfangen. Wenn kein Dateiname angegeben wird, wird »Session.vim« verwendet -(Funktioniert nur, wenn »\-S« als letzter Parameter steht). -.TP -\-\-cmd {Befehl} -Wie »\-c«, aber dieser Befehl wird vor allen VimRC\-Dateien ausgeführt. Sie -können unabhängig von den »\-c«\-Befehlen bis zu 10 dieser Befehle verwenden. -.TP -\-A -Falls \fBVim\fP mit Unterstützung für das Schreiben von rechts nach links und -arabischer Tastaturbelegung compiliert wurde (ARABIC), startet dieser -Parameter den Modus fürs Arabische (:set arabic). Anderenfalls beendet sich -\fBVim\fP mit einer Fehlermeldung. -.TP -b -Binärer Modus: Es werden einige Variablen gesetzt, sodass es möglich ist, -eine binäre oder ausführbare Datei zu bearbeiten. -.TP -\-C -Kompatibel: Setzt die Option 'compatible'. Das macht \fBVim\fP im Verhalten -sehr ähnlich zu Vi, selbst wenn eine VimRC\-Datei existiert. -.TP -\-d -Startet im diff\-Modus. Es sollten zwei, drei oder vier Dateinamen als -Parameter übergeben werden. \fBVim\fP öffnet sie alle und zeigt die -Unterschiede an. Arbeitet wie vimdiff(1). -.TP -\-d {Gerät} -Öffnet das {Gerät}, um es als Terminal zu nutzen. Nur für AmigaOS. Beispiel: -"\-d con:20/30/600/150". -.TP -D -Debug\-Modus: \fBVim\fP geht in den Debug\-Modus, wenn der erste Befehl in einem -Skript ausgeführt wird. -.TP -\-e -Startet \fBVim\fP im Ex\-Modus, als würde als ausführbare Datei »ex« aufgerufen. -.TP -\-E -Startet \fBVim\fP im erweiterten Ex\-Modus, als würde die ausführbare Datei als -»exim« aufgerufen. -.TP -\-f -Vordergrund: Bei der GUI\-Version erzeugt \fBVim\fP keinen neuen Prozess und -löst sich nicht von der Shell, in der er aufgerufen wurde. Bei AmigaOS wird -kein neues Fenster geöffnet. Dieser Parameter wird benutzt, damit das -aufrufende Programm auf das Beenden des Bearbeitungssitzung wartet (z.B.: -mail). Bei AmigaOS funktionieren die Befehle »:sh« und ":!« nicht. -.TP -\-\-nofork -Vordergrund: Bei der GUI\-Version erzeugt \fBVim\fP keinen neuen Prozess und -löst sich nicht von der Shell, in der er aufgerufen wurde. -.TP -\-F -Wenn \fBVim\fP mit FKMAP\-Unterstützung für das Schreiben von rechts nach links -und Farsi\-Tastatur\-Belegung kompiliert wurde, startet Vim im Farsi\-Modus, -d.h. die Optionen 'fkmap' und 'rightleft' werden gesetzt. Andernfalls bricht -\fBVim\fP mit einer Fehlermeldung ab. -.TP -\-g -Falls \fBVim\fP mit GUI\-Unterstützung kompiliert wurde, wird die GUI -aktiviert. Falls keine GUI\-Unterstützung einkompiliert wurde, wird mit einer -Fehlermeldung abgebrochen. -.TP -\-h -Gibt eine kleine Hilfe für die Befehlszeilenparameter aus. Danach beendet -sich \fBVim.\fP -.TP -\-H -Hebräisch\-Modus, falls \fBVim\fP mit RIGHTLEFT\-Unterstützung für das Schreiben -von rechts nach links und hebräischer Tastaturbelegung kompiliert wurde, -werden die Optionen 'hkmap' und 'rightleft' gesetzt. Andernfalls beendet -sich \fBVim\fP mit einer Fehlermeldung. -.TP -\-i {VimInfo} -Wenn eine VimInfo\-Datei verwendet wird: Verwendet statt »~/.viminfo« die -angegebene Datei. Es ist auch möglich die Verwendung einer VimInfo\-Datei -durch Angabe des Dateinamen »NONE« zu verhindern, -.TP -\-L -dasselbe wie »\-r« -.TP -\-l -Lisp\-Modus. Aktiviert die Optionen 'lisp' und 'showmatch'. -.TP -\-m -Deaktiviert das Verändern von Dateien, indem die Option 'write' gelöscht -wird. Der Puffer kann verändert werden, nur das Schreiben einer Datei ist -nicht möglich. -.TP -\-M -Keine Veränderungen erlaubt: Die Optionen 'modifiable' und 'write' werden -gelöscht, so dass Änderungen nicht erlaubt sind und Dateien nicht -geschrieben werden können. Man beachte, dass diese Optionen ('modifiable', -\&'write') dennnoch nachträglich zum Erlauben von Änderungen gesetzt werden -können. -.TP -\-N -Nicht\-kompatibler Modus: Löscht die Option 'compatible'. Dies veranlasst -\fBVim\fP, sich ein wenig besser, aber weniger Vi\-kompatibel zu verhalten, -selbst wenn es keine VimRC\-Datei gibt. -.TP -\-n -Verwendet keine Auslagerungsdatei: Eine Wiederherstellung nach einem Absturz -ist nicht möglich. Auf einem langsamen Medium (Diskette) kann diese -Einstellung nützlich sein. Kann auch mit »set uc=0« erreicht werden; kann -mit »set uc=200« aufgehoben werden. -.TP -\-nb -\fBVim\fP fungiert als Server für NetBeans. Details siehe Dokumentation. -.TP -\-o[N] -Öffnet [N] Fenster übereinander. Wenn keine Zahl angegeben wird, öffne ein -Fenster pro Datei. -.TP -\-O[N] -Öffnet [N] Fenster nebeneinander. Wenn keine Zahl angegeben wird, öffne ein -Fenster pro Datei. -.TP -\-p[N] -Öffnet [N] Reiterseiten. Wenn keine Zahl angegeben wird, öffne eine -Reiterseite pro Datei. -.TP -\-R -Nur\-Lesen\-Modus: Die Option 'readonly' wird gesetzt. Der Puffer kann noch -bearbeitet werden, aber es wird verhindert, eine Datei aus Versehen zu -überschreiben. Wenn Sie wirklich eine Datei überschreiben wollen, fügen Sie -dem Ex\-Befehl ein Ausrufezeichen hinzu (wie in »:w!«). Die Option "\-R« -bedingt die Option »\-n« (siehe oben). Die Option 'readonly' kann durch ":set -noro« gelöscht werden. Siehe »:help 'readonly'«. -.TP -\-r -Listet die Auslagerungsdateien und gibt Informationen zu ihrer -Verwendbarkeit zur Wiederherstellung. -.TP -\-r {Datei} -Wiederherstellungsmodus: Die Auslagerungsdatei wird zur Wiederherstellung -verwendet und hat denselben Dateinamen wie die Text\-Datei + ».swp«. Siehe -":help recovery«. -.TP -\-s -Der stille Modus: Nur wenn die ausführbare Datei als »ex« aufgerufen wird -oder vor »\-s« die Option "\-e« gegeben wird. -.TP -\-s {Eingabeskript} -Die Datei {Eingabeskript} wird gelesen und ausgeführt, als würden Sie die -Zeichen in ihr tippen. Dasselbe kann mit dem Befehl »:source! -{Eingabeskript}« erreicht werden. Wird das Ende der Datei vor dem Beenden -des Editors erreicht, werden weitere Zeichen von der Tastatur gelesen. -.TP -\-T {Terminal} -Setzt den Namen des benutzten Terminals. Nur erforderlich, wenn die -Automatik nicht funktioniert. Sollte ein \fBVim\fP bekanntes Terminal sein: -(builtin) oder in einer termcap\- oder terminfo\-Datei definiert. -.TP -\-u {VimRC} -Verwendet zur Initialisierung die Befehle in der Datei {VimRC}. Alle anderen -Initialisierungen werden übersprungen. Benutzen Sie dies, um eine besondere -Art von Dateien zu bearbeiten. Dies kann auch benutzt werden, um alle -Initialisierungen zu überspringen, indem der Name »NONE« angegeben wird. Für -weitere Einzelheiten siehe »:help initialisation« innerhalb von Vim. -.TP -\-U {GvimRC} -Benutzt die Befehle in der Datei {GvimRC} für die Initialisierung der -grafischen Oberfläche. Alle anderen Initialisierungen werden -übersprungen. Dies kann ebenfalls benutzt werden, um alle -GUI\-Initialisierungen zu überspringen, indem der Name »NONE« angegeben -wird. Siehe »:help gui\-init« innerhalb von Vim für weitere Einzelheiten. -.TP -\-V[N] -Ausführlich (verbose): Gibt Meldungen darüber, welche Befehlsdateien -eingelesen werden, und über das Lesen und Schreiben einer VimInfo\-Datei. Die -optionale Zahl N ist der Wert für 'verbose'. Vorgabe ist 10. -.TP -\-v -Startet \fBVim\fP im Vi\-Modus, so als würde die ausführbare Datei mit »vi« -aufgerufen. Dies wirkt sich nur aus, wenn die ausführbare Datei als »ex« -aufgerufen wird. -.TP -\-w {Ausgabeskript} -Alle Zeichen, die eingetippt werden, werden in der Datei {Ausgabeskript} -aufgezeichnet, solange bis Sie \fBVim\fP beenden. Dies ist nützlich, falls Sie -eine Skript\-Datei zum Benutzen mit »vim \-s« oder ":source!« erzeugen -wollen. Falls die Datei {Ausgabeskript} vorhanden ist, werden die Zeichen -angehängt. -.TP -\-W {Ausgabeskript} -Wie \-w, aber eine bereits vorhandene Datei wird überschrieben. -.TP -\-x -Benutzt beim Schreiben von Dateien eine Verschlüsselung. Fragt nach dem -Schlüssel. -.TP -\-X -Führt keine Verbindung zum X\-Server durch. Dadurch verkürzt sich die -Startzeit, aber der Fenstertitel und die Zwischenablage werden nicht -verwendet. -.TP -\-y -Startet \fBVim\fP im einfachen Modus, als würde die ausführbare Datei mit -»evim« oder »eview« aufgerufen. \fBVim\fP verhält sich dann wie ein Editor zum -Klicken und Tippen. -.TP -\-Z -Eingeschränkter Modus: Funktioniert, als würde der Name der ausführbaren -Datei mit »r« beginnen. -.TP -\-\- -Markiert das Ende der Optionen. Argumente, die folgen, werden als Dateinamen -behandelt. Dies kann benutzt werden, um einen Dateinamen mit »\-« am Anfang -zu verwenden. -.TP -\-\-echo\-wid -Nur GTK\-GUI: Schreibe die Fenster\-ID auf die Standardausgabe. -.TP -\-\-help -Gibt eine Hilfe\-Nachricht aus und beendet, wie »\-h«. -.TP -\-\-literal -Nimmt die Dateinamen so wie sie sind und vervollständigt sie nicht nach -Metazeichen (*,?). Dies wirkt sich nicht unter Unix aus, wo die Shell die -Metazeichen expandiert. -.TP -\-\-noplugin -Lade keine Plugins. Impliziert durch »\-u NONE«. -.TP -\-\-remote -Verbindet mit einem Vim\-Server und lässt ihn die in den restlichen -Argumenten angegeben Dateien editieren. Wenn kein Server gefunden wird, -führt dies zu einer Warnmeldung und die Dateien werden im gegenwärtigen Vim -zum Bearbeiten geöffnet. -.TP -\-\-remote\-expr {Ausdruck} -Verbindet mit einem Vim\-Server, führt {Ausdruck} aus und zeigt das Ergebnis -auf der Standardausgabe an. -.TP -\-\-remote\-send {Zeichen} -Verbindet mit einem Vim\-Server und sendet ihm {Zeichen}. -.TP -\-\-remote\-silent -Wie »\-\-remote«, aber ohne Warnung, wenn kein Server gefunden wird. -.TP -\-\-remote\-wait -Wie »\-\-remote«, aber Vim beendet sich nicht, bis die Dateien bearbeitet -wurden. -.TP -\-\-remote\-wait\-silent -Wie »\-\-remote\-wait«, aber ohne Warnung, wenn kein Server gefunden wird. -.TP -\-\-serverlist -Listet die Namen aller gefundenen Vim\-Server auf. -.TP -\-\-servername {Name} -Benutzt {Name} als Server\-Namen. Wird für den gegenwärtigen Vim benutzt, -außer es wird mit dem Argument »\-\-remote« benutzt, dann ist es der Name des -zu kontaktierenden Servers. -.TP -\-\-socketid {id} -Nur GTK\-GUI: Benutzt den GtkPlug\-Mechanismus, um GVim in einem anderen -Fenster laufen zu lassen. -.TP -\-\-version -Versionsinformation anzeigen und beenden -.SH "EINGEBAUTE HILFE" -Tippen Sie in \fBVim\fP »:help«, um zu beginnen. Geben Sie ":help begriff« ein, -um Hilfe über ein bestimmtes Thema zu bekommen. Zum Beispiel »:help ZZ« für -Hilfe über den Befehl »ZZ«. Benutzen Sie <Tab> und CTRL\-D, um -Begriffe zu vervollständigen (»:help cmdline\-completion«). Tags sind -vorhanden, um von einem Ort zum anderen zu springen (eine Art -Hypertext\-Verknüpfungen, siehe »:help«). Auf diese Weise können alle -Dokumentations\-Dateien aufgerufen werden, zum Beispiel »:help syntax.txt«. -.SH DATEIEN -.TP 15 -/usr/local/lib/vim/doc/*.txt -Dokumentations\-Dateien für \fBVim\fP. Verwenden Sie »:help doc\-file\-list«, um -die gesamte Liste zu bekommen. -.TP -/usr/local/lib/vim/doc/tags -Die »Tag«\-Datei, die verwendet wird, um Informationen in der Dokumentation -zu finden. -.TP -/usr/local/lib/vim/syntax/syntax.vim -Die systemweite Einrichtung der Syntaxhervorhebung. -.TP -/usr/local/lib/vim/syntax/*.vim -Syntaxdateien für die verschiedenen Sprachen. -.TP -/usr/local/lib/vim/vimrc -Systemweite Einstellungsdatei für \fBVim\fP -.TP -~/.vimrc -Persönliche Einstellungsdatei für \fBVim\fP -.TP -/usr/local/lib/vim/gvimrc -Systemweite Einstellungsdatei für GVim -.TP -~/.gvimrc -Persönliche Einstellungsdatei für GVim -.TP -/usr/local/lib/vim/optwin.vim -Das Script, das von dem Befehl »:options« verwendet wird, eine schöne -Möglichkeit, um Optionen zu betrachten und zu setzen. -.TP -/usr/local/lib/vim/menu.vim -Systemweite Einstellungsdatei für das Menü von GVim -.TP -/usr/local/lib/vim/bugreport.vim -Das Script zum Generieren eines Fehlerberichts. Siehe »:help bugs«. -.TP -/usr/local/lib/vim/filetype.vim -Mit diesem Script erkennt Vim den Typ einer Datei anhand ihres -Dateinamens. Siehe »:help 'filetype'«. -.TP -/usr/local/lib/vim/scripts.vim -Mit diesem Script erkennt Vim den Typ einer Datei anhand ihres -Inhaltes. Siehe »:help 'filetype'«. -.TP -/usr/local/lib/vim/print/*.ps -Diese Dateien werden zum Drucken von PostScript verwendet. -.PP -Für die neuesten Informationen lesen Sie die Vim\-Homepage: -.br -<URL:http://www.vim.org/> -.SH "SIEHE AUCH" -vimtutor(1) -.SH AUTOR -\fBVim\fP wurde größtenteils von Bram Moolenaar erstellt, mit viel Hilfe von -anderen Leuten. Siehe »:help credits« in \fBVim.\fP -.br -\fBVim\fP basiert auf Stevie, der von Tim Thompson, Tony Andrews und -G.R. (Fred) Walter geschrieben wurde. Es ist jedoch kaum etwas vom -ursprünglichen Code übrig geblieben. -.SH FEHLER -Die sind möglich. Siehe »:help todo« für eine Liste bekannter Probleme. -.PP -Beachten Sie, dass gewisse Dinge, die manche Leute als Fehler betrachten -mögen, in Wirklichkeit durch zu getreue Nachbildung des Vi\-Verhaltens -verursacht werden. Und falls Sie denken, dass andere Dinge Fehler sind, -»weil Vi es anders tut«, sollten Sie einen genaueren Blick auf die Datei -vi_diff.txt werfen (oder in Vim »:help vi_diff.txt« tippen). Sehen Sie sich -auch die Optionen 'compatible' und 'cpoptions' an. diff --git a/runtime/doc/vim-fr.1 b/runtime/doc/vim-fr.1 deleted file mode 100644 index 209ab915c9..0000000000 --- a/runtime/doc/vim-fr.1 +++ /dev/null @@ -1,589 +0,0 @@ -.\" Traduction lundi 7 août 2000 par Richard Hitier -.\" (richard.hitier@dial.oleane.com) -.\" Mise à jour de la traduction par David Blanchet -.\" (david.blanchet@free.fr) 2006-06-10 -.\" Mise à jour de la traduction par Dominique Pellé -.\" (dominique.pelle@gmail.com) 2013-05-10 -.\" -.TH VIM 1 "22 février 2002" -.SH NOM -vim \- Vi IMproved, éditeur de texte pour programmeurs -.SH SYNOPSIS -.br -.B vim -[options] [fichier ...] -.br -.B vim -[options] \- -.br -.B vim -[options] \-t marqueur -.br -.B vim -[options] \-q [fichiererreurs] -.PP -.br -.B ex -.br -.B view -.br -.B gvim -.B gview -.B evim -.B eview -.br -.B rvim -.B rview -.B rgvim -.B rgview -.SH DESCRIPTION -.B Vim -est un éditeur de texte proposant une compatibilité ascendante -avec Vi. Il permet d'éditer n'importe quel type de texte brut. -Il est particulièrement adapté pour l'édition des programmes. -.PP -Il comporte de nombreuses améliorations par rapport à Vi : annulation sur -plusieurs niveaux, fenêtres et tampons multiples, coloration syntaxique, -édition en ligne de commande, complètement des noms de fichiers, aide en -ligne, sélection visuelle, etc. -Voir ":help vi_diff.txt" pour un résumé des différences entre -.B Vim -et Vi. -.PP -Pendant l'exécution de -.B Vim -\, une aide abondante est accessible au travers du système d'aide -en ligne, grâce à la commande ":help". -Voir la section AIDE EN LIGNE plus bas. -.PP -Le plus souvent -.B Vim -est démarré pour éditer un unique fichier avec la commande -.PP - vim fichier -.PP -Plus généralement, -.B Vim -est lancé avec : -.PP - vim [options] [listefichiers] -.PP -Si la listefichiers est omise, l'éditeur démarre avec un tampon vide. -Autrement, l'une des quatre méthodes suivantes vous permettra de choisir -un ou plusieurs fichiers à éditer. -.TP 12 -fichier ... -Une liste de noms de fichiers. -Le premier sera le fichier courant et sera lu dans le tampon. -Le curseur sera placé sur la première ligne du tampon. -Vous pouvez passer aux autres fichiers avec la commande ":next". -Pour éditer un fichier débutant par un tiret, faites précéder la -liste de fichiers par "\-\-". -.TP -\- -Le fichier à éditer est lu sur l'entrée standard (stdin). Les commandes sont -lues depuis stderr, qui devrait être un terminal. -.TP -\-t {marqueur} -Le fichier à éditer et la position initiale du curseur dépendent -d'un "marqueur", qui est une sorte d'étiquette. -{marqueur} est recherché dans le fichier des marqueurs, le fichier correspondant -devient le fichier courant et la commande associée est exécutée. -Principalement utile pour les programmes en C ; dans ce cas, {marqueur} -peut être le nom d'une fonction. -Au final, le fichier contenant cette fonction devient le fichier -courant et le curseur est placé au début de la fonction. -Voir ":help tag\-commands". -.TP -\-q [fichiererreurs] -Démarre en mode Mise-au-point (QuickFix). -Le fichier [fichiererreurs] est lu et la première erreur est affichée. -Si [fichiererreurs] est omis, le nom du fichier est lu dans -l'option 'errorfile' ("AztecC.Err" par défaut sur Amiga, "errors.err" sur les -autres systèmes). -La commande ":cn" permet de sauter aux erreurs suivantes. -Voir ":help quickfix". -.PP -.B Vim -se comporte différemment selon le nom de la commande (l'exécutable peut -cependant être le même fichier). -.TP 10 -vim -La façon "normale", le comportement par défaut. -.TP -ex -Démarre en mode Ex. -La commande ":vi" permet de passer en mode Normal. -Ce mode est également accessible avec l'argument "\-e". -.TP -view -Démarre en mode Lecture-Seule. Vous êtes protégé de l'écriture accidentelle -des fichiers. Ce mode est également accessible avec l'argument "\-R". -.TP -gvim gview -La version graphique. -Ouvre une nouvelle fenêtre. -Également accessible avec l'argument "\-g". -.TP -evim eview -La version graphique en mode Débutant (easy). -Ouvre une nouvelle fenêtre. -Également accessible avec l'argument "\-y". -.TP -rvim rview rgvim rgview -Comme ci-dessus, mais avec des restrictions. Il vous sera impossible de -lancer des commandes du shell, ou de suspendre -.B Vim. -Également accessible avec l'argument "\-Z". -.SH OPTIONS -Les options peuvent être spécifiées dans n'importe quel ordre, -avant ou après les noms de fichiers. Les options sans arguments -peuvent être combinées après un unique tiret. -.TP 12 -+[num] -Place le curseur sur la ligne "num" dans le premier fichier. -Si "num" est omis, le curseur sera placé sur la dernière ligne. -.TP -+/{motif} -Place le curseur sur la première occurrence de {motif} dans le premier fichier. -Voir ":help search\-pattern" pour connaître les motifs de recherches -disponibles. -.TP -+{commande} -.TP -\-c {commande} -Exécute {commande} après la lecture du premier fichier. -{commande} est interprétée comme une commande Ex. -Si la {commande} contient des espaces, elle doit être entourée -de doubles-apostrophes (cela dépend du shell utilisé). -Exemple : Vim "+set si" main.c -.br -Note : vous pouvez utiliser jusqu'à 10 commandes "+" ou "\-c". -.TP -\-S {fichier} -Source {fichier} après la lecture du premier fichier. -C'est équivalent à \-c "source {fichier}". -{fichier} ne peut pas débuter par un '\-'. -Si {fichier} est omis, "Session.vim" est utilisé (cela ne fonctionne que si -\-S est le dernier argument). -.TP -\-\-cmd {commande} -Comme "\-c", mais la commande est exécutée juste avant de traiter les fichiers -vimrc. -Vous pouvez utiliser jusqu'à 10 de ces commandes, indépendamment des -commandes "\-c". -.TP -\-A -Si -.B Vim -a été compilé avec le support de la fonctionnalité ARABIC pour l'édition de -fichiers de droite à gauche et les claviers arabes, cette option lance -.B Vim -en mode Arabe, c.-à-d. que l'option 'arabic' est activée. -Sinon, un message d'erreur est émis et -.B Vim -quitte. -.TP -\-b -Mode Binaire. -Active plusieurs options pour permettre l'édition -d'un fichier binaire ou exécutable. -.TP -\-C -Compatible. Active l'option 'compatible'. -.B Vim -se comportera alors quasiment comme Vi, même s'il existe un fichier .vimrc. -.TP -\-d -Démarre en mode Diff. -Deux, trois ou quatre noms de fichiers doivent être spécifiés. -.B Vim -ouvrira alors tous les fichiers et affichera leurs différences. -Fonctionne comme vimdiff(1). -.TP -\-d {périph} -Ouvre {périph} pour l'utiliser comme terminal. -Uniquement sur Amiga. -Exemple : -"\-d con:20/30/600/150". -.TP -\-D -Debogage. Passe en mode Débogage lors de l'exécution de la première commande -d'un script. -.TP -\-e -Démarre -.B Vim -en mode Ex, comme si l'exécutable s'appelait "ex". -.TP -\-E -Démarre -.B Vim -en mode Ex amélioré, comme si l'exécutable "exim" avait été invoqué. -.TP -\-f -Premier-plan (Foreground). Pour la version graphique, -.B Vim -ne forke pas et ne se détache pas du shell dans lequel il a été invoqué. -Sur Amiga, -.B Vim -n'est pas relancé pour ouvrir une nouvelle fenêtre. -Cette option est utile quand -.B Vim -est exécuté par un programme qui attend la fin de la session d'édition -(par exemple mail). -Sur Amiga, les commandes ":sh" et ":!" ne fonctionneront pas. -.TP -\-\-nofork -Premier-plan (Foreground). Pour la version graphique, -.B Vim -ne forkera pas et ne se détachera pas du shell dans lequel il a été lancé. -.TP -\-F -Si -.B Vim -a été compilé avec le support de la fonctionnalité FKMAP pour l'édition de -fichiers de droite à gauche et les claviers farsi, cette option lance -.B Vim -en mode Farsi, c.-à-d. avec les options 'fkmap' et 'rightleft' activées. -Sinon, un message d'erreur est émis et -.B Vim -quitte. -.TP -\-g -Si -.B Vim -a été compilé avec le support de l'IHM graphique, cette option active -l'IHM graphique. Si le support n'a pas été compilé, un message d'erreur -est émis et -.B Vim -quitte. -.TP -\-h -Donne une aide succincte sur les arguments et les options de la ligne de -commande. Après cela, -.B Vim -quitte. -.TP -\-H -Si -.B Vim -a été compilé avec le support de la fonctionnalité RIGHTLEFT pour l'édition de -fichiers de droite à gauche et les claviers hébreux, cette option lance -.B Vim -en mode Hébreu, c.-à-d. avec les options 'hkmap' et 'rightleft' activées. -Sinon, un message d'erreur est émis et -.B Vim -quitte. -.TP -\-i {viminfo} -Lorsque l'utilisation d'un fichier viminfo est activée, cette option indique -le nom de fichier à utiliser à la place de "~/.viminfo" par défaut. -Il est possible d'empêcher l'utilisation d'un fichier ".viminfo", en -spécifiant le nom de fichier "NONE". -.TP -\-L -Comme \-r. -.TP -\-l -Mode Lisp. -Active les options 'lisp' et 'showmatch'. -.TP -\-m -Empêche la modification des fichiers. -Désactive l'option 'write'. -Vous pouvez toujours modifier le tampon, mais il vous sera impossible -d'écrire le fichier. -.TP -\-M -N'autorise aucune modification. les options 'modifiable' et 'write' sont -désactivées, de sorte que les changements ne sont pas autorisés et que les -fichiers ne peuvent pas être écrits. Note : ces options peuvent être activées -pour autoriser les modifications. -.TP -\-N -Mode Non-compatible. Désactive l'option 'compatible'. -Cela améliorera le comportement de -.B Vim -\, mais il sera moins conforme à celui de Vi, même s'il n'existe aucun -fichier ".vimrc". -.TP -\-n -N'utilise pas de fichier d'échange (swapfile). -Le recouvrement après un plantage sera impossible. -Utile pour éditer un fichier sur un support très lent (disquette par ex.). -Également activable avec ":set uc=0". -Il est possible de l'annuler avec ":set uc=200". -.TP -\-nb -Devient un serveur d'édition pour NetBeans. Consulter la documentation à ce -sujet pour davantage de détails. -.TP -\-o[N] -Ouvre N fenêtres les unes au-dessus des autres. -Quand N est omis, ouvre une fenêtre pour chaque fichier. -.TP -\-O[N] -Ouvre N fenêtres côte à côte. -Quand N est omis, ouvre une fenêtre pour chaque fichier fichier. -.TP -\-p[N] -Ouvre N onglets. -Quand N est omis, ouvre un onglet pour chaque fichier fichier. -.TP -\-R -Mode Lecture-Seule. -Active l'option 'readonly'. -Vous pouvez toujours éditer le tampon, mais il vous sera impossible de -d'écraser accidentellement un fichier. -Si vous voulez écraser un fichier, ajoutez un point d'exclamation à la commande -Ex, comme dans ":w!". -L'option \-R impose l'option \-n (voir ci-dessus). -L'option 'readonly' peut être désactivée avec ":set noro". -Voir ":help 'readonly'". -.TP -\-r -Donne la liste des fichiers d'échange, avec des informations pour les utiliser -à des fins de recouvrement. -.TP -\-r {file} -Mode Recouvrement. -Utilise le fichier d'échange pour récouvrer d'une session d'édition plantée. -Le fichier d'échange est un fichier avec le même nom que le fichier texte, -suivi du suffixe ".swp". -Voir ":help recovery". -.TP -\-s -Mode Silencieux. Disponible uniquement quand -.B Vim -est lancé en tant que "ex" ou quand l'option "\-e" a été spécifiée avant -l'option "\-s". -.TP -\-s {scriptEntrée} -Lit le fichier de script {scriptEntrée}. -Les caractères du fichier sont interprétés comme si vous les tapiez. -La commande ":source! {scriptEntrée}" donne le même résultat. -Si la fin du fichier est atteinte avant que l'éditeur quitte, les caractères -suivants sont lus depuis le clavier. -.TP -\-T {terminal} -Indique à -.B Vim -le nom du terminal utilisé. -Cela n'est requis que lorsque la détection automatique échoue. -Le {terminal} devrait être connu de -.B Vim -(intégré) ou défini dans le fichier termcap ou terminfo. -.TP -\-u {vimrc} -Utilise les commandes du fichier {vimrc} pour les initialisations. -Toutes les autres initialisations sont omises. -À utiliser pour éditer un type de fichiers particulier. -Cela permet aussi d'omettre toute initialisation en spécifiant le nom de -fichier "NONE". -Voir ":help initialization" dans Vim pour davantage de détails. -.TP -\-U {gvimrc} -Utilise les commandes du fichier {gvimrc} pour l'initialisation de l'IHM -graphique. -Toutes les autres initialisations graphiques sont omises. -Cela permet aussi d'omettre toute initialisation graphique en spécifiant le nom -de fichier "NONE". -Voir ":help gui\-init" dans Vim pour davantage de détails. -.TP -\-V[N] -Mode Verbeux. -Donne des messages à propos des fichiers sourcés, ainsi que sur la lecture -et les écritures dans le fichier viminfo. le nombre optionnel N précise la -valeur de l'option 'verbose' (10 par défaut). -.TP -\-v -Démarre -.B Vim -en mode Vi, comme si l'exécutable s'appelait "vi". Cela n'a d'effet que si -l'exécutable invoqué est "ex". -.TP -\-w {scriptSortie} -Tous les caractères que vous tapez sont enregistrés dans le fichier -{scriptSortie}, jusqu'à ce que vous quittiez -.B Vim. -C'est utile quand vous voulez créer un fichier de script à utiliser avec -"vim \-s" ou ":source!". -Si le fichier {scriptSortie} existe, les caractères sont ajoutés à la fin. -.TP -\-W {scriptSortie} -Comme \-w, mais un fichier existant sera écrasé. -.TP -\-x -Chiffre les fichiers lors de l'écriture. Une clé de chiffrement sera demandée. -.TP -\-X -Ne se connecte pas au serveur X. Accélère le temps de démarrage dans un -terminal, mais le titre de la fenêtre et le presse-papier seront inaccessibles. -.TP -\-y -Démarre -.B Vim -en mode Débutant (easy), comme si l'exécutable s'appelait "evim" ou "eview". -Donne à -.B Vim -un comportement plus proche des éditeurs « cliquez-tapez ». -.TP -\-Z -Mode restreint. Fonctionne comme si l'exécutable commençait par la lettre 'r'. -.TP -\-\- -Délimite la fin des options. -Les arguments qui suivent seront considérés comme des noms de fichiers. -Cela permet d'éditer des fichiers débutant par un '\-'. -.TP -\-\-echo\-wid -IHM graphique GTK uniquement : retourne la Window ID sur stdout. -.TP -\-\-help -Donne un message d'aide et quitte, comme "\-h". -.TP -\-\-literal -Prend les arguments de noms de fichiers littéralement, sans étendre les -jokers. N'a aucun effet sur Unix, où le shell étend les jokers. -.TP -\-\-noplugin -Ne charge pas les greffons. Implicite avec \-u NONE. -.TP -\-\-remote -Se connecte à un serveur Vim et lui fait éditer les fichiers spécifiés dans -le reste des arguments. Si aucun serveur n'est trouvé, un avertissement est -émis et les fichiers sont édités dans le Vim courant. -.TP -\-\-remote\-expr {expr} -Se connecte à un serveur Vim, y évalue {expr} et affiche le résultat sur la -sortie standard (stdout). -.TP -\-\-remote\-send {touches} -Se connecte à un serveur Vim et y envoie {touches}. -.TP -\-\-remote\-silent -Comme \-\-remote, mais sans émettre d'avertissement si aucun serveur n'est -trouvé. -.TP -\-\-remote\-wait -Comme \-\-remote, mais Vim ne quitte pas tant que le fichier est en cours -d'édition. -.TP -\-\-remote\-wait\-silent -Comme \-\-remote\-wait, mais sans émettre d'avertissement si aucun serveur n'est -trouvé. -.TP -\-\-serverlist -Donne la liste des noms de tous les serveurs Vim disponibles. -.TP -\-\-servername {nom} -Utilise {nom} pour le nom de serveur. Ce nom est donné au Vim courant, à moins -qu'il ne soit utilisé avec un argument \-\-remote. Dans ce cas, il s'agit du nom -du serveur auquel se connecter. -.TP -\-\-socketid {id} -IHM graphique GTK+ uniquement : utilise le mécanisme GtkPlug pour faire -fonctionner gvim dans une autre fenêtre. -.TP -\-\-version -Affiche les informations sur la version puis quitte. -.SH AIDE EN LIGNE -Taper ":help" dans -.B Vim -pour commencer. -Taper ":help sujet" pour obtenir de l'aide sur un sujet précis. -Par exemple : ":help ZZ" pour consulter l'aide sur la commande "ZZ". -Utiliser <Tab> et CTRL\-D pour compléter les sujets (":help -cmdline\-completion"). -Des marqueurs sont inclus dans l'aide et vous permettent de sauter d'un endroit -à un autre (comme des liens hypertextes, voir ":help"). -L'ensemble des fichiers de la documentation peut être consulté de cette -façon, par exemple ":help syntax.txt". -.SH FICHIERS -.TP 15 -/usr/local/lib/vim/doc/*.txt -Les fichiers de la documentation de -.B Vim. -Utiliser ":help doc\-file\-list" pour obtenir la liste complète. -.TP -/usr/local/lib/vim/doc/tags -Le fichier des marqueurs utilisé pour trouver les informations dans les -fichiers de la documentation. -.TP -/usr/local/lib/vim/syntax/syntax.vim -Initialisation de la syntaxe pour l'ensemble du système. -.TP -/usr/local/lib/vim/syntax/*.vim -Fichiers de syntaxe pour différents langages. -.TP -/usr/local/lib/vim/vimrc -Initialisation de -.B Vim -pour l'ensemble du système. -.TP -~/.vimrc -Initialisation de -.B Vim -de votre compte utilisateur. -.TP -/usr/local/lib/vim/gvimrc -Initialisation de gvim pour l'ensemble du système. -.TP -~/.gvimrc -Initialisation de gvim pour votre compte utilisateur. -.TP -/usr/local/lib/vim/optwin.vim -Script utilisé pour la commande ":options", une manière pratique de consulter -et de modifier les options. -.TP -/usr/local/lib/vim/menu.vim -Initialisation des menus de gvim pour l'ensemble du système. -.TP -/usr/local/lib/vim/bugreport.vim -Script pour générer un rapport de bogue. Voir ":help bugs". -.TP -/usr/local/lib/vim/filetype.vim -Script pour détecter le type d'un fichier d'après son nom. -Voir ":help 'filetype'". -.TP -/usr/local/lib/vim/scripts.vim -Script pour détecter le type d'un fichier d'après son contenu. -Voir ":help 'filetype'". -.TP -/usr/local/lib/vim/print/*.ps -Fichiers utilisés pour l'impression PostScript. -.PP -Pour disposer d'informations récentes, consulter le site Internet de VIM : -.br -<URL:http://www.vim.org/> -.SH VOIR AUSSI -vimtutor(1) -.SH AUTEUR -La majeure partie de -.B Vim -a été écrite par Bram Moolenaar, avec l'aide de nombreux autres contributeurs. -Voir ":help credits" dans -.B Vim. -.br -.B Vim -est basé sur Stevie, réalisé par Tim Thompson, -Tony Andrews et G.R. (Fred) Walter. -Toutefois, pratiquement rien du code original ne subsiste. -.SH BOGUES -Probablement. -Voir ":help todo" pour consulter la liste des problèmes connus. -.PP -NOTE : Remarquez que bon nombre de points, qui pourraient être considérés comme -des bugs par certains, sont en fait dus à une reproduction trop fidèle -du comportement de Vi. Et si vous pensez que d'autres points sont des -bugs "parce que Vi le fait différemment", vous devriez jeter un oeil -attentif au fichier vi_diff.txt (ou taper ":help vi_diff.txt" dans Vim). -Regardez aussi les options 'compatible' et 'coptions'. -.SH TRADUCTION -Cette page de manuel a été traduite par Richard Hitier. -<richard.hitier@dial.oleane.com> 2000-08-07. -.br -Cette page de manuel a été mise à jour par David Blanchet. -<david.blanchet@free.fr> 2006-04-10. -Mise à jour 2013-05-10, Dominique Pellé <dominique.pelle@gmail.com> diff --git a/runtime/doc/vim-it.1 b/runtime/doc/vim-it.1 deleted file mode 100755 index 0ab3eff0d2..0000000000 --- a/runtime/doc/vim-it.1 +++ /dev/null @@ -1,566 +0,0 @@ -.TH VIM 1 "22 febbraio 2002" -.SH NOME -vim \- VI Migliorato, un editor di testi per programmatori -.SH SINTASSI -.br -.B vim -[opzioni] [file ..] -.br -.B vim -[opzioni] \- -.br -.B vim -[opzioni] \-t tag -.br -.B vim -[opzioni] \-q [file_errori] -.PP -.br -.B ex -.br -.B view -.br -.B gvim -.B gview -.B evim -.B eview -.br -.B rvim -.B rview -.B rgvim -.B rgview -.SH DESCRIZIONE -.B Vim -Un editore di testi, compatibile con, e migliore di, Vi. -Può essere usato per editare qualsiasi file di testo. -Particolarmente utile per editare programmi. -.PP -Ci sono parecchi miglioramenti rispetto a Vi: undo multipli, -finestre e buffer multipli, evidenziazione sintattica, possibilità -di modificare la linea di comando, completamento nomi file, help -in linea, selezione testi in Modo Visual, etc.. -Vedere ":help vi_diff.txt" per un sommario delle differenze fra -.B Vim -e Vi. -.PP -Mentre usate -.B Vim -potete ricevere molto aiuto dal sistema di help online, col comando ":help". -Vedere qui sotto la sezione AIUTO ONLINE. -.PP -Quasi sempre -.B Vim -viene invocato, per modificare un file, col comando -.PP - vim nome_file -.PP -Più in generale -.B Vim -viene invocato con: -.PP - vim [opzioni] [lista_file] -.PP -Se lista_file non è presente, l'editor inizia aprendo un buffer vuoto. -Altrimenti, una e una sola delle quattro maniere indicate qui sotto può -essere usata per scegliere uno o più file da modificare. -.TP 12 -nome_file .. -Una lista di nomi di file. -Il primo di questi sarà il file corrente, e verrà letto nel buffer. -Il cursore sarà posizionato sulla prima linea del buffer. -Potete arrivare agli altri file col comando ":next". -Per editare un file il cui nome inizia per "\-" premettete "\-\-" alla -lista_file. -.TP -\- -Il file da editare è letto dallo "stdin" [di solito, ma non -necessariamente, il terminale \- NdT]. I comandi sono letti da "stderr", -che dovrebbe essere un terminale [tty]. -.TP -\-t {tag} -Il file da editare e la posizione iniziale del cursore dipendono da "tag", -una specie di "etichetta" a cui saltare. -{tag} viene cercata nel file "tags", ed il file ad essa associato diventa -quello corrente, ed il comando ad essa associato viene eseguito. -Di solito si usa per programmi C, nel qual caso {tag} potrebbe essere un -nome di funzione. -L'effetto è che il file contenente quella funzione diventa il file corrente -e il cursore è posizionato all'inizio della funzione. -Vedere ":help tag\-commands". -.TP -\-q [file_errori] -Inizia in Modo QuickFix [correzione veloce]. -Il file [file_errori] è letto e il primo errore è visualizzato. -Se [file_errori] non è indicato, il suo nome è ottenuto dal valore -dell'opzione 'errorfile' (che, se non specificata, vale "AztecC.Err" -per l'Amiga, "errors.err" su altri sistemi). -Si può saltare all'errore successivo col comando ":cn". -Vedere ":help quickfix". -.PP -.B Vim -si comporta in modo diverso se invocato con nomi differenti (il programma -eseguibile "sottostante" può essere sempre lo stesso). -.TP 10 -vim -Modo Normal, comportamento normale. -.TP -ex -Inizia in Modo "Ex". -Si può passare in Modo Normal col comando ":vi". -Si può invocare il Modo "Ex" anche con l'argomento "\-e". -.TP -view -Inizia in Modo Read-only (Sola Lettura). Non potete modificare i file. -Si può invocare il Modo Read-only anche con l'argomento "\-R". -.TP -gvim gview -La versione GUI [Graphical User Interface]. -Apre una nuova finestra. -Si può invocare il Modo GUI anche con l'argomento "\-g". -.TP -evim eview -La versione GUI in Modo Easy (semplificata). -Apre una nuova finestra. -Si può invocare il Modo Easy anche con l'argomento "\-y". -.TP -rvim rview rgvim rgview -Come sopra, ma con restrizioni ai comandi. Non si potranno eseguire comandi -della shell o sospendere -.B Vim. -Si può chiedere la stessa cosa anche con l'argomento "\-Z". -.SH OPZIONI -Le opzioni possono essere in un ordine qualsiasi, prima o dopo i nomi di -file. Opzioni che non necessitano un argomento possono essere specificate -dietro a un solo "\-". -.TP 12 -+[numero] -Per il primo file il cursore sarà posizionato sulla linea "numero". -Se "numero" manca, il cursore sarà posizionato sull'ultima linea del file. -.TP -+/{espressione} -Per il primo file il cursore sarà posizionato alla -prima occorrenza di {espressione}. -Vedere ":help search\-pattern" per come specificare l'espressione. -.TP -+{comando} -.TP -\-c {comando} -{comando} sarà eseguito dopo che il -primo file è stato letto. -{comando} è interpretato come un comando Ex. -Se il {comando} contiene spazi deve essere incluso fra doppi apici -(o altro delimitatore, a seconda della shell che si sta usando). -Esempio: Vim "+set si" main.c -.br -Note: Si possono avere fino a 10 comandi "+" o "\-c". -.TP -\-S {file} -I comandi contenuti in {file} sono eseguiti dopo la lettura del primo file. -Equivalente a \-c "source {file}". -{file} non può avere un nome che inizia per '\-'. -Se {file} è omesso si usa "Session.vim" (funziona solo se \-S è l'ultimo -argomento specificato). -.TP -\-\-cmd {comando} -Come "\-c", ma il comando è eseguito PRIMA -di eseguire qualsiasi file vimrc. -Si possono usare fino a 10 di questi comandi, indipendentemente dai comandi -"\-c". -.TP -\-A -Se -.B Vim -è stato compilato con supporto Arabic per editare file con orientamento -destra-sinistra e tastiera con mappatura Araba, questa opzione inizia -.B Vim -in Modo Arabic, cioè impostando 'arabic'. -Altrimenti viene dato un messaggio di errore e -.B Vim -termina in modo anormale. -.TP -\-b -Modo Binary (binario). -Vengono impostate alcune opzioni che permettono di modificare un file -binario o un programma eseguibile. -.TP -\-C -Compatibile. Imposta l'opzione 'compatible'. -In questo modo -.B Vim -ha quasi lo stesso comportamento di Vi, anche in presenza di un file -di configurazione .vimrc [proprio di Vim, vi usa .exrc \- Ndt]. -.TP -\-d -Inizia in Modo Diff [differenze]. -Dovrebbero esserci come argomenti due o tre o quattro nomi di file. -.B Vim -aprirà tutti i file evidenziando le differenze fra gli stessi. -Funziona come vimdiff(1). -.TP -\-d {dispositivo} -Apre {dispositivo} per usarlo come terminale. -Solo per l'Amiga. -Esempio: -"\-d con:20/30/600/150". -.TP -\-D -Debugging. Vim si mette in Modo "debugging" a partire -dall'esecuzione del primo comando da uno script. -.TP -\-e -Eseguire -.B Vim -in Modo Ex, come se il programma eseguito sia "ex". -.TP -\-E -Eseguire -.B Vim -in Modo Ex migliorato, come se il programma eseguito sia "exim". -.TP -\-f -Direttamente [Foreground]. Per la versione GUI, -.B Vim -non crea [fork] una nuova finestra, indipendente dalla shell di invocazione. -Per l'Amiga, -.B Vim -non è fatto ripartire per aprire una nuova finestra. -Opzione da usare quando -.B Vim -è eseguito da un programma che attende la fine della -sessione di edit (ad es. mail). -Sull'Amiga i comandi ":sh" e ":!" non sono disponibili. -.TP -\-\-nofork -Direttamente [Foreground]. Per la versione GUI, -.B Vim -non crea [fork] una nuova finestra, indipendente dalla shell di invocazione. -.TP -\-F -Se -.B Vim -è stato compilato con supporto FKMAP per editare file con orientamento -destra-sinistra e tastiera con mappatura Farsi, questa opzione inizia -.B Vim -in Modo Farsi, cioè impostando 'fkmap' e 'rightleft'. -Altrimenti viene dato un messaggio di errore e -.B Vim -termina in modo anormale. -.TP -\-g -Se -.B Vim -è stato compilato con supporto GUI, questa opzione chiede di usarla. -Se Vim è stato compilato senza supporto GUI viene dato un messaggio di errore e -.B Vim -termina in modo anormale. -.TP -\-h -Un po' di aiuto su opzioni e argomenti che si possono dare invocando Vim. -Subito dopo -.B Vim -esce. -.TP -\-H -Se -.B Vim -è stato compilato col supporto RIGHTLEFT per editare file con orientamento -destra-sinistra e tastiera con mappatura Ebraica, questa opzione inizia -.B Vim -in Modo Ebraico, cioè impostando 'hkmap' e 'rightleft'. -Altrimenti viene dato un messaggio di errore e -.B Vim -termina in modo anormale. -.TP -\-i {viminfo} -Se è abilitato l'uso di un file viminfo, questa opzione indica il nome -del file da usare invece di quello predefinito "~/.viminfo". -Si può anche evitare l'uso di un file .viminfo, dando come nome "NONE". -.TP -\-L -Equivalente a \-r. -.TP -\-l -Modo Lisp. -Imposta le opzioni 'lisp' e 'showmatch'. -.TP -\-m -Inibisce modifica file. -Annulla l'opzione 'write'. -È ancora possibile modificare un buffer [in memoria \- Ndt], ma non scriverlo. -.TP -\-M -Modifiche non permesse. Le opzioni 'modifiable' e 'write' sono annullate, -in modo da impedire sia modifiche che riscritture. Da notare che queste -opzioni possono essere abilitate in seguito, permettendo così modifiche. -.TP -\-N -Modo "Non-compatibile". Annulla l'opzione 'compatible'. -Così -.B Vim -va un po' meglio, ma è meno compatibile con Vi, anche in assenza di un -file .vimrc. -.TP -\-n -Inibisce l'uso di un file di swap. -Il recupero dopo una caduta di macchina diventa impossibile. -Utile per editare un file su un supporto molto lento (ad es. floppy). -Il comando ":set uc=0" ha lo stesso effetto. -Per abilitare il recupero usare ":set uc=200". -.TP -\-nb -Diviene un Editor server per NetBeans. Vedere la documentazione per dettagli. -.TP -\-o[N] -Apri N finestre in orizzontale. -Se N manca, apri una finestra per ciascun file. -.TP -\-O[N] -Apri N finestre, in verticale. -Se N manca, apri una finestra per ciascun file. -.TP -\-R -Modo Read-only (Sola Lettura). -Imposta l'opzione 'readonly'. -Si può ancora modificare il buffer, ma siete protetti da una riscrittura -involontaria. -Se volete davvero riscrivere il file, aggiungete un punto esclamativo -al comando Ex, come in ":w!". -L'opzione \-R implica anche l'opzione \-n (vedere sotto). -L'opzione 'readonly' può essere annullata con ":set noro". -Vedere ":help 'readonly'". -.TP -\-r -Lista file di swap, assieme a dati utili per un recupero. -.TP -\-r {file} -Modo Recovery (ripristino). -Il file di swap è usato per recuperare una sessione di edit finita male. -Il file di swap è un file con lo stesso nome file del file di testo -editato, col suffisso ".swp". -Vedere ":help recovery". -.TP -\-s -Modo silenzioso. Solo quando invocato come "Ex" o quando l'opzione -"\-e" è stata data prima dell'opzione "\-s". -.TP -\-s {scriptin} -Lo script file {scriptin} è letto. -I caratteri nel file sono interpretati come se immessi da voi. -Lo stesso si può ottenere col comando ":source! {scriptin}". -Se la fine del file di input viene raggiunta prima che Vim termini, -l'ulteriore input viene preso dalla tastiera. -.TP -\-T {terminale} -Dice a -.B Vim -quale tipo di terminale state usando. -Utile solo se il terminale non viene riconosciuto correttamente da Vim. -Dovrebbe essere un terminale noto a -.B Vim -(internamente) o definito nel file termcap o terminfo. -.TP -\-u {vimrc} -Usa i comandi nel file {vimrc} per inizializzazioni. -Tutte le altre inizializzazioni non sono eseguite. -Usate questa opzione per editare qualche file di tipo speciale. -Può anche essere usato per non fare alcuna inizializzazione dando -come nome "NONE". -Vedere ":help initialization" da vim per ulteriori dettagli. -.TP -\-U {gvimrc} -Usa i comandi nel file {gvimrc} per inizializzazioni GUI. -Tutte le altre inizializzazioni GUI non sono eseguite. -Può anche essere usata per non fare alcuna inizializzazione GUI dando -come nome "NONE". -Vedere ":help gui-init" da vim per ulteriori dettagli. -.TP -\-V[N] -Verboso. Vim manda messaggi relativi agli script file che esegue -e quando legge o scrive un file viminfo. Il numero opzionale N è il valore -dell'opzione 'verbose'. -Il valore predefinito è 10. -.TP -\-v -Inizia -.B Vim -in Modo Vi, come se il programma eseguibile fosse "vi". Questo ha -effetto solo quando Vim viene invocato con il nome "ex". -.TP -\-w {scriptout} -Ogni carattere immesso viene registrato nel file {scriptout}, -finché non uscite da -.B Vim. -Utile se si vuole creare uno script file da usare con "vim \-s" o -":source!". -Se il file {scriptout} esiste, quel che immettete viene aggiunto in fondo. -.TP -\-W {scriptout} -Come \-w, ma uno script file esistente viene sovrascritto. -.TP -\-x -Uso di cifratura nella scrittura dei file. E' necessario immettere -una chiave di cifratura. -.TP -\-X -Non connetterti al server X. Vim parte più rapidamente, -ma il titolo della finestra e la clipboard non sono disponibili. -.TP -\-y -Eseguire -.B Vim -in Modo Easy (semplificata), come se l'eseguibile invocato -sia "evim" o "eview". -Fa sì che -.B Vim -si comporti come un editor che usa solo il mouse e i caratteri. -.TP -\-Z -Modo ristretto. Vim si comporta come se invocato con un nome -che inizia per "r". -.TP -\-\- -Specifica la fine delle opzioni. -Argomenti specificati dopo questo sono considerati nomi file. -Si può usare per editare un file il cui nome inizi per '-'. -.TP -\-\-echo\-wid -Solo con GUI GTK: Visualizza Window ID su "stdout". -.TP -\-\-help -Vim dà un messaggio ed esce, come con l'argomento "\-h". -.TP -\-\-literal -Considera i nomi passati come argomenti letterali, senza espandere -metacaratteri. Non necessario in Unix, la shell espande i metacaratteri. -.TP -\-\-noplugin -Non caricare plugin. Implicito se si specifica \-u NONE. -.TP -\-\-remote -Connettersi a un server Vim e chiedere di editare i file elencati come altri -argomenti. Se non si trova un server viene dato un messaggio e i file sono -editati nel Vim corrente. -.TP -\-\-remote\-expr {expr} -Connettersi a un server Vim, valutare ivi {expr} e stampare il risultato -su "stdout". -.TP -\-\-remote\-send {chiavi} -Connettersi a un server Vim e spedirgli {chiavi}. -.TP -\-\-remote\-silent -Come \-\-remote, ma senza avvisare se non si trova un server. -.TP -\-\-remote-wait -Come \-\-remote, ma Vim non termina finché i file non sono stati editati. -.TP -\-\-remote\-wait\-silent -Come \-\-remote\-wait, ma senza avvisare se non si trova un server. -.TP -\-\-serverlist -Lista i nomi di tutti i server Vim disponibili. -.TP -\-\-servername {nome} -Usa {nome} come nome server. Usato per il Vim corrente, a meno che sia -usato con l'argomento \-\-remote, nel qual caso indica il server a cui -connettersi. -.TP -\-\-socketid {id} -Solo con GUI GTK: Usa il meccanismo GtkPlug per eseguire gvim in un'altra -finestra. -.TP -\-\-version -Stampa la versione di Vim ed esci. -.SH AIUTO ONLINE -Battere ":help" in -.B Vim -per iniziare. -Battere ":help argomento" per ricevere aiuto su uno specifico argomento. -Per esempio: ":help ZZ" per ricevere aiuto sul comando "ZZ". -Usare <Tab> e CTRL\-D per completare gli argomenti -(":help cmdline\-completion"). -Ci sono "tag" nei file di help per saltare da un argomento a un altro -(simili a legami ipertestuali, vedere ":help"). -Tutti i file di documentazione possono essere navigati così. Ad es.: -":help syntax.txt". -.SH FILE -.TP 15 -/usr/local/lib/vim/doc/*.txt -I file di documentazione di -.B Vim -. -Usate ":help doc\-file\-list" per avere la lista completa. -.TP -/usr/local/lib/vim/doc/tags -Il file di tags usato per trovare informazioni nei file di documentazione. -.TP -/usr/local/lib/vim/syntax/syntax.vim -Inizializzazioni sintattiche a livello di sistema. -.TP -/usr/local/lib/vim/syntax/*.vim -File di colorazione sintattica per vari linguaggi. -.TP -/usr/local/lib/vim/vimrc -Inizializzazioni -.B Vim -a livello di sistema. -.TP -~/.vimrc -Le vostre personali inizializzazioni di -.B Vim -. -.TP -/usr/local/lib/vim/gvimrc -Inizializzazioni gvim a livello di sistema. -.TP -~/.gvimrc -Le vostre personali inizializzazioni di gvim. -.TP -/usr/local/lib/vim/optwin.vim -Script Vim usato dal comando ":options", un modo semplice -per visualizzare e impostare opzioni. -.TP -/usr/local/lib/vim/menu.vim -Inizializzazioni del menù gvim a livello di sistema. -.TP -/usr/local/lib/vim/bugreport.vim -Script Vim per generare una segnalazione di errore. Vedere ":help bugs". -.TP -/usr/local/lib/vim/filetype.vim -Script Vim per determinare il tipo di un file a partire dal suo nome. -Vedere ":help 'filetype'". -.TP -/usr/local/lib/vim/scripts.vim -Script Vim per determinare il tipo di un file a partire dal suo contenuto. -Vedere ":help 'filetype'". -.TP -/usr/local/lib/vim/print/*.ps -File usati per stampa PostScript. -.PP -Per informazioni aggiornate [in inglese \- NdT] vedere la home page di Vim: -.br -<URL:http://www.vim.org/> -.SH VEDERE ANCHE -vimtutor(1) -.SH AUTORE -Buona parte di -.B Vim -è stato scritto da Bram Moolenaar, con molto aiuto da altri. -Vedere ":help credits" in -.B Vim. -.br -.B Vim -è basato su Stevie, scritto da: Tim Thompson, -Tony Andrews e G.R. (Fred) Walter. -In verità, poco o nulla è rimasto del loro codice originale. -.SH BACHI -Probabili. -Vedere ":help todo" per una lista di problemi noti. -.PP -Si noti che un certo numero di comportamenti che possono essere considerati -errori da qualcuno, sono in effetti causati da una riproduzione fin troppo -fedele del comportamento di Vi. -Se ritenete che altre cose siano errori "perché Vi si comporta diversamente", -date prima un'occhiata al file vi_diff.txt -(o battere :help vi_diff.txt da Vim). -Date anche un'occhiata alle opzioni 'compatible' e 'cpoptions. diff --git a/runtime/doc/vim-pl.1 b/runtime/doc/vim-pl.1 deleted file mode 100644 index d506b33c98..0000000000 --- a/runtime/doc/vim-pl.1 +++ /dev/null @@ -1,558 +0,0 @@ -.TH VIM 1 "2006 kwi 11" -.SH NAME -vim \- Vi rozbudowany, edytor tekstu dla programisty -.SH SYNOPSIS -.br -.B vim -[opcje] [plik ..] -.br -.B vim -[opcje] \- -.br -.B vim -[opcje] \-t znacznik -.br -.B vim -[opcje] \-q [plik_b³êdu] -.PP -.br -.B ex -.br -.B view -.br -.B gvim -.B gview -.B evim -.B eview -.br -.B rvim -.B rview -.B rgvim -.B rgview -.SH OPIS -.B Vim -jest edytorem tekstu kompatybilnym z Vi. Mo¿e byæ -u¿ywany do edycji wszelkiego rodzaju plików tekstowych. -U¿yteczny zw³aszcza przy edycji programów. -.PP -Posiada wiele usprawnieñ w porównaniu z Vi: wielopoziomowe cofanie zmian, -wiele okien i buforów, pod¶wietlanie sk³adni, edycja linii poleceñ, -uzupe³nianie nazw plików, pomoc on-line, wizualna selekcja, itd. -Zobacz ":help vi_diff.txt" dla podsumowania ró¿nic pomiêdzy -.B Vimem -i Vi. -.PP -W czasie korzystania z -.B Vima -mo¿na uzyskaæ obszern± pomoc z systemu pomocy on-line dziêki poleceniu ":help". -Zobacz rozdzia³ POMOC ON-LINE poni¿ej. -.PP -Najczê¶ciej -.B Vim -jest uruchamiany do edycji pojedynczego pliku poleceniem -.PP - vim plik -.PP -Bardziej ogólnie -.B Vim -jest uruchamiany poprzez: -.PP - vim [opcje] [lista plików] -.PP -Je¶li brak listy plików edytor rozpocznie z pustym buforem. W innym -wypadku istnieje dok³adnie jedna z czterech mo¿liwo¶ci by wybraæ jeden -lub wiêcej plików do edycji. -.TP 12 -plik .. -Lista nazw plików. -Pierwsza nazwa bêdzie nazw± bie¿±cego pliku, który zostanie wczytany -do bufora. Kursor zostanie umieszczony w pierwszym wierszu. Do -kolejnych plików mo¿na przej¶æ dziêki poleceniu ":next". By otworzyæ -plik, którego nazwa zaczyna siê od my¶lnika nale¿y listê plików -poprzedziæ "\-\-". -.TP -\- -Plik do edycji jest wczytany ze standardowego wej¶cia. Polecenia s± -odczytywane ze standardowego wyj¶cia b³êdów, którym powinien byæ -terminal (tty). -.TP -\-t {znacznik} -Plik do edycji i pocz±tkowa pozycja kursora zale¿y od "znacznika", -rodzaju etykiety goto. -{znacznika} szuka siê w pliku tags, zwi±zany z nim plik staje siê -plikiem bie¿±cym i wykonuje siê powi±zane polecenie. -Zazwyczaj u¿ywa siê tego sposobu dla programów w C, w których wypadku -{znacznik} mo¿e byæ nazw± funkcji. -W efekcie plik zawieraj±cy okre¶lon± funkcjê staje siê plikiem -bie¿±cym a kursor jest umieszczony na pocz±tku funkcji. -Zobacz ":help tag-commands". -.TP -\-q [plik_b³êdów] -Zacznij w trybie quickFix. -Plik [plik_b³êdów] zostaje zinterpretowany i poka¿e siê pierwszy b³±d. -Je¶li brak opcji [plik_b³êdów] nazwa pliku zostanie pobrana z opcji -\&'errorfile' (domy¶lnie "AztecC.Err" dla Amigi, "errros.err" dla innych -systemów. -Do kolejnych b³êdów mo¿na przeskoczyæ dziêki poleceniu ":cn". -Zobacz ":help quickfix". -.PP -W zale¿no¶ci od wywo³ania -.B Vim -zachowuje siê inaczej (program mo¿e byæ ca³y czas tym samym -plikiem). -.TP 10 -vim -"Normalny" sposób, wszystko jest domy¶lne. -.TP -ex -Zacznij w trybie Ex. -Przejd¼ do trybu Normalnego poleceniem ":vi". -Mo¿na tak¿e uruchomiæ poprzez argument "\-e". -.TP -view -Zacznij w trybie tylko do odczytu. W ten sposób bêdziesz chroniony -przed zapisywaniem pliku. Mo¿na tak¿e uruchomiæ poprzez argument -"\-R". -.TP -gvim gview -Wersja GUI. -Uruchamia nowe okno. -Mo¿na tak¿e uruchomiæ poprzez argument "\-g". -.TP -evim eview -Wersja GUI w ³atwym trybie. -Uruchamia nowe okno. -Mo¿na tak¿e uruchomiæ poprzez argument "\-y". -.TP -rvim rview rgvim rgview -Podobnie jak powy¿ej, ale z ograniczeniami. Nie bêdzie mo¿na uruchomiæ -poleceñ pow³oki lub zawiesiæ -.B Vima. -Mo¿na tak¿e uruchomiæ poprzez argument "\-Z". -.SH OPCJE -Opcje mo¿na podaæ w dowolnej kolejno¶ci, przed lub po nazwach plików. -Opcje bez argumentów mo¿na ³±czyæ po pojedynczym my¶lniku. -.TP 12 -+[num] -W pierwszym pliku kursor zostanie umieszczony w wierszu "num". -Je¶li brak "num" kursor zostanie umieszczony w ostatnim wierszu. -.TP -+/{wzór} -W pierwszym pliku kursor zostanie umieszczony na pierwszym wyst±pieniu -{wzór}. -Zobacz ":help search-pattern" by dowiedzieæ siê jakie s± mo¿liwe -wzorce wyszukiwania. -.TP -+{polecenie} -.TP -\-c {polecenie} -{polecenie} zostanie wykonane po tym jak wczyta siê pierwszy plik. -{polecenie} jest interpretowane jako polecenie Ex. -Je¶li {poleceni} zawiera bia³e znaki musi byæ umieszczone w podwójnych -cudzys³owach (zale¿y to od u¿ywanej pow³oki). -Przyk³ad: Vim "+set si" main.c -.br -Uwaga: Mo¿na u¿yæ do 10 poleceñ "+" lub "\-c". -.TP -\-S {plik} -{plik} zostanie zinterpretowany po wczytaniu pierwszego pliku. -Jest równowa¿ne \-c "source {plik}". -{plik} nie mo¿e zaczynaæ siê '\-'. -Je¶li nie podano {plik} zostanie u¿yty "Session.vim" (dzia³a tylko -wtedy je¶li \-S jest ostatnim argumentem). -.TP -\-\-cmd {polecenie} -Podobne do "\-c", ale polecenie jest wykonywane tu¿ przed -interpretacj± jakiegokolwiek pliku vimrc. -Mo¿na u¿yæ do 10 takich poleceñ, niezale¿nie od poleceñ od "\-c" -.TP -\-A -Je¶li -.B Vim -zosta³ skompilowany ze wsparciem dla jêzyków arabskich (edycja od -prawej do lewej i arabska mapa klawiatury) ta opcja uruchamia -.B Vima -w trybie arabskim, np. ustawia siê opcja 'arabic'. W innym wypadku -pojawi siê komunikat b³êdu i -.B Vim -zakoñczy dzia³anie. -.TP -\-b -Tryb binarny. -Ustawi siê kilka opcji, które umo¿liwi± edycjê plików binarnych lub -wykonywalnych. -.TP -\-C -Kompatybilny. Ustawia opcjê 'compatible'. -W ten sposób -.B Vim -bêdzie zachowywa³ siê jak Vi, nawet je¶li istnieje plik .vimrc. -.TP -\-d -Uruchom w trybie diff. -Powinno siê u¿yæ dwóch, trzech lub czterech nazwy plików jako argumentów. -.B Vim -otworzy wszystkie te pliki i poka¿e ró¿nice miêdzy nimi. -Dzia³a jak vimdiff(1). -.TP -\-d {urz±dzenie} -Otwórz {urz±dzenie} by u¿ywaæ jako terminal. -Tylko na Amidze. -Przyk³ad: -"\-d con:20/30/600/150". -.TP -\-D -Debugowanie. Przejd¼ do trybu debugowanie wykonuj±c pierwsze polecenie -ze skryptu. -.TP -\-e -Uruchom -.B Vima -w trybie Ex, dzia³a tak samo jakby wywo³ano program jako "ex". -.TP -\-E -Uruchom -.B Vima -w ulepszonym trybie Ex, dzia³a tak samo jakby wywo³ano program jako -"exim". -.TP -\-f -Pierszy plan. Dla wersji GUI. -.B Vim -nie nie oddzieli siê od pow³oki w jakiej zosta³ uruchomiony. Na Amidze -.B Vim -nie jest uruchomiony ponownie by otworzyæ nowe okno. -Opcja powinna byæ u¿yta kiedy -.B Vim -jest wywo³ywany przez program, który ma zaczekaæ na koniec sesji (np. -mail). -Na Amidze polecenia ":sh" i ":!" nie bêd± dzia³aæ. -.TP -\-\-nofork -Pierwszy plan. Dla wersji GUI. -.B Vim -nie oddzieli siê od pow³oki w jakiej zosta³ uruchomiony. -.TP -\-F -Je¶li Vim zosta³ skompilowany ze wsparciem FKMAP dla edycji tekstów od -prawej do lewej i mapowania klawiatury Farsi, ta opcja uruchomi -.B Vima -w trybie Farsi, np. zostawi± ustawione opcje 'fkmap' i 'rightleft'. -W innym wypadku pojawi siê komunikat b³êdu i -.B Vim -zakoñczy dzia³anie. -.TP -\-g -Je¶li -.B Vim -zosta³ skompilowany ze wsparciem dla GUI ta opcja uruchomi GUI. -W innym wypadku pojawi siê komunikat b³êdu i -.B Vim -zakoñczy dzia³anie. -.TP -\-h -Wy¶wietli krótk± pomoc o argumentach linii poleceñ i opcjach. Potem -.B Vim -zakoñczy dzia³anie. -.TP -\-H -Je¶li -.B Vim -zosta³ skompilowany ze wsparciem RIGHTLEFT dla edycji od prawej do -lewej oraz ma mapowanie klawiatury dla hebrajskiego, ta opcja uruchomi -.B Vima -w trybie hebrajskim, np. ustawi opcje 'hkmap' i 'rightleft'. -W innym wypadku pojawi siê komunikat b³êdu i -.B Vim -zakoñczy dzia³anie. -.TP -\-i {viminfo} -Kiedy -.B Vim -u¿ywa pliku viminfo ta opcja wska¿e jakiego pliku u¿yæ zamiast -domy¶lnego "~/.viminfo". -Mo¿na te¿ omin±æ u¿ycie pliku .viminfo przez podanie nazwy "NONE". -.TP -\-L -To samo co \-r. -.TP -\-l -Tryb Lisp. -Ustawia opcje 'lisp' i 'showmatch'. -.TP -\-m -Zmiana pliku jest niemo¿liwa. -Przestawia opcjê 'write'. -Mo¿na zmieniaæ zawarto¶æ bufora, ale zapisanie pliku nie jest -mo¿liwe. -.TP -\-M -Opcje 'modifiable' i 'write' zostan± wy³±czone, tak wiêc zmiany -w pliku oraz ich zapisanie nie s± mo¿liwe. Warto¶æ tych opcji mo¿na -zmieniæ. -.TP -\-N -Tryb niekompatybilny. Przestawia opcjê 'compatible'. Dziêki temu -.B Vim -bêdzie zachowywa³ siê odrobinê lepiej, ale mniej zgodnie z Vi nawet -je¶li nie istnieje plik .vimrc. -.TP -\-n -Nie powstanie plik wymiany. Odzyskanie pliku po wypadku nie bêdzie -mo¿liwe. -Wygodne je¶li instnieje potrzeba edycji na bardzo wolnym medium (np. -dyskietce). Ten cel mo¿na osi±gn±æ tak¿e przez ":set uc=0". Mo¿na -odwróciæ przez ":set uc=200". -.TP -\-nb -Uruchom jako serwer edytora dla NetBeans. Zobacz dokumentacjê by -dowiedzieæ siê wiêcej. -.TP -\-o[N] -Otwórz N okien w stosie. -Kiedy brak N, otwórz jedno okno dla ka¿dego pliku. -.TP -\-O[N] -Otwórz N okien obok siebie. -Kiedy brak N, otwórz jedno okno dla ka¿dego pliku. -.TP -\-p[N] -Otwórz N kart. -Kiedy brak N, otwórz jedn± kartê dla ka¿dego pliku. -.TP -\-R -Tryb tylko do odczytu. -Zostanie ustawiona opcja 'readonly'. -Ca³y czas mo¿na zmieniaæ bufor, ale bêdzie istnia³a blokada by chroniæ -przed przypadkowym zapisaniem pliku. -Je¶li chcesz zapisaæ plik dodaj wykrzyknik do polecenia Ex, np. ":w!". -Opcja \-R implikuje opcjê \-n (zobacz poni¿ej). -Opcja 'readonly' mo¿e zostaæ przestawiona poprzez ":set noro". -Zobacz ":help 'readonly'". -.TP -\-r -Wypisz listê plików wymiany razem z informacjami o nich. -.TP -\-r {plik} -Tryb odzyskiwania danych. -Plik wymiany zostanie wykorzystany do odzyskania gwa³townie przerwanej sesji. -Plik wymiany to plik z tak± sam± nazw± co plik oryginalny z dodanym ".swp". -Zobacz ":help recovery". -.TP -\-s -Tryb cichy. Rozpoczêty tylko kiedy uruchomiony jako "Ex" lub opcja -"\-e" zosta³a podana przed opcj± "\-s". -.TP -\-s {skrypt} -Zostanie wczytany plik {skrypt}. -Znaki w pliku zostan± zinterpretowane jakby by³y wpisywane. -To samo mo¿na osi±gn±æ poprzez polecenie ":source! {skrypt}". -Je¶li osi±gniêto koniec pliku zanim edytor zakoñczy³ dzia³anie, dalsze -znaki odczytywane s± z klawiatury. -.TP -\-T {terminal} -Przekazuje -.B Vimowi -nazwê terminalu jakiego u¿ywasz. -Wymagane tylko wtedy je¶li nie dzia³a automatycznie. -Powinien byæ to terminal znany -.B Vimowi -(builtin) lub zdefiniowany w plikach termcap lub terminfo. -.TP -\-u {vimrc} -U¿yj poleceñ z pliku {vimrc} w czasie uruchamiania. -Wszystkie inne mo¿liwe pliki uruchamiania zostan± pominiête. -U¿ywaj do edytowania plików specjalnych. -Mo¿na pomin±æ tak¿e wszystkie mo¿liwe pliki uruchamiania poprzez -podanie nazwy "NONE". -Zobacz ":help initialization" by poznaæ wiêcej szczegó³ów. -.TP -\-U {gvimrc} -U¿yj poleceñ z pliku {gvimrc} w czasie uruchamiania GUI. -Wszystkie inne mo¿liwe pliki uruchamiania GUI zostan± pominiête. -Mo¿na pomin±æ tak¿e wszystkie mo¿liwe pliki uruchamiania GUI poprzez -podanie nazwy "NONE". -Zobacz ":help gui-init" by poznaæ wiêcej szczegó³ów. -.TP -\-V[N] -Tryb gadatliwy. Wypisz wiadomo¶ci o tym jaki pliki s± wczytywane -i o informacjach pobieranych i dodawanych do pliku viminfo. Opcjonalny -argument N jest warto¶ci± 'verbose'. Domy¶lnie 10. -.TP -\-v -Uruchom -.B Vima -w trybie Vi, tak jakby program by³ nazwany "vi". Ma znaczenie -tylko wtedy je¶li program nazwany jest "ex". -.TP -\-w {plik} -Wszystkie wci¶niêcia klawiszy, a¿ do zakoñczenia dzia³ania programu, -s± zapisywane w {plik} . -U¿yteczne je¶li chce siê stworzyæ skrypt do u¿ycia z "vim \-s" lub -":source!". -Je¶li {plik} istnieje, znaki s± dopisywane. -.TP -\-W {plik} -Podobnie do \-w, ale istniej±cy plik jest nadpisywany. -.TP -\-x -U¿yj szyfrowania podczas zapisywania plików. Zostaniesz poproszony -o podanie klucza. -.TP -\-X -Nie ³±cz z serwerem X. Skraca czas uruchamiania w terminalu, ale tytu³ -okna i schowek nie bêd± wykorzystywane. -.TP -\-y -Uruchom -.B Vima -w ³atwym trybie, tak jakby program zosta³ wywo³any "evim" lub "eview". -.B Vim -bêdzie zachowywa³ siê bardziej jak edytor kliknij-i-wpisz. -.TP -\-Z -Tryb ograniczony. Zachowuje siê jakby nazwa programu zaczyna³a siê od -"r". -.TP -\-\- -Oznacza koniec opcji. -Argumenty po tej opcji bêd± traktowane jak nazwy plików. U¿ywa siê do -otwierania plików, których nazwy zaczynaj± siê od '\-'. -.TP -\-\-echo\-wid -Wy³±cznie GTK GUI: wypisz ID okna na standardowe wyj¶cie. -.TP -\-\-help -Wy¶wietl informacjê o pomocy i zakoñczy, to samo co"\-h". -.TP -\-\-literal -Potraktuj nazwy plików dos³ownie i nie rozwi±zuj kwantyfikatorów. Nie -ma znaczenia na Uniksach gdzie pow³oka rozwi±zuje kwantyfikatory. -.TP -\-\-noplugin -Pomiñ ³adowanie wtyczek. Implikowane przy \-u NONE. -.TP -\-\-remote -Po³±cz siê z serwerem Vima i edytuj w nim resztê plików podanych jako -argumenty. Je¶li nie znaleziono serwera zostanie zg³oszony b³±d a pliki zostan± -otwarte w bie¿±cym Vimie. -.TP -\-\-remote\-expr {wyra¿enie} -Po³±cz z serwerem Vima, rozwi±¿ w nim {wyra¿enie} i wypisz rozwi±zanie -na standardowe wyj¶cie. -.TP -\-\-remote\-send {klawisze} -Po³±cz z serwerem Vima i wy¶lij do niego {klawisze}. -.TP -\-\-remote\-silent -Tak samo jak \-remote, ale bez ostrze¿enia kiedy nie znaleziono -serwera. -.TP -\-\-remote\-wait -Tak samo jak \-remote, ale Vim nie zakoñczy dopóki pliki pozostan± -otwarte. -.TP -\-\-remote\-wait\-silent -Tak samo jak \-\-remote\-wait, ale bez ostrze¿enie kiedy nie -znaleziono serwera. -.TP -\-\-serverlist -Wypisz nazwy wszystkich serwerów Vima jakie mo¿na znale¼æ. -.TP -\-\-servername {nazwa} -U¿yj {nazwa} jako nazwy serwera. Wykorzystane dla bie¿±cego Vima o ile -nie po³±czone z argumentem \-\-remote, wtedy jest to nazwa serwera do -po³±czenia. -.TP -\-\-socketid {id} -Wy³±cznie GTK GUI: U¿yj mechanizmu GtkPlug by uruchomiæ gvima w innym -oknie. -.TP -\-\-version -Wypisz informacjê o wersji i zakoñcz. -.SH POMOC ON-LINE -By rozpocz±æ wpisz ":help" w -.B Vimie -Wpisz ":help temat" by uzyskaæ pomoc na okre¶lony temat. -Przyk³ad: ":help ZZ" by uzyskaæ pomoc na temat polecenia "ZZ". -U¿yj <Tab> i CTRL\-D aby uzupe³niæ tematy (":help -cmdline\-completion"). W plikach pomocy istniej± znaczniki by u³atwiæ -skakanie z jednego miejsca do innego (rodzaj linków hipertekstowych, -zobacz ":help"). -Mo¿na w ten sposób zobaczyæ ca³± dokumentacjê, np. ":help syntax.txt". -.SH PLIKI -.TP 15 -/usr/local/lib/vim/doc/*.txt -Dokumentacja -.B Vima -U¿yj ":help doc\-file\-list" aby uzyskaæ pe³n± listê. -.TP -/usr/local/lib/vim/doc/tags -Plik znaczników s³u¿y do znajdowania informacji w plikach dokumentacji. -.TP -/usr/local/lib/vim/syntax/syntax.vim -Globalne uruchamianie pod¶wietlania sk³adni. -.TP -/usr/local/lib/vim/syntax/*.vim -Pliki sk³adni dla ró¿nych jêzyków. -.TP -/usr/local/lib/vim/vimrc -Globalny plik uruchamiania -.B Vima -.TP -~/.vimrc -Osobiste parametry uruchamiania -.B Vima -.TP -/usr/local/lib/vim/gvimrc -Globalne uruchamianie gvima. -.TP -~/.gvimrc -Osobiste parametry uruchamiania gvima. -.TP -/usr/local/lib/vim/optwin.vim -Skrypt u¿ywany w poleceniu ":options", dobry sposób do przegl±dania -i ustawiania opcji. -.TP -/usr/local/lib/vim/menu.vim -Globalne uruchamianie menu gvima. -.TP -/usr/local/lib/vim/bugreport.vim -Skrypt s³u¿±cy do tworzenia raportów o b³êdach. Zobacz ":help bugs". -.TP -/usr/local/lib/vim/filetype.vim -Skrypt do wykrywania typu pliku wed³ug jego nazwy. Zobacz ":help 'filetype'". -.TP -/usr/local/lib/vim/scripts.vim -Skrypt do wykrywania typu pliku wed³ug jego zawarto¶ci. Zobacz ":help 'filetype'". -.TP -/usr/local/lib/vim/print/*.ps -Pliku u¿ywane do drukowania PostScriptu. -.PP -Naj¶wie¿sze wiadomo¶ci na stronie -.B Vima: -.br -<URL:http://www.vim.org/> -.SH ZOBACZ TAK¯E -vimtutor(1) -.SH AUTOR -.B Vim -zosta³ napisany przez Brama Moolenaara z du¿± pomoc± innych osób. -Zobacz ":help credits" w -.B Vimie. -.br -.B Vim -bazuje na Steviem, nad którym pracowali: Tim Thompson, Tony Andrews -i G.R. (Fred) Walter. -Ma³o ju¿ zosta³o z oryginalnego kodu. -.SH B£ÊDY -Prawdopodobne. -Zobacz ":help todo" by poznaæ listê znanych problemów. -.PP -Pamiêtaj ¿e pewna ilo¶æ problemów, które mog± byæ uznawane przez -niektórych ludzi za b³êdy s± w rzeczywisto¶ci spowodowane wierno¶ci± -w odtwarzaniu zachowania Vi. -Je¶li s±dzisz, ¿e inne rzeczy s± b³êdami "poniewa¿ Vi robi to -inaczej", powiniene¶ przyjrzeæ siê bli¿ej plikowi vi_diff.txt (lub -wpisaæ ":help vi_diff.txt" w Vimie). -Sprawd¼ tak¿e opis opcji 'compatible' i 'cpoptions'. diff --git a/runtime/doc/vim-ru.1 b/runtime/doc/vim-ru.1 deleted file mode 100644 index dfcb3ece98..0000000000 --- a/runtime/doc/vim-ru.1 +++ /dev/null @@ -1,489 +0,0 @@ -.TH VIM 1 "2002 Feb 22" -.SH éíñ -vim \- Vi IMproved (õÌÕÞÛÅÎÎÙÊ Vi), ÔÅËÓÔÏ×ÙÊ ÒÅÄÁËÔÏÒ ÄÌÑ ÐÒÏÇÒÁÍÍÉÓÔÏ× -.SH ëïíáîäîáñ óôòïëá -.br -.B vim -[ËÌÀÞÉ] [ÆÁÊÌ ..] -.br -.B vim -[ËÌÀÞÉ] \- -.br -.B vim -[ËÌÀÞÉ] \-t ÍÅÔËÁ -.br -.B vim -[ËÌÀÞÉ] \-q [ÆÁÊÌ ÏÛÉÂÏË] -.PP -.br -.B ex -.br -.B view -.br -.B gvim -.B gview -.br -.B rvim -.B rview -.B rgvim -.B rgview -.SH ïðéóáîéå -.B Vim --- ÔÅËÓÔÏ×ÙÊ ÒÅÄÁËÔÏÒ, ÏÂÒÁÔÎÏ-ÓÏ×ÍÅÓÔÉÍÙÊ Ó Vi. -ïÎ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ ÐÒÁ×ËÉ ×ÓÅÈ ×ÉÄÏ× ÐÒÏÓÔÏÇÏ ÔÅËÓÔÁ. -ïÓÏÂÅÎÎÏ ÏÎ ÈÏÒÏÛ ÄÌÑ ÐÒÁ×ËÉ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÐÒÏÇÒÁÍÍ. -.PP -ðÏ ÓÒÁ×ÎÅÎÉÀ Ó Vi, -.B Vim -ÉÍÅÅÔ ÍÎÏÇÏ ÕÓÏ×ÅÒÛÅÎÓÔ×Ï×ÁÎÉÊ: ÍÎÏÇÏËÒÁÔÎÁÑ ÏÔÍÅÎÁ ÏÐÅÒÁÃÉÊ, -ÍÎÏÖÅÓÔ×ÅÎÎÏÓÔØ ÏËÏÎ É ÂÕÆÅÒÏ×, ÐÏÄÓ×ÅÔËÁ ÓÉÎÔÁËÓÉÓÁ, ÐÒÁ×ËÁ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ, -Á×ÔÏÄÏÐÏÌÎÅÎÉÅ ÉͣΠÆÁÊÌÏ×, ×ÓÔÒÏÅÎÎÁÑ ÓÐÒÁ×ËÁ, ×ÉÚÕÁÌØÎÏÅ ×ÙÄÅÌÅÎÉÅ É Ô.Ð. -óÍ. ":help vi_diff.txt" ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÐÏÌÎÏÇÏ ÓÐÉÓËÁ ÒÁÚÌÉÞÉÊ ÍÅÖÄÕ -.B Vim -É Vi. -.PP -÷Ï ×ÒÅÍÑ ÒÁÂÏÔÙ × -.B Vim -ÍÏÖÎÏ ÐÏÌÕÞÉÔØ ÓÐÒÁ×ËÕ Ó ÐÏÍÏÝØÀ ÓÉÓÔÅÍÙ ×ÓÔÒÏÅÎÎÏÊ ÓÐÒÁ×ËÉ (ËÏÍÁÎÄÁ ":help"). -óÍ. ÒÁÚÄÅÌ "÷óôòïåîîáñ óðòá÷ëá" ÎÉÖÅ ÐÏ ÔÅËÓÔÕ. -.PP -þÁÝÅ ×ÓÅÇÏ -.B Vim -ÚÁÐÕÓËÁÀÔ ÄÌÑ ÐÒÁ×ËÉ ÏÄÎÏÇÏ ÆÁÊÌÁ ÐÒÉ ÐÏÍÏÝÉ ËÏÍÁÎÄÙ -.PP - vim ÆÁÊÌ -.PP -÷ ÏÂÝÅÍ ×ÉÄÅ ËÏÍÁÎÄÁ ÚÁÐÕÓËÁ -.B Vim -×ÙÇÌÑÄÉÔ ÔÁË: -.PP - vim [ËÌÀÞÉ] [ÓÐÉÓÏË ÆÁÊÌÏ×] -.PP -åÓÌÉ ÓÐÉÓÏË ÆÁÊÌÏ× ÏÔÓÕÔÓÔ×ÕÅÔ, ÒÅÄÁËÔÏÒ ÎÁÞÎ£Ô ÒÁÂÏÔÕ Ó ÐÕÓÔÙÍ ÂÕÆÅÒÏÍ. -÷ ÐÒÏÔÉ×ÎÏÍ ÓÌÕÞÁÅ ÉÍÑ ÆÁÊÌÁ ÄÏÌÖÎÏ ÂÙÔØ ÕËÁÚÁÎÏ ÏÄÎÉÍ ÉÚ ÓÌÅÄÕÀÝÉÈ ÞÅÔÙÒ£È ÓÐÏÓÏÂÏ×: -.TP 12 -ÆÁÊÌ .. -óÐÉÓÏË ÉͣΠÆÁÊÌÏ×. -ðÅÒ×ÙÊ ÆÁÊÌ ÂÕÄÅÔ ÏÂßÑ×ÌÅÎ ÁËÔÉ×ÎÙÍ É ÚÁÇÒÕÖÅÎ × ÂÕÆÅÒ. ëÕÒÓÏÒ ÂÕÄÅÔ ÐÏÍÅݣΠ-× ÐÅÒ×ÏÊ ÓÔÒÏËÅ ÂÕÆÅÒÁ. äÏÓÔÕÐ Ë ÄÒÕÇÉÍ ÆÁÊÌÁÍ ÍÏÖÅÔ ÂÙÔØ ÏÓÕÝÅÓÔ×̣ΠÐÒÉ -ÐÏÍÏÝÉ ËÏÍÁÎÄÙ ":next". þÔÏÂÙ ÐÒÁ×ÉÔØ ÆÁÊÌ, ÉÍÑ ËÏÔÏÒÏÇÏ ÎÁÞÉÎÁÅÔÓÑ Ó ÓÉÍ×ÏÌÁ -"ÄÅÆÉÓ" (-), ÐÅÒÅÄ ÓÐÉÓËÏÍ ÆÁÊÌÏ× ÎÅÏÂÈÏÄÉÍÏ ÐÏÓÔÁ×ÉÔØ "--". -.TP -\- -æÁÊÌ ÂÕÄÅÔ ÐÒÏÞÉÔÁÎ ÉÚ ÐÏÔÏËÁ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ. ëÏÍÁÎÄÙ ÂÕÄÕÔ ÓÞÉÔÙ×ÁÔØÓÑ -ÉÚ ÓÔÁÎÄÁÒÔÎÏÇÏ ÐÏÔÏËÁ ÄÉÁÇÎÏÓÔÉËÉ (stderr), ËÏÔÏÒÙÊ ÄÏÌÖÅÎ ÂÙÔØ -ÔÅÒÍÉÎÁÌÏÍ. -.TP -\-t {ÍÅÔËÁ} -éÍÑ ÆÁÊÌÁ É ÎÁÞÁÌØÎÁÑ ÐÏÚÉÃÉÑ ËÕÒÓÏÒÁ ÚÁ×ÉÓÑÔ ÏÔ "ÍÅÔËÉ", ÐÏÈÏÖÅÊ ÎÁ ÍÅÔËÕ goto. -{ÍÅÔËÁ} ÉÝÅÔÓÑ × ÆÁÊÌÅ ÍÅÔÏË, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ÆÁÊÌ ÓÔÁÎÏ×ÉÔÓÑ ÁËÔÉ×ÎÙÍ, Á -ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÁÑ ËÏÍÁÎÄÁ ÉÓÐÏÌÎÑÅÔÓÑ. -þÁÝÅ ×ÓÅÇÏ ÉÓÐÏÌØÚÕÅÔÓÑ × ÐÒÏÇÒÁÍÍÁÈ ÎÁ ÑÚÙËÅ óÉ, ÇÄÅ {ÍÅÔËÁ} ÍÏÖÅÔ ÂÙÔØ ÉÍÅÎÅÍ -ÆÕÎËÃÉÉ. -æÁÊÌ, ÓÏÄÅÒÖÁÝÉÊ ÆÕÎËÃÉÀ, ÓÔÁÎÏ×ÉÔÓÑ ÁËÔÉ×ÎÙÍ, Á ËÕÒÓÏÒ ÐÏÍÅÝÁÅÔÓÑ × ÎÁÞÁÌÏ ÆÕÎËÃÉÉ. -óÍ. ":help tag-commands". -.TP -\-q [ÆÁÊÌ ÏÛÉÂÏË] -îÁÞÁÔØ ÒÁÂÏÔÕ × ÒÅÖÉÍÅ ÂÙÓÔÒÏÇÏ ÉÓÐÒÁ×ÌÅÎÉÑ. -ðÒÉ ÜÔÏÍ ÓÞÉÔÙ×ÁÅÔÓÑ [ÆÁÊÌ ÏÛÉÂÏË] É ÐÅÒ×ÁÑ ÏÛÉÂËÁ ×Ù×ÏÄÉÔÓÑ ÎÁ ÜËÒÁÎ. -åÓÌÉ [ÆÁÊÌ ÏÛÉÂÏË] ÎÅ ÕËÁÚÁÎ, ÉÍÑ ÆÁÊÌÁ ÂÅÒ£ÔÓÑ ÉÚ ÚÎÁÞÅÎÉÑ ÏÐÃÉÉ 'errorfile' -(ÐÏ ÕÍÏÌÞÁÎÉÀ: "AztecC.Err" ÄÌÑ Amiga, "errors.err" ÄÌÑ ÄÒÕÇÉÈ ÓÉÓÔÅÍ). -ë ÓÌÅÄÕÀÝÉÍ ÏÛÉÂËÁÍ ÍÏÖÎÏ ÐÅÒÅÊÔÉ ÐÏ ËÏÍÁÎÄÅ ":cn". -óÍ. ":help quickfix". -.PP -.B Vim -×ÅÄ£Ô ÓÅÂÑ ÐÏ-ÒÁÚÎÏÍÕ × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÉÍÅÎÉ ËÏÍÁÎÄÙ (ÉÓÐÏÌÎÑÅÍÙÊ ÆÁÊÌ ÍÏÖÅÔ -ÂÙÔØ ÏÄÎÉÍ É ÔÅÍ ÖÅ). -.TP 10 -vim -"îÏÒÍÁÌØÎÙÊ" ÚÁÐÕÓË, ×Ó£ ÐÏ ÕÍÏÌÞÁÎÉÀ. -.TP -ex -úÁÐÕÓË × ÒÅÖÉÍÅ Ex. äÌÑ ÐÅÒÅÈÏÄÁ × ÎÏÒÍÁÌØÎÙÊ ÒÅÖÉÍ -ÎÅÏÂÈÏÄÉÍÏ ×ÙÐÏÌÎÉÔØ ËÏÍÁÎÄÕ ":vi". òÅÖÉÍ Ex ×ËÌÀÞÁÅÔ -ÔÁËÖÅ ËÌÀÞ "\-e". -.TP -view -úÁÐÕÓË × ÒÅÖÉÍÅ "ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ". ÷Ù ÂÕÄÅÔÅ ÚÁÝÉÝÅÎÙ ÏÔ ÓÌÕÞÁÊÎÏÊ ÚÁÐÉÓÉ -ÆÁÊÌÁ. ôÏ ÖÅ ÓÁÍÏÅ ÍÏÖÎÏ ÓÄÅÌÁÔØ ËÌÀÞÏÍ "\-R". -.TP -gvim gview -÷ÅÒÓÉÑ Ó ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ. úÁÐÕÓËÁÅÔÓÑ × ÎÏ×ÏÍ ÏËÎÅ. -ôÏ ÖÅ ÓÁÍÏÅ ÍÏÖÎÏ ÓÄÅÌÁÔØ ÐÒÉ ÚÁÐÕÓËÅ Ó ËÌÀÞÏÍ "\-g". -.TP -rvim rview rgvim rgview -ëÁË É ÐÒÅÄÙÄÕÝÉÅ ËÏÍÁÎÄÙ, ÎÏ Ó ÏÇÒÁÎÉÞÅÎÉÑÍÉ. îÅÌØÚÑ ÚÁÐÕÓËÁÔØ ËÏÍÁÎÄÙ ÏÂÏÌÏÞËÉ -ÉÌÉ ÐÒÉÏÓÔÁÎÁ×ÌÉ×ÁÔØ ÒÁÂÏÔÕ -.B Vim. -÷ÍÅÓÔÏ ÐÒÉÓÔÁ×ËÉ "r" ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ËÌÀÞ "\-Z". -.SH ëìàþé -ëÌÀÞÉ ÍÏÇÕÔ ÂÙÔØ ÕËÁÚÁÎÙ × ÌÀÂÏÍ ÐÏÒÑÄËÅ, ÄÏ ÉÌÉ ÐÏÓÌÅ ÉͣΠ-ÆÁÊÌÏ×. ëÌÀÞÉ ÂÅÚ ÁÒÇÕÍÅÎÔÏ× ÍÏÇÕÔ ÂÙÔØ ÏÂßÅÄÉÎÅÎÙ ÐÏÄ ÏÄÎÉÍ -ÄÅÆÉÓÏÍ. -.TP 12 -+[ÎÏÍÅÒ] -÷ ÐÅÒ×ÏÍ ÆÁÊÌÅ ËÕÒÓÏÒ ÂÕÄÅÔ ÐÏÍÅݣΠÎÁ ÓÔÒÏËÕ Ó ÕËÁÚÁÎÎÙÍ ÎÏÍÅÒÏÍ. -åÓÌÉ "ÎÏÍÅÒ" ÎÅ ÕËÁÚÁÎ, ËÕÒÓÏÒ ÂÕÄÅÔ ÐÏÍÅݣΠÎÁ ÐÏÓÌÅÄÎÀÀ ÓÔÒÏËÕ. -.TP -+/{ÛÁÂÌÏÎ} -÷ ÐÅÒ×ÏÍ ÆÁÊÌÅ ËÕÒÓÏÒ ÂÕÄÅÔ ÐÏÍÅݣΠÎÁ ÍÅÓÔÏ ÐÅÒ×ÏÇÏ ÓÏ×ÐÁÄÅÎÉÑ -Ó ÕËÁÚÁÎÎÙÍ ÛÁÂÌÏÎÏÍ. óÍ. ":help search-pattern" ÄÌÑ ÐÏÌÕÞÅÎÉÑ -ÓÐÉÓËÁ ÄÏÐÕÓÔÉÍÙÈ ÛÁÂÌÏÎÏ×. -.TP -+{ËÏÍÁÎÄÁ} -.TP -\-c {ËÏÍÁÎÄÁ} -{ËÏÍÁÎÄÁ} ÉÓÐÏÌÎÑÅÔÓÑ ÐÏÓÌÅ ÚÁÇÒÕÚËÉ ÐÅÒ×ÏÇÏ ÆÁÊÌÁ ËÁË ËÏÍÁÎÄÁ Ex. -åÓÌÉ {ËÏÍÁÎÄÁ} ÓÏÄÅÒÖÉÔ ÐÒÏÂÅÌÙ, ÔÏ ÏÎÁ ÄÏÌÖÎÁ ÂÙÔØ ÚÁËÌÀÞÅÎÁ × -Ä×ÏÊÎÙÅ ËÁ×ÙÞËÉ (× ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÉÓÐÏÌØÚÕÅÍÏÊ ÏÂÏÌÏÞËÉ). -ðÒÉÍÅÒ: vim "+set si" main.c -.br -ðÒÉÍÅÞÁÎÉÅ: íÏÖÎÏ ÕËÁÚÙ×ÁÔØ ÄÏ ÄÅÓÑÔÉ ËÏÍÁÎÄ "+" ÉÌÉ "\-c". -.TP -\-\-cmd {ËÏÍÁÎÄÁ} -ëÁË "\-c", ÎÏ ËÏÍÁÎÄÁ ÉÓÐÏÌÎÑÅÔÓÑ ÐÅÒÅÄ ÏÂÒÁÂÏÔËÏÊ ÌÀÂÏÇÏ ÆÁÊÌÁ -ÎÁÓÔÒÏÅË (vimrc). -íÏÖÎÏ ÕËÁÚÙ×ÁÔØ ÄÏ ÄÅÓÑÔÉ ÔÁËÉÈ ËÏÍÁÎÄ, ÎÅÚÁ×ÉÓÉÍÏ ÏÔ ËÏÌÉÞÅÓÔ×Á -ËÏÍÁÎÄ "\-c". -.TP -\-A -åÓÌÉ -.B Vim -ÂÙÌ ÓÏÂÒÁÎ Ó ÐÏÄÄÅÒÖËÏÊ ÁÒÁÂÓËÏÇÏ ÑÚÙËÁ ÄÌÑ ÐÒÁ×ËÉ ÆÁÊÌÏ×, -ÎÁÂÒÁÎÎÙÈ ÓÐÒÁ×Á ÎÁÌÅ×Ï, É Ó ÐÏÄÄÅÒÖËÏÊ ÁÒÁÂÓËÏÊ ËÌÁ×ÉÁÔÕÒÙ, -ÜÔÏÔ ËÌÀÞ ÚÁÐÕÓËÁÅÔ -.B Vim -× ÁÒÁÂÓËÏÍ ÒÅÖÉÍÅ, Ó ×ËÌÀÞÅÎÎÏÊ ÏÐÃÉÅÊ 'arabic'. ÷ ÐÒÏÔÉ×ÎÏÍ -ÓÌÕÞÁÅ -.B Vim -ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ Ó ÏÛÉÂËÏÊ. -.TP -\-b -ä×ÏÉÞÎÙÊ ÒÅÖÉÍ. -ðÒÏÉÚ×ÏÄÉÔÓÑ ÎÁÓÔÒÏÊËÁ ÎÅËÏÔÏÒÙÈ ÏÐÃÉÊ, ÄÅÌÁÀÝÉÈ ×ÏÚÍÏÖÎÏÊ ÐÒÁ×ËÕ -Ä×ÏÉÞÎÏÇÏ ÉÌÉ ÉÓÐÏÌÎÑÅÍÏÇÏ ÆÁÊÌÁ. -.TP -\-C -òÅÖÉÍ ÓÏ×ÍÅÓÔÉÍÏÓÔÉ. ÷ËÌÀÞÁÅÔ ÏÐÃÉÀ 'compatible'. -.B Vim -ÂÕÄÅÔ ÒÁÂÏÔÁÔØ ÐÏÞÔÉ ËÁË Vi, ÄÁÖÅ ÅÓÌÉ ÓÕÝÅÓÔ×ÕÅÔ ÆÁÊÌ .vimrc. -.TP -\-d -òÅÖÉÍ ÐÏÉÓËÁ ÒÁÚÌÉÞÉÊ. -äÏÌÖÎÏ ÂÙÔØ ÕËÁÚÁÎÏ Ä×Á ÉÌÉ ÔÒÉ ÉÍÅÎÉ ÆÁÊÌÁ. -.B Vim -ÏÔËÒÏÅÔ ×ÓÅ ÆÁÊÌÙ É ÐÏËÁÖÅÔ ÒÁÚÌÉÞÉÑ ÍÅÖÄÕ ÎÉÍÉ -(ËÁË vimdiff(1)). -.TP -\-d {ÕÓÔÒÏÊÓÔ×Ï} -ïÔËÒÙÔØ {ÕÓÔÒÏÊÓÔ×Ï} ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ × ËÁÞÅÓÔ×Å ÔÅÒÍÉÎÁÌÁ (ÔÏÌØËÏ ÎÁ Amiga). -ðÒÉÍÅÒ: -"\-d con:20/30/600/150". -.TP -\-e -úÁÐÕÓÔÉÔØ -.B Vim -× ÒÅÖÉÍÅ Ex, ËÁË ÂÕÄÔÏ ÉÓÐÏÌÎÑÅÍÙÊ ÆÁÊÌ ÉÍÅÅÔ ÉÍÑ "ex". -.TP -\-f -òÅÖÉÍ ÁËÔÉ×ÎÏÇÏ ÐÒÉÌÏÖÅÎÉÑ. ÷ÅÒÓÉÑ -.B Vim -Ó ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ ÎÅ ÂÕÄÅÔ ×ÅÔ×ÉÔØÓÑ É ÏÔËÌÀÞÁÔØÓÑ -ÏÔ ÚÁÐÕÓÔÉ×ÛÅÊ Å£ ÏÂÏÌÏÞËÉ. îÁ ÐÌÁÔÆÏÒÍÅ Amiga -.B Vim -ÎÅ ÂÕÄÅÔ ÓÏÚÄÁ×ÁÔØ ÎÏ×ÏÅ ÏËÎÏ. üÔÏÔ ËÌÀÞ ÎÕÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ, -ËÏÇÄÁ -.B Vim -ÚÁÐÕÓËÁÅÔÓÑ ÐÒÏÇÒÁÍÍÏÊ, ËÏÔÏÒÁÑ ÄÏÌÖÎÁ ÖÄÁÔØ ÚÁ×ÅÒÛÅÎÉÑ -ÓÅÁÎÓÁ ÐÒÁ×ËÉ (ÎÁÐÒÉÍÅÒ, ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÒÁÂÏÔÙ Ó ÜÌÅËÔÒÏÎÎÏÊ ÐÏÞÔÏÊ). -îÁ ÐÌÁÔÆÏÒÍÅ Amiga ËÏÍÁÎÄÙ ":sh" É ":!" ÎÅ ÂÕÄÕÔ ÒÁÂÏÔÁÔØ. -.TP -\-\-nofork -òÅÖÉÍ ÁËÔÉ×ÎÏÇÏ ÐÒÉÌÏÖÅÎÉÑ. ÷ÅÒÓÉÑ -.B Vim -Ó ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ ÎÅ ÂÕÄÅÔ ×ÅÔ×ÉÔØÓÑ É ÏÔËÌÀÞÁÔØÓÑ -ÏÔ ÚÁÐÕÓÔÉ×ÛÅÊ Å£ ÏÂÏÌÏÞËÉ. -.TP -\-F -åÓÌÉ -.B Vim -ÂÙÌ ÓÏÂÒÁÎ Ó ÐÏÄÄÅÒÖËÏÊ FKMAP ÄÌÑ ÐÒÁ×ËÉ ÔÅËÓÔÁ ÓÐÒÁ×Á ÎÁÌÅ×Ï -É ÎÁÓÔÒÏÅË ËÌÁ×ÉÁÔÕÒÙ ÄÌÑ ÑÚÙËÁ ÆÁÒÓÉ, ÜÔÏÔ ËÌÀÞ ÚÁÐÕÓËÁÅÔ -.B Vim -× ÒÅÖÉÍÅ ÆÁÒÓÉ, ÉÎÁÞÅ ÇÏ×ÏÒÑ, Ó ×ËÌÀÞ£ÎÎÙÍÉ ÏÐÃÉÑÍÉ -\&'fkmap' É 'rightleft'. -÷ ÐÒÏÔÉ×ÎÏÍ ÓÌÕÞÁÅ -.B Vim -ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ Ó ÓÏÏÂÝÅÎÉÅÍ Ï ÏÛÉÂËÅ. -.TP -\-g -åÓÌÉ -.B Vim -ÂÙÌ ÓÏÂÒÁÎ Ó ÐÏÄÄÅÒÖËÏÊ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ, ÜÔÏÔ ËÌÀÞ -×ËÌÀÞÁÅÔ ÇÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ. ÷ ÐÒÏÔÉ×ÎÏÍ ÓÌÕÞÁÅ -.B Vim -ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ Ó ÓÏÏÂÝÅÎÉÅÍ Ï ÏÛÉÂËÅ. -.TP -\-h -÷Ù×ÏÄÉÔ ËÒÁÔËÕÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÁÒÇÕÍÅÎÔÁÈ É ËÌÀÞÁÈ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ. -ðÏÓÌÅ ÜÔÏÇÏ -.B Vim -ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ. -.TP -\-H -åÓÌÉ -.B Vim -ÂÙÌ ÓÏÂÒÁÎ Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÁ×ËÉ ÔÅËÓÔÁ ÓÐÒÁ×Á ÎÁÌÅ×Ï -É ÎÁÓÔÒÏÅË ËÌÁ×ÉÁÔÕÒÙ ÄÌÑ É×ÒÉÔÁ, ÜÔÏÔ ËÌÀÞ ÚÁÐÕÓËÁÅÔ -.B Vim -× ÒÅÖÉÍÅ É×ÒÉÔÁ, ÉÎÁÞÅ ÇÏ×ÏÒÑ, Ó ×ËÌÀÞ£ÎÎÙÍÉ ÏÐÃÉÑÍÉ 'hkmap' É 'rightleft'. -÷ ÐÒÏÔÉ×ÎÏÍ ÓÌÕÞÁÅ -.B Vim -ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ Ó ÓÏÏÂÝÅÎÉÅÍ Ï ÏÛÉÂËÅ. -.TP -\-i {viminfo} -åÓÌÉ ÉÓÐÏÌØÚÕÅÔÓÑ ÆÁÊÌ viminfo, ÔÏ ÜÔÏÔ ËÌÀÞ ÚÁÄÁ£Ô ÉÍÑ ÔÁËÏÇÏ ÆÁÊÌÁ (×ÍÅÓÔÏ -"~/.viminfo" ÐÏ ÕÍÏÌÞÁÎÉÀ). íÏÖÎÏ ÔÁËÖÅ ÉÚÂÅÖÁÔØ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÆÁÊÌÁ viminfo -ÐÕÔ£Í ÕËÁÚÁÎÉÑ ÉÍÅÎÉ "NONE". -.TP -\-L -ôÏ ÖÅ, ÞÔÏ É \-r. -.TP -\-l -òÅÖÉÍ Lisp. ÷ËÌÀÞÁÀÔÓÑ ÏÐÃÉÉ 'lisp' É 'showmatch'. -.TP -\-m -éÚÍÅÎÅÎÉÅ ÆÁÊÌÏ× ÚÁÐÒÅÝÅÎÏ. ðÒÉ ÜÔÏÍ ÏÔËÌÀÞÁÅÔÓÑ ÏÐÃÉÑ 'write', ÐÏÜÔÏÍÕ -ÚÁÐÉÓØ ÆÁÊÌÏ× ÓÔÁÎÏ×ÉÔÓÑ ÎÅ×ÏÚÍÏÖÎÏÊ. -.TP -\-N -òÅÖÉÍ ÎÅÐÏÌÎÏÊ ÓÏ×ÍÅÓÔÉÍÏÓÔÉ. ïÔËÌÀÞÁÅÔÓÑ 'compatible'. -.B Vim -ÂÕÄÅÔ ÒÁÂÏÔÁÔØ ÌÕÞÛÅ, ÎÏ ÎÅ ÂÕÄÅÔ ÐÏÌÎÏÓÔØÀ ÓÏ×ÍÅÓÔÉÍ Ó Vi, ÄÁÖÅ ÅÓÌÉ -ÏÔÓÕÔÓÔ×ÕÅÔ ÆÁÊÌ ÓÃÅÎÁÒÉÑ ÎÁÓÔÒÏÅË (.vimrc). -.TP -\-n -îÅ ÉÓÐÏÌØÚÏ×ÁÔØ Ó×ÏÐ-ÆÁÊÌ. ÷ÏÓÓÔÁÎÏ×ÌÅÎÉÅ ÐÒÉ ÓÂÏÅ × ÒÁÂÏÔÅ ÂÕÄÅÔ ÎÅ×ÏÚÍÏÖÎÏ. -õÄÏÂÎÏ ÄÌÑ ÐÒÁ×ËÉ ÆÁÊÌÁ ÎÁ ÏÞÅÎØ ÍÅÄÌÅÎÎÏÍ ÎÏÓÉÔÅÌÅ (ÎÁÐÒÉÍÅÒ, ÇÉÂËÏÍ ÄÉÓËÅ). -ôÏ ÖÅ ÓÁÍÏÅ ÍÏÖÎÏ ÓÄÅÌÁÔØ ËÏÍÁÎÄÏÊ ":set uc=0". ïÔÍÅÎÁ -- ":set uc=200". -.TP -\-o[N] -ïÔËÒÙÔØ N ÏËÏÎ, ÒÁÚÄÅÌ£ÎÎÙÈ ÐÏ ÇÏÒÉÚÏÎÔÁÌÉ. åÓÌÉ N ÎÅ ÕËÁÚÁÎÏ, ÔÏ ÏÔËÒÙ×ÁÅÔÓÑ -ÐÏ ÏÄÎÏÍÕ ÏËÎÕ ÎÁ ËÁÖÄÙÊ ÆÁÊÌ. -.TP -\-O[N] -ïÔËÒÙÔØ N ÏËÏÎ, ÒÁÚÄÅÌ£ÎÎÙÈ ÐÏ ×ÅÒÔÉËÁÌÉ. åÓÌÉ N ÎÅ ÕËÁÚÁÎÏ, ÔÏ ÏÔËÒÙ×ÁÅÔÓÑ -ÐÏ ÏÄÎÏÍÕ ÏËÎÕ ÎÁ ËÁÖÄÙÊ ÆÁÊÌ. -.TP -\-R -òÅÖÉÍ "ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ". ÷ËÌÀÞÁÅÔÓÑ ÏÐÃÉÑ 'readonly'. -æÁÊÌ × ÂÕÆÅÒÅ ÄÏÓÔÕÐÅÎ ÄÌÑ ÒÅÄÁËÔÉÒÏ×ÁÎÉÑ, ÎÏ ÅÇÏ ËÏÐÉÀ ÎÁ ÄÉÓËÅ ÎÅÌØÚÑ -ÓÌÕÞÁÊÎÏ ÐÅÒÅÚÁÐÉÓÁÔØ. äÌÑ ÓÏÈÒÁÎÅÎÉÑ ÆÁÊÌÁ ÎÅÏÂÈÏÄÉÍÏ ÄÏÂÁ×ÉÔØ ×ÏÓËÌÉÃÁÔÅÌØÎÙÊ -ÚÎÁË Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ËÏÍÁÎÄÅ Ex (ÎÁÐÒÉÍÅÒ, ":w!"). -ëÌÀÞ "\-R" ÐÏÄÒÁÚÕÍÅ×ÁÅÔ ÔÁËÖÅ, ÞÔÏ ÉÓÐÏÌØÚÕÅÔÓÑ É ËÌÀÞ "\-n" (ÓÍ. ×ÙÛÅ). -ïÐÃÉÑ 'readonly' ÍÏÖÅÔ ÂÙÔØ ×ÙËÌÀÞÅÎÁ ÐÏ ËÏÍÁÎÄÅ ":set noro". -óÍ. ":help 'readonly'". -.TP -\-r -÷Ù×ÅÓÔÉ ÓÐÉÓÏË Ó×ÏÐ-ÆÁÊÌÏ× É ÉÎÆÏÒÍÁÃÉÀ Ï ÉÈ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÄÌÑ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÐÏÓÌÅ ÓÂÏÑ. -.TP -\-r {ÆÁÊÌ} -òÅÖÉÍ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ. -äÌÑ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÐÏÓÌÅ ÓÂÏÑ ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÎ Ó×ÏÐ-ÆÁÊÌ. -ó×ÏÐ-ÆÁÊÌ ÉÍÅÅÔ ÔÏ ÖÅ ÉÍÑ, ÞÔÏ É ÔÅËÓÔÏ×ÙÊ ÆÁÊÌ, ÎÏ Ó ÄÏÂÁ×ÌÅÎÉÅÍ ÒÁÓÛÉÒÅÎÉÑ ".swp". -óÍ. ":help recovery". -.TP -\-s -ôÉÈÉÊ ÒÅÖÉÍ. ôÏÌØËÏ ÐÒÉ ÚÁÐÕÓËÅ ËÁË "Ex" ÉÌÉ ÅÓÌÉ ÐÅÒÅÄ "\-s" ÕËÁÚÁÎ ËÌÀÞ "\-e". -.TP -\-s {scriptin} -óÞÉÔÙ×ÁÅÔÓÑ ÆÁÊÌ ÓÃÅÎÁÒÉÑ {scriptin}. ðÒÉ ÜÔÏÍ, ÓÏÄÅÒÖÉÍÏÅ ÆÁÊÌÁ ×ÏÓÐÒÉÎÉÍÁÅÔÓÑ -× ×ÉÄÅ ËÏÍÁÎÄ, ËÁË ÅÓÌÉ ÂÙ ÏÎÉ ÂÙÌÉ ÎÁÂÒÁÎÙ ÎÁ ËÏÎÓÏÌÉ. -ôÏ ÖÅ ÓÁÍÏÅ ÄÏÓÔÉÇÁÅÔÓÑ ËÏÍÁÎÄÏÊ ":source! {scriptin}". -åÓÌÉ ËÏÎÅà ÆÁÊÌÁ ÓÞÉÔÙ×ÁÅÔÓÑ ÄÏ ÚÁ×ÅÒÛÅÎÉÑ ÒÁÂÏÔÙ ÒÅÄÁËÔÏÒÁ, ÔÏ × ÄÁÌØÎÅÊÛÅÍ -××ÏÄ ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ Ó ËÌÁ×ÉÁÔÕÒÙ. -.TP -\-T {terminal} -óÏÏÂÝÁÅÔ -.B Vim -ÔÉÐ ÉÓÐÏÌØÚÕÅÍÏÇÏ ÔÅÒÍÉÎÁÌÁ. îÅÏÂÈÏÄÉÍÏ ÔÏÌØËÏ × ÔÅÈ ÓÉÔÕÁÃÉÑÈ, ËÏÇÄÁ -Á×ÔÏÍÁÔÉÞÅÓËÏÅ ÏÐÒÅÄÅÌÅÎÉÅ ÔÅÒÍÉÎÁÌÁ ÎÅ ÒÁÂÏÔÁÅÔ. éÍÑ ÔÅÒÍÉÎÁÌÁ ÄÏÌÖÎÏ ÂÙÔØ -ÉÚ×ÅÓÔÎÏ -.B Vim -(×ÓÔÒÏÅÎÏ × ÎÅÇÏ) ÉÌÉ ÏÐÒÅÄÅÌÅÎÏ × ÆÁÊÌÁÈ termcap ÉÌÉ terminfo. -.TP -\-u {vimrc} -éÓÐÏÌØÚÏ×ÁÔØ ËÏÍÁÎÄÙ ÉÚ ÆÁÊÌÁ ÓÃÅÎÁÒÉÑ {vimrc} ÄÌÑ ÎÁÓÔÒÏÊËÉ. -÷ÓÅ ÏÓÔÁÌØÎÙÅ ÆÁÊÌÙ ÎÁÓÔÒÏÅË ÐÒÏÐÕÓËÁÀÔÓÑ. -õÄÏÂÎÏ ÄÌÑ ÒÅÄÁËÔÉÒÏ×ÁÎÉÑ ÓÐÅÃÉÁÌØÎÙÈ ÔÉÐÏ× ÆÁÊÌÏ×. -þÔÏÂÙ ÉÚÂÅÖÁÔØ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÓÃÅÎÁÒÉÅ× ÎÁÓÔÒÏÅË ×ÏÏÂÝÅ, ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ -ÉÍÑ "NONE". óÍ. ":help initialization". -.TP -\-U {gvimrc} -éÓÐÏÌØÚÏ×ÁÔØ ËÏÍÁÎÄÙ ÉÚ ÆÁÊÌÁ ÓÃÅÎÁÒÉÑ {gvimrc} ÄÌÑ ÎÁÓÔÒÏÊËÉ ÇÒÁÆÉÞÅÓËÏÇÏ -ÉÎÔÅÒÆÅÊÓÁ. -÷ÓÅ ÏÓÔÁÌØÎÙÅ ÆÁÊÌÙ ÎÁÓÔÒÏÅË ÄÌÑ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ ÐÒÏÐÕÓËÁÀÔÓÑ. -þÔÏÂÙ ÉÚÂÅÖÁÔØ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÓÃÅÎÁÒÉÅ× ÎÁÓÔÒÏÅË ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ ×ÏÏÂÝÅ, -ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÉÍÑ "NONE". óÍ. ":help gui-init". -.TP -\-V -"âÏÌÔÌÉ×ÙÊ" ÒÅÖÉÍ. ÷Ù×ÏÄÉÔØ ÓÏÏÂÝÅÎÉÑ Ï ÔÏÍ, ËÁËÉÅ ÆÁÊÌÙ ÞÉÔÁÀÔÓÑ, É Ï -ÞÔÅÎÉÉ-ÚÁÐÉÓÉ ÆÁÊÌÁ viminfo. -.TP -\-v -úÁÐÕÓÔÉÔØ -.B Vim -× ÒÅÖÉÍÅ Vi, ËÁË ÂÕÄÔÏ ÉÓÐÏÌÎÑÅÍÙÊ ÆÁÊÌ ÉÍÅÅÔ ÉÍÑ "vi". éÍÅÅÔ ÓÍÙÓÌ ÔÏÌØËÏ ÅÓÌÉ -ÉÓÐÏÌÎÑÅÍÙÊ ÆÁÊÌ ÉÍÅÅÔ ÉÍÑ "ex". -.TP -\-w {scriptout} -÷ÓÅ ÓÉÍ×ÏÌÙ, ××ÅÄ£ÎÎÙÅ Ó ËÌÁ×ÉÁÔÕÒÙ ×ÐÌÏÔØ ÄÏ ÍÏÍÅÎÔÁ ÚÁ×ÅÒÛÅÎÉÑ ÒÁÂÏÔÙ, -ÚÁÐÉÓÙ×ÁÀÔÓÑ × ÆÁÊÌ {scriptout}. -õÄÏÂÎÏ × ÔÏÍ ÓÌÕÞÁÅ, ËÏÇÄÁ ×Ù ÈÏÔÉÔÅ ÓÏÚÄÁÔØ ÆÁÊÌ ÓÃÅÎÁÒÉÑ ÄÌÑ ÐÏÓÌÅÄÕÀÝÅÇÏ -ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó "vim \-s" ÉÌÉ ":source!". åÓÌÉ ÆÁÊÌ {scriptout} ÕÖÅ ÓÕÝÅÓÔ×ÕÅÔ, -ÔÏ ÎÏ×ÙÅ ÓÉÍ×ÏÌÙ ÂÕÄÕÔ ÄÏÂÁ×ÌÑÀÔÓÑ × ËÏÎÅà ÆÁÊÌÁ. -.TP -\-W {scriptout} -ëÁË "\-w", ÎÏ ÕÖÅ ÓÕÝÅÓÔ×ÕÀÝÉÊ ÆÁÊÌ ÂÕÄÅÔ ÐÅÒÅÚÁÐÉÓÁÎ. -.TP -\-x -ûÉÆÒÏ×ÁÔØ ÚÁÐÉÓÙ×ÁÅÍÙÅ ÆÁÊÌÙ. âÕÄÅÔ ×ÙÄÁÎÏ ÐÒÉÇÌÁÛÅÎÉÅ ××ÅÓÔÉ ÐÁÒÏÌØ. -.TP -\-X -îÅ ÐÏÄËÌÀÞÁÔØÓÑ Ë X-ÓÅÒ×ÅÒÕ. õÓËÏÒÑÅÔ ÚÁÇÒÕÚËÕ ÎÁ ËÏÎÓÏÌÉ, ÎÏ ÄÅÌÁÅÔ ÎÅ×ÏÚÍÏÖÎÙÍ -ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÚÁÇÏÌÏ×ËÁ ÏËÎÁ É ÂÕÆÅÒÁ ÏÂÍÅÎÁ. -.TP -\-Z -ïÇÒÁÎÉÞÅÎÎÙÊ ÒÅÖÉÍ. òÁÂÏÔÁÅÔ ÔÁË ÖÅ, ËÁË É ÐÒÏÇÒÁÍÍÙ, ÎÁÞÉÎÁÀÝÉÅÓÑ Ó "r". -.TP -\-\- -ëÏÎÅà ËÌÀÞÅÊ. ÷ÓÅ ÏÓÔÁÌØÎÙÅ ÁÒÇÕÍÅÎÔÙ ÒÁÓÓÍÁÔÒÉ×ÁÀÔÓÑ ËÁË ÉÍÅÎÁ ÆÁÊÌÏ×. -íÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÏ ÄÌÑ ÐÒÁ×ËÉ ÆÁÊÌÏ×, ÉÍÅÎÁ ËÏÔÏÒÙÈ ÎÁÞÉÎÁÀÔÓÑ Ó ÄÅÆÉÓÁ. -.TP -\-\-help -÷Ù×ÅÓÔÉ ËÒÁÔËÕÀ ÓÐÒÁ×ËÕ É ÚÁ×ÅÒÛÉÔØ ÒÁÂÏÔÕ. ôÏ ÖÅ, ÞÔÏ É "\-h". -.TP -\-\-version -÷Ù×ÅÓÔÉ ÉÎÆÏÒÍÁÃÉÀ Ï ×ÅÒÓÉÉ ÐÒÏÇÒÁÍÍÙ É ÚÁ×ÅÒÛÉÔØ ÒÁÂÏÔÕ. -.TP -\-\-remote -ðÏÄËÌÀÞÉÔØÓÑ Ë ÓÅÒ×ÅÒÕ Vim É ÚÁÓÔÁ×ÉÔØ ÅÇÏ ÐÒÁ×ÉÔØ ÆÁÊÌÙ, ÕËÁÚÁÎÎÙÅ × -ÐÏÓÌÅÄÕÀÝÉÈ ÁÒÇÕÍÅÎÔÁÈ. åÓÌÉ ÓÅÒ×ÅÒ ÎÅ ÎÁÊÄÅÎ, ×Ù×ÏÄÉÔÓÑ ÐÒÅÄÕÐÒÅÖÄÅÎÉÅ, -Á ÆÁÊÌÙ ÐÒÁ×ÑÔÓÑ × ÍÅÓÔÎÏÊ ËÏÐÉÉ Vim. -.TP -\-\-remote\-expr {×ÙÒÁÖÅÎÉÅ} -ðÏÄËÌÀÞÉÔØÓÑ Ë ÓÅÒ×ÅÒÕ Vim É ×ÙÞÉÓÌÉÔØ ÎÁ Î£Í ÕËÁÚÁÎÎÏÅ {×ÙÒÁÖÅÎÉÅ}. -òÅÚÕÌØÔÁÔ ×ÙÞÉÓÌÅÎÉÑ ÂÕÄÅÔ ×Ù×ÅÄÅÎ × ÐÏÔÏË ÓÔÁÎÄÁÒÔÎÏÇÏ ×Ù×ÏÄÁ (stdout). -.TP -\-\-remote\-send {ËÌÀÞÉ} -ðÏÄËÌÀÞÉÔØÓÑ Ë ÓÅÒ×ÅÒÕ Vim É ÐÅÒÅÄÁÔØ ÅÍÕ ÕËÁÚÁÎÎÙÅ {ËÌÀÞÉ}. -.TP -\-\-remote\-silent -ëÁË "\-\-remote", ÎÏ ÂÅÚ ×Ù×ÏÄÁ ÐÒÅÄÕÐÒÅÖÄÅÎÉÑ, ÅÓÌÉ ÓÅÒ×ÅÒ ÎÅ ÎÁÊÄÅÎ. -.TP -\-\-remote\-wait -ëÁË "\-\-remote", ÎÏ Vim ÎÅ ÂÕÄÅÔ ÚÁ×ÅÒÛÁÔØ ÒÁÂÏÔÕ ÄÏ ÔÅÈ ÐÏÒ, ÐÏËÁ ÎÅ ÂÕÄÅÔ -×ÙÐÏÌÎÅÎÁ ÐÒÁ×ËÁ ×ÓÅÈ ÆÁÊÌÏ×. -.TP -\-\-remote\-wait\-silent -ëÁË "\-\-remote\-wait", ÎÏ ÂÅÚ ×Ù×ÏÄÁ ÐÒÅÄÕÐÒÅÖÄÅÎÉÑ, ÅÓÌÉ ÓÅÒ×ÅÒ ÎÅ ÎÁÊÄÅÎ. -.TP -\-\-serverlist -÷Ù×ÅÓÔÉ ÓÐÉÓÏË ×ÓÅÈ ÄÏÓÔÕÐÎÙÈ ÓÅÒ×ÅÒÏ× Vim. -.TP -\-\-servername {ÉÍÑ} -éÓÐÏÌØÚÏ×ÁÔØ ÕËÁÚÁÎÎÏÅ {ÉÍÑ} × ËÁÞÅÓÔ×Å ÉÍÅÎÉ ÓÅÒ×ÅÒÁ. åÓÌÉ ËÌÀÞ -"\-\-remote" ÎÅ ÕËÁÚÁÎ, ÔÏ {ÉÍÑ} ÐÒÉÓ×ÁÉ×ÁÅÔÓÑ ÄÁÎÎÏÊ ËÏÐÉÉ Vim, -× ÐÒÏÔÉ×ÎÏÍ ÓÌÕÞÁÅ ÕËÁÚÙ×ÁÅÔ ÎÁ ÉÍÑ ÓÅÒ×ÅÒÁ, Ë ËÏÔÏÒÏÍÕ ÓÌÅÄÕÅÔ -ÐÏÄËÌÀÞÉÔØÓÑ. -.TP -\-\-socketid {id} -ôÏÌØËÏ ÄÌÑ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ GTK: ÉÓÐÏÌØÚÏ×ÁÔØ ÍÅÈÁÎÉÚÍ GtkPlug ÄÌÑ -ÚÁÐÕÓËÁ gvim × ÏÔÄÅÌØÎÏÍ ÏËÎÅ. -.TP -\-\-echo\-wid -ôÏÌØËÏ ÄÌÑ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ GTK: ×Ù×ÅÓÔÉ ÉÄÅÎÔÉÆÉËÁÔÏÒ ÏËÎÁ (Window ID) -× ÐÏÔÏË ÓÔÁÎÄÁÒÔÎÏÇÏ ×Ù×ÏÄÁ (stdout). -.SH ÷óôòïåîîáñ óðòá÷ëá -äÌÑ ÎÁÞÁÌÁ, ÎÁÂÅÒÉÔÅ ËÏÍÁÎÄÕ ":help". -÷×ÅÄÉÔÅ ":help ÔÅÍÁ", ÞÔÏÂÙ ÐÏÌÕÞÉÔØ ÓÐÒÁ×ËÕ ÐÏ ËÏÎËÒÅÔÎÏÊ ÔÅÍÅ. -îÁÐÒÉÍÅÒ, ËÏÍÁÎÄÁ ":help ZZ" ×Ù×ÅÄÅÔ ÉÎÆÏÒÍÁÃÉÀ Ï ËÏÍÁÎÄÅ "ZZ". -éÓÐÏÌØÚÕÊÔÅ <Tab> É CTRL-D ÄÌÑ Á×ÔÏÍÁÔÉÞÅÓËÏÇÏ ÄÏÐÏÌÎÅÎÉÑ -ÎÁÚ×ÁÎÉÊ ÔÅÍ (":help cmdline-completion"). -äÌÑ ÂÙÓÔÒÏÇÏ ÐÅÒÅÍÅÝÅÎÉÑ ÐÏ ÓÐÒÁ×ÏÞÎÉËÕ ÉÓÐÏÌØÚÕÀÔÓÑ ÍÅÔËÉ (ÞÔÏ-ÔÏ -×ÒÏÄÅ ÇÉÐÅÒÔÅËÓÔÏ×ÙÈ ÓÓÙÌÏË, ÓÍ. ":help"). ôÁËÉÍ ÏÂÒÁÚÏÍ ÍÏÖÎÏ -ÐÒÏÓÍÁÔÒÉ×ÁÔØ ×ÓÅ ÆÁÊÌÙ ÓÐÒÁ×ËÉ, ÎÁÐÒÉÍÅÒ ":help syntax.txt". -.SH æáêìù -.TP 15 -/usr/local/lib/vim/doc/*.txt -æÁÊÌÙ ÓÐÒÁ×ÏÞÎÉËÁ -.B Vim. -óÍ. ":help doc-file-list" ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÐÏÌÎÏÇÏ ÓÐÉÓËÁ. -.TP -/usr/local/lib/vim/doc/tags -æÁÊÌ ÍÅÔÏË, ÉÓÐÏÌØÚÕÅÍÙÊ ÄÌÑ ÐÏÉÓËÁ ÉÎÆÏÒÍÁÃÉÉ × ÆÁÊÌÁÈ ÓÐÒÁ×ËÉ. -.TP -/usr/local/lib/vim/syntax/syntax.vim -óÉÓÔÅÍÎÙÅ ÎÁÓÔÒÏÊËÉ ÓÉÎÔÁËÓÉÓÁ. -.TP -/usr/local/lib/vim/syntax/*.vim -æÁÊÌÙ ÓÉÎÔÁËÓÉÓÁ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ×. -.TP -/usr/local/lib/vim/vimrc -óÉÓÔÅÍÎÙÅ ÎÁÓÔÒÏÊËÉ -.B Vim. -.TP -/usr/local/lib/vim/gvimrc -óÉÓÔÅÍÎÙÊ ÎÁÓÔÒÏÊËÉ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ. -.TP -/usr/local/lib/vim/optwin.vim -óÃÅÎÁÒÉÊ, ÉÓÐÏÌØÚÕÅÍÙÊ ÐÒÉ ×ÙÐÏÌÎÅÎÉÉ ËÏÍÁÎÄÙ ":options". -èÏÒÏÛÉÊ ÓÐÏÓÏ ÐÒÏÓÍÁÔÒÉ×ÁÔØ É ÉÚÍÅÎÑÔØ ÎÁÓÔÒÏÊËÉ. -.TP -/usr/local/lib/vim/menu.vim -óÉÓÔÅÍÎÙÅ ÎÁÓÔÒÏÊËÉ ÍÅÎÀ ÄÌÑ gvim. -.TP -/usr/local/lib/vim/bugreport.vim -óÃÅÎÁÒÉÊ ÄÌÑ ÓÏÚÄÁÎÉÑ ÏÔÞ£ÔÁ Ï ÏÂÎÁÒÕÖÅÎÎÙÈ ÇÌÀËÁÈ. óÍ. ":help bugs". -.TP -/usr/local/lib/vim/filetype.vim -óÃÅÎÁÒÉÊ ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÔÉÐÁ ÆÁÊÌÁ ÐÏ ÉÍÅÎÉ. óÍ. ":help 'filetype'". -.TP -/usr/local/lib/vim/scripts.vim -óÃÅÎÁÒÉÊ ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÔÉÐÁ ÆÁÊÌÁ ÐÏ ÓÏÄÅÒÖÉÍÏÍÕ. óÍ. ":help 'filetype'". -.TP -/usr/local/lib/vim/print/*.ps -æÁÊÌÙ ÄÌÑ ÐÅÞÁÔÉ PostScript. -.PP -âÏÌÅÅ Ó×ÅÖÁÑ ÉÎÆÏÒÍÁÃÉÑ -- ÎÁ ÓÁÊÔÅ VIM: -.br -<URL:http://www.vim.org/> -.SH óíïôòé ôáëöå -vimtutor(1) -.SH á÷ôïòù -âÏÌØÛÁÑ ÞÁÓÔØ -.B Vim -ÓÏÚÄÁÎÁ âÒÁÍÏÍ íÏÏÌÅÎÁÁÒÏÍ (Bram Moolenaar), ËÏÔÏÒÏÍÕ ÐÏÍÏÇÁÅÔ ÏÇÒÏÍÎÏÅ -ËÏÌÉÞÅÓÔ×Ï ÌÀÄÅÊ. óÍ. ":help credits" × -.B Vim. -.br -.B Vim -ÂÁÚÉÒÕÅÔÓÑ ÎÁ ËÏÄÅ ÒÅÄÁËÔÏÒÁ Stevie, ÎÁÐÉÓÁÎÎÏÇÏ ôÉÍÏÍ ôÏÍÐÓÏÎÏÍ (Tim Thompson), -ôÏÎÉ üÎÄÒÀÓÏÍ (Tony Andrews) É ç. ò. (æÒÅÄÏÍ) õÏÌÔÅÒÏÍ (G.R. (Fred) Walter). -ïÄÎÁËÏ, × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ × Vim ÐÏÞÔÉ ÎÅ ÏÓÔÁÌÏÓØ ÎÉÞÅÇÏ ÏÔ ÉÓÔÏÒÉÞÅÓËÏÇÏ ËÏÄÁ -ÅÇÏ ÐÒÅÄÛÅÓÔ×ÅÎÎÉËÁ. -.br -òÕÓÓËÁÑ ÌÏËÁÌÉÚÁÃÉÑ -.B Vim -×ÙÐÏÌÎÑÅÔÓÑ × ÒÁÍËÁÈ ÐÒÏÅËÔÁ "òÕ÷ÉÍ", -ÓÍ. <URL:http://sourceforge.net/projects/ruvim/>. -.SH çìàëé -óËÏÒÅÅ ×ÓÅÇÏ ÅÓÔØ. -óÍ. ":help todo" -- ÓÐÉÓÏË ÉÚ×ÅÓÔÎÙÈ ÐÒÏÂÌÅÍ. -.PP -úÁÍÅÔÉÍ, ÞÔÏ ÍÎÏÇÉÅ ×ÅÝÉ, ËÏÔÏÒÙÅ ÓÞÉÔÁÀÔÓÑ ÇÌÀËÁÍÉ, ÎÁ ÓÁÍÏÍ ÄÅÌÅ -Ñ×ÌÑÀÔÓÑ ÒÅÚÕÌØÔÁÔÏÍ ÓÌÉÛËÏÍ ÐÏÌÎÏÇÏ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ ÐÏ×ÅÄÅÎÉÑ Vi. -åÓÌÉ ×Ù ÄÕÍÁÅÔÅ, ÞÔÏ ÞÔÏ-ÔÏ Ñ×ÌÑÅÔÓÑ ÏÛÉÂËÏÊ ÔÏÌØËÏ ÐÏÔÏÍÕ, ÞÔÏ -"Vi ÄÅÌÁÅÔ ÜÔÏ ÐÏ-ÄÒÕÇÏÍÕ", ×ÎÉÍÁÔÅÌØÎÏ ÐÒÏÞÉÔÁÊÔÅ ÆÁÊÌ vi_diff.txt -(ÉÌÉ ÎÁÂÅÒÉÔÅ ":help vi_diff.txt" × Vim) É ÉÓÐÏÌØÚÕÊÔÅ ÏÐÃÉÉ 'compatible' -É 'cpoptions'. diff --git a/runtime/doc/vim.man b/runtime/doc/vim.man deleted file mode 100644 index 5b9b83cb6c..0000000000 --- a/runtime/doc/vim.man +++ /dev/null @@ -1,428 +0,0 @@ -VIM(1) VIM(1) - - - -NAME - vim - Vi IMproved, a programmers text editor - -SYNOPSIS - vim [options] [file ..] - vim [options] - - vim [options] -t tag - vim [options] -q [errorfile] - - ex - view - gvim gview evim eview - rvim rview rgvim rgview - -DESCRIPTION - Vim is a text editor that is upwards compatible to Vi. It can be used - to edit all kinds of plain text. It is especially useful for editing - programs. - - There are a lot of enhancements above Vi: multi level undo, multi win- - dows and buffers, syntax highlighting, command line editing, filename - completion, on-line help, visual selection, etc.. See ":help - vi_diff.txt" for a summary of the differences between Vim and Vi. - - While running Vim a lot of help can be obtained from the on-line help - system, with the ":help" command. See the ON-LINE HELP section below. - - Most often Vim is started to edit a single file with the command - - vim file - - More generally Vim is started with: - - vim [options] [filelist] - - If the filelist is missing, the editor will start with an empty buffer. - Otherwise exactly one out of the following four may be used to choose - one or more files to be edited. - - file .. A list of filenames. The first one will be the current - file and read into the buffer. The cursor will be posi- - tioned on the first line of the buffer. You can get to the - other files with the ":next" command. To edit a file that - starts with a dash, precede the filelist with "--". - - - The file to edit is read from stdin. Commands are read - from stderr, which should be a tty. - - -t {tag} The file to edit and the initial cursor position depends on - a "tag", a sort of goto label. {tag} is looked up in the - tags file, the associated file becomes the current file and - the associated command is executed. Mostly this is used - for C programs, in which case {tag} could be a function - name. The effect is that the file containing that function - becomes the current file and the cursor is positioned on - the start of the function. See ":help tag-commands". - - -q [errorfile] - Start in quickFix mode. The file [errorfile] is read and - the first error is displayed. If [errorfile] is omitted, - the filename is obtained from the 'errorfile' option - (defaults to "AztecC.Err" for the Amiga, "errors.err" on - other systems). Further errors can be jumped to with the - ":cn" command. See ":help quickfix". - - Vim behaves differently, depending on the name of the command (the exe- - cutable may still be the same file). - - vim The "normal" way, everything is default. - - ex Start in Ex mode. Go to Normal mode with the ":vi" command. - Can also be done with the "-e" argument. - - view Start in read-only mode. You will be protected from writing - the files. Can also be done with the "-R" argument. - - gvim gview - The GUI version. Starts a new window. Can also be done with - the "-g" argument. - - evim eview - The GUI version in easy mode. Starts a new window. Can also - be done with the "-y" argument. - - rvim rview rgvim rgview - Like the above, but with restrictions. It will not be possi- - ble to start shell commands, or suspend Vim. Can also be - done with the "-Z" argument. - -OPTIONS - The options may be given in any order, before or after filenames. - Options without an argument can be combined after a single dash. - - +[num] For the first file the cursor will be positioned on line - "num". If "num" is missing, the cursor will be positioned - on the last line. - - +/{pat} For the first file the cursor will be positioned on the - first occurrence of {pat}. See ":help search-pattern" for - the available search patterns. - - +{command} - - -c {command} - {command} will be executed after the first file has been - read. {command} is interpreted as an Ex command. If the - {command} contains spaces it must be enclosed in double - quotes (this depends on the shell that is used). Example: - Vim "+set si" main.c - Note: You can use up to 10 "+" or "-c" commands. - - -S {file} {file} will be sourced after the first file has been read. - This is equivalent to -c "source {file}". {file} cannot - start with '-'. If {file} is omitted "Session.vim" is used - (only works when -S is the last argument). - - --cmd {command} - Like using "-c", but the command is executed just before - processing any vimrc file. You can use up to 10 of these - commands, independently from "-c" commands. - - -A If Vim has been compiled with ARABIC support for editing - right-to-left oriented files and Arabic keyboard mapping, - this option starts Vim in Arabic mode, i.e. 'arabic' is - set. Otherwise an error message is given and Vim aborts. - - -b Binary mode. A few options will be set that makes it pos- - sible to edit a binary or executable file. - - -C Compatible. Set the 'compatible' option. This will make - Vim behave mostly like Vi, even though a .vimrc file - exists. - - -d Start in diff mode. There should be two, three or four - file name arguments. Vim will open all the files and show - differences between them. Works like vimdiff(1). - - -d {device} Open {device} for use as a terminal. Only on the Amiga. - Example: "-d con:20/30/600/150". - - -D Debugging. Go to debugging mode when executing the first - command from a script. - - -e Start Vim in Ex mode, just like the executable was called - "ex". - - -E Start Vim in improved Ex mode, just like the executable was - called "exim". - - -f Foreground. For the GUI version, Vim will not fork and - detach from the shell it was started in. On the Amiga, Vim - is not restarted to open a new window. This option should - be used when Vim is executed by a program that will wait - for the edit session to finish (e.g. mail). On the Amiga - the ":sh" and ":!" commands will not work. - - --nofork Foreground. For the GUI version, Vim will not fork and - detach from the shell it was started in. - - -F If Vim has been compiled with FKMAP support for editing - right-to-left oriented files and Farsi keyboard mapping, - this option starts Vim in Farsi mode, i.e. 'fkmap' and - 'rightleft' are set. Otherwise an error message is given - and Vim aborts. - - -g If Vim has been compiled with GUI support, this option - enables the GUI. If no GUI support was compiled in, an - error message is given and Vim aborts. - - -h Give a bit of help about the command line arguments and - options. After this Vim exits. - - -H If Vim has been compiled with RIGHTLEFT support for editing - right-to-left oriented files and Hebrew keyboard mapping, - this option starts Vim in Hebrew mode, i.e. 'hkmap' and - 'rightleft' are set. Otherwise an error message is given - and Vim aborts. - - -i {viminfo} - When using the viminfo file is enabled, this option sets - the filename to use, instead of the default "~/.viminfo". - This can also be used to skip the use of the .viminfo file, - by giving the name "NONE". - - -L Same as -r. - - -l Lisp mode. Sets the 'lisp' and 'showmatch' options on. - - -m Modifying files is disabled. Resets the 'write' option. - You can still modify the buffer, but writing a file is not - possible. - - -M Modifications not allowed. The 'modifiable' and 'write' - options will be unset, so that changes are not allowed and - files can not be written. Note that these options can be - set to enable making modifications. - - -N No-compatible mode. Reset the 'compatible' option. This - will make Vim behave a bit better, but less Vi compatible, - even though a .vimrc file does not exist. - - -n No swap file will be used. Recovery after a crash will be - impossible. Handy if you want to edit a file on a very - slow medium (e.g. floppy). Can also be done with ":set - uc=0". Can be undone with ":set uc=200". - - -nb Become an editor server for NetBeans. See the docs for - details. - - -o[N] Open N windows stacked. When N is omitted, open one window - for each file. - - -O[N] Open N windows side by side. When N is omitted, open one - window for each file. - - -p[N] Open N tab pages. When N is omitted, open one tab page for - each file. - - -R Read-only mode. The 'readonly' option will be set. You - can still edit the buffer, but will be prevented from acci- - dently overwriting a file. If you do want to overwrite a - file, add an exclamation mark to the Ex command, as in - ":w!". The -R option also implies the -n option (see - below). The 'readonly' option can be reset with ":set - noro". See ":help 'readonly'". - - -r List swap files, with information about using them for - recovery. - - -r {file} Recovery mode. The swap file is used to recover a crashed - editing session. The swap file is a file with the same - filename as the text file with ".swp" appended. See ":help - recovery". - - -s Silent mode. Only when started as "Ex" or when the "-e" - option was given before the "-s" option. - - -s {scriptin} - The script file {scriptin} is read. The characters in the - file are interpreted as if you had typed them. The same - can be done with the command ":source! {scriptin}". If the - end of the file is reached before the editor exits, further - characters are read from the keyboard. - - -T {terminal} - Tells Vim the name of the terminal you are using. Only - required when the automatic way doesn't work. Should be a - terminal known to Vim (builtin) or defined in the termcap - or terminfo file. - - -u {vimrc} Use the commands in the file {vimrc} for initializations. - All the other initializations are skipped. Use this to - edit a special kind of files. It can also be used to skip - all initializations by giving the name "NONE". See ":help - initialization" within vim for more details. - - -U {gvimrc} Use the commands in the file {gvimrc} for GUI initializa- - tions. All the other GUI initializations are skipped. It - can also be used to skip all GUI initializations by giving - the name "NONE". See ":help gui-init" within vim for more - details. - - -V[N] Verbose. Give messages about which files are sourced and - for reading and writing a viminfo file. The optional num- - ber N is the value for 'verbose'. Default is 10. - - -v Start Vim in Vi mode, just like the executable was called - "vi". This only has effect when the executable is called - "ex". - - -w {scriptout} - All the characters that you type are recorded in the file - {scriptout}, until you exit Vim. This is useful if you - want to create a script file to be used with "vim -s" or - ":source!". If the {scriptout} file exists, characters are - appended. - - -W {scriptout} - Like -w, but an existing file is overwritten. - - -x Use encryption when writing files. Will prompt for a crypt - key. - - -X Don't connect to the X server. Shortens startup time in a - terminal, but the window title and clipboard will not be - used. - - -y Start Vim in easy mode, just like the executable was called - "evim" or "eview". Makes Vim behave like a click-and-type - editor. - - -Z Restricted mode. Works like the executable starts with - "r". - - -- Denotes the end of the options. Arguments after this will - be handled as a file name. This can be used to edit a - filename that starts with a '-'. - - --echo-wid GTK GUI only: Echo the Window ID on stdout. - - --help Give a help message and exit, just like "-h". - - --literal Take file name arguments literally, do not expand wild- - cards. This has no effect on Unix where the shell expands - wildcards. - - --noplugin Skip loading plugins. Implied by -u NONE. - - --remote Connect to a Vim server and make it edit the files given in - the rest of the arguments. If no server is found a warning - is given and the files are edited in the current Vim. - - --remote-expr {expr} - Connect to a Vim server, evaluate {expr} in it and print - the result on stdout. - - --remote-send {keys} - Connect to a Vim server and send {keys} to it. - - --remote-silent - As --remote, but without the warning when no server is - found. - - --remote-wait - As --remote, but Vim does not exit until the files have - been edited. - - --remote-wait-silent - As --remote-wait, but without the warning when no server is - found. - - --serverlist - List the names of all Vim servers that can be found. - - --servername {name} - Use {name} as the server name. Used for the current Vim, - unless used with a --remote argument, then it's the name of - the server to connect to. - - --socketid {id} - GTK GUI only: Use the GtkPlug mechanism to run gvim in - another window. - - --version Print version information and exit. - -ON-LINE HELP - Type ":help" in Vim to get started. Type ":help subject" to get help - on a specific subject. For example: ":help ZZ" to get help for the - "ZZ" command. Use <Tab> and CTRL-D to complete subjects (":help cmd- - line-completion"). Tags are present to jump from one place to another - (sort of hypertext links, see ":help"). All documentation files can be - viewed in this way, for example ":help syntax.txt". - -FILES - /usr/local/lib/vim/doc/*.txt - The Vim documentation files. Use ":help doc-file-list" - to get the complete list. - - /usr/local/lib/vim/doc/tags - The tags file used for finding information in the docu- - mentation files. - - /usr/local/lib/vim/syntax/syntax.vim - System wide syntax initializations. - - /usr/local/lib/vim/syntax/*.vim - Syntax files for various languages. - - /usr/local/lib/vim/vimrc - System wide Vim initializations. - - ~/.vimrc Your personal Vim initializations. - - /usr/local/lib/vim/gvimrc - System wide gvim initializations. - - ~/.gvimrc Your personal gvim initializations. - - /usr/local/lib/vim/optwin.vim - Script used for the ":options" command, a nice way to - view and set options. - - /usr/local/lib/vim/menu.vim - System wide menu initializations for gvim. - - /usr/local/lib/vim/bugreport.vim - Script to generate a bug report. See ":help bugs". - - /usr/local/lib/vim/filetype.vim - Script to detect the type of a file by its name. See - ":help 'filetype'". - - /usr/local/lib/vim/scripts.vim - Script to detect the type of a file by its contents. - See ":help 'filetype'". - - /usr/local/lib/vim/print/*.ps - Files used for PostScript printing. - - For recent info read the VIM home page: - <URL:http://www.vim.org/> - -SEE ALSO - vimtutor(1) - -AUTHOR - Most of Vim was made by Bram Moolenaar, with a lot of help from others. - See ":help credits" in Vim. - Vim is based on Stevie, worked on by: Tim Thompson, Tony Andrews and - G.R. (Fred) Walter. Although hardly any of the original code remains. - -BUGS - Probably. See ":help todo" for a list of known problems. - - Note that a number of things that may be regarded as bugs by some, are - in fact caused by a too-faithful reproduction of Vi's behaviour. And - if you think other things are bugs "because Vi does it differently", - you should take a closer look at the vi_diff.txt file (or type :help - vi_diff.txt when in Vim). Also have a look at the 'compatible' and - 'cpoptions' options. - - - - 2006 Apr 11 VIM(1) diff --git a/runtime/doc/vim2html.pl b/runtime/doc/vim2html.pl index 9066b03b16..9066b03b16 100644..100755 --- a/runtime/doc/vim2html.pl +++ b/runtime/doc/vim2html.pl diff --git a/runtime/doc/vimdiff-fr.1 b/runtime/doc/vimdiff-fr.1 deleted file mode 100644 index 67a64e381b..0000000000 --- a/runtime/doc/vimdiff-fr.1 +++ /dev/null @@ -1,54 +0,0 @@ -.TH VIMDIFF 1 "30 mars 2001" -.SH NOM -vimdiff \- ouvre deux, trois ou quatre versions d'un fichier dans Vim et -affiche leurs différences -.SH SYNOPSIS -.br -.B vimdiff -[options] fichier1 fichier2 [fichier3 [fichier4]] -.PP -.B gvimdiff -.SH DESCRIPTION -.B Vimdiff -démarre -.B Vim -avec deux (ou trois ou quatre) fichiers. -Chaque fichier est ouvert dans sa propre fenêtre. -Les différences entre ces fichiers sont mises en surbrillance. -C'est un outil très pratique pour visualiser et reporter les -changements entre deux versions d'un même fichier. -.PP -Consulter vim(1) pour des informations sur l'éditeur Vim lui-même. -.PP -Si -.B gvimdiff -est invoqué, l'IHM graphique est démarrée quand elle est disponible. -.PP -L'option 'diff' est activée dans chacune des fenêtres, ce qui provoque la mise -en surbrillance des différences. -.br -Les options 'wrap' et 'scrollbind' sont activées pour donner un aspect -agréable au texte. -.br -L'option 'foldmethod' est fixée à "diff", ce qui replie les lignes consécutives -identiques. 'foldcolumn' est fixé à 2 pour trouver les replis rapidement et -les ouvrir ou les fermer facilement. -.SH ARGUMENTS -La fenêtre de Vim est partagée verticalement afin d'afficher les lignes -correspondantes les unes en face des autres, comme si l'argument "\-O" était -spécifié. Utilisez l'argument "\-o" pour obtenir un partage horizontal à la -place. -.PP -Pour connaître les autres arguments disponibles, consultez vim(1). -.SH VOIR AUSSI -vim(1) -.SH AUTEUR -La majeure partie de -.B Vim -a été écrite par Bram Moolenaar, avec l'aide de nombreux autres contributeurs. -Voir ":help credits" dans -.B Vim. -.SH TRADUCTION -Cette page de manuel a été traduite par David Blanchet -<david.blanchet@free.fr> 2005-03-12. -Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com> diff --git a/runtime/doc/vimdiff-it.1 b/runtime/doc/vimdiff-it.1 deleted file mode 100755 index 2203877acf..0000000000 --- a/runtime/doc/vimdiff-it.1 +++ /dev/null @@ -1,48 +0,0 @@ -.TH VIMDIFF 1 "30 marzo 2001" -.SH NOME -vimdiff \- modifica due, tre o quattro versioni di un file con Vim, -visualizzando le differenze -.SH SINTASSI -.br -.B vimdiff -[opzioni] file1 file2 [file3 [file4]] -.PP -.B gvimdiff -.SH DESCRIZIONE -.B Vimdiff -inizia -.B Vim -per due (o tre o quattro) file. -Ogni file ha una sua finestra. -Le differenze fra file sono evidenziate. -È una maniera elegante per controllare modifiche e portare modifiche -verso un'altra versione dello stesso file. -.PP -Vedere vim(1) per dettagli su Vim in generale. -.PP -Se iniziato con -.B gvimdiff -la GUI sarà utilizzata, se disponibile. -.PP -In ogni finestra l'opzione 'diff' è impostata, evidenziando così le -differenze. -.br -Le opzioni 'wrap' e 'scrollbind' sono impostate per migliorare la -visibilità del testo. -.br -L'opzione 'foldmethod' è impostata al valore "diff", che mette gruppi di -linee uguali fra i diversi file in una piegatura. 'foldcolumn' è impostato -a due per poter facilmente visualizzare le piegature, aprirle e chiuderle. -.SH OPZIONI -Lo schermo è diviso verticalmente, come se aveste usato l'opzione "\-O". -Per dividerlo orizzontalmente, usare l'opzione "\-o". -.PP -Per tutte le altre opzioni, vedere vim(1). -.SH VEDERE ANCHE -vim(1) -.SH AUTORE -Buona parte di -.B Vim -è stato scritto da Bram Moolenaar, con molto aiuto da altri. -Vedere ":help credits" in -.B Vim. diff --git a/runtime/doc/vimdiff-pl.1 b/runtime/doc/vimdiff-pl.1 deleted file mode 100644 index 5332f78328..0000000000 --- a/runtime/doc/vimdiff-pl.1 +++ /dev/null @@ -1,46 +0,0 @@ -.TH VIMDIFF 1 "2001 Mar 30" -.SH NAZWA -vimdiff \- edytuj dwie, trzy lub cztery wersje pliku w Vimie i zobacz ró¿nice -.SH SYNOPSIS -.br -.B vimdiff -[opcje] plik1 plik2 [plik3 [plik4]] -.PP -.B gvimdiff -.SH OPIS -.B Vimdiff -uruchomi -.B Vima -z dwoma (trzema lub czterema plikami), ka¿dy z nich we w³asnym oknie. -Ró¿nice miêdzy plikami zostan± pod¶wietlone. -Jest to dobry sposób by przeanalizowaæ ró¿nice i przenie¶æ zmiany z jednej -wersji pliku do innej. -.PP -Zobacz vim(1) by poznaæ wiêcej szczegó³ów o samym Vimie. -.PP -Kiedy uruchomiony jako -.B gvimdiff -zostanie uruchomione GUI (je¶li dostêpne). -.PP -W ka¿dym oknie zostanie ustawiona opcja 'diff', która spowoduje -pod¶wietlenie ró¿nic. -.br -Opcje 'wrap' i 'scrollbind' zostan± ustawione by tekst siê -wygodnie przegl±da³o. -.br -Opcja 'foldmethod' zostanie ustawiona na "diff", dziêki czemu -niezmienione linie zostan± zwiniête. 'foldcolumn' bêdzie równe 2 aby -³atwo wyszukiwaæ, otwieraæ i zamykaæ zwiniêcia. -.SH OPCJE -Pionowy podzia³ zostanie u¿yty do wyrównania linii, tak jakby u¿yto -opcji "\-O". Aby uzyskaæ poziomy podzia³ u¿yj opcji "\-o". -.PP -Aby poznaæ inne opcje zobacz vim(1). -.SH ZOBACZ TAK¯E -vim(1) -.SH AUTOR -Wiêkszo¶æ -.B Vima -zosta³a napisana przez Brama Moolenaara przy pomocy wielu innych osób. -Zobacz ":help credits w -.B Vimie. diff --git a/runtime/doc/vimdiff-ru.1 b/runtime/doc/vimdiff-ru.1 deleted file mode 100644 index 385536790e..0000000000 --- a/runtime/doc/vimdiff-ru.1 +++ /dev/null @@ -1,50 +0,0 @@ -.TH VIMDIFF 1 "2001 March 30" -.SH éíñ -vimdiff \- ÐÏÚ×ÏÌÑÅÔ ÒÅÄÁËÔÉÒÏ×ÁÔØ Ä×Å ÉÌÉ ÔÒÉ ×ÅÒÓÉÉ ÆÁÊÌÁ Ó ÐÏÍÏÝØÀ Vim -Ó ÏÔÏÂÒÁÖÅÎÉÅÍ ÒÁÚÌÉÞÉÊ. -.SH ëïíáîäîáñ óôòïëá -.br -.B vimdiff -[ËÌÀÞÉ] ÆÁÊÌ1 ÆÁÊÌ2 [ÆÁÊÌ3] -.PP -.B gvimdiff -.SH ïðéóáîéå -ëÏÍÁÎÄÁ -.B vimdiff -ÚÁÇÒÕÖÁÅÔ × -.B Vim -Ä×Á (ÉÌÉ ÔÒÉ) ÆÁÊÌÁ. ëÁÖÄÙÊ ÆÁÊÌ ÏÔËÒÙ×ÁÅÔÓÑ × ÓÏÂÓÔ×ÅÎÎÏÍ ÏËÎÅ. -òÁÚÌÉÞÉÑ ÍÅÖÄÕ ÆÁÊÌÁÍÉ ÏÔÏÂÒÁÖÁÀÔÓÑ Ó ÐÏÍÏÝØÀ ÐÏÄÓ×ÅÔËÉ ÓÉÎÔÁËÓÉÓÁ. -üÔÁ ËÏÍÁÎÄÁ ÐÏÚ×ÏÌÑÅÔ ÎÁÇÌÑÄÎÏ ÏÔÏÂÒÁÖÁÔØ ×ÎÅÓ£ÎÎÙÅ ÉÚÍÅÎÅÎÉÑ É ÐÅÒÅÎÏÓÉÔØ -ÒÁÚÌÉÞÁÀÝÉÅÓÑ ÆÒÁÇÍÅÎÔÙ ÉÚ ÏÄÎÏÊ ×ÅÒÓÉÉ ÆÁÊÌÁ × ÄÒÕÇÕÀ. -.PP -ðÏÄÒÏÂÎÅÅ Ï Vim ÓÍ. ÎÁ ÓÔÒÁÎÉÃÅ ÓÐÒÁ×ÏÞÎÉËÁ vim(1). -.PP -ðÒÉ ÚÁÐÕÓËÅ Ó ÐÏÍÏÝØÀ ËÏÍÁÎÄÙ -.B gvimdiff -ÒÅÄÁËÔÏÒ ÚÁÐÕÓËÁÅÔÓÑ × ÒÅÖÉÍÅ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ, ÅÓÌÉ ÜÔÏ ×ÏÚÍÏÖÎÏ. -.PP -÷ ËÁÖÄÏÍ ÏËÎÅ ×ËÌÀÞÁÅÔÓÑ ÏÐÃÉÑ 'diff', ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÄÓ×ÅÔËÕ -ÓÉÎÔÁËÓÉÓÁ ÄÌÑ ÏÔÏÂÒÁÖÅÎÉÑ ÒÁÚÌÉÞÉÊ ÍÅÖÄÕ ÆÁÊÌÁÍÉ. -.br -äÌÑ ÕÌÕÞÛÅÎÉÑ ÒÁÂÏÔÙ Ó ÆÁÊÌÁÍÉ × ÒÅÖÉÍÅ ÏÔÏÂÒÁÖÅÎÉÑ ÏÔÌÉÞÉÊ ÔÁËÖÅ ×ËÌÀÞÁÀÔÓÑ -ÏÐÃÉÉ 'wrap' É 'scrollbind'. -.br -úÎÁÞÅÎÉÅ ÏÐÃÉÉ 'foldmethod' ÕÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ ÒÁ×ÎÙÍ "diff", ÞÔÏ ÐÏÚ×ÏÌÑÅÔ -ÐÒÑÔÁÔØ × ÓËÌÁÄËÕ ÏÂÌÁÓÔÉ ÔÅËÓÔÁ, ËÏÔÏÒÙÅ ÎÅ ÏÔÌÉÞÁÀÔÓÑ × ÒÁÚÌÉÞÎÙÈ ×ÅÒÓÉÑÈ ÆÁÊÌÁ. -úÎÁÞÅÎÉÅ ÏÐÃÉÉ 'foldcolumn' ÕÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ ÒÁ×ÎÙÍ 2, ÞÔÏÂÙ ÂÙÌÏ ÐÒÏÝÅ -ÎÁÈÏÄÉÔØ, ÏÔËÒÙ×ÁÔØ É ÚÁËÒÙ×ÁÔØ ÔÁËÉÅ ÓËÌÁÄËÉ. -.SH ëìàþé úáðõóëá -äÌÑ ×ÙÒÁ×ÎÉ×ÁÎÉÑ ÓÔÒÏË ÍÅÖÄÕ ÏËÎÁÍÉ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÅÒÔÉËÁÌØÎÏÅ ÒÁÚÄÅÌÅÎÉÅ ÏËÏÎ, -ËÁË ÅÓÌÉ ÂÙ ÉÓÐÏÌØÚÏ×ÁÌÓÑ ËÌÀÞ "\-O". äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÚÄÅÌÅÎÉÅ -ÏËÏÎ ÐÏ ÇÏÒÉÚÏÎÔÁÌÉ, ÓÌÅÄÕÅÔ ÕËÁÚÁÔØ × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ ËÌÀÞ "\-o". -.PP -ïÓÔÁÌØÎÙÅ ËÌÀÞÉ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ ÒÁÓÓÍÁÔÒÉ×ÁÀÔÓÑ ÎÁ ÓÔÒÁÎÉÃÅ ÓÐÒÁ×ÏÞÎÉËÁ vim(1). -.SH óíïôòé ôáëöå -vim(1) -.SH á÷ôïòù -âÏÌØÛÁÑ ÞÁÓÔØ -.B Vim -ÓÏÚÄÁÎÁ âÒÁÍÏÍ íÏÏÌÅÎÁÁÒÏÍ (Bram Moolenaar), ËÏÔÏÒÏÍÕ ÐÏÍÏÇÁÅÔ ÏÇÒÏÍÎÏÅ -ËÏÌÉÞÅÓÔ×Ï ÌÀÄÅÊ. óÍ. ":help credits" × -.B Vim. diff --git a/runtime/doc/vimdiff.man b/runtime/doc/vimdiff.man deleted file mode 100644 index 913ac13847..0000000000 --- a/runtime/doc/vimdiff.man +++ /dev/null @@ -1,46 +0,0 @@ -VIMDIFF(1) VIMDIFF(1) - - - -NAME - vimdiff - edit two, three or four versions of a file with Vim and show - differences - -SYNOPSIS - vimdiff [options] file1 file2 [file3 [file4]] - - gvimdiff - -DESCRIPTION - Vimdiff starts Vim on two (or three or four) files. Each file gets its - own window. The differences between the files are highlighted. This - is a nice way to inspect changes and to move changes from one version - to another version of the same file. - - See vim(1) for details about Vim itself. - - When started as gvimdiff the GUI will be started, if available. - - In each window the 'diff' option will be set, which causes the differ- - ences to be highlighted. - The 'wrap' and 'scrollbind' options are set to make the text look good. - The 'foldmethod' option is set to "diff", which puts ranges of lines - without changes in a fold. 'foldcolumn' is set to two to make it easy - to spot the folds and open or close them. - -OPTIONS - Vertical splits are used to align the lines, as if the "-O" argument - was used. To use horizontal splits instead, use the "-o" argument. - - For all other arguments see vim(1). - -SEE ALSO - vim(1) - -AUTHOR - Most of Vim was made by Bram Moolenaar, with a lot of help from others. - See ":help credits" in Vim. - - - - 2001 March 30 VIMDIFF(1) diff --git a/runtime/doc/vimtutor-fr.1 b/runtime/doc/vimtutor-fr.1 deleted file mode 100644 index 06e03fbef3..0000000000 --- a/runtime/doc/vimtutor-fr.1 +++ /dev/null @@ -1,60 +0,0 @@ -.TH VIMTUTOR 1 "2 avril 2001" -.SH NAME -vimtutor \- tutoriel Vim -.SH SYNOPSIS -.br -.B vimtutor [\-g] [langue] -.SH DESCRIPTION -.B Vimtutor -lance le tutoriel -.B Vim -\. -Il copie d'abord le fichier du tutoriel, afin que vous puissiez le modifier -sans altérer le fichier original. -.PP -.B Vimtutor -est utile pour les personnes souhaitant apprendre leurs premières commandes -.B Vim -\. -.PP -L'argument optionnel \-g lance vimtutor avec gvim plutôt qu'avec vim, si l'IHM -graphique de vim est disponible, ou le lance avec vim si gvim n'est pas -disponible. -.PP -L'argument optionnel [langue] est le nom d'une langue, spécifiée par son -symbole à deux lettres, tels que "it" ou "es". Si l'argument [langue] est omis, -la langue de la région linguistique actuelle sera retenue. Si le tutoriel est -disponible dans cette langue, il est proposé. Sinon, c'est la version anglaise -qui est proposée. -.PP -.B Vim -est toujours lancé en mode Compatible Vi. -.SH FICHIERS -.TP 15 -/usr/local/lib/vim/tutor/tutor[.langue] -Les fichiers textes de -.B Vimtutor -\. -.TP 15 -/usr/local/lib/vim/tutor/tutor.vim -Le script Vim utilisé pour copier les fichiers texte de -.B Vimtutor -\. -.SH AUTEUR -.B Vimtutor -a été écrit à l'origine pour Vi par Michael C. Pierce et Robert K. Ware, de la -Colorado School of Mines, en reprenant des idées émises par Charles Smith, de -la Colorado State University. -E-mail : bware@mines.colorado.edu. -.br -Il a été modifié pour -.B Vim -par Bram Moolenaar. -Pour connaître le nom des traducteurs, consultez les fichiers textes du -tutoriel. -.SH VOIR AUSSI -vim(1) -.SH TRADUCTION -Cette page de manuel a été traduite par David Blanchet -<david.blanchet@free.fr> 2004-12-27. -Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com> diff --git a/runtime/doc/vimtutor-it.1 b/runtime/doc/vimtutor-it.1 deleted file mode 100755 index b5c1e61e01..0000000000 --- a/runtime/doc/vimtutor-it.1 +++ /dev/null @@ -1,58 +0,0 @@ -.TH VIMTUTOR 1 "2 aprile 2001" -.SH NOME -vimtutor \- Un breve corso per imparare Vim -.SH SINTASSI -.br -.B vimtutor [\-g] [lingua] -.SH DESCRIZIONE -.B Vimtutor -inizia il -.B Vim -tutor (una breve corso per imparare Vim). -Per prima cosa viene creata una copia del file di lavoro, che può così essere -modificato senza alterare il file usato come modello. -.PP -Il comando -.B Vimtutor -è utile a chi voglia imparare i primi comandi -.B Vim -. -.PP -L'argomento opzionale \-g inizia vimtutor usando gvim invece che vim, se la -versione GUI di vim è disponibile. oppure utilizza vim, se gvim non è -disponibile. -.PP -L'arogmento opzionale [lingua] è l'abbreviazione di due lettere del nome -di una lingua, per esempio "it" oppure "es". -se L'argomento [lingua] non viene specificato, si utilizza la lingua "locale" -del computer. -Se la versione in quella lingua del "tutor" è disponibile, sarà usata. -Altrimenti sarà usata la versione inglese. -.PP -.B Vim -è sempre iniziato in Modo compatibile con vi. -.SH FILE -.TP 15 -/usr/local/lib/vim/tutor/tutor[.language] -Il/I file di testo per -.B Vimtutor - -.TP 15 -/usr/local/lib/vim/tutor/tutor.vim -Lo script di Vim usato per copiare il file di testo -.B Vimtutor -. -.SH AUTORE -The -.B Vimtutor -è stato scritto in origine per Vi da Michael C. Pierce e Robert K. Ware, -Colorado School of Mines, usando idee fornite da Charles Smith, -Colorado State University. -E\-mail: bware@mines.colorado.edu. -.br -È stato modificato per -.B Vim -da Bram Moolenaar. -Per i nomi dei traduttori, vedere i file usati nelle rispettive lingue. -.SH VEDERE ANCHE -vim(1) diff --git a/runtime/doc/vimtutor-pl.1 b/runtime/doc/vimtutor-pl.1 deleted file mode 100644 index e603ca5b8f..0000000000 --- a/runtime/doc/vimtutor-pl.1 +++ /dev/null @@ -1,51 +0,0 @@ -.TH VIMTUTOR 1 "2001 Kwi 2" -.SH NAZWA -vimtutor \- nauczyciel Vima -.SH SYNOPSIS -.br -.B vimtutor -g [jêzyk] -.SH OPIS -.B Vimtutor -uruchamia nauczyciela -.B Vima. -Najpierw kopiuje w³a¶ciwy plik, dziêki temu mo¿na go zmieniaæ bez obaw -utraty tre¶ci. -.PP -.B Vimtutor -przyda siê ludziom, którzy chc± siê nauczyæ pierwszych poleceñ -.B Vima -.PP -Opcjonalny argument \-g uruchamia vimtutor w gvimie a nie w Vimie je¶li -graficzna wersja Vima jest dostêpna, je¶li nie zostanie uruchomiony Vim. -.PP -Opcjonalny argument [jêzyk] jest dwu literowym kodem jêzyka, tak jak -"it" lub "es". -Je¶li brak argumentu [jêzyk] zostanie u¿yty jêzyk bie¿±cej -lokalizacji. -Je¶li nauczyciel w tym jêzyku jest dostêpny, zostanie u¿yty \- w innym -wypadku zostanie wykorzystana wersja angielska. -.PP -.B Vim -jest uruchamiany zawsze w trybie kompatybilno¶ci z Vi -.SH PLIKI -.TP 15 -/usr/local/lib/vim/tutor/tutor[.jêzyk] -Tekstowe pliki -.B Vimtutora. -.TP 15 -/usr/local/lib/vim/tutor/tutor.vim -Skrypt Vima u¿ywany do kopiowania pliku -.B Vimtutora. -.SH AUTOR -.B Vimtutor -zosta³ pocz±tkowo napisany dla Vi przez Michaela C. Pierce'a -i Roberta K. Ware'a z Colorado School of Mines zainspirowani przez -Charlesa Smitha z Colorado State University. -E-mail: bware@mines.colorado.edu -.br -Zmodyfikowany na potrzeby -.B Vima -przez Brama Moolenaara. -Nazwiska t³umaczy w plikach. -.SH ZOBACZ TAK¯E -vim(1) diff --git a/runtime/doc/vimtutor-ru.1 b/runtime/doc/vimtutor-ru.1 deleted file mode 100644 index fa3c5d9b08..0000000000 --- a/runtime/doc/vimtutor-ru.1 +++ /dev/null @@ -1,51 +0,0 @@ -.TH VIMTUTOR 1 "2001 April 2" -.SH éíñ -vimtutor \- ÕÞÅÂÎÉË ÐÏ Vim -.SH ëïíáîäîáñ óôòïëá -.br -.B vimtutor [ÑÚÙË] -.SH ïðéóáîéå -ëÏÍÁÎÄÁ -.B vimtutor -ÚÁÐÕÓËÁÅÔ ÕÞÅÂÎÉË ÐÏ -.B Vim. -ðÒÉ ÜÔÏÍ ÓÎÁÞÁÌÁ ÐÒÏÉÓÈÏÄÉÔ ÓÏÚÄÁÎÉÅ ËÏÐÉÉ ÆÁÊÌÁ ÕÞÅÂÎÉËÁ, -ÞÔÏÂÙ ÅÇÏ ÍÏÖÎÏ ÂÙÌÏ ÒÅÄÁËÔÉÒÏ×ÁÔØ ÂÅÚ ÏÐÁÓÅÎÉÑ ÐÏÔÅÒÑÔØ ÉÓÈÏÄÎÙÊ ÆÁÊÌ. -.PP -ðÒÏÇÒÁÍÍÁ -.B vimtutor -ÐÏÌÅÚÎÁ ÄÌÑ ÎÏ×ÉÞËÏ×, ÖÅÌÁÀÝÉÈ ÎÁÕÞÉÔØÓÑ ÓÁÍÙÍ ÏÓÎÏ×ÎÙÍ ËÏÍÁÎÄÁÍ -.B Vim. -.PP -îÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ [ÑÚÙË] ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ Ä×ÕÈÓÉÍ×ÏÌØÎÙÊ ËÏÄ ÑÚÙËÁ, -ÎÁÐÒÉÍÅÒ "ru" ÉÌÉ "it". -åÓÌÉ ÐÁÒÁÍÅÔÒ [ÑÚÙË] ÎÅ ÕËÁÚÁÎ, ÔÏ ÉÓÐÏÌØÚÕÅÔÓÑ ÑÚÙË ÁËÔÉ×ÎÏÊ × ÎÁÓÔÏÑÝÉÊ -ÍÏÍÅÎÔ ÌÏËÁÌÉ. åÓÌÉ ÕÞÅÂÎÉË ÎÁ ÜÔÏÍ ÑÚÙËÅ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ, ÔÏ ÐÏ ÕÍÏÌÞÁÎÉÀ -ÉÓÐÏÌØÚÕÅÔÓÑ ÕÞÅÂÎÉË ÎÁ ÁÎÇÌÉÊÓËÏÍ ÑÚÙËÅ. -.PP -ðÒÉ ÒÁÂÏÔÅ Ó ÕÞÅÂÎÉËÏÍ -.B Vim -×ÓÅÇÄÁ ÚÁÐÕÓËÁÅÔÓÑ × ÒÅÖÉÍÅ ÓÏ×ÍÅÓÔÉÍÏÓÔÉ Ó Vi. -.SH æáêìù -.TP 15 -/usr/local/lib/vim/tutor/tutor[.ÑÚÙË] -ôÅËÓÔ ÕÞÅÂÎÉËÁ -.B vimtutor. -.TP 15 -/usr/local/lib/vim/tutor/tutor.vim -óÃÅÎÁÒÉÊ Vim, ËÏÔÏÒÙÊ ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ ÓÏÚÄÁÎÉÑ ÒÁÂÏÞÅÊ -ËÏÐÉÉ ÔÅËÓÔÁ ÕÞÅÂÎÉËÁ -.B vimtutor. -.SH á÷ôïòù -.B Vimtutor -ÂÙÌ ×ÐÅÒ×ÙÅ ÎÁÐÉÓÁÎ ÄÌÑ Vi íÁÊËÌÏÍ ë. ðÉÒÓÏÍ (Michael C. Pierce) É -òÏÂÅÒÔÏÍ ë. õÜÁ (Robert K. Ware) ÉÚ Colorado School of Mines ÐÏ -ÉÄÅÅ þÁÒÌØÚÁ óÍÉÔÁ (Charles Smith) ÉÚ Colorado State University. -E-mail: bware@mines.colorado.edu. -.br -÷ÐÏÓÌÅÄÓÔ×ÉÉ ÕÞÅÂÎÉË ÂÙÌ ÄÏÒÁÂÏÔÁÎ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ × -.B Vim -âÒÁÍÏÍ íÏÏÌÅÎÁÁÒÏÍ (Bram Moolenaar). -éÍÅÎÁ ÐÅÒÅ×ÏÄÞÉËÏ× ÕÞÅÂÎÉËÁ ÕÐÏÍÉÎÁÀÔÓÑ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÈ ÆÁÊÌÁÈ. -.SH óíïôòé ôáëöå -vim(1) diff --git a/runtime/doc/vimtutor.man b/runtime/doc/vimtutor.man deleted file mode 100644 index 9f2350a0ae..0000000000 --- a/runtime/doc/vimtutor.man +++ /dev/null @@ -1,50 +0,0 @@ -VIMTUTOR(1) VIMTUTOR(1) - - - -NAME - vimtutor - the Vim tutor - -SYNOPSIS - vimtutor [-g] [language] - -DESCRIPTION - Vimtutor starts the Vim tutor. It copies the tutor file first, so that - it can be modified without changing the original file. - - The Vimtutor is useful for people that want to learn their first Vim - commands. - - The optional argument -g starts vimtutor with gvim rather than vim, if - the GUI version of vim is available, or falls back to Vim if gvim is - not found. - - The optional [language] argument is the two-letter name of a language, - like "it" or "es". If the [language] argument is missing, the language - of the current locale will be used. If a tutor in this language is - available, it will be used. Otherwise the English version will be - used. - - Vim is always started in Vi compatible mode. - -FILES - /usr/local/lib/vim/tutor/tutor[.language] - The Vimtutor text file(s). - - /usr/local/lib/vim/tutor/tutor.vim - The Vim script used to copy the Vimtutor text file. - -AUTHOR - The Vimtutor was originally written for Vi by Michael C. Pierce and - Robert K. Ware, Colorado School of Mines using ideas supplied by - Charles Smith, Colorado State University. E-mail: bware@mines.col†- orado.edu. - It was modified for Vim by Bram Moolenaar. For the names of the trans†- lators see the tutor files. - -SEE ALSO - vim(1) - - - - 2001 April 2 VIMTUTOR(1) diff --git a/runtime/doc/xxd-fr.1 b/runtime/doc/xxd-fr.1 deleted file mode 100644 index be780858bf..0000000000 --- a/runtime/doc/xxd-fr.1 +++ /dev/null @@ -1,396 +0,0 @@ -.TH XXD 1 "août 1996" "Page de manuel pour xxd" -.\" -.\" 21st May 1996 -.\" Man page author: -.\" Tony Nugent <tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.\" Changes by Bram Moolenaar <Bram@vim.org> -.\" French translation by David Blanchet <david.blanchet@free.fr> 2005-03 -.SH NOM -.I xxd -\- convertit en représentation hexadécimale et inversement. -.SH SYNOPSIS -.B xxd -\-h[elp] -.br -.B xxd -[options] [fichier_entree [fichier_sortie]] -.br -.B xxd -\-r[evert] [options] [fichier_entree [fichier_sortie]] -.SH DESCRIPTION -.I xxd -crée un fichier contenant la représentation hexadécimale d'un fichier -binaire ou de l'entrée standard. -Il peut également convertir un fichier de codes hexadécimaux en un fichier -binaire. -Comme -.BR uuencode (1) -et -.BR uudecode (1) -il permet la transmission de données binaires dans une représentation ASCII -compatible avec le courrier électronique, mais a l'avantage de décoder la -sortie standard. -De plus, il peut être utilisé pour appliquer des rustines à des fichiers -binaires. -.SH OPTIONS -Si aucun -.I fichier_entree -n'est spécifié, l'entrée standard est utilisée. -Si -.I fichier_entree -correspond au caractère -.RB '\-' -\, l'entrée standard est employée comme source des données en entrée. -Si aucun -.I fichier_sortie -n'est spécifié (ou qu'un caractère -.RB '\-' -est donné à sa place), le résultat est envoyé sur la sortie standard. -.PP -NOTE : un analyseur paresseux est utilisé. Il ne vérifie pas au-delà de la -première lettre de l'option, à moins que cette dernière ne requiert un -paramètre. -L'espace entre l'option et son paramètre est optionnel. -Les paramètres des options peuvent être spécifiés en notation décimale, -hexadécimale ou octale. -Ainsi -.BR \-c8 , -.BR "\-c 8" , -.B \-c 010 -et -.B \-cols 8 -sont tous équivalents. -.TP -.IR \-a " | " \-autoskip -active la fonctionnalité "autoskip" : le caractère '*' remplace les lignes -d'octets nuls. Désactivée par défaut. -.TP -.IR \-b " | " \-bits -Convertit en binaires plutôt qu'en hexadécimal. -Cette option écrit les octets comme une séquence de "1" et de "0" au lieu -d'une conversion en hexadécimal traditionnel. Chaque ligne est précédée par un -numéro de ligne en hexadécimal et suivie de la représentation ASCII (ou -EBCDIC) correspondante. Les options \-r, \-p, \-i ne fonctionnent pas dans ce -mode. -.TP -.IR "\-c cols " | " \-cols cols" -place -.RI < cols > -octets par ligne. 16 par défaut (\-i : 12, \-ps : 30, \-b : 6). Maximum 256. -.TP -.IR \-E " | " \-EBCDIC -Passe le codage des caractères de la colonne de droite de ASCII à EBCDIC. -Cela ne change pas la représentation hexadécimale. Cette option est sans effet -quand elle est utilisée avec \-r, \-p or \-i. -.TP -.IR "\-g octets " | " \-groupsize octets" -Regroupe les octets (deux chiffres hexadécimaux ou huit chiffres binaires) -par groupe de -.RI < octets > -\, séparés par des espaces blancs. Spécifiez -.I \-g 0 -pour supprimer le regroupement. -.RI < octets > -vaut 2 par défaut dans le mode normal et \fI1\fP en -représentation binaire. Le regroupement ne s'applique pas aux styles -Postscript et Include. -.TP -.IR \-h " | " \-help -Affiche un résumé des commandes disponibles et quitte. Aucune conversion n'est -effectuée. -.TP -.IR \-i " | " \-include -produit une sortie dans le style #include (fichier C à inclure). La définition -complète d'un tableau statique est écrite et est nommée d'après le fichier -d'origine, à moins que xxd lise depuis l'entrée standard. -.TP -.IR "\-l long " | " \-len long" -Arrête après l'écriture de -.RI < long > -octets. -.TP -.IR \-p " | " \-ps " | " \-postscript " | " \-plain -Produit une conversion continue dans le style Postscript (postscript continuous -hexdumd style). -Également connu sous le nom de « conversion brute » (plain hexdump style). -.TP -.IR \-r " | " \-revert -Opération inverse : convertit un fichier hexadécimal en un fichier binaire (ou -applique une rustine à un fichier binaire). -Si l'écriture n'a pas lieu sur la sortie standard, xxd écrit dans le fichier -qu'il produit sans le tronquer. Utilisez la combinaison -.I \-r \-p -pour lire de l'hexadécimal brut sans information sur le numéro des lignes et -sans format de colonnes particulier. Des espaces blancs et coupures de lignes -supplémentaires sont autorisés à n'importe quel endroit. -.TP -.I \-seek décalage -Utilisé après l'option -.IR \-r : -inverse la conversion en ajoutant -.RI < décalage > -aux positions dans le fichier données dans le code hexadécimal. -.TP -.I \-s [+][\-]décalage -Débute au -.RI < décalage > -absolu ou relatif dans fichier_entree. -\fI+ \fRindique que le décalage est relatif à la position courante dans -l'entrée standard (sans effet si la lecture n'a pas lieu sur l'entrée -standard). \fI\- \fRindique un décalage en caractères depuis la fin de -l'entrée (utilisé avec \fI+\fR, désigne la position avant la position -actuelle de l'entrée standard). -Sans l'option \-s, xxd démarre à la position courante du fichier. -.TP -.I \-u -Utilise des chiffres hexadécimaux majuscules. La casse par défaut est -minuscule. -.TP -.IR \-v " | " \-version -Affiche la version de xxd. -.SH MISE EN GARDE -.I xxd \-r -effectue des opérations internes un peu obscures lors de l'évaluation -des informations sur les numéros de lignes. Si le fichier de sortie est -adressable, alors les numéros de lignes au début de chaque ligne d'hexadécimal -peuvent être désordonnées, des lignes peuvent manquer ou se chevaucher. Dans -ces cas, xxd utilisera lseek(2) pour déterminer la prochaine position. Si le -fichier n'est pas adressable, seuls les vides sont autorisés, et ils seront -comblés par des octets nuls. -.PP -.I xxd \-r -ne génère aucune erreur lors de l'analyse. Les problèmes sont passés -silencieusement. -.PP -Lors de l'édition de la représentation hexadécimale, veuillez noter que -.I xxd \-r -ignore tout ce qui se trouve sur la ligne après avoir lu suffisamment de -données hexadécimales (voir l'option \-c). Cela signifie également que les -modifications dans la colonne ASCII (ou EBCDIC) sont toujours ignorées. La -conversion inverse de données hexadécimales brutes (postscript) avec xxd \-r -\-p ne dépend pas d'un nombre correct de colonnes. Dans ce cas, tout ce qui -ressemble à une paire de chiffres hexadécimaux est interprété. -.PP -Remarquez la différence entre -.br -\fI% xxd \-i fichier\fR -.br -et -.br -\fI% xxd \-i < fichier\fR -.PP -.I xxd \-s \+seek -peut différer de -.IR "xxd \-s seek" , -car lseek(2) est utilisé pour « revenir en arrière ». Le '+' fait une -différence quand la source des données est l'entrée standard et si la position -dans le fichier de l'entrée standard n'est pas au début du fichier lorsque xxd -est démarré et qu'il reçoit ses données. -L'exemple suivant peut vous aider à comprendre (ou bien vous perdre davantage -encore !)... -.PP -Remettre l'entrée standard au départ avant de lire ; nécessaire car 'cat' a -déjà lu jusqu'à la fin de l'entrée standard. -.br -\fI% sh \-c 'cat > donnees_binaires; xxd \-s 0 > donnees_hexa' < fichier\fR -.PP -Convertir à partir de la position 0x480 (= 1024 + 128) du fichier. -Le symbole '+' signifie "relativement à la position actuelle', ainsi 128 est -ajouté aux 1024 octets comptabilisés pour dd. -.br -\fI% sh \-c 'dd of=donnees_binaires bs=1k count=1; xxd \-s +128 > -donnees_hexa' < fichier\fR -.PP -Convertir de fichier depuis la position 0x100 (= 1024 \- 768) du fichier. -.br -\fI% sh \-c 'dd of=donnees_binaires bs=1k count=1; xxd \-s +\-768 > -donnees_hexa' < fichier\fR -.PP -Toutefois, cette situation est peu fréquente et l'utilisation de '+' est -rarement requise. L'auteur préfère surveiller les effets de xxd avec strace(1) -ou truss(1) quand \-s est employé. -.SH EXEMPLES -Afficher la totalité du -.B fichier -sauf les trois premières lignes (0x30 octets en hexadécimal). -.br -\fI% xxd \-s 0x30 fichier\fR -.PP -afficher les trois dernières lignes (0x30 octets en hexadécimal) du -.B fichier -\. -.br -\fI% xxd \-s \-0x30 fichier\fR -.PP -.br -Afficher 120 octets convertis en continu, avec 20 octets par ligne. -.br -\fI% xxd \-l 120 \-ps \-c 20 xxd\-fr.1\fR -.br -2e54482058584420312022616ffb742031393936 -.br -22202250616765206465206d616e75656c20706f -.br -757220787864220a2e5c220a2e5c222032317374 -.br -204d617920313939360a2e5c22204d616e207061 -.br -676520617574686f723a0a2e5c2220202020546f -.br -6e79204e7567656e74203c746f6e79407363746e -.br -204e7567656e74203c746f6e79407363746e7567 -.br -2e54482058584420312022417567757374203139 -.PP -Convertir les 120 premiers octets de cette page de manuel avec 12 octets par -ligne. -.br -\fI% xxd \-l 120 \-c 12 xxd\-fr.1\fR -.br -0000000: 2e54 4820 5858 4420 3120 2261 .TH XXD 1 "a -.br -000000c: 6ffb 7420 3139 3936 2220 2250 o.t 1996" "P -.br -0000018: 6167 6520 6465 206d 616e 7565 age de manue -.br -0000024: 6c20 706f 7572 2078 7864 220a l pour xxd". -.br -0000030: 2e5c 220a 2e5c 2220 3231 7374 .\"..\" 21st -.br -000003c: 204d 6179 2031 3939 360a 2e5c May 1996..\ -.br -0000048: 2220 4d61 6e20 7061 6765 2061 " Man page a -.br -0000054: 7574 686f 723a 0a2e 5c22 2020 uthor:..\" -.br -0000060: 2020 546f 6e79 204e 7567 656e Tony Nugen -.br -000006c: 7420 3c74 6f6e 7940 7363 746e t <tony@sctn -.PP -Afficher la date écrite au début du fichier xxd\-fr.1. -.br -\fI% xxd \-s 0x38 \-l 13 \-c 13 xxd.1\fR -.br -0000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996 -.PP -Copier -.B fichier_entree -vers -.B fichier_sortie -en ajoutant 100 octets de valeur 0x00 avant. -.br -\fI% xxd fichier_entree | xxd \-r \-s 100 \> fichier_sortie\fR -.PP -Patcher la date dans le fichier xxd.1 -.br -\fI% echo '0000037: 3574 68' | xxd \-r \- xxd\-fr.1\fR -.br -\fI% xxd \-s 0x38 \-l 13 \-c 13 xxd\-fr.1\fR -.br -0000036: 3235 7468 204d 6179 2031 3939 36 25th May 1996 -.PP -Créer un fichier de 65537 octets tous nuls (0x00), -sauf le dernier qui vaut 'A' (0x41 en hexadécimal). -.br -\fI% echo '010000: 41' | xxd \-r \> fichier\fR -.PP -.br -Convertir le fichier de l'exemple précédent avec la fonctionnalité "autoskip". -.br -\fI% xxd \-a \-c 12 fichier\fR -.br -0000000: 0000 0000 0000 0000 0000 0000 ............ -.br -* -.br -000fffc: 0000 0000 40 ....A -.PP -Créer un fichier d'un octet, contenant seulement le caractère 'A'. -Le nombre après '\-r \-s' s'ajoute aux numéros de lignes trouvées dans le -fichier ; les octets initiaux sont supprimés. -.br -\fI% echo '010000: 41' | xxd \-r \-s \-0x10000 \> fichier\fR -.PP -Utiliser xxd comme filtre dans un éditeur tel que -.B vim(1) -pour convertir une zone comprise entre les marques 'a' et 'z'. -.br -\fI:'a,'z!xxd\fR -.PP -Utiliser xxd comme filtre dans un éditeur tel que -.B vim(1) -pour récupérer une conversion binaire comprise entre les marques 'a' et 'z'. -.br -\fI:'a,'z!xxd \-r\fR -.PP -Utiliser xxd comme filtre dans un éditeur tel que -.B vim(1) -pour récupérer une ligne convertie. Placez le curseur sur la ligne et tapez : -.br -\fI!!xxd \-r\fR -.PP -Lire des caractères depuis une connexion série : -.br -\fI% xxd \-c1 < /dev/term/b &\fR -.br -\fI% stty < /dev/term/b \-echo \-opost \-isig \-icanon min 1\fR -.br -\fI% echo \-n foo > /dev/term/b\fR -.SH VALEURS DE RETOUR -Les erreurs suivantes sont rapportées : -.TP -0 -aucune erreur ne s'est produit. -.TP -\-1 -opération non supportée ( -.I xxd \-r \-i -reste impossible). -.TP -1 -erreur lors de l'analyse des options. -.TP -2 -problème avec le fichier d'entrée. -.TP -3 -problème avec le fichier de sortie. -.TP -4, 5 -la position spécifiée n'est pas atteignable. -.SH VOIR AUSSI -uuencode(1), uudecode(1), patch(1) -.SH AVERTISSEMENTS -L'étrangeté de cet outil reflète celle du cerveau de ses créateurs. -Utilisez cet outil à vos risques et périls. Dupliquez vos fichiers. -Surveillez l'outil. Devenez un gourou. -.SH VERSION -Cette page de manuel documente la version 1.7 de xxd. -.SH AUTEUR -(c) 1990-1997 par Juergen Weigert -.br -<jnweiger@informatik.uni-erlangen.de> -.LP -"Distribute freely and credit me, -.br -make money and share with me, -.br -lose money and don't ask me." -.PP -Distribution libre en citant l'auteur, -.br -gagnez de l'argent, pensez à moi, -.br -perdez de l'argent, oubliez-moi. -.PP -Page de manuel débutée par Tony Nugent -.br -<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.br -Modifications mineures par Bram Moolenaar. -Édité par Juergen Weigert. -.SH TRADUCTION -Cette page de manuel a été traduite par David Blanchet -<david.blanchet@free.fr> 2004-12-24. -Mise à jour 2013-05-10, Dominique Pellé <dominique.pelle@gmail.com> diff --git a/runtime/doc/xxd-it.1 b/runtime/doc/xxd-it.1 deleted file mode 100755 index 3d8dabb950..0000000000 --- a/runtime/doc/xxd-it.1 +++ /dev/null @@ -1,402 +0,0 @@ -.TH XXD 1 "Agosto 1996" "Pagina di manuale per xxd" -.\" -.\" 21 Maggio 1996 -.\" Autore della pagina di manuale: -.\" Tony Nugent <tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.\" Modificato da Bram Moolenaar <Bram@vim.org> -.SH NOME -.I xxd -\- Produce esadecimale da un file binario o viceversa. -.SH SINTASSI -.B xxd -\-h[elp] -.br -.B xxd -[opzioni] [input_file [output_file]] -.br -.B xxd -\-r[evert] [opzioni] [input_file [output_file]] -.SH DESCRIZIONE -.I xxd -crea un'immagine esadecimale di un dato file o dello "standard input". -Può anche ottenere da un'immagine esadecimale il file binario originale. -Come -.BR uuencode (1) -e -.BR uudecode (1) -permette di trasmettere dati binari in una rappresentazione ASCII "a prova -di email", ma ha anche il vantaggio di poter decodificare sullo "standard -output". Inoltre, può essere usato per effettuare delle modifiche (patch) -a file binari. -.SH OPZIONI -Se non si specifica un -.I input_file -il programma legge dallo "standard input". -Se -.I input_file -è specificato come il carattere -.RB \` \- ' -, l'input è letto dallo "standard input". -Se non si specifica un -.I output_file -(o si mette al suo posto il carattere -.RB \` \- ' -), i risultati sono inviati allo "standard output". -.PP -Si noti che la scansione dei caratteri è "pigra", e non controlla oltre -la prima lettera dell'opzione, a meno che l'opzione sia seguita da un -parametro. -Gli spazi fra una singola lettera di opzione e il corrispondente parametro -dopo di essa sono facoltativi. -I parametri delle opzioni possono essere specificati usando la notazione -decimale, esadecimale oppure ottale. -Pertanto -.BR \-c8 , -.BR "\-c 8" , -.B \-c 010 -e -.B \-cols 8 -sono notazioni equivalenti fra loro. -.PP -.TP -.IR \-a " | " \-autoskip -Richiesta di autoskip: Un singolo '*' rimpiazza linee di zeri binari. -Valore di default: off. -.TP -.IR \-b " | " \-bits -Richiesta di una immagine binaria (cifre binarie), invece che esadecimale. -Questa opzione scrive un byte come otto cifre "1" e "0" invece di usare i -numeri esadecimali. Ogni linea è preceduta da un indirizzo in esadecimale e -seguita da una decodifica ascii (o ebcdic). Le opzioni specificabili dalla -linea comando \-r, \-p, \-i non funzionano in questo modo. -.TP -.IR "\-c colonne " | " \-cols colonne" -.IR "\-c colonne " | " \-cols colonne" -In ogni linea sono formattate -.RI < colonne > -colonne. Valore di default 16 (\-i: 12, \-ps: 30, \-b: 6). -Valore massimo 256. -.TP -.IR \-E " | " \-EBCDIC -Cambia la codifica della colonna di destra da ASCII a EBCDIC. -Questo non modifica la rappresentazione esadecimale. Non ha senso -specificare questa opzione in combinazione con \-r, \-p o \-i. -.TP -.IR "\-g numero_byte " | " \-groupsize numero_byte" -Inserisci ogni -.RI < numero_byte > -byte di output (di due caratteri esadecimali o otto numeri binari ognuno) -uno spazio bianco. -Specificando -.I \-g 0 -i byte di output non sono separati da alcuno spazio. -.RI < numero_byte > ha come valore di default " 2 -in modalità normale [esadecimale] e \fI1\fP in modalità binaria. -Il raggruppamento non si applica agli stili "PostScript" e "include". -.TP -.IR \-h " | " \-help -stampa un sommario dei comandi disponibili ed esce. Non viene fatto -null'altro. -.TP -.IR \-i " | " \-include -L'output è nello stile dei file "include" in C. Viene preparata la -definizione completa di un "array" [vettore], dandogli il nome del -file di input), tranne che nel caso in cui xxd legga dallo "standard input". -.TP -.IR "\-l numero " | " \-len numero" -Il programma esce dopo aver scritto -.RI < numero > -byte. -.TP -.IR \-p " | " \-ps " | " \-postscript " | " \-plain -L'output è nello stile di un dump continuo sotto postscript. -Noto anche come stile esadecimale semplice [plain]. -.TP -.IR \-r " | " \-revert -ricostruzione: converte (o mette una patch) a partire dall'immagine -esadecimale, creando [o modificando] il file binario. -Se non diretto allo "standard output", xxd scrive nel suo file di output -in maniera continua, senza interruzioni. Usare la combinazione -.I \-r \-p -per leggere dump in stile esadecimale semplice [plain], senza l'informazione -di numero di linea e senza un particolare tracciato di colonna. Degli spazi -o delle linee vuote possono essere inserite a piacere [e vengono ignorate]. -.TP -.I \-seek distanza -Usato con l'opzione -.IR \-r : -(ricostruzione), -.RI < distanza > -viene aggiunta alla posizione nel file trovata nella immagine -esadecimale. -.TP -.I \-s [+][\-]seek -Inizia a -.RI < seek > -byte assoluti (o relativi) di distanza all'interno di input_file. -\fI+ \fRindica che il "seek" è relativo alla posizione corrente nel file -"standard input" (non significativa quando non si legge da "standard input"). -\fI\- \fRindica che il "seek" dovrebbe posizionarsi ad quel numero di -caratteri dalla fine dell'input (o se in combinazione con -\fI+ \fR: prime della posizione corrente nel file "standard input"). -Se non si specifica una opzione \-s, xxd inizia alla posizione -corrente all'interno del file. -.TP -.I \-u -usa lettere esadecimali maiuscole. Il valore di default è di usare -lettere minuscole. -.TP -.IR \-v " | " \-version -visualizza la stringa contenente la versione del programma. -.SH ATTENZIONE -.PP -.I xxd \-r -è capace di operare "magie" nell'utilizzare l'informazione "numero di linea". -Se sul file di output ci si può posizionare usando la "seek", il numero di -linea all'inizio di ogni riga esadecimale può essere non ordinato, delle -linee possono mancare delle linee, oppure esserci delle sovrapposizioni. -In simili casi xxd userà lseek(2) per raggiungere la posizione d'inizio. -Se il file di output non consente di usare "seek", sono permessi solo dei -"buchi", che saranno riempiti con zeri binari. -.PP -.I xxd \-r -non genera mai errori di specifica parametri. I parametri non riconosciuti -sono silenziosamente ignorati. -.PP -Nel modificare immagini esadecimali, tenete conto che -.I xxd \-r -salta il resto della linea, dopo aver letto abbastanza caratteri contenenti -dati esadecimali (vedere opzione \-c). Ciò implica pure che le modifiche alle -colonne di caratteri stampabili ascii (o ebcdic) sono sempre ignorate. -La ricostruzione da un file immagine esadecimale in stile semplice -(postscript) con xxd \-r \-p non dipende dal numero corretto di colonne. -IN questo caso, qualsiasi cosa assomigli a una coppia di cifre esadecimali -è interpretata [e utilizzata]. -.PP -Notare la differenza fra -.br -\fI% xxd \-i file\fR -.br -e -.br -\fI% xxd \-i \< file\fR -.PP -.I xxd \-s \+seek -può comportarsi in modo diverso da -.IR "xxd \-s seek" -, perché lseek(2) è usata per tornare indietro nel file di input. Il '+' -fa differenza se il file di input è lo "standard input", e se la posizione nel -file di "standard input" non è all'inizio del file quando xxd è eseguito, -con questo input. -I seguenti esempi possono contribuire a chiarire il concetto -(o ad oscurarlo!)... -.PP -Riavvolge lo "standard input" prima di leggere; necessario perché `cat' -ha già letto lo stesso file ["file"] fino alla fine dello "standard input". -.br -\fI% sh \-c 'cat > copia_normale; xxd \-s 0 > copia_esadecimale' < file -.PP -Stampa immagine esadecimale dalla posizione file 0x480 (=1024+128) in poi. -Il segno `+' vuol dire "rispetto alla posizione corrente", quindi il `128' -si aggiunge a 1k (1024) dove `dd' si era fermato. -.br -\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +128 > esadecimale' < file -.PP -Immagine esadecimale dalla posizione 0x100 ( = 1024\-768 ) del file in avanti. -.br -\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +\-768 > esadecimale' < file -.PP -Comunque, questo capita raramente, e l'uso del `+' non serve quasi mai. -L'autore preferisce monitorare il comportamento di xxd con strace(1) o -truss(1), quando si usa l'opzione \-s. -.SH ESEMPI -.PP -.br -Stampa tutto tranne le prime tre linee (0x30 byte esadecimali) di -.B file -\. -.br -\fI% xxd \-s 0x30 file -.PP -.br -Stampa 3 linee (0x30 byte esadecimali) alla fine di -.B file -\. -.br -\fI% xxd \-s \-0x30 file -.PP -.br -Stampa 120 byte come immagine esadecimale continua con 20 byte per linea. -.br -\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR - -.br -2e54482058584420312022417567757374203139 -.br -39362220224d616e75616c207061676520666f72 -.br -20787864220a2e5c220a2e5c222032317374204d -.br -617920313939360a2e5c22204d616e2070616765 -.br -20617574686f723a0a2e5c2220202020546f6e79 -.br -204e7567656e74203c746f6e79407363746e7567 -.br - -.br -Stampa i primi 120 byte della pagina di manuale vim.1 a 12 byte per linea. -.br -\fI% xxd \-l 120 \-c 12 xxd.1\fR - - -.br -0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A -.br -000000c: 7567 7573 7420 3139 3936 2220 ugust 1996" -.br -0000018: 224d 616e 7561 6c20 7061 6765 "Manual page -.br -0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\ -.br -0000030: 220a 2e5c 2220 3231 7374 204d "..\" 21st M -.br -000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\" -.br -0000048: 4d61 6e20 7061 6765 2061 7574 Man page aut -.br -0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\" -.br -0000060: 546f 6e79 204e 7567 656e 7420 Tony Nugent -.br -000006c: 3c74 6f6e 7940 7363 746e 7567 <tony@sctnug -.PP -.br -Visualizza la data dal file xxd.1 -.br -\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR -.br -0000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996 -.PP -.br -Copiare -.B input_file -su -.B output_file -premettendogli 100 byte a 0x00. -.br -\fI% xxd input_file | xxd \-r \-s 100 \> output_file\fR -.br - -.br -Modificare (patch) la data nel file xxd.1 -.br -\fI% echo '0000037: 3574 68' | xxd \-r \- xxd.1\fR -.br -\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR -.br -0000036: 3235 7468 204d 6179 2031 3939 36 25th May 1996 -.PP -.br -Creare un file di 65537 byte tutto a 0x00, -tranne che l'ultimo carattere che è una 'A' (esadecimale 0x41). -.br -\fI% echo '010000: 41' | xxd \-r \> file\fR -.PP -.br -Stampa una immagine esadecimale del file di cui sopra con opzione autoskip. -.br -\fI% xxd \-a \-c 12 file\fR -.br -0000000: 0000 0000 0000 0000 0000 0000 ............ -.br -* -.br -000fffc: 0000 0000 40 ....A -.PP -Crea un file di 1 byte che contiene il solo carattere 'A'. -Il numero dopo '\-r \-s' viene aggiunto a quello trovato nel file; -in pratica, i byte precedenti non sono stampati. -.br -\fI% echo '010000: 41' | xxd \-r \-s \-0x10000 \> file\fR -.PP -Usa xxd come filtro all'interno di un editor come -.B vim(1) -per ottenere una immagine esadecimale di una parte di file -delimitata dai marcatori `a' e `z'. -.br -\fI:'a,'z!xxd\fR -.PP -Usare xxd come filtro all'interno di un editor come -.B vim(1) -per ricostruire un pezzo di file binario da una immagine esadecimale -delimitata dai marcatori `a' e `z'. -.br -\fI:'a,'z!xxd \-r\fR -.PP -Usare xxd come filtro all'interno di un editor come -.B vim(1) -per ricostruire una sola linea di file binario da una immagine esadecimale, -Portare il cursore sopra la linea e battere: -.br -\fI!!xxd \-r\fR -.PP -Per leggere singoli caratteri da una linea seriale -.br -\fI% xxd \-c1 < /dev/term/b &\fR -.br -\fI% stty < /dev/term/b \-echo \-opost \-isig \-icanon min 1\fR -.br -\fI% echo \-n foo > /dev/term/b\fR -.PP -.SH CODICI DI RITORNO -Il programma può restituire questi codici di errore: -.TP -0 -nessun errore rilevato. -.TP -\-1 -operazione non supportata ( -.I xxd \-r \-i -non ancora possible). -.TP -1 -errore durante la scansione parametri. -.TP -2 -problemi con il file di input. -.TP -3 -problemi con il file di output. -.TP -4,5 -posizione "seek" specificata non raggiungibile all'interno del file. -.SH VEDERE ANCHE -uuencode(1), uudecode(1), patch(1) -.br -.SH AVVERTIMENTI -La stranezza dello strumento rispecchia la mente del suo creatore. -Usate a vostro rischio e pericolo. Copiate i file. Tracciate l'esecuzione. -Diventate un mago. -.br -.SH VERSIONE -Questa pagina di manuale documenta la versione 1.7 di xxd. -.SH AUTORE -.br -(c) 1990-1997 Juergen Weigert -.br -<jnweiger@informatik.uni\-erlangen.de> -.LP -Distribuite liberamente ed attribuitemi il credito, -.br -fate soldi e condivideteli con me -.br -perdete soldi e non venite a chiederli a me. -.PP -Pagina di manuale messa in piedi da Tony Nugent -.br -<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.br -Piccole modifiche di Bram Moolenaar. -Modificato da Juergen Weigert. -.PP diff --git a/runtime/doc/xxd-pl.1 b/runtime/doc/xxd-pl.1 deleted file mode 100644 index d9fa9be203..0000000000 --- a/runtime/doc/xxd-pl.1 +++ /dev/null @@ -1,389 +0,0 @@ -.TH XXD 1 "Sierpieñ 1996" "Strona podrêcznika dla xxd" -.\" -.\" 21st May 1996 -.\" Man page author: -.\" Tony Nugent <tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.\" Changes by Bram Moolenaar <Bram@vim.org> -.SH NAZWA -.I xxd -\- zrzut pliku do hex lub odwrotnie -.SH SYNOPSIS -.B xxd -\-h[elp] -.br -.B xxd -[opcje] [plik_we [plik_wy]] -.br -.B xxd -\-r[evert] [opcje] [plik_we [plik_wy]] -.SH OPIS -.I xxd -tworzy zrzut heksowy podanego pliku lub standardowego wej¶cia. -Mo¿e tak¿e przetworzyæ zrzut heksowy z powrotem do oryginalnej, -binarnej formy. -Podobnie jak -.BR uuencode (1) -i -.BR uudecode (1) -pozwala na przekazanie danych binarnych w bezpiecznej w poczcie formie -ASCII, ale ma zalety dekodowania na standardowe wyj¶cie. -Ponadto mo¿na go u¿yæ do binarnego ³atania plików. -.SH OPCJE -Je¶li nie podano -.I plik_we -xxd czyta ze standardowego wej¶cia. -Je¶li okre¶lono -.I plik_we -jako znak -.RB \` \- ' -wtedy dane wej¶ciowe czytane s± ze standardowego wej¶cia. -Je¶li nie podano -.I plik_wy -(lub podano jako -.RB \` \- ' -), wyniki s± wysy³ane na standardowe wyj¶cie. -.PP -Pamiêtaj, ¿e u¿yty zosta³ "leniwy" parser, który nie sprawdza wiêcej -ni¿ pierwszej litery opcji (o ile ta nie zosta³a obdarzona -parametrem). Spacje miêdzy jedno literowymi opcjami i ich parametrami -s± opcjonalne. Parametry opcji mog± byæ okre¶lone w notacji dziesiêtnej, -heksadecymalej lub oktalnej. -St±d -.BR \-c8 , -.BR "\-c 8" , -.B \-c 010 -i -.B \-cols 8 -s± sobie równowa¿ne. -.PP -.TP -.IR \-a " | " \-autoskip -prze³±cza autoskip: pojedyncza '*' zastêpuje linie nul. Domy¶lnie -wy³±czone. -.TP -.IR \-b " | " \-bits -Prze³±cza do zrzutu bitowego (cyfr binarnych) zamiast heksowego. -Opcja ta zapisuje oktety jako osiem cyfr 1 lub 0 zamiast normalnego -zrzutu heksowego. Ka¿da linia jest poprzedzona przez -heksadecymalny numer linii a po nim jego reprezentacj± w ascii (lub -ebcdic). Opcje linii poleceñ \-r, \-p, \-i nie dzia³aj± w tym -trybie. -.TP -.IR "\-c cols " | " \-cols cols" -formatuje liczbê -.RI < cols > -oktetów na wiersz. Domy¶lnie 16 (\-i: 12, \-ps: 30, \-b: 6). Maks. -256. -.TP -.IR \-E " | "\-EBCDIC -zmienia kodowanie znaków w prawej kolumnie z ASCII na EBCDIC. -Nie zmienia prezentacji heksadecymalej. Opcja nie dzia³a w po³±czeniu -z \-r, \-p lub \-i. -.TP -.IR "\-g bajtów " | " \-groupsize bajtów" -oddziela wyj¶cie ka¿dych -.RI < bajtów > -bajtów (dwa heksowe znaki lub osiem cyfr binarnych ka¿de) przez bia³y -znak. -Okre¶l -.I \-g 0 -by wy³±czyæ grupowanie. -.RI < Bajtów "> domy¶lnie jest " 2 -w trybie normalnym i \fI1\fP w trybie bitów. -Grupowanie nie dzia³a w trybie postscriptu lub w³±czania. -.TP -.IR \-h " | " \-help -wypisuje podsumowanie dostêpnych poleceñ i koñczy dzia³anie. Nie -zostaje przeprowadzony ¿aden zrzut. -.TP -.IR \-i " | " \-include -wyj¶cie w stylu w³±czania pliku w C. Zostaje zapisana kompletna -statyczna tablica definicji (nazwana wed³ug pliku wej¶cia), o ile xxd -nie czyta ze standardowego wej¶cia. -.TP -.IR "\-l len " | "\-len len" -zakoñcz po wypisaniu -.RI < len > -oktetów. -.TP -.IR \-p " | " \-ps " | " \-postscript " | " \-plain -wyj¶cie w postcriptowym ci±g³ym stylu zrzutu heksowego. Znany tak¿e -jako zwyk³y zrzut heksowy. -.TP -.IR \-r " | " \-revert -odwróæ operacjê: przekonwertuj (lub za³ataj) zrzut heksowy w binarkê. -Je¶li nie zapisuje na standardowe wyj¶cie, xxd zapisze plik wyj¶ciowy -bez obcinania go. U¿yj kombinacji -.I \-r \-p -by odczytaæ zwyk³y zrzut heksadecymalny bez numerów linii -i okre¶lonego uk³adu kolumn. Dodatkowe bia³e znaki i ³amanie wierszy -s± wszêdzie dozwolone. -.TP -.I \-seek offset -Kiedy u¿yty po -.IR \-r : -odwraca z -.RI < offset > -dodanym do pozycji w pliku odnalezionym w zrzucie heksowym. -.TP -.I \-s [+][\-]seek -zaczyna na -.RI < seek > -bajtów bezwglêdnego (lub wzglêdnego) offsetu pliku wej¶ciowego. -\fI+ \fRwskazuje, ¿e seek jest wzglêdne do bie¿±cej pozycji pliku (bez -znaczenia je¶li nie wczytuje ze standardowego wej¶cia). \fI\- \fRwskazuje -¿e seek powinno byæ o tyle znaków od koñca wej¶cia (lub je¶li -po³±czone z \fI+\fR: przed bie¿±c± pozycj± pliku na standardowym -wej¶ciu). -Bez opcji \-s xxd zaczyna od bie¿±cej pozycji w pliku. -.TP -.I \-u -u¿yj wielkich liter w znakach heksowych. Domy¶lnie s± ma³e znaki. -.TP -.IR \-v " | " \-version -pokazuje wersjê programu. -.SH OSTRZE¯ENIA -.PP -.I xxd \-r -potrafi okre¶liæ numery linii. Je¶li plik wyj¶cia jest mo¿liwy do -przeszukania wtedy numery linii na pocz±tku wiersza zrzutu heksowego -mog± byæ nie po kolei, mo¿e brakowaæ wierszy lub nak³adaæ siê na -siebie. W takich wypadkach xxd u¿yje lseek(2) by znale¼æ nastêpn± -pozycjê. Je¶li plik wyj¶ciowy nie jest mo¿liwy do przeszukania mo¿liwe -s± tylko przerwy, które zostan± wype³nione bajtami null. -.PP -.I xxd \-r -nigdy nie podaje b³êdów analizy. ¦mieci s± po cichu ignorowane. -.PP -W czasie edycji zrzutów heksowych, proszê zauwa¿yæ ¿e -.I xxd \-r -pomija wszystko w linii wej¶cia po odczytaniu wystarczaj±cej ilo¶ci -kolumn danych heksadecymalnych (zobacz opcjê \-c). Oznacza to tak¿e, -¿e zmiany w drukowanych kolumnach ascii (lub ebcdic) s± zawsze -ignorowane. Odwrócenie zwyk³ego (lub postscriptowego) stylu zrzutu -poprzez xxd \-r \-p nie zale¿y od kolejno¶ci kolumn. Tutaj cokolwiek -co wygl±da jak para znaków heks jest interpretowane. -.PP -Zauwa¿ ró¿nicê miêdzy -.br -\fI% xxd \-i plik\fR -.br -i -.br -\fI% xxd \-i < plik\fR -.PP -.I xxd \-s \+seek -mo¿e byæ ró¿ne od -.IR "xxd \-s seek" , -poniewa¿ lseek(2) jest u¿yty do "przewiniêcie" wej¶cia. '+' stanowi -ró¿nicê je¶li ¼ród³em wej¶cia jest standardowe wej¶cie i je¶li pozycja -w pliku ze standardowego wej¶cia nie jest pocz±tkiem pliku w chwili -uruchomienia xxd. Nastêpuj±ce przyk³ady mog± wyja¶niæ (lub bardziej -zmyliæ!)... -.PP -Przewiñ standardowe wej¶cie przed przeczytaniem; potrzebne poniewa¿ -`cat' ju¿ odczyta³ do koñca standardowego wej¶cia. -.br -\fI% sh \-c 'cat > zwyk³a_kopia; xxd \-s 0 > hex_kopia' < plik\fR -.PP -Zrzut heksowy od pozycji pliku 0x480 (=1024+128) w przód. -Znak `+' oznacza "wzglêdny wobec bie¿±cej pozycji", st±d `128' dodaje -do 1k gdzie zakoñczy³ dd. -.br -\fI% sh \-c 'dd of=plain_snippet bs=1k count=1; xxd \-s +128 > hex_snippet' < file\fR -.PP -Zrzut heksowy od pozycji pliku 0x100 ( = 1024\-768) dalej. -.br -\fI% sh \-c 'dd of=plain_snippet bs=1k count=1; xxd \-s +-768 > hex_snippet' < file\fR -.PP -Jakkolwiek, jest to rzadka sytuacja i u¿ycie `+' jest rzadko -potrzebne. -Autor woli monitorowaæ dzia³anie xxd przy pomocy strace(1) lub truss(1) kiedy \-s jest u¿yte. -.SH PRZYK£ADY -.PP -.br -Wypisz wszystko z wyj±tkiem pierwszych trzech linii (heksowe 0x30 bajtów) -.B pliku -\. -.br -\fI% xxd \-s 0x30 plik\fR -.PP -.br -Wypisz trzy linie (heksowe 0x30 bajtów) z koñca -.B pliku -\. -.br -\fI% xxd \-s \-0x30 plik\fR -.PP -.br -Wypisz 120 bajtów jako ci±g³y zrzut heksowy z 20 oktetami na liniê. -.br -\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR -.br -2e54482058584420312022417567757374203139 -.br -39362220224d616e75616c207061676520666f72 -.br -20787864220a2e5c220a2e5c222032317374204d -.br -617920313939360a2e5c22204d616e2070616765 -.br -20617574686f723a0a2e5c2220202020546f6e79 -.br -204e7567656e74203c746f6e79407363746e7567 -.br - -.br -Zrzut heksowy z pierwszymi 120 bajtami tej strony podrêcznika z 12 -oktetami na liniê. -.br -\fI% xxd \-l 120 \-c 12 xxd.1\fR -.br -0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A -.br -000000c: 7567 7573 7420 3139 3936 2220 ugust 1996" -.br -0000018: 224d 616e 7561 6c20 7061 6765 "Manual page -.br -0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\\ -.br -0000030: 220a 2e5c 2220 3231 7374 204d "..\\" 21st M -.br -000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\\" -.br -0000048: 4d61 6e20 7061 6765 2061 7574 Man page aut -.br -0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\\" -.br -0000060: 546f 6e79 204e 7567 656e 7420 Tony Nugent -.br -000006c: 3c74 6f6e 7940 7363 746e 7567 <tony@sctnug -.PP -.br -Poka¿ tylko datê z pliku xxd.1 -.br -\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR -.br -0000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996 -.PP -.br -Kopiuj -.B plik_we -do -.B plik_wy -i poprzed¼ 100 bajtami o warto¶ci 0x00. -.br -\fI% xxd plik_we | xxd \-r \-s 100 \> plik_wy\fR -.br - -.br -Podmieñ datê w pliku xxd.1 -.br -\fI% echo '0000037: 3574 68' | xxd \-r \- xxd.1\fR -.br -\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR -.br -0000036: 3235 7468 204d 6179 2031 3939 36 25th May 1996 -.PP -.br -Utwórz plik o 65537 bajtach, wszystkich równych 0x00, -z wyj±tkiem ostatniego, który ma byæ 'A' (hex 0x41). -.br -\fI% echo '010000: 41' | xxd \-r \> plik\fR -.PP -.br -Zrzut heksowy tego pliku z autoskipem. -.br -\fI% xxd \-a \-c 12 plik\fR -.br -0000000: 0000 0000 0000 0000 0000 0000 ............ -.br -* -.br -000fffc: 0000 0000 40 ....A -.PP -Utwórz jedno bajtowy plik zawieraj±cy pojedncz± literê 'A'. -Liczba po '\-r \-s' dodaje numery linii znalezione w pliku; -w efekcie poprzedzaj±ce bajty s± ukryte. -.br -\fI% echo '010000: 41' | xxd \-r \-s \-0x10000 \> plik\fR -.PP -U¿yj xxd jako filtra wewn±trz edytora takiego jak -.B vim(1) -aby uzyskaæ zrzut heksowy zakresu miêdzy markerami `a' i `z'. -.br -\fI:'a,'z!xxd\fR -.PP -U¿yj xxd jako filtra wewn±trz edytora takiego jak -.B vim(1) -by odzyskaæ binarny zrzut heksowy zakresu pomiêdzy markerami `a' -i `z'. -.br -\fI:'a,'z!xxd \-r\fR -.PP -U¿yj xxd jako filtra wewn±trz edytora takiego jak -.B vim(1) -by odzyskaæ jedn± liniê zrzutu heksowego. Przejd¼ z kursorem na liniê -i wpisz: -.br -\fI!!xxd \-r\fR -.PP -Odczytaj pojednycze znaki z portu szeregowego -.br -\fI% xxd \-c1 < /dev/term/b &\fR -.br -\fI% stty < /dev/term/b \-echo \-opost \-isig \-icanon min 1\fR -.br -\fI% echo \-n foo > /dev/term/b\fR -.PP -.SH "ZWRACANE WARTO¦CI" -Zwracane s± nastêpuj±ce warto¶ci b³êdów: -.TP -0 -nie znaleziono b³êdów. -.TP -\-1 -operacja nie jest wspierana ( -.I xxd \-r \-i -ca³y czas niemo¿liwa). -.TP -1 -b³±d w czasie analizowania opcji. -.TP -2 -problemy z plikiem wej¶ciowym. -.TP -3 -problemy z plikiem wyj¶ciowym. -.TP -4,5 -¿±dana pozycja jest nieosi±galna. -.SH "ZOBACZ TAK¯E" -uuencode(1), uudecode(1), patch(1) -.br -.SH OSTRZE¯ENIA -Dziwaczno¶æ narzêdzi dorównuje dziwaczno¶ci mózgu twórcy. -U¿ywaj wy³±cznie na w³asn± odpowiedzialno¶æ. Kopiuj pliki. Analizuj -je. Stañ siê czarodziejem. -.br -.SH WERSJA -Strona podrêcznika opisuje xxd w wersji 1.7 -.SH AUTOR -.br -(c) 1990-1997 by Juergen Weigert -.br -<jnweiger@informatik.uni-erlangen.de> -.LP -Kopiuj do woli i podaj moje dane, -.br -zarabiaj pieni±dze i dziel siê ze mn±, -.br -traæ pieni±dze i nie miej do mnie pretensji. -.PP -Strona podrêcznika zapocz±tkowana przez Tony'ego Nugenta -.br -<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.br -Ma³e zmiany: Bram Moolenaar. -Redakcja: Juergen Weigert. -.PP diff --git a/runtime/doc/xxd-ru.1 b/runtime/doc/xxd-ru.1 deleted file mode 100644 index 111946ab52..0000000000 --- a/runtime/doc/xxd-ru.1 +++ /dev/null @@ -1,408 +0,0 @@ -.TH XXD 1 "August 1996" "óÔÒÁÎÉÃÁ man ÄÌÑ xxd" -.\" -.\" 21st May 1996 -.\" Man page author: -.\" Tony Nugent <tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.\" Changes by Bram Moolenaar <Bram@vim.org> -.SH éíñ -.I xxd -\- ÓÏÚÄÁ£Ô ÐÒÅÄÓÔÁ×ÌÅÎÉÅ ÆÁÊÌÁ × ×ÉÄÅ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÈ ËÏÄÏ× ÉÌÉ ×ÙÐÏÌÎÑÅÔ -ÏÂÒÁÔÎÏÅ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÅ. -.SH ëïíáîäîáñ óôòïëá -.B xxd -\-h[elp] -.br -.B xxd -[ËÌÀÞÉ] [×ÈÏÄÎÏÊ_ÆÁÊÌ [×ÙÈÏÄÎÏÊ_ÆÁÊÌ]] -.br -.B xxd -\-r[evert] [ËÌÀÞÉ] [×ÈÏÄÎÏÊ_ÆÁÊÌ [×ÙÈÏÄÎÏÊ_ÆÁÊÌ]] -.SH ïðéóáîéå -.I xxd -ÓÏÚÄÁ£Ô ÐÒÅÄÓÔÁ×ÌÅÎÉÅ ÕËÁÚÁÎÎÏÇÏ ÆÁÊÌÁ ÉÌÉ ÄÁÎÎÙÈ, ÐÒÏÞÉÔÁÎÎÙÈ ÉÚ ÐÏÔÏËÁ -ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ, × ×ÉÄÅ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÈ ËÏÄÏ×. üÔÁ ËÏÍÁÎÄÁ ÔÁËÖÅ ÍÏÖÅÔ -×ÙÐÏÌÎÉÔØ ÏÂÒÁÔÎÏÅ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÅ ÚÁÄÁÎÎÙÈ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÍÉ ËÏÄÁÍÉ ÄÁÎÎÙÈ -× ÉÓÈÏÄÎÙÊ ÂÉÎÁÒÎÙÊ ÆÏÒÍÁÔ. -ðÏÄÏÂÎÏ ËÏÍÁÎÄÁÍ -.BR uuencode(1) -É -.BR uudecode(1), -ÏÎÁ ÐÏÚ×ÏÌÑÅÔ ×ÙÐÏÌÎÑÔØ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÅ ÂÉÎÁÒÎÙÈ ÄÁÎÎÙÈ × ASCII-ËÏÄ, -ËÏÔÏÒÙÊ ÍÏÖÎÏ ÐÅÒÅÄÁ×ÁÔØ ÐÏ ÜÌÅËÔÒÏÎÎÏÊ ÐÏÞÔÅ, ÏÄÎÁËÏ, ÐÏÍÉÍÏ ÜÔÏÇÏ, ÐÒÏÇÒÁÍÍÁ -xxd ÐÏÚ×ÏÌÑÅÔ ×ÙÐÏÌÎÑÔØ ÄÅËÏÄÉÒÏ×ÁÎÉÅ × ÐÏÔÏË ÓÔÁÎÄÁÒÔÎÏÇÏ ×Ù×ÏÄÁ, -Á ÔÁËÖÅ ÍÏÖÅÔ ÐÒÉÍÅÎÑÔØÓÑ ÄÌÑ ÓÏÚÄÁÎÉÑ ÚÁÐÌÁÔÏË ÄÌÑ ÂÉÎÁÒÎÙÈ ÆÁÊÌÏ×. -.SH ëìàþé úáðõóëá -åÓÌÉ -.I ×ÈÏÄÎÏÊ_ÆÁÊÌ -ÎÅ ÚÁÄÁÎ, ÔÏ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ÄÁÎÎÙÅ ÞÉÔÁÀÔÓÑ ÉÚ ÐÏÔÏËÁ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ. -÷ ÓÌÕÞÁÅ, ÅÓÌÉ × ËÁÞÅÓÔ×Å -.I ×ÈÏÄÎÏÇÏ_ÆÁÊÌÁ -ÉÓÐÏÌØÚÕÅÔÓÑ ÓÉÍ×ÏÌ -.RB \` \- ', -ÉÓÔÏÞÎÉËÏÍ ÄÁÎÎÙÈ ÔÁËÖÅ ×ÙÓÔÕÐÁÅÔ ÐÏÔÏË ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ. -÷ ÔÏÍ ÓÌÕÞÁÅ, ÅÓÌÉ ÎÅ ÕËÁÚÁÎ -.I ×ÙÈÏÄÎÏÊ_ÆÁÊÌ -(ÉÌÉ ×ÍÅÓÔÏ ÎÅÇÏ ÉÓÐÏÌØÚÕÅÔÓÑ ÓÉÍ×ÏÌ -.RB \` \- ' -), ÒÅÚÕÌØÔÁÔ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÑ ÎÁÐÒÁ×ÌÑÅÔÓÑ × ÐÏÔÏË ÓÔÁÎÄÁÒÔÎÏÇÏ ×Ù×ÏÄÁ. -.PP -ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ, ÞÔÏ ÉÓÐÏÌØÚÕÅÔÓÑ "ÌÅÎÉ×ÙÊ" ÁÌÇÏÒÉÔÍ ÒÁÚÂÏÒÁ ËÌÀÞÅÊ, ËÏÔÏÒÙÊ ÎÅ -ÐÒÏ×ÅÒÑÅÔ ÂÏÌÅÅ ÏÄÎÏÊ ÂÕË×Ù ËÌÀÞÁ, ÅÓÌÉ × ÜÔÏÍ ËÌÀÞÅ ÎÅ ÉÓÐÏÌØÚÕÅÔÓÑ ÐÁÒÁÍÅÔÒ. -ðÒÏÂÅÌÙ ÍÅÖÄÕ ÅÄÉÎÓÔ×ÅÎÎÙÍ ÓÉÍ×ÏÌÏÍ ËÌÀÞÁ É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍ ÐÁÒÁÍÅÔÒÏÍ ÎÅ Ñ×ÌÑÀÔÓÑ -ÏÂÑÚÁÔÅÌØÎÙÍÉ. ðÁÒÁÍÅÔÒÙ ËÌÀÞÅÊ ÍÏÇÕÔ ÂÙÔØ ÚÁÄÁÎÙ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÄÅÓÑÔÉÞÎÏÇÏ, -ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÉÌÉ ×ÏÓØÍÅÒÉÞÎÏÇÏ ÆÏÒÍÁÔÁ. -ôÁËÉÍ ÏÂÒÁÚÏÍ, ËÌÀÞÉ -.BR \-c8 , -.BR "\-c 8" , -.B \-c 010 -É -.B \-cols 8 -Ñ×ÌÑÀÔÓÑ ÒÁ×ÎÏÚÎÁÞÎÙÍÉ. -.PP -.TP -.IR \-a " | " \-autoskip -÷ËÌÀÞÁÅÔ Á×ÔÏÍÁÔÉÞÅÓËÉÊ ÐÒÏÐÕÓË: ×ÍÅÓÔÏ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ -ÎÕÌÅ×ÙÈ ÓÔÒÏË ÉÓÐÏÌØÚÕÅÔÓÑ ÏÄÉÎÏÞÎÙÊ ÓÉÍ×ÏÌ '*'. ðÏ ÕÍÏÌÞÁÎÉÀ -ÎÅ ÐÒÉÍÅÎÑÅÔÓÑ. -.TP -.IR \-b " | " \-bits -÷ÍÅÓÔÏ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ËÏÄÁ ÉÓÐÏÌØÚÕÀÔÓÑ ÂÉÔÙ (Ä×ÏÉÞÎÙÅ ÃÉÆÒÙ). -ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÜÔÏÇÏ ËÌÀÞÁ ×ÍÅÓÔÏ ÏÂÙÞÎÏÇÏ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ -ÏËÔÅÔÏ× ÉÓÐÏÌØÚÕÀÔÓÑ ÎÁÂÏÒÙ ÉÚ ×ÏÓØÍÉ ÓÉÍ×ÏÌÏ× "1" É "0". ëÁÖÄÁÑ ÓÔÒÏËÁ -ÐÒÅÄ×ÁÒÑÅÔÓÑ ÎÏÍÅÒÏÍ ÓÔÒÏËÉ × ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÍ ×ÉÄÅ, Á ÚÁ×ÅÒÛÁÅÔÓÑ ÓÉÍ×ÏÌØÎÙÍ -ÐÒÅÄÓÔÁ×ÌÅÎÉÅÍ (× ×ÉÄÅ ascii ÉÌÉ ebcdic). ëÌÀÞÉ \-r, \-p, \-i × ÜÔÏÍ ÒÅÖÉÍÅ -ÎÅ ÒÁÂÏÔÁÀÔ. -.TP -.IR "\-c ËÏÌ " | " \-cols ËÏÌ" -úÁÄÁ£Ô ËÏÌÉÞÅÓÔ×Ï ÏËÔÅÔÏ× -.RI < ËÏÌ >, -ËÏÔÏÒÏÅ ×Ù×ÏÄÉÔÓÑ ÎÁ ËÁÖÄÏÊ ÓÔÒÏËÅ. ðÏ ÕÍÏÌÞÁÎÉÀ ÉÓÐÏÌØÚÕÅÔÓÑ ÚÎÁÞÅÎÉÅ 16 -(\-i: 12, \-ps: 30, \-b: 6). -íÁËÓÉÍÁÌØÎÏ ÄÏÐÕÓÔÉÍÏÅ ÚÎÁÞÅÎÉÅ: 256. -.TP -.IR \-E " | " \-EBCDIC -éÚÍÅÎÑÅÔ ÓÐÏÓÏ ËÏÄÉÒÏ×ÁÎÉÑ ÓÉÍ×ÏÌÏ× × ÐÒÁ×ÏÊ ËÏÌÏÎËÅ Ó ASCII ÎÁ EBCDIC. üÔÏÔ ËÌÀÞ -ÎÅ ÉÚÍÅÎÑÅÔ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÅ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ. äÁÎÎÙÊ ËÌÀÞ ÎÅ ÉÍÅÅÔ ÓÍÙÓÌÁ, -ÅÓÌÉ ÉÓÐÏÌØÚÕÀÔÓÑ ËÌÀÞÉ \-r, \-p ÉÌÉ \-i. -.TP -.IR "\-g ÂÁÊÔ " | " \-groupsize ÂÁÊÔ" -ðÏÚ×ÏÌÑÅÔ ×ÙÐÏÌÎÑÔØ ÇÒÕÐÐÉÒÏ×ËÕ ÕËÁÚÁÎÎÏÇÏ ËÏÌÉÞÅÓÔ×Á -.RI < ÂÁÊÔÏ× > -(Ä×Å ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÅ ÃÉÆÒÙ ÉÌÉ ×ÏÓÅÍØ ÂÉÔÏ×), ÏÔÄÅÌÑÑ ÇÒÕÐÐÙ ÄÒÕÇ ÏÔ ÄÒÕÇÁ ÐÒÏÂÅÌÁÍÉ. -úÎÁÞÅÎÉÅ -.I \-g 0 -ÐÒÉÍÅÎÑÅÔÓÑ ÄÌÑ ÏÔËÁÚÁ ÏÔ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÇÒÕÐÐÉÒÏ×ËÉ. -ðÏ ÕÍÏÌÞÁÎÉÀ ÉÓÐÏÌØÚÕÅÔÓÑ ÚÎÁÞÅÎÉÅ -.RI < ÂÁÊÔ "> ÒÁ×ÎÏÅ " 2 -× ÏÂÙÞÎÏÍ ÒÅÖÉÍÅ É \fI1\fP × ÂÉÔÏ×ÏÍ ÒÅÖÉÍÅ. çÒÕÐÐÉÒÏ×ËÁ ÎÅ ÐÒÉÍÅÎÑÅÔÓÑ -× ÒÅÖÉÍÁÈ postscript É include. -.TP -.IR \-h " | " \-help -÷Ù×ÏÄÉÔ ÓÐÒÁ×ËÕ ÐÏ ÄÏÓÔÕÐÎÙÍ ËÌÀÞÁÍ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ É ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ ÐÒÏÇÒÁÍÍÙ. -óÏÚÄÁÎÉÅ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ ÎÅ ×ÙÐÏÌÎÑÅÔÓÑ. -.TP -.IR \-i " | " \-include -ðÏÚ×ÏÌÑÅÔ ÓÏÚÄÁ×ÁÔØ ×Ù×ÏÄ × ÓÔÉÌÅ ÐÏÄËÌÀÞÁÅÍÙÈ ÚÁÇÏÌÏ×ÏÞÎÙÈ ÆÁÊÌÏ× ÑÚÙËÁ C. -÷Ù×ÏÄ ÓÏÄÅÒÖÉÔ ÐÏÌÎÏÃÅÎÎÏÅ ÏÐÒÅÄÅÌÅÎÉÅ ÓÔÁÔÉÞÅÓËÏÇÏ ÍÁÓÓÉ×Á ÄÁÎÎÙÈ, ÉÍÑ ËÏÔÏÒÏÇÏ -ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÉÍÅÎÉ ×ÈÏÄÎÏÇÏ ÆÁÊÌÁ, ÅÓÌÉ xxd ÎÅ ÓÞÉÔÙ×ÁÅÔ ÄÁÎÎÙÅ ÉÚ ÐÏÔÏËÁ ÓÔÁÎÄÁÒÔÎÏÇÏ -××ÏÄÁ. -.TP -.IR "\-l ÄÌÉÎÁ " | " \-len ÄÌÉÎÁ" -úÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ ÐÏÓÌÅ ÚÁÐÉÓÉ ÚÁÄÁÎÎÏÇÏ × ÐÁÒÁÍÅÔÒÅ -.RI < ÄÌÉÎÁ > -ËÏÌÉÞÅÓÔ×Á ÏËÔÅÔÏ×. -.TP -.IR \-p " | " \-ps " | " \-postscript " | " \-plain -éÓÐÏÌØÚÕÅÔ ÎÅÐÒÅÒÙ×ÎÙÊ ÆÏÒÍÁÔ ×Ù×ÏÄÁ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ËÏÄÁ, -ÉÚ×ÅÓÔÎÙÊ ËÁË "ÐÒÏÓÔÏÊ" ÓÔÉÌØ ÉÌÉ ÓÔÉÌØ "postscript". -.TP -.IR \-r " | " \-revert -éÚÍÅÎÑÅÔ ÓÍÙÓÌ ÏÐÅÒÁÃÉÉ ÎÁ ÐÒÏÔÉ×ÏÐÏÌÏÖÎÙÊ: ÐÏÚ×ÏÌÑÅÔ ×ÙÐÏÌÎÑÔØ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÅ -ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ × ÂÉÎÁÒÎÙÊ ËÏÄ (ÉÌÉ ÐÒÉÍÅÎÑÔØ ÒÅÚÕÌØÔÁÔ × ËÁÞÅÓÔ×Å ÚÁÐÌÁÔÙ). -åÓÌÉ ×Ù×ÏÄ ÐÒÏÉÓÈÏÄÉÔ ÎÅ × ÐÏÔÏË ÓÔÁÎÄÁÒÔÎÏÇÏ ×Ù×ÏÄÁ, ÔÏ xxd ×ÙÐÏÌÎÑÅÔ ÄÏÂÁ×ÌÅÎÉÅ ËÏÄÁ -Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍÕ ÆÁÊÌÕ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ËÏÍÂÉÎÁÃÉÉ ËÌÀÞÅÊ -.I \-r \-p -ÐÒÏÉÓÈÏÄÉÔ ÞÔÅÎÉÅ "ÐÒÏÓÔÏÇÏ" ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ ÂÅÚ ÉÓÐÏÌØÚÏ×ÁÎÉÑ -ÉÎÆÏÒÍÁÃÉÉ Ï ÎÏÍÅÒÁÈ ÓÔÒÏË É ËÁËÏÇÏ-ÌÉÂÏ ÓÐÅÃÉÁÌØÎÏÇÏ ÒÁÓËÒÏÑ ËÏÌÏÎÏË. ðÒÏÂÅÌÙ -É ÓÉÍ×ÏÌÙ ÎÏ×ÏÊ ÓÔÒÏËÉ ÍÏÇÕÔ ×ÓÔÒÅÞÁÔØÓÑ × ÌÀÂÏÍ ÍÅÓÔÅ ÉÓÈÏÄÎÙÈ ÄÁÎÎÙÈ. -.TP -.I \-seek ÓÍÅÝÅÎÉÅ -ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÐÏÓÌÅ ËÌÀÞÁ -.I \-r -: ÄÏÂÁ×ÌÑÔØ ÕËÁÚÁÎÎÏÅ -.RI < ÓÍÅÝÅÎÉÅ > -Ë ÆÁÊÌÏ×ÙÍ ÐÏÚÉÃÉÑÍ, ÏÂÎÁÒÕÖÅÎÎÙÍ × ÉÓÈÏÄÎÙÈ ÄÁÎÎÙÈ. -.TP -.I \-s [\+][\-]seek -îÁÞÉÎÁÅÔ ÒÁÂÏÔÕ Ó ÕËÁÚÁÎÎÏÇÏ ÁÂÓÏÌÀÔÎÏÇÏ (ÉÌÉ ÏÔÎÏÓÉÔÅÌØÎÏÇÏ) -.RI < ÓÍÅÝÅÎÉÑ > -× ÂÁÊÔÁÈ ×Ï ×ÈÏÄÎÏÍ_ÆÁÊÌÅ. -\fI\+ \fRÕËÁÚÙ×ÁÅÔ, ÞÔÏ ÓÍÅÝÅÎÉÅ Ñ×ÌÑÅÔÓÑ ÏÔÎÏÓÉÔÅÌØÎÙÍ ÐÏ ÏÔÎÏÛÅÎÉÀ -Ë ÔÅËÕÝÅÊ ÆÁÊÌÏ×ÏÊ ÐÏÚÉÃÉÉ × ÐÏÔÏËÅ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ (ÂÅÓÓÍÙÓÌÅÎÎÏ, ÅÓÌÉ ÞÔÅÎÉÅ -ÐÒÏÉÓÈÏÄÉÔ ÎÅ ÉÚ ÐÏÔÏËÁ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ). \fI\- \fRÕËÁÚÙ×ÁÅÔ, ÞÔÏ ÄÏÌÖÎÏ ÂÙÔØ ÐÒÏÞÉÔÁÎÏ -ÕËÁÚÁÎÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÓÉÍ×ÏÌÏ× ÏÔ ËÏÎÃÁ ××ÏÄÁ (ÌÉÂÏ, ÅÓÌÉ ÓÏÞÅÔÁÅÔÓÑ Ó \fI \+ \fR: -ÐÅÒÅÄ ÔÅËÕÝÅÊ ÐÏÚÉÃÉÉ ÆÁÊÌÁ × ÐÏÔÏËÅ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ). -åÓÌÉ ËÌÀÞ \-s ÎÅ ÉÓÐÏÌØÚÕÅÔÓÑ, ÔÏ xxd ÎÁÞÉÎÁÅÔ ÒÁÂÏÔÕ ÏÔ ÔÅËÕÝÅÊ ÐÏÚÉÃÉÉ × ÆÁÊÌÅ. -.TP -.I \-u -éÓÐÏÌØÚÕÅÔ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÅ ÃÉÆÒÙ × ×ÅÒÈÎÅÍ ÒÅÇÉÓÔÒÅ. ðÏ ÕÍÏÌÞÁÎÉÀ ÉÓÐÏÌØÚÕÀÔÓÑ ÃÉÆÒÙ × -ÎÉÖÎÅÍ ÒÅÇÉÓÔÒÅ ÓÉÍ×ÏÌÏ×. -.TP -.IR \-v " | " \-version -ïÔÏÂÒÁÖÁÅÔ ÉÎÆÏÒÍÁÃÉÀ Ï ×ÅÒÓÉÉ ÐÒÏÇÒÁÍÍÙ. -.SH ðïä÷ïäîùå ëáíîé -.PP -.I xxd \-r -ÏÂÌÁÄÁÅÔ ×ÓÔÒÏÅÎÎÙÍ ÉÎÔÅÌÌÅËÔÏÍ ÄÌÑ ÒÁÓÐÏÚÎÁ×ÁÎÉÑ ÉÎÆÏÒÍÁÃÉÉ Ï ÎÏÍÅÒÁÈ ÓÔÒÏË. -åÓÌÉ ×ÏÚÍÏÖÅÎ ÐÏÉÓË ÐÏ ×ÈÏÄÎÏÍÕ ÆÁÊÌÕ, ÔÏ ÎÏÍÅÒÁ ÓÔÒÏË × ÎÁÞÁÌÅ ËÁÖÄÏÊ ÓÔÒÏËÉ -ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ ÍÏÇÕÔ ÂÙÔØ ÎÅÕÐÏÒÑÄÏÞÅÎÎÙÍÉ, ÎÅËÏÔÏÒÙÅ ÓÔÒÏËÉ ÍÏÇÕÔ -ÂÙÔØ ÐÒÏÐÕÝÅÎÙ ÉÌÉ ÐÅÒÅÓÅËÁÔØÓÑ ÄÒÕÇ Ó ÄÒÕÇÏÍ. ÷ ÜÔÉÈ ÓÌÕÞÁÑÈ xxd ÉÓÐÏÌØÚÕÅÔ -lseek(2) ÄÌÑ ÐÅÒÅÈÏÄÁ Ë ÓÌÅÄÕÀÝÅÊ ÐÏÚÉÃÉÉ. åÓÌÉ ÐÏÉÓË ÐÏ ×ÈÏÄÎÏÍÕ ÆÁÊÌÕ -ÎÅ×ÏÚÍÏÖÅÎ, ÔÏ ÄÏÐÕÓÔÉÍÙ ÔÏÌØËÏ ÐÒÏÐÕÓËÉ ÓÔÒÏË, ËÏÔÏÒÙÅ ÚÁÐÏÌÎÑÀÔÓÑ ÎÕÌÅ×ÙÍÉ -ÂÁÊÔÁÍÉ. -.PP -.I xxd \-r -ÎÉËÏÇÄÁ ÎÅ ×Ù×ÏÄÉÔ ÓÏÏÂÝÅÎÉÊ Ï ÏÛÉÂËÁÈ. íÕÓÏÒ ÐÒÏÐÕÓËÁÅÔÓÑ ÍÏÌÞÁ. -.PP -ðÒÉ ÒÅÄÁËÔÉÒÏ×ÁÎÉÉ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÈ ÐÒÅÄÓÔÁ×ÌÅÎÉÊ ÂÉÎÁÒÎÙÈ ÆÁÊÌÏ× ÏÂÒÁÝÁÊÔÅ -×ÎÉÍÁÎÉÅ, ÞÔÏ -.I xxd \-r -ÐÒÏÐÕÓËÁÅÔ × ÓÔÒÏËÅ ××ÏÄÁ ÌÀÂÙÅ ÄÁÎÎÙÅ ÐÏÓÌÅ ÐÒÏÞÔÅÎÉÑ ÄÏÓÔÁÔÏÞÎÏÇÏ ËÏÌÉÞÅÓÔ×Á -ËÏÌÏÎÏË ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÈ ÄÁÎÎÙÈ (ÓÍ. ËÌÀÞ \-c). üÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ ÉÚÍÅÎÅÎÉÑ, -×ÎÅÓÅÎÎÙÅ × ËÏÌÏÎËÉ Ó ÐÅÞÁÔÎÙÍÉ ÓÉÍ×ÏÌÁÍÉ ascii (ÉÌÉ ebcdic), ×ÓÅÇÄÁ ÉÇÎÏÒÉÒÕÀÔÓÑ. -ðÒÉ ÏÂÒÁÔÎÏÍ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÉ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ × ÓÔÉÌÅ -postscript Ó ÐÏÍÏÝØÀ ËÏÍÁÎÄÙ xxd \-r \-p ËÏÌÉÞÅÓÔ×Ï ËÏÌÏÎÏË ÎÅ ÕÞÉÔÙ×ÁÅÔÓÑ. -÷ ÜÔÏÍ ÓÌÕÞÁÅ ÒÁÓÐÏÚÎÁÀÔÓÑ ×ÓÅ ÓÉÍ×ÏÌÙ, ËÏÔÏÒÙÅ ÐÏÈÏÖÉ ÎÁ ÐÁÒÙ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÙÈ ÃÉÆÒ. -.PP -ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÒÁÚÌÉÞÉÅ ÍÅÖÄÕ ËÏÍÁÎÄÁÍÉ -.PP -\fI% xxd \-i ÆÁÊÌ\fR -.PP -É -.PP -\fI% xxd \-i \< ÆÁÊÌ\fR -.PP -ëÏÍÁÎÄÁ -.I xxd \-s \+seek -ÍÏÖÅÔ ÏÔÌÉÞÁÔØÓÑ ÏÔ -.I xxd \-s seek, -ÐÏÓËÏÌØËÕ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ "ÏÔÍÏÔÁÔØ" ÄÁÎÎÙÅ ÎÁ ×ÈÏÄÅ ÎÁÚÁÄ, ÉÓÐÏÌØÚÕÅÔÓÑ ×ÙÚÏ× lseek(2). -ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ `+' ÐÏ×ÅÄÅÎÉÅ ÂÕÄÅÔ ÏÔÌÉÞÁÔØÓÑ, ÅÓÌÉ ×ÈÏÄÎÙÅ ÄÁÎÎÙÅ -ÐÏÓÔÕÐÁÀÔ Ó ÐÏÔÏËÁ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ, Á ÐÏÚÉÃÉÑ × ÆÁÊÌÅ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ ÎÅ ÎÁÈÏÄÉÔÓÑ -× ÎÁÞÁÌÅ ÆÁÊÌÁ Ë ÔÏÍÕ ÍÏÍÅÎÔÕ, ËÏÇÄÁ ÐÒÏÇÒÁÍÍÁ xxd ÚÁÐÕÝÅÎÁ É ÐÒÉÓÔÕÐÁÅÔ Ë ÞÔÅÎÉÀ ××ÏÄÁ. -îÉÖÅÓÌÅÄÕÀÝÉÅ ÐÒÉÍÅÒÙ ÐÏÍÏÇÕÔ ÐÒÏÑÓÎÉÔØ (ÉÌÉ ÅÝ£ ÂÏÌØÛÅ ÚÁÐÕÔÁÔØ!) ÓÉÔÕÁÃÉÀ... -.PP -ïÔÍÏÔËÁ ÎÁÚÁÄ ÐÏÔÏËÁ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ; ÎÅÏÂÈÏÄÉÍÏ, ÐÏÓËÏÌØËÕ 'cat' ÕÖÅ ×ÙÐÏÌÎÉÌÁ -ÞÔÅÎÉÅ ÄÏ ËÏÎÃÁ ÐÏÔÏËÁ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ: -.PP -\fI% sh \-c 'cat > plain_copy; xxd \-s 0 > hex_copy' < file -.PP -÷Ù×ÏÄ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ ÏÔ ÐÏÚÉÃÉÉ × ÆÁÊÌÅ 0x480 -(= 1024+128). -óÉÍ×ÏÌ `+' ÏÚÎÁÞÁÅÔ "ÏÔÎÏÓÉÔÅÌØÎÏ ÔÅËÕÝÅÊ ÐÏÚÉÃÉÉ", ÔÁËÉÍ ÏÂÒÁÚÏÍ `128' ÄÏÂÁ×ÌÑÅÔÓÑ -Ë ÐÅÒ×ÏÍÕ ËÉÌÏÂÁÊÔÕ, ÇÄÅ ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ dd: -.PP -\fI% sh \-c 'dd of=plain_snippet bs=1k count=1; xxd \-s +128 > hex_snippet' < file -.PP -÷Ù×ÏÄ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ ÏÔ ÐÏÚÉÃÉÉ × ÆÁÊÌÅ 0x100 -(= 1024-768): -.PP -\fI% sh \-c 'dd of=plain_snippet bs=1k count=1; xxd \-s +-768 > hex_snippet' < file -.PP -÷ ÔÏ ÖÅ ×ÒÅÍÑ, ÓÌÅÄÕÅÔ ÚÁÍÅÔÉÔØ, ÞÔÏ ÐÏÄÏÂÎÙÅ ÓÉÔÕÁÃÉÉ ×ÓÔÒÅÞÁÀÔÓÑ ÄÏ×ÏÌØÎÏ ÒÅÄËÏ, -ÔÁË ÞÔÏ ÓÉÍ×ÏÌ `+' ÏÂÙÞÎÏ ÎÅ ÉÓÐÏÌØÚÕÅÔÓÑ. á×ÔÏÒ ÐÒÅÄÐÏÞÉÔÁÅÔ ÎÁÂÌÀÄÁÔØ ÚÁ ÒÁÂÏÔÏÊ -xxd Ó ÐÏÍÏÝØÀ strace(1) ÉÌÉ truss(1) × ÔÅÈ ÓÌÕÞÁÑÈ, ËÏÇÄÁ ÐÒÉÍÅÎÑÅÔÓÑ ËÌÀÞ -\-s. -.SH ðòéíåòù -.PP -.br -÷Ù×ÅÓÔÉ ×Ó£, ËÒÏÍÅ ÐÅÒ×ÙÈ ÔÒ£È ÓÔÒÏË (0x30 ÂÁÊÔÏ×) ÆÁÊÌÁ -.B file -: -.PP -\fI% xxd \-s 0x30 file -.PP -.br -÷Ù×ÅÓÔÉ ÔÒÉ ÓÔÒÏËÉ (0x30 ÂÁÊÔÏ×) ÏÔ ËÏÎÃÁ ÆÁÊÌÁ -.B file -: -.PP -\fI% xxd \-s \-0x30 file -.PP -.br -÷Ù×ÅÓÔÉ 120 ÂÁÊÔÏ× × ×ÉÄÅ ÎÅÐÒÅÒÙ×ÎÏÇÏ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ -ÐÏ 20 ÏËÔÅÔÏ× × ÓÔÒÏËÅ: -.PP -\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR -.br -2e544820585844203120224d616e75616c207061 -.br -676520666f7220787864220a2e5c220a2e5c2220 -.br -32317374204d617920313939360a2e5c22204d61 -.br -6e207061676520617574686f723a0a2e5c222020 -.br -2020546f6e79204e7567656e74203c746f6e7940 -.br -7363746e7567656e2e7070702e67752e6564752e -.br -.PP -.br -÷Ù×ÅÓÔÉ ÐÅÒ×ÙÅ 120 ÂÁÊÔÏ× ÜÔÏÊ ÓÔÒÁÎÉÃÙ ÓÐÒÁ×ÏÞÎÉËÁ ÐÏ 12 ÏËÔÅÔÏ× × ÓÔÒÏËÅ: -.PP -\fI% xxd \-l 120 \-c 12 xxd.1\fR -.br -0000000: 2e54 4820 5858 4420 3120 224d .TH XXD 1 "M -.br -000000c: 616e 7561 6c20 7061 6765 2066 anual page f -.br -0000018: 6f72 2078 7864 220a 2e5c 220a or xxd"..\\". -.br -0000024: 2e5c 2220 3231 7374 204d 6179 .\\" 21st May -.br -0000030: 2031 3939 360a 2e5c 2220 4d61 1996..\\" Ma -.br -000003c: 6e20 7061 6765 2061 7574 686f n page autho -.br -0000048: 723a 0a2e 5c22 2020 2020 546f r:..\\" To -.br -0000054: 6e79 204e 7567 656e 7420 3c74 ny Nugent <t -.br -0000060: 6f6e 7940 7363 746e 7567 656e ony@sctnugen -.br -000006c: 2e70 7070 2e67 752e 6564 752e .ppp.gu.edu. -.PP -.br -ðÏËÁÚÁÔØ ÄÁÔÕ ÉÚ ÆÁÊÌÁ xxd.1: -.PP -\fI% xxd \-s 0x28 \-l 12 \-c 12 xxd.1\fR -.br -0000028: 3231 7374 204d 6179 2031 3939 21st May 199 -.PP -.br -óËÏÐÉÒÏ×ÁÔØ -.B ×ÈÏÄÎÏÊ_ÆÁÊÌ -× -.B ×ÙÈÏÄÎÏÊ_ÆÁÊÌ -Ó ÄÏÂÁ×ÌÅÎÉÅÍ 100 ÂÁÊÔÏ× ÓÏ ÚÎÁÞÅÎÉÅÍ 0x00 × ÎÁÞÁÌÏ ÆÁÊÌÁ: -.PP -\fI% xxd ×ÈÏÄÎÏÊ_ÆÁÊÌ | xxd \-r \-s 100 \> ×ÙÈÏÄÎÏÊ_ÆÁÊÌ\fR -.br -.PP -.br -úÁÍÅÎÉÔØ ÄÁÔÕ × ÆÁÊÌÅ xxd.1: -.PP -\fI% echo '0000029: 3574 68' | xxd \-r \- xxd.1\fR -.br -\fI% xxd \-s 0x28 \-l 12 \-c 12 xxd.1\fR -.br -0000028: 3235 7468 204d 6179 2031 3939 25th May 199 -.PP -.br -óÏÚÄÁÔØ 65537-ÂÁÊÔÎÙÊ ÆÁÊÌ, ×ÓÅ ÂÁÊÔÙ ËÏÔÏÒÏÇÏ ÉÍÅÀÔ ÚÎÁÞÅÎÉÅ -0x00, ËÒÏÍÅ ÐÏÓÌÅÄÎÅÇÏ ÂÁÊÔÁ, ËÏÔÏÒÙÊ ÄÏÌÖÅÎ ÉÍÅÔØ ÚÎÁÞÅÎÉÅ 'A' -(0x41): -.PP -\fI% echo '010000: 41' | xxd \-r \> file\fR -.PP -.br -óÏÚÄÁÔØ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÅ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ ÜÔÏÇÏ ÆÁÊÌÁ Ó -ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ Á×ÔÏÍÁÔÉÞÅÓËÏÇÏ ÐÒÏÐÕÓËÁ: -.PP -\fI% xxd \-a \-c 12 file\fR -.br -0000000: 0000 0000 0000 0000 0000 0000 ............ -.br -* -.br -000fffc: 0000 0000 40 ....A -.PP -óÏÚÄÁÔØ 1-ÂÁÊÔÎÙÊ ÆÁÊÌ, ÓÏÄÅÒÖÁÝÉÊ ÓÉÍ×ÏÌ 'A'. -þÉÓÌÏ ÐÏÓÌÅ '\-r \-s' ÄÏÂÁ×ÌÑÅÔÓÑ Ë ÎÏÍÅÒÁÍ ÓÔÒÏË, ÎÁÊÄÅÎÎÙÍ × ÆÁÊÌÅ; -ÉÎÁÞÅ ÇÏ×ÏÒÑ, ÐÒÅÄÛÅÓÔ×ÕÀÝÉÅ ÂÁÊÔÙ ÐÒÏÐÕÓËÁÀÔÓÑ: -.PP -\fI% echo '010000: 41' | xxd \-r \-s \-0x10000 \> file\fR -.PP -xxd ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ × ËÁÞÅÓÔ×Å ÆÉÌØÔÒÁ × ÒÅÄÁËÔÏÒÅ, ÎÁÐÒÉÍÅÒ × -.B vim(1), -ÞÔÏÂÙ ÓÏÚÄÁÔØ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÅ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ ÏÂÌÁÓÔÉ ÍÅÖÄÕ -ÏÔÍÅÔËÁÍÉ `a' É `z': -.PP -\fI:'a,'z!xxd\fR -.PP -÷Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ xxd × ËÁÞÅÓÔ×Å ÆÉÌØÔÒÁ × ÒÅÄÁËÔÏÒÅ, ÎÁÐÒÉÍÅÒ × -.B vim(1), -ÄÌÑ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÄÁÎÎÙÈ ÉÚ ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ -ÍÅÖÄÕ ÏÔÍÅÔËÁÍÉ `a' É `z': -.PP -\fI:'a,'z!xxd \-r\fR -.PP -÷Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ xxd × ËÁÞÅÓÔ×Å ÆÉÌØÔÒÁ × ÒÅÄÁËÔÏÒÅ, ÎÁÐÒÉÍÅÒ × -.B vim(1), -ÄÌÑ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÄÁÎÎÙÈ ÉÚ ÅÄÉÎÓÔ×ÅÎÎÏÊ ÓÔÒÏËÉ -ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÏÇÏ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ. ðÏÍÅÓÔÉÔÅ ËÕÒÓÏÒ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÕÀ ÓÔÒÏËÕ -É ÎÁÂÅÒÉÔÅ -.PP -\fI!!xxd \-r\fR -.PP -þÔÏÂÙ ÐÒÏÞÉÔÁÔØ ÅÄÉÎÓÔ×ÅÎÎÙÊ ÓÉÍ×ÏÌ ÉÚ ËÁÎÁÌÁ Ó×ÑÚÉ: -.PP -\fI% xxd \-c1 < /dev/term/b &\fR -.br -\fI% stty < /dev/term/b \-echo \-opost \-isig \-icanon min 1\fR -.br -\fI% echo \-n foo > /dev/term/b\fR -.PP -.SH ÷ïú÷òáýáåíùå úîáþåîéñ -ðÒÏÇÒÁÍÍÁ xxd ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ ÓÏ ÓÌÅÄÕÀÝÉÍÉ ÚÎÁÞÅÎÉÑÍÉ: -.TP -0 -ïÛÉÂËÉ ÎÅ ÏÂÎÁÒÕÖÅÎÙ. -.TP -\-1 -ïÐÅÒÁÃÉÑ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ (×ÙÐÏÌÎÅÎÉÅ -.I xxd \-r \-i -ÐÏËÁ ÎÅ×ÏÚÍÏÖÎÏ). -.TP -1 -ïÛÉÂËÁ ÐÒÉ ÒÁÚÂÏÒÅ ËÌÀÞÅÊ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ. -.TP -2 -ðÒÏÂÌÅÍÙ ×Ï ×ÈÏÄÎÏÍ ÆÁÊÌÅ. -.TP -3 -ðÒÏÂÌÅÍÙ × ×ÙÈÏÄÎÏÍ ÆÁÊÌÅ. -.TP -4,5 -öÅÌÁÔÅÌØÎÁÑ ÐÏÚÉÃÉÑ ÐÏÉÓËÁ ÎÅÄÏÓÔÉÖÉÍÁ. -.SH óíïôòé ôáëöå -uuencode(1), uudecode(1), patch(1) -.br -.SH ðòåäõðòåöäåîéå -óÔÒÁÎÎÏÓÔØ ÜÔÏÊ ÐÒÏÇÒÁÍÍÙ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÏÓÏÂÅÎÎÏÓÔÑÍ ÍÏÚÇÁ Å£ ÓÏÚÄÁÔÅÌÑ. -éÓÐÏÌØÚÕÊÔŠţ ÎÁ Ó×ÏÊ ÓÔÒÁÈ É ÒÉÓË. ëÏÐÉÒÕÊÔÅ ÆÁÊÌÙ, ÏÔÓÌÅÖÉ×ÁÊÔÅ -×ÙÚÏ×Ù, ÓÔÁÎÏ×ÉÔÅÓØ ×ÏÌÛÅÂÎÉËÏÍ. -.br -.SH ÷åòóéñ -üÔÁ ÓÔÒÁÎÉÃÁ ÓÐÒÁ×ÏÞÎÉËÁ ÄÏËÕÍÅÎÔÉÒÕÅÔ xxd ×ÅÒÓÉÉ 1.7. -.SH á÷ôïò -.br -(c) 1990-1997 àÒÇÅÎ ÷ÁÊÇÅÒÔ (Juergen Weigert) -.br -<jnweiger@informatik.uni-erlangen.de> -.LP -÷Ù ÍÏÖÅÔÅ Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÔØ ÐÒÏÇÒÁÍÍÕ ÓÏ ÓÓÙÌËÏÊ ÎÁ ÍÅÎÑ. -.br -åÓÌÉ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÜÔÏÊ ÐÒÏÇÒÁÍÍÙ ÐÒÉÎÅÓÌÏ ×ÁÍ ËÁËÏÊ-ÔÏ ÄÏÈÏÄ, -ÐÏÄÅÌÉÔÅÓØ ÓÏ ÍÎÏÊ. -.br -åÓÌÉ ×Ù ÐÏÔÅÒÑÌÉ ÄÅÎØÇÉ, ÔÏ Ñ ÔÕÔ ÎÅ ÐÒÉÞ£Í. -.PP -ðÅÒ×ÙÊ ×ÁÒÉÁÎÔ ÓÔÒÁÎÉÃÙ ÓÐÒÁ×ÏÞÎÉËÁ ÎÁÐÉÓÁÎ ôÏÎÉ îÁÄÖÅÎÔÏÍ (Tony Nugent) -.br -<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> -.br -îÅÂÏÌØÛÉÅ ÉÚÍÅÎÅÎÉÑ ×ÎÅÓÅÎÙ âÒÁÍÏÍ íÏÏÌÅÎÁÁÒÏÍ (Bram Moolenaar). -óÔÒÁÎÉÃÁ ÏÔÒÅÄÁËÔÉÒÏ×ÁÎÁ àÒÇÅÎÏÍ ÷ÁÊÇÅÒÔÏÍ (Juergen Weigert). -.PP diff --git a/runtime/doc/xxd.man b/runtime/doc/xxd.man deleted file mode 100644 index 057c8e911b..0000000000 --- a/runtime/doc/xxd.man +++ /dev/null @@ -1,262 +0,0 @@ -XXD(1) XXD(1) - - - -NAME - xxd - make a hexdump or do the reverse. - -SYNOPSIS - xxd -h[elp] - xxd [options] [infile [outfile]] - xxd -r[evert] [options] [infile [outfile]] - -DESCRIPTION - xxd creates a hex dump of a given file or standard input. It can also - convert a hex dump back to its original binary form. Like uuencode(1) - and uudecode(1) it allows the transmission of binary data in a `mail- - safe' ASCII representation, but has the advantage of decoding to stan- - dard output. Moreover, it can be used to perform binary file patching. - -OPTIONS - If no infile is given, standard input is read. If infile is specified - as a `-' character, then input is taken from standard input. If no - outfile is given (or a `-' character is in its place), results are sent - to standard output. - - Note that a "lazy" parser is used which does not check for more than - the first option letter, unless the option is followed by a parameter. - Spaces between a single option letter and its parameter are optional. - Parameters to options can be specified in decimal, hexadecimal or octal - notation. Thus -c8, -c 8, -c 010 and -cols 8 are all equivalent. - - - -a | -autoskip - toggle autoskip: A single '*' replaces nul-lines. Default off. - - -b | -bits - Switch to bits (binary digits) dump, rather than hexdump. This - option writes octets as eight digits "1"s and "0"s instead of a - normal hexadecimal dump. Each line is preceded by a line number - in hexadecimal and followed by an ascii (or ebcdic) representa- - tion. The command line switches -r, -p, -i do not work with this - mode. - - -c cols | -cols cols - format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: - 6). Max 256. - - -E | -EBCDIC - Change the character encoding in the righthand column from ASCII - to EBCDIC. This does not change the hexadecimal representation. - The option is meaningless in combinations with -r, -p or -i. - - -g bytes | -groupsize bytes - separate the output of every <bytes> bytes (two hex characters - or eight bit-digits each) by a whitespace. Specify -g 0 to sup- - press grouping. <Bytes> defaults to 2 in normal mode and 1 in - bits mode. Grouping does not apply to postscript or include - style. - - -h | -help - print a summary of available commands and exit. No hex dumping - is performed. - - -i | -include - output in C include file style. A complete static array defini- - tion is written (named after the input file), unless xxd reads - from stdin. - - -l len | -len len - stop after writing <len> octets. - - -p | -ps | -postscript | -plain - output in postscript continuous hexdump style. Also known as - plain hexdump style. - - -r | -revert - reverse operation: convert (or patch) hexdump into binary. If - not writing to stdout, xxd writes into its output file without - truncating it. Use the combination -r -p to read plain hexadeci- - mal dumps without line number information and without a particu- - lar column layout. Additional Whitespace and line-breaks are - allowed anywhere. - - -seek offset - When used after -r: revert with <offset> added to file positions - found in hexdump. - - -s [+][-]seek - start at <seek> bytes abs. (or rel.) infile offset. + indicates - that the seek is relative to the current stdin file position - (meaningless when not reading from stdin). - indicates that the - seek should be that many characters from the end of the input - (or if combined with +: before the current stdin file position). - Without -s option, xxd starts at the current file position. - - -u use upper case hex letters. Default is lower case. - - -v | -version - show version string. - -CAVEATS - xxd -r has some builtin magic while evaluating line number information. - If the output file is seekable, then the linenumbers at the start of - each hexdump line may be out of order, lines may be missing, or over- - lapping. In these cases xxd will lseek(2) to the next position. If the - output file is not seekable, only gaps are allowed, which will be - filled by null-bytes. - - xxd -r never generates parse errors. Garbage is silently skipped. - - When editing hexdumps, please note that xxd -r skips everything on the - input line after reading enough columns of hexadecimal data (see option - -c). This also means, that changes to the printable ascii (or ebcdic) - columns are always ignored. Reverting a plain (or postscript) style - hexdump with xxd -r -p does not depend on the correct number of col- - umns. Here anything that looks like a pair of hex-digits is inter- - preted. - - Note the difference between - % xxd -i file - and - % xxd -i < file - - xxd -s +seek may be different from xxd -s seek, as lseek(2) is used to - "rewind" input. A '+' makes a difference if the input source is stdin, - and if stdin's file position is not at the start of the file by the - time xxd is started and given its input. The following examples may - help to clarify (or further confuse!)... - - Rewind stdin before reading; needed because the `cat' has already read - to the end of stdin. - % sh -c "cat > plain_copy; xxd -s 0 > hex_copy" < file - - Hexdump from file position 0x480 (=1024+128) onwards. The `+' sign - means "relative to the current position", thus the `128' adds to the 1k - where dd left off. - % sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +128 > hex_snippet" - < file - - Hexdump from file position 0x100 ( = 1024-768) on. - % sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +-768 > hex_snippet" - < file - - However, this is a rare situation and the use of `+' is rarely needed. - The author prefers to monitor the effect of xxd with strace(1) or - truss(1), whenever -s is used. - -EXAMPLES - Print everything but the first three lines (hex 0x30 bytes) of file. - % xxd -s 0x30 file - - Print 3 lines (hex 0x30 bytes) from the end of file. - % xxd -s -0x30 file - - Print 120 bytes as continuous hexdump with 20 octets per line. - % xxd -l 120 -ps -c 20 xxd.1 - 2e54482058584420312022417567757374203139 - 39362220224d616e75616c207061676520666f72 - 20787864220a2e5c220a2e5c222032317374204d - 617920313939360a2e5c22204d616e2070616765 - 20617574686f723a0a2e5c2220202020546f6e79 - 204e7567656e74203c746f6e79407363746e7567 - - Hexdump the first 120 bytes of this man page with 12 octets per line. - % xxd -l 120 -c 12 xxd.1 - 0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A - 000000c: 7567 7573 7420 3139 3936 2220 ugust 1996" - 0000018: 224d 616e 7561 6c20 7061 6765 "Manual page - 0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\ - 0000030: 220a 2e5c 2220 3231 7374 204d "..\" 21st M - 000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\" - 0000048: 4d61 6e20 7061 6765 2061 7574 Man page aut - 0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\" - 0000060: 546f 6e79 204e 7567 656e 7420 Tony Nugent - 000006c: 3c74 6f6e 7940 7363 746e 7567 <tony@sctnug - - Display just the date from the file xxd.1 - % xxd -s 0x36 -l 13 -c 13 xxd.1 - 0000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996 - - Copy input_file to output_file and prepend 100 bytes of value 0x00. - % xxd input_file | xxd -r -s 100 > output_file - - Patch the date in the file xxd.1 - % echo "0000037: 3574 68" | xxd -r - xxd.1 - % xxd -s 0x36 -l 13 -c 13 xxd.1 - 0000036: 3235 7468 204d 6179 2031 3939 36 25th May 1996 - - Create a 65537 byte file with all bytes 0x00, except for the last one - which is 'A' (hex 0x41). - % echo "010000: 41" | xxd -r > file - - Hexdump this file with autoskip. - % xxd -a -c 12 file - 0000000: 0000 0000 0000 0000 0000 0000 ............ - * - 000fffc: 0000 0000 40 ....A - - Create a 1 byte file containing a single 'A' character. The number - after '-r -s' adds to the linenumbers found in the file; in effect, the - leading bytes are suppressed. - % echo "010000: 41" | xxd -r -s -0x10000 > file - - Use xxd as a filter within an editor such as vim(1) to hexdump a region - marked between `a' and `z'. - :'a,'z!xxd - - Use xxd as a filter within an editor such as vim(1) to recover a binary - hexdump marked between `a' and `z'. - :'a,'z!xxd -r - - Use xxd as a filter within an editor such as vim(1) to recover one line - of a hexdump. Move the cursor over the line and type: - !!xxd -r - - Read single characters from a serial line - % xxd -c1 < /dev/term/b & - % stty < /dev/term/b -echo -opost -isig -icanon min 1 - % echo -n foo > /dev/term/b - - -RETURN VALUES - The following error values are returned: - - 0 no errors encountered. - - -1 operation not supported ( xxd -r -i still impossible). - - 1 error while parsing options. - - 2 problems with input file. - - 3 problems with output file. - - 4,5 desired seek position is unreachable. - -SEE ALSO - uuencode(1), uudecode(1), patch(1) - -WARNINGS - The tools weirdness matches its creators brain. Use entirely at your - own risk. Copy files. Trace it. Become a wizard. - -VERSION - This manual page documents xxd version 1.7 - -AUTHOR - (c) 1990-1997 by Juergen Weigert - <jnweiger@informatik.uni-erlangen.de> - - Distribute freely and credit me, - make money and share with me, - lose money and don't ask me. - - Manual page started by Tony Nugent - <tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> - Small changes by Bram Moolenaar. Edited by Juergen Weigert. - - - - -Manual page for xxd August 1996 XXD(1) diff --git a/runtime/indent/lifelines.vim b/runtime/indent/lifelines.vim index 0d9b2b46e4..0d9b2b46e4 100755..100644 --- a/runtime/indent/lifelines.vim +++ b/runtime/indent/lifelines.vim diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 83de3347bd..208df31596 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -174,7 +174,7 @@ if(NOT DEFINED ENV{SKIP_EXEC}) add_executable(nvim ${NEOVIM_GENERATED_SOURCES} ${NEOVIM_SOURCES} ${NEOVIM_HEADERS}) target_link_libraries(nvim ${NVIM_LINK_LIBRARIES}) - install(TARGETS nvim RUNTIME DESTINATION bin) + install_helper(TARGETS nvim) endif() if(NOT DEFINED ENV{SKIP_UNITTEST}) diff --git a/src/nvim/api/tabpage.c b/src/nvim/api/tabpage.c index 72168d936a..3e5d00671a 100644 --- a/src/nvim/api/tabpage.c +++ b/src/nvim/api/tabpage.c @@ -7,6 +7,7 @@ #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/memory.h" +#include "nvim/window.h" /// Gets the number of windows in a tabpage /// @@ -18,27 +19,18 @@ ArrayOf(Window) tabpage_get_windows(Tabpage tabpage, Error *err) Array rv = ARRAY_DICT_INIT; tabpage_T *tab = find_tab_by_handle(tabpage, err); - if (!tab) { + if (!tab || !valid_tabpage(tab)) { return rv; } - tabpage_T *tp; - win_T *wp; - - FOR_ALL_TAB_WINDOWS(tp, wp) { - if (tp != tab) { - break; - } + FOR_ALL_WINDOWS_IN_TAB(wp, tab) { rv.size++; } rv.items = xmalloc(sizeof(Object) * rv.size); size_t i = 0; - FOR_ALL_TAB_WINDOWS(tp, wp) { - if (tp != tab) { - break; - } + FOR_ALL_WINDOWS_IN_TAB(wp, tab) { rv.items[i++] = WINDOW_OBJ(wp->handle); } @@ -90,18 +82,15 @@ Window tabpage_get_window(Tabpage tabpage, Error *err) Window rv = 0; tabpage_T *tab = find_tab_by_handle(tabpage, err); - if (!tab) { + if (!tab || !valid_tabpage(tab)) { return rv; } if (tab == curtab) { return vim_get_current_window(); } else { - tabpage_T *tp; - win_T *wp; - - FOR_ALL_TAB_WINDOWS(tp, wp) { - if (tp == tab && wp == tab->tp_curwin) { + FOR_ALL_WINDOWS_IN_TAB(wp, tab) { + if (wp == tab->tp_curwin) { return wp->handle; } } diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 93aa0439f0..5e0f3e0c32 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -380,8 +380,6 @@ void vim_set_current_buffer(Buffer buffer, Error *err) ArrayOf(Window) vim_get_windows(void) { Array rv = ARRAY_DICT_INIT; - tabpage_T *tp; - win_T *wp; FOR_ALL_TAB_WINDOWS(tp, wp) { rv.size++; diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 11171617ef..4eff8df9f5 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -514,13 +514,9 @@ void buf_freeall(buf_T *buf, int flags) reset_synblock(curwin); /* No folds in an empty buffer. */ - { - win_T *win; - tabpage_T *tp; - - FOR_ALL_TAB_WINDOWS(tp, win) { - if (win->w_buffer == buf) - clearFolding(win); + FOR_ALL_TAB_WINDOWS(tp, win) { + if (win->w_buffer == buf) { + clearFolding(win); } } @@ -4206,8 +4202,6 @@ int read_viminfo_bufferlist(vir_T *virp, int writing) void write_viminfo_bufferlist(FILE *fp) { - win_T *win; - tabpage_T *tp; char_u *line; int max_buffers; @@ -4284,8 +4278,12 @@ char_u *buf_spname(buf_T *buf) */ bool find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp) { - FOR_ALL_TAB_WINDOWS(*tp, *wp) { - if ((*wp)->w_buffer == buf) { + *wp = NULL; + *tp = NULL; + FOR_ALL_TAB_WINDOWS(tp2, wp2) { + if (wp2->w_buffer == buf) { + *tp = tp2; + *wp = wp2; return true; } } diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 8f540fbe09..7927473439 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -62,8 +62,7 @@ static int diff_a_works = MAYBE; /// @param buf void diff_buf_delete(buf_T *buf) { - tabpage_T *tp; - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) { + FOR_ALL_TABS(tp) { int i = diff_buf_idx_tp(buf, tp); if (i != DB_COUNT) { @@ -175,8 +174,7 @@ static int diff_buf_idx_tp(buf_T *buf, tabpage_T *tp) /// @param buf void diff_invalidate(buf_T *buf) { - tabpage_T *tp; - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) { + FOR_ALL_TABS(tp) { int i = diff_buf_idx_tp(buf, tp); if (i != DB_COUNT) { tp->tp_diff_invalid = TRUE; @@ -197,8 +195,7 @@ void diff_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after) { // Handle all tab pages that use the current buffer in a diff. - tabpage_T *tp; - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) { + FOR_ALL_TABS(tp) { int idx = diff_buf_idx_tp(curbuf, tp); if (idx != DB_COUNT) { diff_mark_adjust_tp(tp, idx, line1, line2, amount, amount_after); @@ -1819,8 +1816,7 @@ int diffopt_changed(void) // If "icase" or "iwhite" was added or removed, need to update the diff. if (diff_flags != diff_flags_new) { - tabpage_T *tp; - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) { + FOR_ALL_TABS(tp) { tp->tp_diff_invalid = TRUE; } } @@ -2376,15 +2372,14 @@ static void diff_fold_update(diff_T *dp, int skip_idx) /// @param buf The buffer to check. /// /// @return TRUE if buffer "buf" is in diff-mode. -int diff_mode_buf(buf_T *buf) +bool diff_mode_buf(buf_T *buf) { - tabpage_T *tp; - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) { + FOR_ALL_TABS(tp) { if (diff_buf_idx_tp(buf, tp) != DB_COUNT) { - return TRUE; + return true; } } - return FALSE; + return false; } /// Move "count" times in direction "dir" to the next diff block. diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 0dd261f53a..28f16d0e92 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -5403,11 +5403,9 @@ static int list_join(garray_T *gap, list_T *l, char_u *sep, int echo_style, int int garbage_collect(void) { int copyID; - win_T *wp; funccall_T *fc, **pfc; int did_free; int did_free_funccal = FALSE; - tabpage_T *tp; /* Only do this once. */ want_garbage_collect = FALSE; @@ -5442,14 +5440,16 @@ int garbage_collect(void) } /* window-local variables */ - FOR_ALL_TAB_WINDOWS(tp, wp) - set_ref_in_item(&wp->w_winvar.di_tv, copyID); + FOR_ALL_TAB_WINDOWS(tp, wp) { + set_ref_in_item(&wp->w_winvar.di_tv, copyID); + } if (aucmd_win != NULL) set_ref_in_item(&aucmd_win->w_winvar.di_tv, copyID); /* tabpage-local variables */ - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) + FOR_ALL_TABS(tp) { set_ref_in_item(&tp->tp_winvar.di_tv, copyID); + } /* global variables */ set_ref_in_ht(&globvarht, copyID); @@ -9588,21 +9588,27 @@ find_win_by_nr ( tabpage_T *tp /* NULL for current tab page */ ) { - win_T *wp; - int nr; - - nr = get_tv_number_chk(vp, NULL); + int nr = get_tv_number_chk(vp, NULL); - if (nr < 0) + if (nr < 0) { return NULL; - if (nr == 0) + } + + if (nr == 0) { return curwin; + } - for (wp = (tp == NULL || tp == curtab) ? firstwin : tp->tp_firstwin; - wp != NULL; wp = wp->w_next) - if (--nr <= 0) - break; - return wp; + // This method accepts NULL as an alias for curtab. + if (tp == NULL) { + tp = curtab; + } + + FOR_ALL_WINDOWS_IN_TAB(wp, tp) { + if (--nr <= 0) { + return wp; + } + } + return NULL; } /* diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 163d20f13a..44604b68c4 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2962,13 +2962,10 @@ do_ecmd ( /* It's possible that all lines in the buffer changed. Need to update * automatic folding for all windows where it's used. */ - { - win_T *win; - tabpage_T *tp; - - FOR_ALL_TAB_WINDOWS(tp, win) - if (win->w_buffer == curbuf) + FOR_ALL_TAB_WINDOWS(tp, win) { + if (win->w_buffer == curbuf) { foldUpdateAll(win); + } } /* Change directories when the 'acd' option is set. */ diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index c3d34e9991..0703c76b8a 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -1204,7 +1204,6 @@ check_changed_any ( int bufnum = 0; int bufcount = 0; int *bufnrs; - tabpage_T *tp; FOR_ALL_BUFFERS(buf) { ++bufcount; @@ -1225,9 +1224,9 @@ check_changed_any ( } /* buf in other tab */ - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) { + FOR_ALL_TABS(tp) { if (tp != curtab) { - for (win_T *wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next) { + FOR_ALL_WINDOWS_IN_TAB(wp, tp) { add_bufnum(bufnrs, &bufnum, wp->w_buffer->b_fnum); } } @@ -1282,7 +1281,6 @@ check_changed_any ( /* Try to find a window that contains the buffer. */ if (buf != curbuf) { - win_T *wp; FOR_ALL_TAB_WINDOWS(tp, wp) { if (wp->w_buffer == buf) { goto_tabpage_win(tp, wp); @@ -1510,12 +1508,11 @@ do_arglist ( */ static void alist_check_arg_idx(void) { - win_T *win; - tabpage_T *tp; - - FOR_ALL_TAB_WINDOWS(tp, win) - if (win->w_alist == curwin->w_alist) - check_arg_idx(win); + FOR_ALL_TAB_WINDOWS(tp, win) { + if (win->w_alist == curwin->w_alist) { + check_arg_idx(win); + } + } } /* diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 1117b6fbcf..7fb109403e 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -5267,9 +5267,6 @@ static void ex_tabclose(exarg_T *eap) */ static void ex_tabonly(exarg_T *eap) { - tabpage_T *tp; - int done; - if (cmdwin_type != 0) cmdwin_result = K_IGNORE; else if (first_tabpage->tp_next == NULL) @@ -5277,8 +5274,8 @@ static void ex_tabonly(exarg_T *eap) else { /* Repeat this up to a 1000 times, because autocommands may mess * up the lists. */ - for (done = 0; done < 1000; ++done) { - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) + for (int done = 0; done < 1000; ++done) { + FOR_ALL_TABS(tp) { if (tp->tp_topframe != topframe) { tabpage_close_other(tp, eap->forceit); /* if we failed to close it quit */ @@ -5287,8 +5284,10 @@ static void ex_tabonly(exarg_T *eap) /* start over, "tp" is now invalid */ break; } - if (first_tabpage->tp_next == NULL) + } + if (first_tabpage->tp_next == NULL) { break; + } } } } @@ -5607,18 +5606,21 @@ alist_add ( */ void alist_slash_adjust(void) { - int i; - win_T *wp; - tabpage_T *tp; - - for (i = 0; i < GARGCOUNT; ++i) - if (GARGLIST[i].ae_fname != NULL) + for (int i = 0; i < GARGCOUNT; ++i) { + if (GARGLIST[i].ae_fname != NULL) { slash_adjust(GARGLIST[i].ae_fname); - FOR_ALL_TAB_WINDOWS(tp, wp) - if (wp->w_alist != &global_alist) - for (i = 0; i < WARGCOUNT(wp); ++i) - if (WARGLIST(wp)[i].ae_fname != NULL) - slash_adjust(WARGLIST(wp)[i].ae_fname); + } + } + + FOR_ALL_TAB_WINDOWS(tp, wp) { + if (wp->w_alist != &global_alist) { + for (int i = 0; i < WARGCOUNT(wp); ++i) { + if (WARGLIST(wp)[i].ae_fname != NULL) { + slash_adjust(WARGLIST(wp)[i].ae_fname); + } + } + } + } } #endif @@ -5808,24 +5810,27 @@ static void ex_tabmove(exarg_T *eap) */ static void ex_tabs(exarg_T *eap) { - tabpage_T *tp; - win_T *wp; int tabcount = 1; msg_start(); msg_scroll = TRUE; - for (tp = first_tabpage; tp != NULL && !got_int; tp = tp->tp_next) { + + FOR_ALL_TABS(tp) { + if (got_int) { + break; + } + msg_putchar('\n'); vim_snprintf((char *)IObuff, IOSIZE, _("Tab page %d"), tabcount++); msg_outtrans_attr(IObuff, hl_attr(HLF_T)); out_flush(); /* output one line at a time */ ui_breakcheck(); - if (tp == curtab) - wp = firstwin; - else - wp = tp->tp_firstwin; - for (; wp != NULL && !got_int; wp = wp->w_next) { + FOR_ALL_WINDOWS_IN_TAB(wp, tp) { + if (got_int) { + break; + } + msg_putchar('\n'); msg_putchar(wp == curwin ? '>' : ' '); msg_putchar(' '); diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 97daa035f8..ec91949def 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -5102,16 +5102,15 @@ void buf_reload(buf_T *buf, int orig_mode) check_cursor(); update_topline(); keep_filetype = FALSE; - { - win_T *wp; - tabpage_T *tp; - /* Update folds unless they are defined manually. */ - FOR_ALL_TAB_WINDOWS(tp, wp) + /* Update folds unless they are defined manually. */ + FOR_ALL_TAB_WINDOWS(tp, wp) { if (wp->w_buffer == curwin->w_buffer - && !foldmethodIsManual(wp)) + && !foldmethodIsManual(wp)) { foldUpdateAll(wp); + } } + /* If the mode didn't change and 'readonly' was set, keep the old * value; the user probably used the ":view" command. But don't * reset it, might have had a read error. */ @@ -6269,14 +6268,11 @@ aucmd_restbuf ( * page. Do not trigger autocommands here. */ block_autocmds(); if (curwin != aucmd_win) { - tabpage_T *tp; - win_T *wp; - - FOR_ALL_TAB_WINDOWS(tp, wp) - { + FOR_ALL_TAB_WINDOWS(tp, wp) { if (wp == aucmd_win) { - if (tp != curtab) + if (tp != curtab) { goto_tabpage_tp(tp, TRUE, TRUE); + } win_goto(aucmd_win); goto win_found; } diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 851022cd62..465a48e5b2 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -519,15 +519,19 @@ EXTERN win_T *firstwin; /* first window */ EXTERN win_T *lastwin; /* last window */ EXTERN win_T *prevwin INIT(= NULL); /* previous window */ # define W_NEXT(wp) ((wp)->w_next) -# define FOR_ALL_WINDOWS(wp) for (win_T *wp = firstwin; wp != NULL; wp = wp->w_next) +# define FOR_ALL_WINDOWS(wp) \ + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) /* * When using this macro "break" only breaks out of the inner loop. Use "goto" * to break out of the tabpage loop. */ # define FOR_ALL_TAB_WINDOWS(tp, wp) \ - for ((tp) = first_tabpage; (tp) != NULL; (tp) = (tp)->tp_next) \ - for ((wp) = ((tp) == curtab) \ - ? firstwin : (tp)->tp_firstwin; (wp); (wp) = (wp)->w_next) + FOR_ALL_TABS(tp) \ + FOR_ALL_WINDOWS_IN_TAB(wp, tp) + +# define FOR_ALL_WINDOWS_IN_TAB(wp, tp) \ + for (win_T *wp = ((tp) == curtab) \ + ? firstwin : (tp)->tp_firstwin; wp != NULL; wp = wp->w_next) EXTERN win_T *curwin; /* currently active window */ @@ -548,6 +552,9 @@ EXTERN tabpage_T *first_tabpage; EXTERN tabpage_T *curtab; EXTERN int redraw_tabline INIT(= FALSE); /* need to redraw tabline */ +// Iterates over all tabs in the tab list +# define FOR_ALL_TABS(tp) for (tabpage_T *tp = first_tabpage; tp != NULL; tp = tp->tp_next) + /* * All buffers are linked in a list. 'firstbuf' points to the first entry, * 'lastbuf' to the last entry and 'curbuf' to the currently active buffer. diff --git a/src/nvim/main.c b/src/nvim/main.c index 7dc299e73b..e3f1d88dff 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -758,7 +758,6 @@ main_loop ( /* Exit properly */ void getout(int exitval) { - win_T *wp; tabpage_T *tp, *next_tp; exiting = TRUE; @@ -780,11 +779,12 @@ void getout(int exitval) /* Trigger BufWinLeave for all windows, but only once per buffer. */ for (tp = first_tabpage; tp != NULL; tp = next_tp) { next_tp = tp->tp_next; - for (wp = (tp == curtab) - ? firstwin : tp->tp_firstwin; wp != NULL; wp = wp->w_next) { - if (wp->w_buffer == NULL) + FOR_ALL_WINDOWS_IN_TAB(wp, tp) { + if (wp->w_buffer == NULL) { /* Autocmd must have close the buffer already, skip. */ continue; + } + buf_T *buf = wp->w_buffer; if (buf->b_changedtick != -1) { apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname, diff --git a/src/nvim/mark.c b/src/nvim/mark.c index 6339cf8275..a66bf43c13 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -898,8 +898,6 @@ void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after) int i; int fnum = curbuf->b_fnum; linenr_T *lp; - win_T *win; - tabpage_T *tab; static pos_T initpos = INIT_POS_T(1, 0, 0); if (line2 < line1 && amount_after == 0L) /* nothing to do */ @@ -939,8 +937,9 @@ void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after) /* quickfix marks */ qf_mark_adjust(NULL, line1, line2, amount, amount_after); /* location lists */ - FOR_ALL_TAB_WINDOWS(tab, win) - qf_mark_adjust(win, line1, line2, amount, amount_after); + FOR_ALL_TAB_WINDOWS(tab, win) { + qf_mark_adjust(win, line1, line2, amount, amount_after); + } sign_mark_adjust(line1, line2, amount, amount_after); } @@ -958,21 +957,26 @@ void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after) /* * Adjust items in all windows related to the current buffer. */ - FOR_ALL_TAB_WINDOWS(tab, win) - { - if (!cmdmod.lockmarks) + FOR_ALL_TAB_WINDOWS(tab, win) { + if (!cmdmod.lockmarks) { /* Marks in the jumplist. When deleting lines, this may create * duplicate marks in the jumplist, they will be removed later. */ - for (i = 0; i < win->w_jumplistlen; ++i) - if (win->w_jumplist[i].fmark.fnum == fnum) + for (i = 0; i < win->w_jumplistlen; ++i) { + if (win->w_jumplist[i].fmark.fnum == fnum) { one_adjust_nodel(&(win->w_jumplist[i].fmark.mark.lnum)); + } + } + } if (win->w_buffer == curbuf) { - if (!cmdmod.lockmarks) + if (!cmdmod.lockmarks) { /* marks in the tag stack */ - for (i = 0; i < win->w_tagstacklen; i++) - if (win->w_tagstack[i].fmark.fnum == fnum) + for (i = 0; i < win->w_tagstacklen; i++) { + if (win->w_tagstack[i].fmark.fnum == fnum) { one_adjust_nodel(&(win->w_tagstack[i].fmark.mark.lnum)); + } + } + } /* the displayed Visual area */ if (win->w_old_cursor_lnum != 0) { @@ -985,12 +989,14 @@ void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after) if (win != curwin) { if (win->w_topline >= line1 && win->w_topline <= line2) { if (amount == MAXLNUM) { /* topline is deleted */ - if (line1 <= 1) + if (line1 <= 1) { win->w_topline = 1; - else + } else { win->w_topline = line1 - 1; - } else /* keep topline on the same line */ + } + } else { /* keep topline on the same line */ win->w_topline += amount; + } win->w_topfill = 0; } else if (amount_after && win->w_topline > line2) { win->w_topline += amount_after; @@ -998,15 +1004,18 @@ void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after) } if (win->w_cursor.lnum >= line1 && win->w_cursor.lnum <= line2) { if (amount == MAXLNUM) { /* line with cursor is deleted */ - if (line1 <= 1) + if (line1 <= 1) { win->w_cursor.lnum = 1; - else + } else { win->w_cursor.lnum = line1 - 1; + } win->w_cursor.col = 0; - } else /* keep cursor on the same line */ + } else { /* keep cursor on the same line */ win->w_cursor.lnum += amount; - } else if (amount_after && win->w_cursor.lnum > line2) + } + } else if (amount_after && win->w_cursor.lnum > line2) { win->w_cursor.lnum += amount_after; + } } /* adjust folds */ @@ -1338,12 +1347,6 @@ int removable(char_u *name) */ int write_viminfo_marks(FILE *fp_out) { - int count; - int is_mark_set; - int i; - win_T *win; - tabpage_T *tp; - /* * Set b_last_cursor for the all buffers that have a window. */ @@ -1352,22 +1355,22 @@ int write_viminfo_marks(FILE *fp_out) } fputs(_("\n# History of marks within files (newest to oldest):\n"), fp_out); - count = 0; + int count = 0; FOR_ALL_BUFFERS(buf) { /* * Only write something if buffer has been loaded and at least one * mark is set. */ if (buf->b_marks_read) { - if (buf->b_last_cursor.lnum != 0) - is_mark_set = TRUE; - else { - is_mark_set = FALSE; - for (i = 0; i < NMARKS; i++) + bool is_mark_set = true; + if (buf->b_last_cursor.lnum == 0) { + is_mark_set = false; + for (int i = 0; i < NMARKS; i++) { if (buf->b_namedm[i].lnum != 0) { - is_mark_set = TRUE; + is_mark_set = true; break; } + } } if (is_mark_set && buf->b_ffname != NULL && buf->b_ffname[0] != NUL && !removable(buf->b_ffname)) { @@ -1378,10 +1381,12 @@ int write_viminfo_marks(FILE *fp_out) write_one_mark(fp_out, '^', &buf->b_last_insert); write_one_mark(fp_out, '.', &buf->b_last_change); /* changelist positions are stored oldest first */ - for (i = 0; i < buf->b_changelistlen; ++i) + for (int i = 0; i < buf->b_changelistlen; ++i) { write_one_mark(fp_out, '+', &buf->b_changelist[i]); - for (i = 0; i < NMARKS; i++) + } + for (int i = 0; i < NMARKS; i++) { write_one_mark(fp_out, 'a' + i, &buf->b_namedm[i]); + } count++; } } diff --git a/src/nvim/memory.c b/src/nvim/memory.c index 1c3d6e372c..f4dffb0bcd 100644 --- a/src/nvim/memory.c +++ b/src/nvim/memory.c @@ -452,13 +452,9 @@ void free_all_mem(void) p_hi = 0; init_history(); - { - win_T *win; - tabpage_T *tab; - - qf_free_all(NULL); - /* Free all location lists */ - FOR_ALL_TAB_WINDOWS(tab, win) + qf_free_all(NULL); + /* Free all location lists */ + FOR_ALL_TAB_WINDOWS(tab, win) { qf_free_all(win); } diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index d7e9618639..52780b9a57 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -2027,8 +2027,6 @@ changed_lines_buf ( */ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, long xtra) { - win_T *wp; - tabpage_T *tp; int i; int cols; pos_T *p; @@ -2072,21 +2070,21 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, long xtra curbuf->b_changelistlen = JUMPLISTSIZE - 1; memmove(curbuf->b_changelist, curbuf->b_changelist + 1, sizeof(pos_T) * (JUMPLISTSIZE - 1)); - FOR_ALL_TAB_WINDOWS(tp, wp) - { + FOR_ALL_TAB_WINDOWS(tp, wp) { /* Correct position in changelist for other windows on * this buffer. */ - if (wp->w_buffer == curbuf && wp->w_changelistidx > 0) + if (wp->w_buffer == curbuf && wp->w_changelistidx > 0) { --wp->w_changelistidx; + } } } - FOR_ALL_TAB_WINDOWS(tp, wp) - { + FOR_ALL_TAB_WINDOWS(tp, wp) { /* For other windows, if the position in the changelist is * at the end it stays at the end. */ if (wp->w_buffer == curbuf - && wp->w_changelistidx == curbuf->b_changelistlen) + && wp->w_changelistidx == curbuf->b_changelistlen) { ++wp->w_changelistidx; + } } ++curbuf->b_changelistlen; } @@ -2098,8 +2096,7 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, long xtra curwin->w_changelistidx = curbuf->b_changelistlen; } - FOR_ALL_TAB_WINDOWS(tp, wp) - { + FOR_ALL_TAB_WINDOWS(tp, wp) { if (wp->w_buffer == curbuf) { /* Mark this window to be redrawn later. */ if (wp->w_redr_type < VALID) diff --git a/src/nvim/option.c b/src/nvim/option.c index b26b6ed4cc..96265681df 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2210,17 +2210,16 @@ set_options_default ( int opt_flags /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */ ) { - int i; - win_T *wp; - tabpage_T *tp; - - for (i = 0; !istermoption(&options[i]); i++) - if (!(options[i].flags & P_NODEFAULT)) + for (int i = 0; !istermoption(&options[i]); i++) { + if (!(options[i].flags & P_NODEFAULT)) { set_option_default(i, opt_flags, p_cp); + } + } /* The 'scroll' option must be computed for all windows. */ - FOR_ALL_TAB_WINDOWS(tp, wp) - win_comp_scroll(wp); + FOR_ALL_TAB_WINDOWS(tp, wp) { + win_comp_scroll(wp); + } } /// Set the Vi-default value of a string option. @@ -5532,13 +5531,11 @@ set_num_option ( errmsg = e_positive; curbuf->b_p_tw = 0; } - { - win_T *wp; - tabpage_T *tp; - FOR_ALL_TAB_WINDOWS(tp, wp) + FOR_ALL_TAB_WINDOWS(tp, wp) { check_colorcolumn(wp); } + } /* diff --git a/src/nvim/po/CMakeLists.txt b/src/nvim/po/CMakeLists.txt index 4a9c97dc20..0ed39e8c49 100644 --- a/src/nvim/po/CMakeLists.txt +++ b/src/nvim/po/CMakeLists.txt @@ -71,7 +71,7 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG AND -P ${CMAKE_MODULE_PATH}/RunMsgfmt.cmake DEPENDS ${poFile} ${NVIM_POT}) - install( + install_helper( FILES ${moFile} DESTINATION share/locale/${name}/LC_MESSAGES RENAME nvim.mo) diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 3bc70b6b41..b2a6b01d96 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1466,11 +1466,7 @@ void qf_jump(qf_info_T *qi, int dir, int errornr, int forceit) * then search in other tabs. */ if (!usable_win && (swb_flags & SWB_USETAB)) { - tabpage_T *tp; - win_T *wp; - - FOR_ALL_TAB_WINDOWS(tp, wp) - { + FOR_ALL_TAB_WINDOWS(tp, wp) { if (wp->w_buffer->b_fnum == qf_ptr->qf_fnum) { goto_tabpage_win(tp, wp); usable_win = true; @@ -2236,12 +2232,11 @@ static win_T *qf_find_win(qf_info_T *qi) */ static buf_T *qf_find_buf(qf_info_T *qi) { - tabpage_T *tp; - win_T *win; - - FOR_ALL_TAB_WINDOWS(tp, win) - if (is_qf_win(win, qi)) - return win->w_buffer; + FOR_ALL_TAB_WINDOWS(tp, win) { + if (is_qf_win(win, qi)) { + return win->w_buffer; + } + } return NULL; } diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 122c23ed84..e882935e39 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -6263,7 +6263,6 @@ int screen_valid(int doclear) void screenalloc(bool doclear) { int new_row, old_row; - win_T *wp; int outofmem = FALSE; int len; schar_T *new_ScreenLines; @@ -6275,7 +6274,6 @@ void screenalloc(bool doclear) unsigned *new_LineOffset; char_u *new_LineWraps; short *new_TabPageIdxs; - tabpage_T *tp; static int entered = FALSE; /* avoid recursiveness */ static int done_outofmem_msg = FALSE; /* did outofmem message */ int retry_count = 0; @@ -6328,8 +6326,9 @@ retry: * Continuing with the old ScreenLines may result in a crash, because the * size is wrong. */ - FOR_ALL_TAB_WINDOWS(tp, wp) - win_free_lsize(wp); + FOR_ALL_TAB_WINDOWS(tp, wp) { + win_free_lsize(wp); + } if (aucmd_win != NULL) win_free_lsize(aucmd_win); @@ -6349,8 +6348,7 @@ retry: new_LineWraps = xmalloc((size_t)(Rows * sizeof(char_u))); new_TabPageIdxs = xmalloc((size_t)(Columns * sizeof(short))); - FOR_ALL_TAB_WINDOWS(tp, wp) - { + FOR_ALL_TAB_WINDOWS(tp, wp) { win_alloc_lines(wp); } if (aucmd_win != NULL && aucmd_win->w_lines == NULL) { @@ -7632,7 +7630,6 @@ void unshowmode(int force) static void draw_tabline(void) { int tabcount = 0; - tabpage_T *tp; int tabwidth; int col = 0; int scol = 0; @@ -7675,8 +7672,9 @@ static void draw_tabline(void) (char_u *)"", OPT_FREE, SID_ERROR); called_emsg |= save_called_emsg; } else { - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) + FOR_ALL_TABS(tp) { ++tabcount; + } tabwidth = (Columns - 1 + tabcount / 2) / tabcount; if (tabwidth < 6) @@ -7685,8 +7683,12 @@ static void draw_tabline(void) attr = attr_nosel; tabcount = 0; scol = 0; - for (tp = first_tabpage; tp != NULL && col < Columns - 4; - tp = tp->tp_next) { + + FOR_ALL_TABS(tp) { + if (col >= Columns - 4) { + break; + } + scol = col; if (tp->tp_topframe == topframe) diff --git a/src/nvim/window.c b/src/nvim/window.c index f5d8edc751..ebce53cdf4 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -1674,13 +1674,12 @@ close_windows ( int keep_curwin /* don't close "curwin" */ ) { - win_T *wp; tabpage_T *tp, *nexttp; int h = tabline_height(); ++RedrawingDisabled; - for (wp = firstwin; wp != NULL && lastwin != firstwin; ) { + for (win_T *wp = firstwin; wp != NULL && lastwin != firstwin; ) { if (wp->w_buffer == buf && (!keep_curwin || wp != curwin) && !(wp->w_closing || wp->w_buffer->b_closing) ) { @@ -1695,8 +1694,8 @@ close_windows ( /* Also check windows in other tab pages. */ for (tp = first_tabpage; tp != NULL; tp = nexttp) { nexttp = tp->tp_next; - if (tp != curtab) - for (wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next) + if (tp != curtab) { + FOR_ALL_WINDOWS_IN_TAB(wp, tp) { if (wp->w_buffer == buf && !(wp->w_closing || wp->w_buffer->b_closing) ) { @@ -1707,6 +1706,8 @@ close_windows ( nexttp = first_tabpage; break; } + } + } } --RedrawingDisabled; @@ -1963,7 +1964,6 @@ int win_close(win_T *win, int free_buf) */ void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp) { - win_T *wp; int dir; tabpage_T *ptp = NULL; int free_tp = FALSE; @@ -1982,10 +1982,18 @@ void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp) return; /* Autocommands may have closed the window already. */ - for (wp = tp->tp_firstwin; wp != NULL && wp != win; wp = wp->w_next) - ; - if (wp == NULL) - return; + { + bool found_window = false; + FOR_ALL_WINDOWS_IN_TAB(wp, tp) { + if (wp == win) { + found_window = true; + break; + } + } + if (!found_window) { + return; + } + } /* When closing the last window in a tab page remove the tab page. */ if (tp->tp_firstwin == tp->tp_lastwin) { @@ -2986,14 +2994,14 @@ int make_tabpages(int maxcount) /* * Return TRUE when "tpc" points to a valid tab page. */ -int valid_tabpage(tabpage_T *tpc) +bool valid_tabpage(tabpage_T *tpc) { - tabpage_T *tp; - - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) - if (tp == tpc) - return TRUE; - return FALSE; + FOR_ALL_TABS(tp) { + if (tp == tpc) { + return true; + } + } + return false; } /* @@ -3285,14 +3293,11 @@ void win_goto(win_T *wp) */ tabpage_T *win_find_tabpage(win_T *win) { - win_T *wp; - tabpage_T *tp; - - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) - for (wp = (tp == curtab ? firstwin : tp->tp_firstwin); - wp != NULL; wp = wp->w_next) - if (wp == win) - return tp; + FOR_ALL_TAB_WINDOWS(tp, wp) { + if (wp == win) { + return tp; + } + } return NULL; } @@ -3549,28 +3554,36 @@ win_T *buf_jump_open_win(buf_T *buf) */ win_T *buf_jump_open_tab(buf_T *buf) { - win_T *wp; - tabpage_T *tp; - /* First try the current tab page. */ - wp = buf_jump_open_win(buf); - if (wp != NULL) - return wp; + // First try the current tab page. + { + win_T *wp = buf_jump_open_win(buf); + if (wp != NULL) + return wp; + } - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) + FOR_ALL_TABS(tp) { + // Skip the current tab since we already checked it. if (tp != curtab) { - for (wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next) - if (wp->w_buffer == buf) - break; - if (wp != NULL) { - goto_tabpage_win(tp, wp); - if (curwin != wp) - wp = NULL; /* something went wrong */ - break; + FOR_ALL_WINDOWS_IN_TAB(wp, tp) { + if (wp->w_buffer == buf) { + goto_tabpage_win(tp, wp); + + // If we the current window didn't switch, + // something went wrong. + if (curwin != wp) { + wp = NULL; + } + + // Return the window we switched to. + return wp; + } } } + } - return wp; + // If we made it this far, we didn't find the buffer. + return NULL; } /* @@ -4963,18 +4976,15 @@ int tabline_height(void) */ int min_rows(void) { - int total; - tabpage_T *tp; - int n; - if (firstwin == NULL) /* not initialized yet */ return MIN_LINES; - total = 0; - for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) { - n = frame_minheight(tp->tp_topframe, NULL); - if (total < n) + int total = 0; + FOR_ALL_TABS(tp) { + int n = frame_minheight(tp->tp_topframe, NULL); + if (total < n) { total = n; + } } total += tabline_height(); total += 1; /* count the room for the command line */ @@ -5014,16 +5024,15 @@ int only_one_window(void) */ void check_lnums(int do_curwin) { - win_T *wp; - - tabpage_T *tp; - - FOR_ALL_TAB_WINDOWS(tp, wp) - if ((do_curwin || wp != curwin) && wp->w_buffer == curbuf) { - if (wp->w_cursor.lnum > curbuf->b_ml.ml_line_count) - wp->w_cursor.lnum = curbuf->b_ml.ml_line_count; - if (wp->w_topline > curbuf->b_ml.ml_line_count) - wp->w_topline = curbuf->b_ml.ml_line_count; + FOR_ALL_TAB_WINDOWS(tp, wp) { + if ((do_curwin || wp != curwin) && wp->w_buffer == curbuf) { + if (wp->w_cursor.lnum > curbuf->b_ml.ml_line_count) { + wp->w_cursor.lnum = curbuf->b_ml.ml_line_count; + } + if (wp->w_topline > curbuf->b_ml.ml_line_count) { + wp->w_topline = curbuf->b_ml.ml_line_count; + } + } } } |