mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Compare commits
368 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ca76060647 | |||
| 399b43e9e1 | |||
| 3927f58418 | |||
| 0380d81c3d | |||
| 0a2480bb8a | |||
| 64f4004edf | |||
| a340ddaae8 | |||
| 438c94e41c | |||
| 596ad66d1d | |||
| 62145db91b | |||
| 504543f98b | |||
| 6b9c202549 | |||
| 4d00b835c4 | |||
| f787ee8451 | |||
| 213c323184 | |||
| ad0449528a | |||
| f1be7fded4 | |||
| e5f7cd0a60 | |||
| 983d808674 | |||
| 24a95f42b8 | |||
| e7833e7347 | |||
| 0ce2c594d0 | |||
| f36bbcd402 | |||
| 0661033075 | |||
| 0405405536 | |||
| ef2cacd44f | |||
| b4106e4724 | |||
| 95366b502e | |||
| 7b8a803528 | |||
| a356c9bbc1 | |||
| 733bbcde77 | |||
| 342f4f626e | |||
| 23c92d93c1 | |||
| ee17b6f70d | |||
| f4e6078d3d | |||
| a26996d109 | |||
| 7bcd25cad3 | |||
| 86cfb39030 | |||
| 1bd2cb1169 | |||
| 4e554d282c | |||
| cc0bcf4c9f | |||
| 11d2aeeca4 | |||
| da200c2f78 | |||
| 5856b07795 | |||
| cf138d4ea5 | |||
| f7ac0ef509 | |||
| 1689e847ff | |||
| 1690ec64ff | |||
| 18d2709aa1 | |||
| 67c951df4c | |||
| 9b04c50319 | |||
| 00cb247465 | |||
| 28a60f898d | |||
| 1c7397f3f1 | |||
| f6d28fe2c9 | |||
| d2a08ba0fa | |||
| a4245a10ea | |||
| 00df69e62b | |||
| c2a37013bd | |||
| 86eda07805 | |||
| c154baf790 | |||
| 59adcb4c20 | |||
| e4ba5df7c7 | |||
| 18143d3111 | |||
| dccc29c228 | |||
| 3170342af3 | |||
| 282a94be99 | |||
| 544be0d893 | |||
| 623ba31821 | |||
| 3854a95795 | |||
| e073a8b79f | |||
| 7db89bdc23 | |||
| e651e110c1 | |||
| 233f956bd4 | |||
| f44cbe96fa | |||
| 6e60cf444a | |||
| ee9166eb3b | |||
| fc68299d43 | |||
| aa90d4f031 | |||
| 71ebf3baca | |||
| db510ca805 | |||
| 15cbaae313 | |||
| d69aecf141 | |||
| 3c3cf1d689 | |||
| 32f3461465 | |||
| c8a034210f | |||
| ced2c7394a | |||
| 889f6af371 | |||
| 4c6fe2e2ea | |||
| e0bfb7d301 | |||
| 8b20203141 | |||
| b2422f7540 | |||
| 67b0ecf754 | |||
| 21d3212361 | |||
| 9d093fd056 | |||
| 397e356d7b | |||
| e1dc9a6275 | |||
| acb91d3905 | |||
| 738ce77aa9 | |||
| f3db141aed | |||
| 3775f777a6 | |||
| b147d31489 | |||
| 456ae556b4 | |||
| c41b7a26fc | |||
| ce53e3ea55 | |||
| 7a9d1aa878 | |||
| f6fc255e8d | |||
| da16a1b471 | |||
| 991b83055c | |||
| 4b6110fa32 | |||
| 816fbcc262 | |||
| 0ffa97e8fa | |||
| 6ad4a60a97 | |||
| d7085a0635 | |||
| eb91e24d5e | |||
| ac2d8815ae | |||
| e102e44fc6 | |||
| e2528ae111 | |||
| 0b8b145bf8 | |||
| 1610528cc3 | |||
| 1bed993c01 | |||
| 6e55e85f92 | |||
| 5bbcfbc4a2 | |||
| 9d8ef7cc43 | |||
| a96d544bc3 | |||
| e3b6c78ddc | |||
| 4b9777a1df | |||
| 2ac708b548 | |||
| e06afb7860 | |||
| 3e1e63de18 | |||
| 3ac2d3da5f | |||
| 55460da26c | |||
| 0e82b59df3 | |||
| bddc6adca6 | |||
| a5eb6785ef | |||
| 7129de868c | |||
| 00d07a97ad | |||
| 0382f05dbd | |||
| f937ab32a1 | |||
| fe1463674c | |||
| 2ba9d2e14e | |||
| 1d3e0e8f31 | |||
| 93ebb5e75e | |||
| 85c3a5bc26 | |||
| d08745040b | |||
| 6c93c94929 | |||
| f2534434c9 | |||
| 9b73902dbe | |||
| 73aba18eb7 | |||
| d58bad6bc1 | |||
| 90c27b2803 | |||
| 639751d218 | |||
| cd7293bf6c | |||
| 03e44a1d70 | |||
| e3daa06be1 | |||
| b49ad28d73 | |||
| 6a3897232a | |||
| 9a6cf34a1e | |||
| e5e04306bf | |||
| 6dfdff3f27 | |||
| f97f6bbf56 | |||
| 5c018bee0e | |||
| d4e4ecbb37 | |||
| 74e1dada41 | |||
| f39842f148 | |||
| d809c0a903 | |||
| 58f39d89a8 | |||
| 8fbd9449e7 | |||
| 0db1ea4815 | |||
| 20f61d96f8 | |||
| 4c215ecdaf | |||
| 535b9e12d0 | |||
| fa0094e162 | |||
| 1da9fdb8c7 | |||
| e750f8c330 | |||
| d42f95bbfb | |||
| 55620efb6e | |||
| c50fd2fdde | |||
| 2f25e40b1f | |||
| e8d6f03f6a | |||
| 3fc7a7e44a | |||
| afe0466fb1 | |||
| 1193951beb | |||
| c51fa7bc46 | |||
| 3d3a9152fa | |||
| 79d9cb4cb0 | |||
| e059fae100 | |||
| 9180633e68 | |||
| 544b209a2d | |||
| 6e93689bde | |||
| 118f8e9da3 | |||
| cdd934439d | |||
| 2ae7ffe0bc | |||
| 6551ace0fe | |||
| b557f48982 | |||
| 171c5b9b03 | |||
| 757593c07a | |||
| 618e47d1cd | |||
| 8dabccd295 | |||
| a76f3221cd | |||
| b0d584d97a | |||
| e34b51e95f | |||
| c6d533b0ad | |||
| 6909639249 | |||
| 75dc1ed1ad | |||
| be07caa071 | |||
| 6d626c4184 | |||
| a0fddaa2f4 | |||
| 5e6e4042b1 | |||
| a03380baa4 | |||
| 309ded1954 | |||
| 9fa35b1c38 | |||
| e71e9d9ad3 | |||
| c13b3d1350 | |||
| 20cd8699ac | |||
| 92997dda78 | |||
| 19a3bc3add | |||
| 6633611f42 | |||
| 16af913eee | |||
| 478668013f | |||
| 17befac581 | |||
| ca22fc36a4 | |||
| a6ab5e69d3 | |||
| f6fb52b667 | |||
| 19968fc4ec | |||
| f5d0f54790 | |||
| 9f29621415 | |||
| 72904d5fda | |||
| 2d0988ef93 | |||
| d4376dc3eb | |||
| bedc69f9d6 | |||
| a055b441f5 | |||
| 4924ad099f | |||
| 787de412b8 | |||
| ab9f2ecfd4 | |||
| f9037f186a | |||
| 654bdbbd32 | |||
| 6ac1544e13 | |||
| 6cc8bc8366 | |||
| 8fc6a1dae0 | |||
| 0ffc17aa47 | |||
| 4b1cc7906f | |||
| e1eaae27f4 | |||
| 25dec33c9b | |||
| f244b2fbf2 | |||
| b5f6fe9ca2 | |||
| 2b6a12af4d | |||
| 8b8f7d19f8 | |||
| 0bbc1be0a3 | |||
| dbeadf05b6 | |||
| 6d192a4ac9 | |||
| b23db545ce | |||
| 6235a109c4 | |||
| 28ae5a32fd | |||
| fc3058495d | |||
| c3172fe9e4 | |||
| 04510566b1 | |||
| 44a6b72d7f | |||
| 9994160bfe | |||
| c5d2744c04 | |||
| 56bafd7a6a | |||
| 0a07646845 | |||
| 38ab19e00f | |||
| 4dd266cb66 | |||
| b102728c20 | |||
| e27578aee6 | |||
| 07a2b61d4c | |||
| 817db406bb | |||
| 442d1746f4 | |||
| a5988f582e | |||
| e9ef347c13 | |||
| be5cdd1d63 | |||
| d2af6c66fe | |||
| d5475e8d8d | |||
| 6e940d9a1d | |||
| 8cfe52e6fb | |||
| 6e5ab2b994 | |||
| 008c91537b | |||
| bfe377b8f2 | |||
| 825cf813fa | |||
| b0efa49ed1 | |||
| 876f5fb570 | |||
| e500ae8e29 | |||
| 2261c89a49 | |||
| 5a0dd71ed9 | |||
| bfc461f756 | |||
| ad0c442f1f | |||
| 4f389e7c0f | |||
| 4112acae08 | |||
| a456b12011 | |||
| 20b33b56ad | |||
| cf8cde2e5a | |||
| 8a35033782 | |||
| e98fb643ec | |||
| 636d32b327 | |||
| 10f23e10a9 | |||
| 4868f637b8 | |||
| b209b86e66 | |||
| 15a0a0281a | |||
| 7772c93a3e | |||
| e4c79d3615 | |||
| ba913b14dd | |||
| 5b0889b8bf | |||
| d3515a1e88 | |||
| 4a8eb6e7a9 | |||
| e5e4709a6a | |||
| 8ef1fbc0c3 | |||
| badeedd913 | |||
| 02551c9de0 | |||
| 96d6c4aabe | |||
| b25dbb3f9b | |||
| 0c6181fec4 | |||
| 1688938dd5 | |||
| 74cc13cc40 | |||
| 9ad1bf7afd | |||
| e978b4534a | |||
| 9c30f43899 | |||
| 2f339aad6c | |||
| f9c4c2f97d | |||
| 57a02ccf4c | |||
| 32f586eec1 | |||
| 6c313bbb04 | |||
| 7fe1089904 | |||
| 73b8209266 | |||
| 8878653a44 | |||
| f1cc4d55b9 | |||
| bacc83009b | |||
| 2d63e4b3cc | |||
| db4fd29063 | |||
| 7b7b4cb6f2 | |||
| f6cdab3704 | |||
| 288bf26c53 | |||
| ca6ac99077 | |||
| 7e0bae024d | |||
| cd4e4e169a | |||
| d8f981138a | |||
| 5fee111149 | |||
| 422b9dcbfa | |||
| b00df7aa38 | |||
| 8f5a8d8a8b | |||
| 21aaff3faa | |||
| dd0ad25988 | |||
| 81b8bf5b4a | |||
| 6a500661a9 | |||
| 6efb198033 | |||
| 6019fed0c5 | |||
| 92f076e53e | |||
| 6ec7808c4a | |||
| c41b3c9f95 | |||
| 1d7caa58e3 | |||
| 335c584940 | |||
| c2bd205254 | |||
| 64dea84bb0 | |||
| bd76c89e31 | |||
| 0401933a5b | |||
| 077ade4f67 | |||
| b69b9d5e17 | |||
| 958e15bb1c | |||
| 2eb413f89b | |||
| 44ff25d524 | |||
| 7159ac7fec | |||
| 8967f6c4b9 | |||
| a13eb2b147 | |||
| 8f566fdb1e | |||
| 84bc00e9b5 | |||
| 9fcde94176 | |||
| ad34abee25 | |||
| d9de087ddd |
+3
-4
@@ -5,15 +5,14 @@ env:
|
|||||||
freebsd_task:
|
freebsd_task:
|
||||||
name: FreeBSD
|
name: FreeBSD
|
||||||
matrix:
|
matrix:
|
||||||
|
- name: FreeBSD 14.0
|
||||||
|
freebsd_instance:
|
||||||
|
image_family: freebsd-14-0
|
||||||
- name: FreeBSD 13.1
|
- name: FreeBSD 13.1
|
||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
image_family: freebsd-13-1
|
image_family: freebsd-13-1
|
||||||
- name: FreeBSD 12.4
|
|
||||||
freebsd_instance:
|
|
||||||
image_family: freebsd-12-4
|
|
||||||
timeout_in: 20m
|
timeout_in: 20m
|
||||||
install_script:
|
install_script:
|
||||||
- pkg update -f
|
|
||||||
- pkg install -y gettext
|
- pkg install -y gettext
|
||||||
build_script:
|
build_script:
|
||||||
- NPROC=$(getconf _NPROCESSORS_ONLN)
|
- NPROC=$(getconf _NPROCESSORS_ONLN)
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
service_name: github-actions
|
|
||||||
@@ -18,6 +18,7 @@ runtime/autoload/netrwFileHandlers.vim @cecamp
|
|||||||
runtime/autoload/netrwSettings.vim @cecamp
|
runtime/autoload/netrwSettings.vim @cecamp
|
||||||
runtime/autoload/php.vim @david-szabo97
|
runtime/autoload/php.vim @david-szabo97
|
||||||
runtime/autoload/rubycomplete.vim @segfault @dkearns
|
runtime/autoload/rubycomplete.vim @segfault @dkearns
|
||||||
|
runtime/autoload/rust.vim @lilyball
|
||||||
runtime/autoload/tar.vim @cecamp
|
runtime/autoload/tar.vim @cecamp
|
||||||
runtime/autoload/vimball.vim @cecamp
|
runtime/autoload/vimball.vim @cecamp
|
||||||
runtime/autoload/xmlformat.vim @chrisbra
|
runtime/autoload/xmlformat.vim @chrisbra
|
||||||
@@ -132,6 +133,7 @@ runtime/ftplugin/eruby.vim @tpope @dkearns
|
|||||||
runtime/ftplugin/expect.vim @dkearns
|
runtime/ftplugin/expect.vim @dkearns
|
||||||
runtime/ftplugin/fennel.vim @gpanders
|
runtime/ftplugin/fennel.vim @gpanders
|
||||||
runtime/ftplugin/fetchmail.vim @dkearns
|
runtime/ftplugin/fetchmail.vim @dkearns
|
||||||
|
runtime/ftplugin/forth.vim @jkotlinski
|
||||||
runtime/ftplugin/fpcmake.vim @dkearns
|
runtime/ftplugin/fpcmake.vim @dkearns
|
||||||
runtime/ftplugin/freebasic.vim @dkearns
|
runtime/ftplugin/freebasic.vim @dkearns
|
||||||
runtime/ftplugin/fstab.vim @rid9
|
runtime/ftplugin/fstab.vim @rid9
|
||||||
@@ -150,11 +152,14 @@ runtime/ftplugin/go.vim @dbarnett
|
|||||||
runtime/ftplugin/gprof.vim @dpelle
|
runtime/ftplugin/gprof.vim @dpelle
|
||||||
runtime/ftplugin/haml.vim @tpope
|
runtime/ftplugin/haml.vim @tpope
|
||||||
runtime/ftplugin/hare.vim @rsaihe
|
runtime/ftplugin/hare.vim @rsaihe
|
||||||
|
runtime/ftplugin/heex.vim @cvincent
|
||||||
runtime/ftplugin/hgcommit.vim @k-takata
|
runtime/ftplugin/hgcommit.vim @k-takata
|
||||||
|
runtime/ftplugin/hog.vim @wtfbbqhax
|
||||||
runtime/ftplugin/html.vim @dkearns
|
runtime/ftplugin/html.vim @dkearns
|
||||||
runtime/ftplugin/i3config.vim @hiqua
|
runtime/ftplugin/i3config.vim @hiqua
|
||||||
runtime/ftplugin/icon.vim @dkearns
|
runtime/ftplugin/icon.vim @dkearns
|
||||||
runtime/ftplugin/indent.vim @dkearns
|
runtime/ftplugin/indent.vim @dkearns
|
||||||
|
runtime/ftplugin/ishd.vim @dkearns
|
||||||
runtime/ftplugin/j.vim @glts
|
runtime/ftplugin/j.vim @glts
|
||||||
runtime/ftplugin/javascript.vim @dkearns
|
runtime/ftplugin/javascript.vim @dkearns
|
||||||
runtime/ftplugin/javascriptreact.vim @dkearns
|
runtime/ftplugin/javascriptreact.vim @dkearns
|
||||||
@@ -180,13 +185,16 @@ runtime/ftplugin/pascal.vim @dkearns
|
|||||||
runtime/ftplugin/pbtxt.vim @lakshayg
|
runtime/ftplugin/pbtxt.vim @lakshayg
|
||||||
runtime/ftplugin/pdf.vim @tpope
|
runtime/ftplugin/pdf.vim @tpope
|
||||||
runtime/ftplugin/perl.vim @petdance @dkearns
|
runtime/ftplugin/perl.vim @petdance @dkearns
|
||||||
|
runtime/ftplugin/php.vim @dkearns
|
||||||
runtime/ftplugin/pod.vim @petdance @dkearns
|
runtime/ftplugin/pod.vim @petdance @dkearns
|
||||||
runtime/ftplugin/poefilter.vim @ObserverOfTime
|
runtime/ftplugin/poefilter.vim @ObserverOfTime
|
||||||
runtime/ftplugin/postscr.vim @mrdubya
|
runtime/ftplugin/postscr.vim @mrdubya
|
||||||
runtime/ftplugin/ps1.vim @heaths
|
runtime/ftplugin/ps1.vim @heaths
|
||||||
runtime/ftplugin/ps1xml.vim @heaths
|
runtime/ftplugin/ps1xml.vim @heaths
|
||||||
|
runtime/ftplugin/pymanifest.vim @ObserverOfTime
|
||||||
runtime/ftplugin/python.vim @tpict
|
runtime/ftplugin/python.vim @tpict
|
||||||
runtime/ftplugin/qb64.vim @dkearns
|
runtime/ftplugin/qb64.vim @dkearns
|
||||||
|
runtime/ftplugin/qml.vim @ChaseKnowlden
|
||||||
runtime/ftplugin/r.vim @jalvesaq
|
runtime/ftplugin/r.vim @jalvesaq
|
||||||
runtime/ftplugin/racket.vim @benknoble
|
runtime/ftplugin/racket.vim @benknoble
|
||||||
runtime/ftplugin/readline.vim @dkearns
|
runtime/ftplugin/readline.vim @dkearns
|
||||||
@@ -197,11 +205,14 @@ runtime/ftplugin/routeros.vim @zainin
|
|||||||
runtime/ftplugin/rrst.vim @jalvesaq
|
runtime/ftplugin/rrst.vim @jalvesaq
|
||||||
runtime/ftplugin/rst.vim @marshallward
|
runtime/ftplugin/rst.vim @marshallward
|
||||||
runtime/ftplugin/ruby.vim @tpope @dkearns
|
runtime/ftplugin/ruby.vim @tpope @dkearns
|
||||||
|
runtime/ftplugin/rust.vim @lilyball
|
||||||
runtime/ftplugin/sass.vim @tpope
|
runtime/ftplugin/sass.vim @tpope
|
||||||
runtime/ftplugin/scala.vim @derekwyatt
|
runtime/ftplugin/scala.vim @derekwyatt
|
||||||
runtime/ftplugin/scss.vim @tpope
|
runtime/ftplugin/scss.vim @tpope
|
||||||
runtime/ftplugin/sdoc.vim @gpanders
|
runtime/ftplugin/sdoc.vim @gpanders
|
||||||
|
runtime/ftplugin/sed.vim @dkearns
|
||||||
runtime/ftplugin/sh.vim @dkearns
|
runtime/ftplugin/sh.vim @dkearns
|
||||||
|
runtime/ftplugin/solidity.vim @cothi
|
||||||
runtime/ftplugin/solution.vim @dkearns
|
runtime/ftplugin/solution.vim @dkearns
|
||||||
runtime/ftplugin/spec.vim @ignatenkobrain
|
runtime/ftplugin/spec.vim @ignatenkobrain
|
||||||
runtime/ftplugin/ssa.vim @ObserverOfTime
|
runtime/ftplugin/ssa.vim @ObserverOfTime
|
||||||
@@ -215,6 +226,7 @@ runtime/ftplugin/toml.vim @averms
|
|||||||
runtime/ftplugin/tt2html.vim @petdance
|
runtime/ftplugin/tt2html.vim @petdance
|
||||||
runtime/ftplugin/typescript.vim @dkearns
|
runtime/ftplugin/typescript.vim @dkearns
|
||||||
runtime/ftplugin/typescriptreact.vim @dkearns
|
runtime/ftplugin/typescriptreact.vim @dkearns
|
||||||
|
runtime/ftplugin/unison.vim @chuwy
|
||||||
runtime/ftplugin/vdf.vim @ObserverOfTime
|
runtime/ftplugin/vdf.vim @ObserverOfTime
|
||||||
runtime/ftplugin/wast.vim @rhysd
|
runtime/ftplugin/wast.vim @rhysd
|
||||||
runtime/ftplugin/wget.vim @dkearns
|
runtime/ftplugin/wget.vim @dkearns
|
||||||
@@ -251,6 +263,7 @@ runtime/indent/go.vim @dbarnett
|
|||||||
runtime/indent/gyp.vim @ObserverOfTime
|
runtime/indent/gyp.vim @ObserverOfTime
|
||||||
runtime/indent/haml.vim @tpope
|
runtime/indent/haml.vim @tpope
|
||||||
runtime/indent/hare.vim @rsaihe
|
runtime/indent/hare.vim @rsaihe
|
||||||
|
runtime/indent/hog.vim @wtfbbqhax
|
||||||
runtime/indent/idlang.vim @dkearns
|
runtime/indent/idlang.vim @dkearns
|
||||||
runtime/indent/j.vim @glts
|
runtime/indent/j.vim @glts
|
||||||
runtime/indent/java.vim @xuhdev
|
runtime/indent/java.vim @xuhdev
|
||||||
@@ -258,6 +271,7 @@ runtime/indent/javascript.vim @bounceme
|
|||||||
runtime/indent/json.vim @elzr
|
runtime/indent/json.vim @elzr
|
||||||
runtime/indent/jsonc.vim @izhakjakov
|
runtime/indent/jsonc.vim @izhakjakov
|
||||||
runtime/indent/julia.vim @carlobaldassi
|
runtime/indent/julia.vim @carlobaldassi
|
||||||
|
runtime/indent/krl.vim @KnoP-01
|
||||||
runtime/indent/ld.vim @dkearns
|
runtime/indent/ld.vim @dkearns
|
||||||
runtime/indent/less.vim @genoma
|
runtime/indent/less.vim @genoma
|
||||||
runtime/indent/liquid.vim @tpope
|
runtime/indent/liquid.vim @tpope
|
||||||
@@ -274,8 +288,10 @@ runtime/indent/postscr.vim @mrdubya
|
|||||||
runtime/indent/prolog.vim @dkearns
|
runtime/indent/prolog.vim @dkearns
|
||||||
runtime/indent/ps1.vim @heaths
|
runtime/indent/ps1.vim @heaths
|
||||||
runtime/indent/qb64.vim @dkearns
|
runtime/indent/qb64.vim @dkearns
|
||||||
|
runtime/indent/qml.vim @ChaseKnowlden
|
||||||
runtime/indent/r.vim @jalvesaq
|
runtime/indent/r.vim @jalvesaq
|
||||||
runtime/indent/racket.vim @benknoble
|
runtime/indent/racket.vim @benknoble
|
||||||
|
runtime/indent/rapid.vim @KnoP-01
|
||||||
runtime/indent/readline.vim @dkearns
|
runtime/indent/readline.vim @dkearns
|
||||||
runtime/indent/rhelp.vim @jalvesaq
|
runtime/indent/rhelp.vim @jalvesaq
|
||||||
runtime/indent/rmd.vim @jalvesaq
|
runtime/indent/rmd.vim @jalvesaq
|
||||||
@@ -286,6 +302,7 @@ runtime/indent/sass.vim @tpope
|
|||||||
runtime/indent/scala.vim @derekwyatt
|
runtime/indent/scala.vim @derekwyatt
|
||||||
runtime/indent/scss.vim @tpope
|
runtime/indent/scss.vim @tpope
|
||||||
runtime/indent/sh.vim @chrisbra
|
runtime/indent/sh.vim @chrisbra
|
||||||
|
runtime/indent/solidity.vim @cothi
|
||||||
runtime/indent/systemverilog.vim @Kocha
|
runtime/indent/systemverilog.vim @Kocha
|
||||||
runtime/indent/tcl.vim @dkearns
|
runtime/indent/tcl.vim @dkearns
|
||||||
runtime/indent/tcsh.vim @dkearns
|
runtime/indent/tcsh.vim @dkearns
|
||||||
@@ -369,6 +386,7 @@ runtime/syntax/gitolite.vim @sitaramc
|
|||||||
runtime/syntax/gitrebase.vim @tpope
|
runtime/syntax/gitrebase.vim @tpope
|
||||||
runtime/syntax/go.vim @bhcleek
|
runtime/syntax/go.vim @bhcleek
|
||||||
runtime/syntax/godoc.vim @dbarnett
|
runtime/syntax/godoc.vim @dbarnett
|
||||||
|
runtime/syntax/gp.vim @KBelabas
|
||||||
runtime/syntax/gprof.vim @dpelle
|
runtime/syntax/gprof.vim @dpelle
|
||||||
runtime/syntax/groff.vim @jmarshall
|
runtime/syntax/groff.vim @jmarshall
|
||||||
runtime/syntax/gyp.vim @ObserverOfTime
|
runtime/syntax/gyp.vim @ObserverOfTime
|
||||||
@@ -377,6 +395,7 @@ runtime/syntax/hare.vim @rsaihe
|
|||||||
runtime/syntax/haskell.vim @coot
|
runtime/syntax/haskell.vim @coot
|
||||||
runtime/syntax/hgcommit.vim @k-takata
|
runtime/syntax/hgcommit.vim @k-takata
|
||||||
runtime/syntax/hitest.vim @lacygoill
|
runtime/syntax/hitest.vim @lacygoill
|
||||||
|
runtime/syntax/hog.vim @wtfbbqhax
|
||||||
runtime/syntax/hollywood.vim @sodero
|
runtime/syntax/hollywood.vim @sodero
|
||||||
runtime/syntax/html.vim @dkearns
|
runtime/syntax/html.vim @dkearns
|
||||||
runtime/syntax/i3config.vim @hiqua
|
runtime/syntax/i3config.vim @hiqua
|
||||||
@@ -389,6 +408,7 @@ runtime/syntax/javascript.vim @fleiner
|
|||||||
runtime/syntax/jsonc.vim @izhakjakov
|
runtime/syntax/jsonc.vim @izhakjakov
|
||||||
runtime/syntax/julia.vim @carlobaldassi
|
runtime/syntax/julia.vim @carlobaldassi
|
||||||
runtime/syntax/kconfig.vim @chrisbra
|
runtime/syntax/kconfig.vim @chrisbra
|
||||||
|
runtime/syntax/krl.vim @KnoP-01
|
||||||
runtime/syntax/less.vim @genoma
|
runtime/syntax/less.vim @genoma
|
||||||
runtime/syntax/lex.vim @cecamp
|
runtime/syntax/lex.vim @cecamp
|
||||||
runtime/syntax/liquid.vim @tpope
|
runtime/syntax/liquid.vim @tpope
|
||||||
@@ -428,10 +448,13 @@ runtime/syntax/prolog.vim @XVilka
|
|||||||
runtime/syntax/ps1.vim @heaths
|
runtime/syntax/ps1.vim @heaths
|
||||||
runtime/syntax/ps1xml.vim @heaths
|
runtime/syntax/ps1xml.vim @heaths
|
||||||
runtime/syntax/psl.vim @danielkho
|
runtime/syntax/psl.vim @danielkho
|
||||||
|
runtime/syntax/pymanifest.vim @ObserverOfTime
|
||||||
runtime/syntax/qb64.vim @dkearns
|
runtime/syntax/qb64.vim @dkearns
|
||||||
|
runtime/syntax/qml.vim @ChaseKnowlden
|
||||||
runtime/syntax/r.vim @jalvesaq
|
runtime/syntax/r.vim @jalvesaq
|
||||||
runtime/syntax/racket.vim @benknoble
|
runtime/syntax/racket.vim @benknoble
|
||||||
runtime/syntax/raml.vim @in3d
|
runtime/syntax/raml.vim @in3d
|
||||||
|
runtime/syntax/rapid.vim @KnoP-01
|
||||||
runtime/syntax/ratpoison.vim @trapd00r
|
runtime/syntax/ratpoison.vim @trapd00r
|
||||||
runtime/syntax/rc.vim @chrisbra
|
runtime/syntax/rc.vim @chrisbra
|
||||||
runtime/syntax/rcs.vim @hdima
|
runtime/syntax/rcs.vim @hdima
|
||||||
@@ -452,6 +475,7 @@ runtime/syntax/sdoc.vim @gpanders
|
|||||||
runtime/syntax/sed.vim @dkearns
|
runtime/syntax/sed.vim @dkearns
|
||||||
runtime/syntax/sh.vim @cecamp
|
runtime/syntax/sh.vim @cecamp
|
||||||
runtime/syntax/sm.vim @cecamp
|
runtime/syntax/sm.vim @cecamp
|
||||||
|
runtime/syntax/solidity.vim @cothi
|
||||||
runtime/syntax/spec.vim @ignatenkobrain
|
runtime/syntax/spec.vim @ignatenkobrain
|
||||||
runtime/syntax/sqloracle.vim @chrisbra
|
runtime/syntax/sqloracle.vim @chrisbra
|
||||||
runtime/syntax/squirrel.vim @zenmatic
|
runtime/syntax/squirrel.vim @zenmatic
|
||||||
@@ -477,6 +501,7 @@ runtime/syntax/tt2js.vim @petdance
|
|||||||
runtime/syntax/typescript.vim @HerringtonDarkholme
|
runtime/syntax/typescript.vim @HerringtonDarkholme
|
||||||
runtime/syntax/typescriptcommon.vim @HerringtonDarkholme
|
runtime/syntax/typescriptcommon.vim @HerringtonDarkholme
|
||||||
runtime/syntax/typescriptreact.vim @HerringtonDarkholme
|
runtime/syntax/typescriptreact.vim @HerringtonDarkholme
|
||||||
|
runtime/syntax/unison.vim @chuwy
|
||||||
runtime/syntax/vdf.vim @ObserverOfTime
|
runtime/syntax/vdf.vim @ObserverOfTime
|
||||||
runtime/syntax/vim.vim @cecamp
|
runtime/syntax/vim.vim @cecamp
|
||||||
runtime/syntax/vroom.vim @dbarnett
|
runtime/syntax/vroom.vim @dbarnett
|
||||||
@@ -491,6 +516,7 @@ runtime/syntax/xs.vim @petdance
|
|||||||
runtime/syntax/xslt.vim @Boobies
|
runtime/syntax/xslt.vim @Boobies
|
||||||
runtime/syntax/xxd.vim @cecamp
|
runtime/syntax/xxd.vim @cecamp
|
||||||
runtime/syntax/yacc.vim @cecamp
|
runtime/syntax/yacc.vim @cecamp
|
||||||
|
runtime/syntax/zserio.vim @dpelle
|
||||||
runtime/syntax/zsh.vim @chrisbra
|
runtime/syntax/zsh.vim @chrisbra
|
||||||
runtime/tutor/tutor.eo @dpelle
|
runtime/tutor/tutor.eo @dpelle
|
||||||
runtime/tutor/tutor.eo.utf-8 @dpelle
|
runtime/tutor/tutor.eo.utf-8 @dpelle
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
# list of labels and minimatch globs to match to apply the label.
|
||||||
|
|
||||||
|
CI:
|
||||||
|
- any: ['.cirrus.yml']
|
||||||
|
- any: ['.github/dependabot.yml']
|
||||||
|
- any: ['.github/labeler.yml']
|
||||||
|
- any: ['.github/workflows/*']
|
||||||
|
- any: ['.appveyor.yml']
|
||||||
|
- any: ['.codecov.yml']
|
||||||
|
|
||||||
|
translation:
|
||||||
|
- any: ['src/po/*.po']
|
||||||
|
|
||||||
|
if_lua:
|
||||||
|
- any: ['src/if_lua.c']
|
||||||
|
- any: ['src/proto/if_lua.pro']
|
||||||
|
- any: ['runtime/doc/if_lua.txt']
|
||||||
|
|
||||||
|
if_mzscheme:
|
||||||
|
- any: ['src/if_mzsch.c']
|
||||||
|
- any: ['src/if_mzsch.h']
|
||||||
|
- any: ['src/proto/if_mzsch.pro']
|
||||||
|
- any: ['runtime/doc/if_mzsch.txt']
|
||||||
|
|
||||||
|
if_perl:
|
||||||
|
- any: ['src/if_perl.xs']
|
||||||
|
- any: ['src/if_perlsfio.c']
|
||||||
|
- any: ['src/proto/if_perl.pro']
|
||||||
|
- any: ['src/proto/if_perlsfio.pro']
|
||||||
|
- any: ['runtime/doc/if_perl.txt']
|
||||||
|
|
||||||
|
if_python:
|
||||||
|
- any: ['src/if_py_both.h']
|
||||||
|
- any: ['runtime/doc/if_pyth.txt']
|
||||||
|
- any: ['src/if_python.c']
|
||||||
|
- any: ['src/if_python3.c']
|
||||||
|
- any: ['src/proto/if_python.pro']
|
||||||
|
- any: ['src/proto/if_python3.pro']
|
||||||
|
|
||||||
|
if_ruby:
|
||||||
|
- any: ['src/if_ruby.c']
|
||||||
|
- any: ['src/proto/if_ruby.pro']
|
||||||
|
- any: ['runtime/doc/if_ruby.txt']
|
||||||
|
|
||||||
|
if_tcl:
|
||||||
|
- any: ['src/if_tcl.c']
|
||||||
|
- any: ['src/proto/if_tcl.pro']
|
||||||
|
- any: ['runtime/doc/if_tcl.txt']
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
- any: ['runtime/ftplugin']
|
||||||
|
- any: ['runtime/syntax']
|
||||||
|
- any: ['runtime/indent']
|
||||||
|
- any: ['runtime/pack/dist/opt/termdebug/plugin/termdebug.vim']
|
||||||
|
|
||||||
|
termdebug: runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
|
||||||
|
|
||||||
|
netrw:
|
||||||
|
- any: ['runtime/plugin/netrwPlugin.vim']
|
||||||
|
- any: ['runtime/autoload/netrw*']
|
||||||
@@ -21,7 +21,6 @@ env:
|
|||||||
CC: clang
|
CC: clang
|
||||||
|
|
||||||
VERSIONER_PERL_VERSION: '5.30' # macOS default Perl installation uses this to determine which one to use
|
VERSIONER_PERL_VERSION: '5.30' # macOS default Perl installation uses this to determine which one to use
|
||||||
PYTHON3_VERSION: '3.11' # Make sure to keep src/MacVim/vimrc synced with the Python version here for the Python DLL detection logic.
|
|
||||||
|
|
||||||
vi_cv_path_python: /usr/local/bin/python
|
vi_cv_path_python: /usr/local/bin/python
|
||||||
vi_cv_path_python3: /usr/local/bin/python3
|
vi_cv_path_python3: /usr/local/bin/python3
|
||||||
@@ -29,12 +28,13 @@ env:
|
|||||||
vi_cv_path_ruby: /usr/local/opt/ruby/bin/ruby
|
vi_cv_path_ruby: /usr/local/opt/ruby/bin/ruby
|
||||||
vi_cv_dll_name_perl: /System/Library/Perl/%s/darwin-thread-multi-2level/CORE/libperl.dylib
|
vi_cv_dll_name_perl: /System/Library/Perl/%s/darwin-thread-multi-2level/CORE/libperl.dylib
|
||||||
vi_cv_dll_name_python: /usr/local/Frameworks/Python.framework/Versions/2.7/Python
|
vi_cv_dll_name_python: /usr/local/Frameworks/Python.framework/Versions/2.7/Python
|
||||||
vi_cv_dll_name_python3: /usr/local/Frameworks/Python.framework/Versions/%s/Python
|
vi_cv_dll_name_python3: /usr/local/Frameworks/Python.framework/Versions/Current/Python
|
||||||
vi_cv_dll_name_python3_arm64: /opt/homebrew/Frameworks/Python.framework/Versions/%s/Python
|
vi_cv_dll_name_python3_arm64: /opt/homebrew/Frameworks/Python.framework/Versions/Current/Python
|
||||||
vi_cv_dll_name_ruby: /usr/local/opt/ruby/lib/libruby.dylib
|
vi_cv_dll_name_ruby: /usr/local/opt/ruby/lib/libruby.dylib
|
||||||
vi_cv_dll_name_ruby_arm64: /opt/homebrew/opt/ruby/lib/libruby.dylib
|
vi_cv_dll_name_ruby_arm64: /opt/homebrew/opt/ruby/lib/libruby.dylib
|
||||||
vi_cv_dll_name_lua_arm64: /opt/homebrew/lib/liblua.dylib
|
vi_cv_dll_name_lua_arm64: /opt/homebrew/lib/liblua.dylib
|
||||||
|
|
||||||
|
MACVIM_APP: src/MacVim/build/Release/MacVim.app
|
||||||
VIM_BIN: src/MacVim/build/Release/MacVim.app/Contents/MacOS/Vim
|
VIM_BIN: src/MacVim/build/Release/MacVim.app/Contents/MacOS/Vim
|
||||||
MACVIM_BIN: src/MacVim/build/Release/MacVim.app/Contents/MacOS/MacVim
|
MACVIM_BIN: src/MacVim/build/Release/MacVim.app/Contents/MacOS/MacVim
|
||||||
|
|
||||||
@@ -53,6 +53,7 @@ jobs:
|
|||||||
# Oldest version of Xcode supported on GitHub Action to test source code backwards compatibility
|
# Oldest version of Xcode supported on GitHub Action to test source code backwards compatibility
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
xcode: '11.7'
|
xcode: '11.7'
|
||||||
|
extra: [vimtags]
|
||||||
|
|
||||||
# Older version of Xcode, and used to publish legacy builds (for macOS 10.9 - 10.12)
|
# Older version of Xcode, and used to publish legacy builds (for macOS 10.9 - 10.12)
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
@@ -70,7 +71,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up legacy build
|
- name: Set up legacy build
|
||||||
if: matrix.legacy
|
if: matrix.legacy
|
||||||
@@ -139,22 +140,8 @@ jobs:
|
|||||||
brew unlink perl
|
brew unlink perl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# With Perl and Python, we need to manually specify the version number for various reasons
|
# With Perl, we need to manually specify the version number because the dylib path depends on it.
|
||||||
# (e.g. library paths include the version number). Because of that, check that the version
|
|
||||||
# matches the expectation and fail if they don't, so we can go and fix it. Only do for
|
|
||||||
# Python because a wrong Perl version would just fail the build later.
|
|
||||||
if [[ "$(python3 --version)" != *"Python $PYTHON3_VERSION"* ]]; then
|
|
||||||
printf "\n"
|
|
||||||
echo "Wrong Python 3 version: $(python3 --version). Expected $PYTHON3_VERSION."
|
|
||||||
printf "\n"
|
|
||||||
echo "This likely happened because Homebrew was updated to point to a newer version of"
|
|
||||||
echo "Python 3. Update PYTHON3_VERSION to fix this."
|
|
||||||
exit -1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "vi_cv_dll_name_perl=$(printf $vi_cv_dll_name_perl $VERSIONER_PERL_VERSION)" >> $GITHUB_ENV
|
echo "vi_cv_dll_name_perl=$(printf $vi_cv_dll_name_perl $VERSIONER_PERL_VERSION)" >> $GITHUB_ENV
|
||||||
echo "vi_cv_dll_name_python3=$(printf $vi_cv_dll_name_python3 $PYTHON3_VERSION)" >> $GITHUB_ENV
|
|
||||||
echo "vi_cv_dll_name_python3_arm64=$(printf $vi_cv_dll_name_python3_arm64 $PYTHON3_VERSION)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# All set up steps are done. Build and test MacVim below.
|
# All set up steps are done. Build and test MacVim below.
|
||||||
|
|
||||||
@@ -175,6 +162,7 @@ jobs:
|
|||||||
--enable-perlinterp=dynamic
|
--enable-perlinterp=dynamic
|
||||||
--enable-pythoninterp=dynamic
|
--enable-pythoninterp=dynamic
|
||||||
--enable-python3interp=dynamic
|
--enable-python3interp=dynamic
|
||||||
|
--with-python3-stable-abi=3.9 # macOS and Xcode currently ships 3.9, so we don't want go higher than that.
|
||||||
--enable-rubyinterp=dynamic
|
--enable-rubyinterp=dynamic
|
||||||
--enable-luainterp=dynamic
|
--enable-luainterp=dynamic
|
||||||
--with-lua-prefix=/usr/local
|
--with-lua-prefix=/usr/local
|
||||||
@@ -221,27 +209,7 @@ jobs:
|
|||||||
cat src/auto/config.mk
|
cat src/auto/config.mk
|
||||||
cat src/auto/config.h
|
cat src/auto/config.h
|
||||||
|
|
||||||
# Build Vim first, separately from MacVim, so that we can use it to run
|
- name: Build
|
||||||
# vimtags afterwards to get the most correct help tags before we copy
|
|
||||||
# that into the MacVim bundle.
|
|
||||||
- name: Build Vim
|
|
||||||
env:
|
|
||||||
LC_ALL: C
|
|
||||||
run: |
|
|
||||||
set -o verbose
|
|
||||||
|
|
||||||
NPROC=$(getconf _NPROCESSORS_ONLN)
|
|
||||||
echo "Building Vim with ${NPROC} cores"
|
|
||||||
|
|
||||||
make -C src -j${NPROC} Vim
|
|
||||||
|
|
||||||
# Re-generate Vim help tags, because sometimes the Vim's runtime is not
|
|
||||||
# updated to have the latest tags.
|
|
||||||
- name: Update Vim help tags
|
|
||||||
if: matrix.publish
|
|
||||||
run: make -C runtime/doc vimtags VIMEXE=../../src/vim
|
|
||||||
|
|
||||||
- name: Build MacVim
|
|
||||||
env:
|
env:
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
run: |
|
run: |
|
||||||
@@ -279,6 +247,12 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make sure man pages were bundled
|
||||||
|
man -M `pwd`/${MACVIM_APP}/Contents/man -w mvim
|
||||||
|
|
||||||
|
# Make sure xxd was bundled
|
||||||
|
echo "AB" | ${MACVIM_APP}/Contents/bin/xxd | grep "4142"
|
||||||
|
|
||||||
- name: Smoketest (publish)
|
- name: Smoketest (publish)
|
||||||
if: matrix.publish
|
if: matrix.publish
|
||||||
run: |
|
run: |
|
||||||
@@ -313,6 +287,13 @@ jobs:
|
|||||||
check_arch "${VIM_BIN}"
|
check_arch "${VIM_BIN}"
|
||||||
check_arch "${MACVIM_BIN}"
|
check_arch "${MACVIM_BIN}"
|
||||||
|
|
||||||
|
- name: Check Vim help tags
|
||||||
|
if: contains(matrix.extra, 'vimtags')
|
||||||
|
run: |
|
||||||
|
# Confirm that we can build the help tags, and they match what's in source.
|
||||||
|
make -C runtime/doc vimtags VIMEXE=../../${VIM_BIN}
|
||||||
|
git diff --exit-code -- runtime/doc/tags
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
run: make test
|
run: make test
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository from github
|
- name: Checkout repository from github
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|||||||
@@ -13,14 +13,13 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: -Wno-deprecated-declarations
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository from github
|
- name: Checkout repository from github
|
||||||
if: env.TOKEN
|
if: env.TOKEN
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download Coverity
|
- name: Download Coverity
|
||||||
if: env.TOKEN
|
if: env.TOKEN
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# This workflow will triage pull requests and apply a label based on the
|
||||||
|
# paths that are modified in the pull request.
|
||||||
|
#
|
||||||
|
# To use this workflow, you will need to set up a .github/labeler.yml
|
||||||
|
# file with configuration. For more information, see:
|
||||||
|
# https://github.com/actions/labeler
|
||||||
|
|
||||||
|
name: Labeler
|
||||||
|
on: [pull_request_target]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v4
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
configuration-path: .github/labeler.yml
|
||||||
|
sync-labels: ''
|
||||||
@@ -217,6 +217,7 @@ SRC_ALL = \
|
|||||||
src/testdir/color_ramp.vim \
|
src/testdir/color_ramp.vim \
|
||||||
src/testdir/silent.wav \
|
src/testdir/silent.wav \
|
||||||
src/testdir/popupbounce.vim \
|
src/testdir/popupbounce.vim \
|
||||||
|
src/testdir/crash/* \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
src/protodef.h \
|
src/protodef.h \
|
||||||
src/proto/alloc.pro \
|
src/proto/alloc.pro \
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ II) It is allowed to distribute a modified (or extended) version of Vim,
|
|||||||
maintainer will do with your changes and under what license they
|
maintainer will do with your changes and under what license they
|
||||||
will be distributed is negotiable. If there has been no negotiation
|
will be distributed is negotiable. If there has been no negotiation
|
||||||
then this license, or a later version, also applies to your changes.
|
then this license, or a later version, also applies to your changes.
|
||||||
The current maintainer is Bram Moolenaar <Bram@vim.org>. If this
|
The current maintainers are listed here: https://github.com/orgs/vim/people.
|
||||||
changes it will be announced in appropriate places (most likely
|
If this changes it will be announced in appropriate places (most likely
|
||||||
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
|
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
|
||||||
impossible to contact the maintainer, the obligation to send him
|
impossible to contact the maintainer, the obligation to send him
|
||||||
your changes ceases. Once the maintainer has confirmed that he has
|
your changes ceases. Once the maintainer has confirmed that he has
|
||||||
|
|||||||
+6
-4
@@ -122,12 +122,14 @@ If you still have problems or any other questions, use one of the mailing
|
|||||||
lists to discuss them with Vim users and developers:
|
lists to discuss them with Vim users and developers:
|
||||||
https://www.vim.org/maillist.php
|
https://www.vim.org/maillist.php
|
||||||
|
|
||||||
If nothing else works, report bugs directly:
|
If nothing else works, report bugs directly to the vim-dev mailing list:
|
||||||
Bram Moolenaar <Bram@vim.org>
|
<vim-dev@vim.org>
|
||||||
|
|
||||||
|
|
||||||
MAIN AUTHOR
|
MAIN AUTHOR
|
||||||
|
|
||||||
Send any other comments, patches, flowers and suggestions to:
|
Most of Vim was created by Bram Moolenaar <Bram@vim.org> |Bram-Moolenaar|
|
||||||
|
|
||||||
Bram Moolenaar E-mail: Bram@vim.org
|
Send any other comments, patches, flowers and suggestions to the vim-dev mailing list:
|
||||||
|
|
||||||
|
<vim-dev@vim.org>
|
||||||
|
|||||||
+39
-40
@@ -1,17 +1,21 @@
|
|||||||
[](https://www.vim.org)
|
# [](https://www.vim.org)
|
||||||
|
|
||||||
[](https://github.com/vim/vim/actions?query=workflow%3A%22GitHub+CI%22) [](https://ci.appveyor.com/project/chrisbra/vim) [](https://cirrus-ci.com/github/vim/vim) [](https://codecov.io/gh/vim/vim?branch=master) [](https://scan.coverity.com/projects/vim) [](https://buildd.debian.org/vim) [](https://repology.org/metapackage/vim) [](https://fossies.org/linux/test/vim-master.tar.gz/codespell.html)
|
[](https://github.com/vim/vim/actions?query=workflow%3A%22GitHub+CI%22)
|
||||||
|
[](https://ci.appveyor.com/project/chrisbra/vim)
|
||||||
<sub>For translations of this README see the end.</sub>
|
[](https://cirrus-ci.com/github/vim/vim)
|
||||||
|
[](https://codecov.io/gh/vim/vim?branch=master)
|
||||||
|
[](https://scan.coverity.com/projects/vim)
|
||||||
|
[](https://buildd.debian.org/vim)
|
||||||
|
[](https://repology.org/metapackage/vim)
|
||||||
|
[](https://fossies.org/linux/test/vim-master.tar.gz/codespell.html)
|
||||||
|
|
||||||
If you find a bug or want to discuss the best way to add a new feature, please
|
If you find a bug or want to discuss the best way to add a new feature, please
|
||||||
open an [issue](https://github.com/vim/vim/issues).
|
[open an issue](https://github.com/vim/vim/issues/new/choose).
|
||||||
If you have a question or want to discuss the best way to do something with
|
If you have a question or want to discuss the best way to do something with
|
||||||
Vim, you can use [StackExchange](https://vi.stackexchange.com/)
|
Vim, you can use [StackExchange](https://vi.stackexchange.com/)
|
||||||
or one of the [Maillists](https://www.vim.org/community.php).
|
or one of the [Maillists](https://www.vim.org/community.php).
|
||||||
|
|
||||||
|
## What is Vim?
|
||||||
## What is Vim? ##
|
|
||||||
|
|
||||||
Vim is a greatly improved version of the good old UNIX editor
|
Vim is a greatly improved version of the good old UNIX editor
|
||||||
[Vi](https://en.wikipedia.org/wiki/Vi). Many new
|
[Vi](https://en.wikipedia.org/wiki/Vi). Many new
|
||||||
@@ -35,7 +39,7 @@ Amiga DOS, Atari MiNT, BeOS, RISC OS and OS/2. These are no longer maintained.
|
|||||||
|
|
||||||
For Vim9 script see [README_VIM9](README_VIM9.md).
|
For Vim9 script see [README_VIM9](README_VIM9.md).
|
||||||
|
|
||||||
## Distribution ##
|
## Distribution
|
||||||
|
|
||||||
You can often use your favorite package manager to install Vim. On Mac and
|
You can often use your favorite package manager to install Vim. On Mac and
|
||||||
Linux a small version of Vim is pre-installed, you still need to install Vim
|
Linux a small version of Vim is pre-installed, you still need to install Vim
|
||||||
@@ -55,48 +59,45 @@ Some popular places to get the latest Vim:
|
|||||||
* Get a Windows executable from the
|
* Get a Windows executable from the
|
||||||
[vim-win32-installer](https://github.com/vim/vim-win32-installer/releases) repository.
|
[vim-win32-installer](https://github.com/vim/vim-win32-installer/releases) repository.
|
||||||
|
|
||||||
|
## Compiling
|
||||||
|
|
||||||
## Compiling ##
|
|
||||||
|
|
||||||
If you obtained a binary distribution you don't need to compile Vim. If you
|
If you obtained a binary distribution you don't need to compile Vim. If you
|
||||||
obtained a source distribution, all the stuff for compiling Vim is in the
|
obtained a source distribution, all the stuff for compiling Vim is in the
|
||||||
[`src`](/src) directory. See [`src/INSTALL`](src/INSTALL) for instructions.
|
[`src`](./src/) directory. See [`src/INSTALL`](./src/INSTALL) for instructions.
|
||||||
|
|
||||||
|
## Installation
|
||||||
## Installation ##
|
|
||||||
|
|
||||||
See one of these files for system-specific instructions. Either in the
|
See one of these files for system-specific instructions. Either in the
|
||||||
[READMEdir directory](./READMEdir/) (in the repository) or
|
[READMEdir directory](./READMEdir/) (in the repository) or
|
||||||
the top directory (if you unpack an archive):
|
the top directory (if you unpack an archive):
|
||||||
|
|
||||||
README_ami.txt Amiga
|
```
|
||||||
README_unix.txt Unix
|
README_ami.txt Amiga
|
||||||
README_dos.txt MS-DOS and MS-Windows
|
README_unix.txt Unix
|
||||||
README_mac.txt Macintosh
|
README_dos.txt MS-DOS and MS-Windows
|
||||||
README_haiku.txt Haiku
|
README_mac.txt Macintosh
|
||||||
README_vms.txt VMS
|
README_haiku.txt Haiku
|
||||||
|
README_vms.txt VMS
|
||||||
|
```
|
||||||
|
|
||||||
There are other `README_*.txt` files, depending on the distribution you used.
|
There are other `README_*.txt` files, depending on the distribution you used.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
## Documentation ##
|
|
||||||
|
|
||||||
The Vim tutor is a one hour training course for beginners. Often it can be
|
The Vim tutor is a one hour training course for beginners. Often it can be
|
||||||
started as `vimtutor`. See `:help tutor` for more information.
|
started as `vimtutor`. See `:help tutor` for more information.
|
||||||
|
|
||||||
The best is to use `:help` in Vim. If you don't have an executable yet, read
|
The best is to use `:help` in Vim. If you don't have an executable yet, read
|
||||||
[`runtime/doc/help.txt`](/runtime/doc/help.txt).
|
[`runtime/doc/help.txt`](./runtime/doc/help.txt).
|
||||||
It contains pointers to the other documentation files.
|
It contains pointers to the other documentation files.
|
||||||
The User Manual reads like a book and is recommended to learn to use
|
The User Manual reads like a book and is recommended to learn to use
|
||||||
Vim. See `:help user-manual`.
|
Vim. See `:help user-manual`.
|
||||||
|
|
||||||
|
## Copying
|
||||||
## Copying ##
|
|
||||||
|
|
||||||
Vim is Charityware. You can use and copy it as much as you like, but you are
|
Vim is Charityware. You can use and copy it as much as you like, but you are
|
||||||
encouraged to make a donation to help orphans in Uganda. Please read the file
|
encouraged to make a donation to help orphans in Uganda. Please read the file
|
||||||
[`runtime/doc/uganda.txt`](runtime/doc/uganda.txt)
|
[`runtime/doc/uganda.txt`](./runtime/doc/uganda.txt)
|
||||||
for details (do `:help uganda` inside Vim).
|
for details (do `:help uganda` inside Vim).
|
||||||
|
|
||||||
Summary of the license: There are no restrictions on using or distributing an
|
Summary of the license: There are no restrictions on using or distributing an
|
||||||
@@ -105,28 +106,25 @@ text must always be included. For modified versions, a few restrictions apply.
|
|||||||
The license is GPL compatible, you may compile Vim with GPL libraries and
|
The license is GPL compatible, you may compile Vim with GPL libraries and
|
||||||
distribute it.
|
distribute it.
|
||||||
|
|
||||||
|
## Sponsoring
|
||||||
## Sponsoring ##
|
|
||||||
|
|
||||||
Fixing bugs and adding new features takes a lot of time and effort. To show
|
Fixing bugs and adding new features takes a lot of time and effort. To show
|
||||||
your appreciation for the work and motivate Bram and others to continue
|
your appreciation for the work and motivate Bram and others to continue
|
||||||
working on Vim please send a donation.
|
working on Vim please send a donation.
|
||||||
|
|
||||||
Since Bram is back to a paid job the money will now be used to help children
|
Since Bram is back to a paid job the money will now be used to help children
|
||||||
in Uganda. See [`runtime/doc/uganda.txt`](runtime/doc/uganda.txt). But
|
in Uganda. See [`runtime/doc/uganda.txt`](./runtime/doc/uganda.txt). But
|
||||||
at the same time donations increase Bram's motivation to keep working on Vim!
|
at the same time donations increase Bram's motivation to keep working on Vim!
|
||||||
|
|
||||||
For the most recent information about sponsoring look on the Vim web site:
|
For the most recent information about sponsoring look on the Vim web site:
|
||||||
https://www.vim.org/sponsor/
|
https://www.vim.org/sponsor/
|
||||||
|
|
||||||
|
## Contributing
|
||||||
## Contributing ##
|
|
||||||
|
|
||||||
If you would like to help make Vim better, see the
|
If you would like to help make Vim better, see the
|
||||||
[CONTRIBUTING.md](/CONTRIBUTING.md) file.
|
[CONTRIBUTING.md](./CONTRIBUTING.md) file.
|
||||||
|
|
||||||
|
## Information
|
||||||
## Information ##
|
|
||||||
|
|
||||||
If you are on macOS, you can use [Macvim](https://macvim-dev.github.io/macvim/).
|
If you are on macOS, you can use [Macvim](https://macvim-dev.github.io/macvim/).
|
||||||
|
|
||||||
@@ -141,14 +139,15 @@ If you still have problems or any other questions, use one of the mailing
|
|||||||
lists to discuss them with Vim users and developers:
|
lists to discuss them with Vim users and developers:
|
||||||
https://www.vim.org/maillist.php
|
https://www.vim.org/maillist.php
|
||||||
|
|
||||||
If nothing else works, report bugs directly:
|
If nothing else works, report bugs directly to the vim-dev mailing list:
|
||||||
Bram Moolenaar <Bram@vim.org>
|
`<vim-dev@vim.org>`
|
||||||
|
|
||||||
|
## Main author
|
||||||
|
|
||||||
## Main author ##
|
Most of Vim was created by Bram Moolenaar `<Bram@vim.org>`
|
||||||
|
[Bram-Moolenaar](https://vimhelp.org/version9.txt.html#Bram-Moolenaar)
|
||||||
Send any other comments, patches, flowers and suggestions to:
|
|
||||||
Bram Moolenaar <Bram@vim.org>
|
|
||||||
|
|
||||||
|
Send any other comments, patches, flowers and suggestions to the vim-dev mailing list:
|
||||||
|
`<vim-dev@vim.org>`
|
||||||
|
|
||||||
This is `README.md` for version 9.0 of Vim: Vi IMproved.
|
This is `README.md` for version 9.0 of Vim: Vi IMproved.
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Reporting a vulnerability
|
||||||
|
|
||||||
|
If you want to report a security issue, please use [huntr.dev](https://huntr.dev/bounties/disclose?target=https%3A%2F%2Fgithub.com%2Fvim%2Fvim) to privately disclose the issue to us.
|
||||||
|
They also have rewards in the form of money, swag and CVEs.
|
||||||
|
|
||||||
|
**Please don't publicly disclose the issue until it has been addressed by us.**
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror/
|
/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror -Wno-deprecated-declarations/
|
||||||
/^PERL_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-function/
|
/^PERL_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-function -Wno-shadow/
|
||||||
/^RUBY_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-parameter/
|
/^RUBY_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-parameter/
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
vim9script noclear
|
vim9script noclear
|
||||||
|
|
||||||
# Vim completion script
|
# Vim completion script
|
||||||
# Language: C
|
# Language: C
|
||||||
# Maintainer: Bram Moolenaar <Bram@vim.org>
|
# Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
|
# Last Change: 2023 Aug 10
|
||||||
# Rewritten in Vim9 script by github user lacygoill
|
# Rewritten in Vim9 script by github user lacygoill
|
||||||
# Last Change: 2022 Jan 31
|
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
var prepended: string
|
var prepended: string
|
||||||
var grepCache: dict<list<dict<any>>>
|
var grepCache: dict<list<dict<any>>>
|
||||||
|
|||||||
Vendored
+63
-18
@@ -2,8 +2,9 @@ vim9script
|
|||||||
|
|
||||||
# Vim functions for file type detection
|
# Vim functions for file type detection
|
||||||
#
|
#
|
||||||
# Maintainer: Bram Moolenaar <Bram@vim.org>
|
# Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
# Last Change: 2023 Jun 09
|
# Last Change: 2023 Aug 10
|
||||||
|
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
# These functions are moved here from runtime/filetype.vim to make startup
|
# These functions are moved here from runtime/filetype.vim to make startup
|
||||||
# faster.
|
# faster.
|
||||||
@@ -61,7 +62,7 @@ export def FTasmsyntax()
|
|||||||
endif
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
var ft_visual_basic_content = '\cVB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)'
|
var ft_visual_basic_content = '\c^\s*\%(Attribute\s\+VB_Name\|Begin\s\+\%(VB\.\|{\%(\x\+-\)\+\x\+}\)\)'
|
||||||
|
|
||||||
# See FTfrm() for Visual Basic form file detection
|
# See FTfrm() for Visual Basic form file detection
|
||||||
export def FTbas()
|
export def FTbas()
|
||||||
@@ -145,12 +146,20 @@ export def FTcls()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if getline(1) =~ '^\v%(\%|\\)'
|
var line1 = getline(1)
|
||||||
setf tex
|
if line1 =~ '^#!.*\<\%(rexx\|regina\)\>'
|
||||||
elseif getline(1)[0] == '#' && getline(1) =~ 'rexx'
|
|
||||||
setf rexx
|
setf rexx
|
||||||
elseif getline(1) == 'VERSION 1.0 CLASS'
|
return
|
||||||
|
elseif line1 == 'VERSION 1.0 CLASS'
|
||||||
setf vb
|
setf vb
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
var nonblank1 = getline(nextnonblank(1))
|
||||||
|
if nonblank1 =~ '^\v%(\%|\\)'
|
||||||
|
setf tex
|
||||||
|
elseif nonblank1 =~ '^\s*\%(/\*\|::\w\)'
|
||||||
|
setf rexx
|
||||||
else
|
else
|
||||||
setf st
|
setf st
|
||||||
endif
|
endif
|
||||||
@@ -286,12 +295,48 @@ export def FTe()
|
|||||||
endif
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
def IsForth(): bool
|
||||||
|
var first_line = nextnonblank(1)
|
||||||
|
|
||||||
|
# SwiftForth block comment (line is usually filled with '-' or '=') or
|
||||||
|
# OPTIONAL (sometimes precedes the header comment)
|
||||||
|
if getline(first_line) =~? '^\%({\%(\s\|$\)\|OPTIONAL\s\)'
|
||||||
|
return true
|
||||||
|
endif
|
||||||
|
|
||||||
|
var n = first_line
|
||||||
|
while n < 100 && n <= line("$")
|
||||||
|
# Forth comments and colon definitions
|
||||||
|
if getline(n) =~ '^[:(\\] '
|
||||||
|
return true
|
||||||
|
endif
|
||||||
|
n += 1
|
||||||
|
endwhile
|
||||||
|
return false
|
||||||
|
enddef
|
||||||
|
|
||||||
|
# Distinguish between Forth and Fortran
|
||||||
|
export def FTf()
|
||||||
|
if exists("g:filetype_f")
|
||||||
|
exe "setf " .. g:filetype_f
|
||||||
|
elseif IsForth()
|
||||||
|
setf forth
|
||||||
|
else
|
||||||
|
setf fortran
|
||||||
|
endif
|
||||||
|
enddef
|
||||||
|
|
||||||
export def FTfrm()
|
export def FTfrm()
|
||||||
if exists("g:filetype_frm")
|
if exists("g:filetype_frm")
|
||||||
exe "setf " .. g:filetype_frm
|
exe "setf " .. g:filetype_frm
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if getline(1) == "VERSION 5.00"
|
||||||
|
setf vb
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
var lines = getline(1, min([line("$"), 5]))
|
var lines = getline(1, min([line("$"), 5]))
|
||||||
|
|
||||||
if match(lines, ft_visual_basic_content) > -1
|
if match(lines, ft_visual_basic_content) > -1
|
||||||
@@ -301,21 +346,13 @@ export def FTfrm()
|
|||||||
endif
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
# Distinguish between Forth and F#.
|
# Distinguish between Forth and F#
|
||||||
# Provided by Doug Kearns.
|
|
||||||
export def FTfs()
|
export def FTfs()
|
||||||
if exists("g:filetype_fs")
|
if exists("g:filetype_fs")
|
||||||
exe "setf " .. g:filetype_fs
|
exe "setf " .. g:filetype_fs
|
||||||
|
elseif IsForth()
|
||||||
|
setf forth
|
||||||
else
|
else
|
||||||
var n = 1
|
|
||||||
while n < 100 && n <= line("$")
|
|
||||||
# Forth comments and colon definitions
|
|
||||||
if getline(n) =~ "^[:(\\\\] "
|
|
||||||
setf forth
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
n += 1
|
|
||||||
endwhile
|
|
||||||
setf fsharp
|
setf fsharp
|
||||||
endif
|
endif
|
||||||
enddef
|
enddef
|
||||||
@@ -1173,5 +1210,13 @@ export def FTv()
|
|||||||
setf v
|
setf v
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
export def FTvba()
|
||||||
|
if getline(1) =~ '^["#] Vimball Archiver'
|
||||||
|
setf vim
|
||||||
|
else
|
||||||
|
setf vb
|
||||||
|
endif
|
||||||
|
enddef
|
||||||
|
|
||||||
# Uncomment this line to check for compilation errors early
|
# Uncomment this line to check for compilation errors early
|
||||||
# defcompile
|
# defcompile
|
||||||
|
|||||||
Vendored
+66
-24
@@ -1,9 +1,9 @@
|
|||||||
" Vim filetype plugin autoload file
|
" Vim filetype plugin autoload file
|
||||||
" Language: man
|
" Language: man
|
||||||
" Maintainer: Jason Franklin <vim@justemail.net>
|
" Maintainer: Jason Franklin <jason@oneway.dev>
|
||||||
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
||||||
" Autoload Split: Bram Moolenaar
|
" Autoload Split: Bram Moolenaar
|
||||||
" Last Change: 2022 Jun 18
|
" Last Change: 2023 Jun 28
|
||||||
|
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
@@ -21,31 +21,65 @@ catch /E145:/
|
|||||||
" Ignore the error in restricted mode
|
" Ignore the error in restricted mode
|
||||||
endtry
|
endtry
|
||||||
|
|
||||||
|
func s:ParseIntoPageAndSection()
|
||||||
|
" Accommodate a reference that terminates in a hyphen.
|
||||||
|
"
|
||||||
|
" See init_charset_table() at
|
||||||
|
" https://git.savannah.gnu.org/cgit/groff.git/tree/src/roff/troff/input.cpp?h=1.22.4#n6794
|
||||||
|
"
|
||||||
|
" See can_break_after() at
|
||||||
|
" https://git.savannah.gnu.org/cgit/groff.git/tree/src/roff/troff/charinfo.h?h=1.22.4#n140
|
||||||
|
"
|
||||||
|
" Assumptions and limitations:
|
||||||
|
" 1) Manual-page references (in consequence of command-related filenames)
|
||||||
|
" do not contain non-ASCII HYPHENs (0x2010), any terminating HYPHEN
|
||||||
|
" must have been introduced to mark division of a word at the end of
|
||||||
|
" a line and can be discarded; whereas similar references may contain
|
||||||
|
" ASCII HYPHEN-MINUSes (0x002d) and any terminating HYPHEN-MINUS forms
|
||||||
|
" a compound word in addition to marking word division.
|
||||||
|
" 2) Well-formed manual-page references always have a section suffix, e.g.
|
||||||
|
" "git-commit(1)", therefore suspended hyphenated compounds are not
|
||||||
|
" determined, e.g. [V] (With cursor at _git-merge-_ below...)
|
||||||
|
" ".................... git-merge- and git-merge-base. (See git-cherry-
|
||||||
|
" pick(1) and git-cherry(1).)" (... look up "git-merge-pick(1)".)
|
||||||
|
"
|
||||||
|
" Note that EM DASH (0x2014), a third stooge from init_charset_table(),
|
||||||
|
" neither connects nor divides parts of a word.
|
||||||
|
let str = expand("<cWORD>")
|
||||||
|
|
||||||
|
if str =~ '\%u2010$' " HYPHEN (-1).
|
||||||
|
let str = strpart(str, 0, strridx(str, "\u2010"))
|
||||||
|
|
||||||
|
" Append the leftmost WORD (or an empty string) from the line below.
|
||||||
|
let str .= get(split(get(getbufline(bufnr('%'), line('.') + 1), 0, '')), 0, '')
|
||||||
|
elseif str =~ '-$' " HYPHEN-MINUS.
|
||||||
|
" Append the leftmost WORD (or an empty string) from the line below.
|
||||||
|
let str .= get(split(get(getbufline(bufnr('%'), line('.') + 1), 0, '')), 0, '')
|
||||||
|
endif
|
||||||
|
|
||||||
|
" According to man(1), section name formats vary (MANSECT):
|
||||||
|
" 1 n l 8 3 2 3posix 3pm 3perl 3am 5 4 9 6 7
|
||||||
|
let parts = matchlist(str, '\(\k\+\)(\(\k\+\))')
|
||||||
|
return (len(parts) > 2)
|
||||||
|
\ ? {'page': parts[1], 'section': parts[2]}
|
||||||
|
\ : {'page': matchstr(str, '\k\+'), 'section': ''}
|
||||||
|
endfunc
|
||||||
|
|
||||||
func dist#man#PreGetPage(cnt)
|
func dist#man#PreGetPage(cnt)
|
||||||
if a:cnt == 0
|
if a:cnt == 0
|
||||||
let old_isk = &iskeyword
|
let what = s:ParseIntoPageAndSection()
|
||||||
if &ft == 'man'
|
let sect = what.section
|
||||||
setl iskeyword+=(,)
|
let page = what.page
|
||||||
endif
|
|
||||||
let str = expand("<cword>")
|
|
||||||
let &l:iskeyword = old_isk
|
|
||||||
let page = substitute(str, '(*\(\k\+\).*', '\1', '')
|
|
||||||
let sect = substitute(str, '\(\k\+\)(\([^()]*\)).*', '\2', '')
|
|
||||||
if match(sect, '^[0-9 ]\+$') == -1
|
|
||||||
let sect = ""
|
|
||||||
endif
|
|
||||||
if sect == page
|
|
||||||
let sect = ""
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
|
let what = s:ParseIntoPageAndSection()
|
||||||
let sect = a:cnt
|
let sect = a:cnt
|
||||||
let page = expand("<cword>")
|
let page = what.page
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call dist#man#GetPage('', sect, page)
|
call dist#man#GetPage('', sect, page)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func s:GetCmdArg(sect, page)
|
func s:GetCmdArg(sect, page)
|
||||||
|
|
||||||
if empty(a:sect)
|
if empty(a:sect)
|
||||||
return shellescape(a:page)
|
return shellescape(a:page)
|
||||||
endif
|
endif
|
||||||
@@ -75,9 +109,11 @@ func dist#man#GetPage(cmdmods, ...)
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" To support: nmap K :Man <cword>
|
" To support: nmap K :Man <cWORD><CR>
|
||||||
if page == '<cword>'
|
if page ==? '<cword>'
|
||||||
let page = expand('<cword>')
|
let what = s:ParseIntoPageAndSection()
|
||||||
|
let sect = what.section
|
||||||
|
let page = what.page
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('g:ft_man_no_sect_fallback') || (g:ft_man_no_sect_fallback == 0)
|
if !exists('g:ft_man_no_sect_fallback') || (g:ft_man_no_sect_fallback == 0)
|
||||||
@@ -154,9 +190,14 @@ func dist#man#GetPage(cmdmods, ...)
|
|||||||
endif
|
endif
|
||||||
let env_cmd = s:env_has_u ? 'env -u MANPAGER' : 'env MANPAGER=cat'
|
let env_cmd = s:env_has_u ? 'env -u MANPAGER' : 'env MANPAGER=cat'
|
||||||
let env_cmd .= ' GROFF_NO_SGR=1'
|
let env_cmd .= ' GROFF_NO_SGR=1'
|
||||||
let man_cmd = env_cmd . ' man ' . s:GetCmdArg(sect, page) . ' | col -b'
|
let man_cmd = env_cmd . ' man ' . s:GetCmdArg(sect, page)
|
||||||
|
|
||||||
silent exec "r !" . man_cmd
|
silent exec "r !" . man_cmd
|
||||||
|
|
||||||
|
" Emulate piping the buffer through the "col -b" command.
|
||||||
|
" Ref: https://github.com/vim/vim/issues/12301
|
||||||
|
silent! keepjumps keeppatterns %s/\v(.)\b\ze\1?//ge
|
||||||
|
|
||||||
if unsetwidth
|
if unsetwidth
|
||||||
let $MANWIDTH = ''
|
let $MANWIDTH = ''
|
||||||
endif
|
endif
|
||||||
@@ -180,9 +221,10 @@ func dist#man#PopPage()
|
|||||||
exec "let s:man_tag_buf=s:man_tag_buf_".s:man_tag_depth
|
exec "let s:man_tag_buf=s:man_tag_buf_".s:man_tag_depth
|
||||||
exec "let s:man_tag_lin=s:man_tag_lin_".s:man_tag_depth
|
exec "let s:man_tag_lin=s:man_tag_lin_".s:man_tag_depth
|
||||||
exec "let s:man_tag_col=s:man_tag_col_".s:man_tag_depth
|
exec "let s:man_tag_col=s:man_tag_col_".s:man_tag_depth
|
||||||
|
|
||||||
exec s:man_tag_buf."b"
|
exec s:man_tag_buf."b"
|
||||||
exec s:man_tag_lin
|
call cursor(s:man_tag_lin, s:man_tag_col)
|
||||||
exec "norm! ".s:man_tag_col."|"
|
|
||||||
exec "unlet s:man_tag_buf_".s:man_tag_depth
|
exec "unlet s:man_tag_buf_".s:man_tag_depth
|
||||||
exec "unlet s:man_tag_lin_".s:man_tag_depth
|
exec "unlet s:man_tag_lin_".s:man_tag_depth
|
||||||
exec "unlet s:man_tag_col_".s:man_tag_depth
|
exec "unlet s:man_tag_col_".s:man_tag_depth
|
||||||
|
|||||||
Vendored
+11
-2
@@ -3,8 +3,9 @@ vim9script
|
|||||||
# Vim function for detecting a filetype from the file contents.
|
# Vim function for detecting a filetype from the file contents.
|
||||||
# Invoked from "scripts.vim" in 'runtimepath'
|
# Invoked from "scripts.vim" in 'runtimepath'
|
||||||
#
|
#
|
||||||
# Maintainer: Bram Moolenaar <Bram@vim.org>
|
# Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
# Last Change: 2023 Jun 09
|
# Last Change: 2023 Aug 10
|
||||||
|
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
export def DetectFiletype()
|
export def DetectFiletype()
|
||||||
var line1 = getline(1)
|
var line1 = getline(1)
|
||||||
@@ -208,6 +209,14 @@ export def Exe2filetype(name: string, line1: string): string
|
|||||||
elseif name =~ 'nix-shell'
|
elseif name =~ 'nix-shell'
|
||||||
return 'nix'
|
return 'nix'
|
||||||
|
|
||||||
|
# Crystal
|
||||||
|
elseif name =~ '^crystal\>'
|
||||||
|
return 'crystal'
|
||||||
|
|
||||||
|
# Rexx
|
||||||
|
elseif name =~ '^\%(rexx\|regina\)\>'
|
||||||
|
return 'rexx'
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Vendored
+8
-12
@@ -2,7 +2,7 @@ vim9script
|
|||||||
|
|
||||||
# Language: Vim script
|
# Language: Vim script
|
||||||
# Maintainer: github user lacygoill
|
# Maintainer: github user lacygoill
|
||||||
# Last Change: 2023 Feb 01
|
# Last Change: 2023 Jun 29
|
||||||
|
|
||||||
# NOTE: Whenever you change the code, make sure the tests are still passing:
|
# NOTE: Whenever you change the code, make sure the tests are still passing:
|
||||||
#
|
#
|
||||||
@@ -112,10 +112,6 @@ const DICT_KEY: string = '^\s*\%('
|
|||||||
.. '\)'
|
.. '\)'
|
||||||
.. ':\%(\s\|$\)'
|
.. ':\%(\s\|$\)'
|
||||||
|
|
||||||
# NOT_A_DICT_KEY {{{3
|
|
||||||
|
|
||||||
const NOT_A_DICT_KEY: string = ':\@!'
|
|
||||||
|
|
||||||
# END_OF_COMMAND {{{3
|
# END_OF_COMMAND {{{3
|
||||||
|
|
||||||
const END_OF_COMMAND: string = $'\s*\%($\|||\@!\|{INLINE_COMMENT}\)'
|
const END_OF_COMMAND: string = $'\s*\%($\|||\@!\|{INLINE_COMMENT}\)'
|
||||||
@@ -197,13 +193,13 @@ patterns =<< trim eval END
|
|||||||
ldo\=\>!\=
|
ldo\=\>!\=
|
||||||
tabdo\=\>
|
tabdo\=\>
|
||||||
windo\>
|
windo\>
|
||||||
au\%[tocmd]\>.*
|
au\%[tocmd]\>!\=.*
|
||||||
com\%[mand]\>.*
|
com\%[mand]\>!\=.*
|
||||||
g\%[lobal]!\={PATTERN_DELIMITER}.*
|
g\%[lobal]!\={PATTERN_DELIMITER}.*
|
||||||
v\%[global]!\={PATTERN_DELIMITER}.*
|
v\%[global]!\={PATTERN_DELIMITER}.*
|
||||||
END
|
END
|
||||||
|
|
||||||
const HIGHER_ORDER_COMMAND: string = $'\%(^\|{BAR_SEPARATION}\)\s*\<\%({patterns->join('\|')}\){NOT_A_DICT_KEY}'
|
const HIGHER_ORDER_COMMAND: string = $'\%(^\|{BAR_SEPARATION}\)\s*\<\%({patterns->join('\|')}\)\%(\s\|$\)\@='
|
||||||
|
|
||||||
# START_MIDDLE_END {{{3
|
# START_MIDDLE_END {{{3
|
||||||
|
|
||||||
@@ -254,7 +250,7 @@ START_MIDDLE_END = START_MIDDLE_END
|
|||||||
kwds->map((_, kwd: string) => kwd == ''
|
kwds->map((_, kwd: string) => kwd == ''
|
||||||
? ''
|
? ''
|
||||||
: $'\%(^\|{BAR_SEPARATION}\|\<sil\%[ent]\|{HIGHER_ORDER_COMMAND}\)\s*'
|
: $'\%(^\|{BAR_SEPARATION}\|\<sil\%[ent]\|{HIGHER_ORDER_COMMAND}\)\s*'
|
||||||
.. $'\<\%({kwd}\)\>\%(\s*{OPERATOR}\)\@!'))
|
.. $'\<\%({kwd}\)\>\%(\s\|$\|!\)\@=\%(\s*{OPERATOR}\)\@!'))
|
||||||
|
|
||||||
lockvar! START_MIDDLE_END
|
lockvar! START_MIDDLE_END
|
||||||
|
|
||||||
@@ -279,7 +275,7 @@ patterns = BLOCKS
|
|||||||
|
|
||||||
const ENDS_BLOCK_OR_CLAUSE: string = '^\s*\%(' .. patterns->join('\|') .. $'\){END_OF_COMMAND}'
|
const ENDS_BLOCK_OR_CLAUSE: string = '^\s*\%(' .. patterns->join('\|') .. $'\){END_OF_COMMAND}'
|
||||||
.. $'\|^\s*cat\%[ch]\%(\s\+\({PATTERN_DELIMITER}\).*\1\)\={END_OF_COMMAND}'
|
.. $'\|^\s*cat\%[ch]\%(\s\+\({PATTERN_DELIMITER}\).*\1\)\={END_OF_COMMAND}'
|
||||||
.. $'\|^\s*elseif\=\>\%({OPERATOR}\)\@!'
|
.. $'\|^\s*elseif\=\>\%(\s\|$\)\@=\%(\s*{OPERATOR}\)\@!'
|
||||||
|
|
||||||
# STARTS_NAMED_BLOCK {{{3
|
# STARTS_NAMED_BLOCK {{{3
|
||||||
|
|
||||||
@@ -296,7 +292,7 @@ patterns = []
|
|||||||
endfor
|
endfor
|
||||||
}
|
}
|
||||||
|
|
||||||
const STARTS_NAMED_BLOCK: string = $'^\s*\%(sil\%[ent]\s\+\)\=\%({patterns->join('\|')}\)\>{NOT_A_DICT_KEY}'
|
const STARTS_NAMED_BLOCK: string = $'^\s*\%(sil\%[ent]\s\+\)\=\%({patterns->join('\|')}\)\>\%(\s\|$\|!\)\@='
|
||||||
|
|
||||||
# STARTS_CURLY_BLOCK {{{3
|
# STARTS_CURLY_BLOCK {{{3
|
||||||
|
|
||||||
@@ -312,7 +308,7 @@ const STARTS_CURLY_BLOCK: string = '\%('
|
|||||||
|
|
||||||
# STARTS_FUNCTION {{{3
|
# STARTS_FUNCTION {{{3
|
||||||
|
|
||||||
const STARTS_FUNCTION: string = $'^\s*\%({MODIFIERS.def}\)\=def\>{NOT_A_DICT_KEY}'
|
const STARTS_FUNCTION: string = $'^\s*\%({MODIFIERS.def}\)\=def\>!\=\s\@='
|
||||||
|
|
||||||
# ENDS_FUNCTION {{{3
|
# ENDS_FUNCTION {{{3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
" Vim autoload file for editing compressed files.
|
" Vim autoload file for editing compressed files.
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2016 Sep 28
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" These functions are used by the gzip plugin.
|
" These functions are used by the gzip plugin.
|
||||||
|
|
||||||
@@ -9,12 +10,20 @@
|
|||||||
fun s:check(cmd)
|
fun s:check(cmd)
|
||||||
let name = substitute(a:cmd, '\(\S*\).*', '\1', '')
|
let name = substitute(a:cmd, '\(\S*\).*', '\1', '')
|
||||||
if !exists("s:have_" . name)
|
if !exists("s:have_" . name)
|
||||||
|
" safety check, don't execute anything from the current directory
|
||||||
|
let s:tmp_cwd = getcwd()
|
||||||
|
let f = (fnamemodify(exepath(name), ":p:h") !=# s:tmp_cwd
|
||||||
|
\ || (index(split($PATH,has("win32")? ';' : ':'), s:tmp_cwd) != -1 && s:tmp_cwd != '.'))
|
||||||
|
unlet s:tmp_cwd
|
||||||
|
if !f
|
||||||
|
echoerr "Warning: NOT executing " .. name .. " from current directory!"
|
||||||
|
endif
|
||||||
let e = executable(name)
|
let e = executable(name)
|
||||||
if e < 0
|
if e < 0
|
||||||
let r = system(name . " --version")
|
let r = system(name . " --version")
|
||||||
let e = (r !~ "not found" && r != "")
|
let e = (r !~ "not found" && r != "")
|
||||||
endif
|
endif
|
||||||
exe "let s:have_" . name . "=" . e
|
exe "let s:have_" . name . "=" . (e && f)
|
||||||
endif
|
endif
|
||||||
exe "return s:have_" . name
|
exe "return s:have_" . name
|
||||||
endfun
|
endfun
|
||||||
|
|||||||
@@ -156,8 +156,8 @@ function! javascriptcomplete#CompleteJS(findstart, base)
|
|||||||
\ 'text', 'vLink']
|
\ 'text', 'vLink']
|
||||||
let bodys = bodyprop
|
let bodys = bodyprop
|
||||||
" Document - document.
|
" Document - document.
|
||||||
let docuprop = ['anchors', 'body', 'characterSet', 'doctype',
|
let docuprop = ['anchors', 'applets', 'body', 'characterSet', 'childNodes',
|
||||||
\ 'documentElement', 'documentURI', 'embeds', 'fonts', 'forms',
|
\ 'doctype', 'documentElement', 'documentURI', 'embeds', 'fonts', 'forms',
|
||||||
\ 'head', 'hidden', 'images', 'implementation', 'lastStyleSheetSet',
|
\ 'head', 'hidden', 'images', 'implementation', 'lastStyleSheetSet',
|
||||||
\ 'links', 'plugins', 'preferredStyleSheetSet', 'scripts',
|
\ 'links', 'plugins', 'preferredStyleSheetSet', 'scripts',
|
||||||
\ 'scrollingElement', 'selectedStyleSheetSet', 'styleSheetSets',
|
\ 'scrollingElement', 'selectedStyleSheetSet', 'styleSheetSets',
|
||||||
@@ -171,7 +171,7 @@ function! javascriptcomplete#CompleteJS(findstart, base)
|
|||||||
\ 'createEvent', 'createExpression', 'createNSResolver',
|
\ 'createEvent', 'createExpression', 'createNSResolver',
|
||||||
\ 'createNodeIterator', 'createProcessingInstruction', 'createRange',
|
\ 'createNodeIterator', 'createProcessingInstruction', 'createRange',
|
||||||
\ 'createTextNode', 'createTouchList', 'createTreeWalker',
|
\ 'createTextNode', 'createTouchList', 'createTreeWalker',
|
||||||
\ 'enableStyleSheetsForSet', 'evaluate', 'focus', 'getElementById',
|
\ 'enableStyleSheetsForSet', 'evaluate', 'focus',
|
||||||
\ 'getElementById', 'getElementsByClassName', 'getElementsByName',
|
\ 'getElementById', 'getElementsByClassName', 'getElementsByName',
|
||||||
\ 'getElementsByTagName', 'getElementsByTagNameNS',
|
\ 'getElementsByTagName', 'getElementsByTagNameNS',
|
||||||
\ 'hasStorageAccess', 'importNode', 'onClick', 'onDblClick',
|
\ 'hasStorageAccess', 'importNode', 'onClick', 'onDblClick',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
" Vim support file to help with paste mappings and menus
|
" Vim support file to help with paste mappings and menus
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2019 Jan 27
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Define the string to use for items that are present both in Edit, Popup and
|
" Define the string to use for items that are present both in Edit, Popup and
|
||||||
" Toolbar menu. Also used in mswin.vim and macmap.vim.
|
" Toolbar menu. Also used in mswin.vim and macmap.vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
" Author: Kevin Ballard
|
" Author: Lily Ballard
|
||||||
" Description: Helper functions for Rust commands/mappings
|
" Description: Helper functions for Rust commands/mappings
|
||||||
" Last Modified: May 27, 2014
|
" Last Modified: May 27, 2014
|
||||||
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim
|
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
" Vim script to download a missing spell file
|
" Vim script to download a missing spell file
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2020 Jul 10
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
if !exists('g:spellfile_URL')
|
if !exists('g:spellfile_URL')
|
||||||
" Always use https:// because it's secure. The certificate is for nluug.nl,
|
" Always use https:// because it's secure. The certificate is for nluug.nl,
|
||||||
|
|||||||
+36
-35
@@ -1,6 +1,6 @@
|
|||||||
" Vim autoload file for the tohtml plugin.
|
" Vim autoload file for the tohtml plugin.
|
||||||
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
||||||
" Last Change: 2023 Jan 01
|
" Last Change: 2023 Sep 03
|
||||||
"
|
"
|
||||||
" Additional contributors:
|
" Additional contributors:
|
||||||
"
|
"
|
||||||
@@ -307,7 +307,7 @@ func! tohtml#Convert2HTML(line1, line2) "{{{
|
|||||||
let g:html_diff_win_num = 0
|
let g:html_diff_win_num = 0
|
||||||
for window in win_list
|
for window in win_list
|
||||||
" switch to the next buffer to convert
|
" switch to the next buffer to convert
|
||||||
exe ":" . bufwinnr(window) . "wincmd w"
|
exe ":" .. bufwinnr(window) .. "wincmd w"
|
||||||
|
|
||||||
" figure out whether current charset and encoding will work, if not
|
" figure out whether current charset and encoding will work, if not
|
||||||
" default to UTF-8
|
" default to UTF-8
|
||||||
@@ -355,7 +355,7 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
if !s:settings.no_doc
|
if !s:settings.no_doc
|
||||||
if s:settings.use_xhtml
|
if s:settings.use_xhtml
|
||||||
if s:settings.encoding != ""
|
if s:settings.encoding != ""
|
||||||
let xml_line = "<?xml version=\"1.0\" encoding=\"" . s:settings.encoding . "\"?>"
|
let xml_line = "<?xml version=\"1.0\" encoding=\"" .. s:settings.encoding .. "\"?>"
|
||||||
else
|
else
|
||||||
let xml_line = "<?xml version=\"1.0\"?>"
|
let xml_line = "<?xml version=\"1.0\"?>"
|
||||||
endif
|
endif
|
||||||
@@ -387,34 +387,34 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
" contained in XML information
|
" contained in XML information
|
||||||
if s:settings.encoding != "" && !s:settings.use_xhtml
|
if s:settings.encoding != "" && !s:settings.use_xhtml
|
||||||
if s:html5
|
if s:html5
|
||||||
call add(html, '<meta charset="' . s:settings.encoding . '"' . tag_close)
|
call add(html, '<meta charset="' .. s:settings.encoding .. '"' .. tag_close)
|
||||||
else
|
else
|
||||||
call add(html, "<meta http-equiv=\"content-type\" content=\"text/html; charset=" . s:settings.encoding . '"' . tag_close)
|
call add(html, "<meta http-equiv=\"content-type\" content=\"text/html; charset=" .. s:settings.encoding .. '"' .. tag_close)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call add(html, '<title>diff</title>')
|
call add(html, '<title>diff</title>')
|
||||||
call add(html, '<meta name="Generator" content="Vim/'.v:version/100.'.'.v:version%100.'"'.tag_close)
|
call add(html, '<meta name="Generator" content="Vim/'..v:version/100..'.'..v:version%100..'"'..tag_close)
|
||||||
call add(html, '<meta name="plugin-version" content="'.g:loaded_2html_plugin.'"'.tag_close)
|
call add(html, '<meta name="plugin-version" content="'..g:loaded_2html_plugin..'"'..tag_close)
|
||||||
call add(html, '<meta name="settings" content="'.
|
call add(html, '<meta name="settings" content="'.
|
||||||
\ join(filter(keys(s:settings),'s:settings[v:val]'),',').
|
\ join(filter(keys(s:settings),'s:settings[v:val]'),',').
|
||||||
\ ',prevent_copy='.s:settings.prevent_copy.
|
\ ',prevent_copy='..s:settings.prevent_copy.
|
||||||
\ ',use_input_for_pc='.s:settings.use_input_for_pc.
|
\ ',use_input_for_pc='..s:settings.use_input_for_pc.
|
||||||
\ '"'.tag_close)
|
\ '"'..tag_close)
|
||||||
call add(html, '<meta name="colorscheme" content="'.
|
call add(html, '<meta name="colorscheme" content="'.
|
||||||
\ (exists('g:colors_name')
|
\ (exists('g:colors_name')
|
||||||
\ ? g:colors_name
|
\ ? g:colors_name
|
||||||
\ : 'none'). '"'.tag_close)
|
\ : 'none').. '"'..tag_close)
|
||||||
|
|
||||||
call add(html, '</head>')
|
call add(html, '</head>')
|
||||||
let body_line_num = len(html)
|
let body_line_num = len(html)
|
||||||
call add(html, '<body'.(s:settings.line_ids ? ' onload="JumpToLine();"' : '').'>')
|
call add(html, '<body'..(s:settings.line_ids ? ' onload="JumpToLine();"' : '')..'>')
|
||||||
endif
|
endif
|
||||||
call add(html, "<table ".(s:settings.use_css? "" : "border='1' width='100%' ")."id='vimCodeElement".s:settings.id_suffix."'>")
|
call add(html, "<table "..(s:settings.use_css? "" : "border='1' width='100%' ").."id='vimCodeElement"..s:settings.id_suffix.."'>")
|
||||||
|
|
||||||
call add(html, '<tr>')
|
call add(html, '<tr>')
|
||||||
for buf in a:win_list
|
for buf in a:win_list
|
||||||
call add(html, '<th>'.bufname(buf).'</th>')
|
call add(html, '<th>'..bufname(buf)..'</th>')
|
||||||
endfor
|
endfor
|
||||||
call add(html, '</tr><tr>')
|
call add(html, '</tr><tr>')
|
||||||
|
|
||||||
@@ -423,7 +423,7 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
|
|
||||||
for buf in a:buf_list
|
for buf in a:buf_list
|
||||||
let temp = []
|
let temp = []
|
||||||
exe bufwinnr(buf) . 'wincmd w'
|
exe bufwinnr(buf) .. 'wincmd w'
|
||||||
|
|
||||||
" If text is folded because of user foldmethod settings, etc. we don't want
|
" If text is folded because of user foldmethod settings, etc. we don't want
|
||||||
" to act on everything in a fold by mistake.
|
" to act on everything in a fold by mistake.
|
||||||
@@ -526,16 +526,16 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let i = 1
|
let i = 1
|
||||||
let name = "Diff" . (s:settings.use_xhtml ? ".xhtml" : ".html")
|
let name = "Diff" .. (s:settings.use_xhtml ? ".xhtml" : ".html")
|
||||||
" Find an unused file name if current file name is already in use
|
" Find an unused file name if current file name is already in use
|
||||||
while filereadable(name)
|
while filereadable(name)
|
||||||
let name = substitute(name, '\d*\.x\?html$', '', '') . i . '.' . fnamemodify(copy(name), ":t:e")
|
let name = substitute(name, '\d*\.x\?html$', '', '') .. i .. '.' .. fnamemodify(copy(name), ":t:e")
|
||||||
let i += 1
|
let i += 1
|
||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
let s:ei_sav = &eventignore
|
let s:ei_sav = &eventignore
|
||||||
set eventignore+=FileType
|
set eventignore+=FileType
|
||||||
exe "topleft new " . name
|
exe "topleft new " .. name
|
||||||
let &eventignore=s:ei_sav
|
let &eventignore=s:ei_sav
|
||||||
unlet s:ei_sav
|
unlet s:ei_sav
|
||||||
|
|
||||||
@@ -601,7 +601,7 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
\ "",
|
\ "",
|
||||||
\ " /* navigate upwards in the DOM tree to open all folds containing the line */",
|
\ " /* navigate upwards in the DOM tree to open all folds containing the line */",
|
||||||
\ " var node = lineElem;",
|
\ " var node = lineElem;",
|
||||||
\ " while (node && node.id != 'vimCodeElement".s:settings.id_suffix."')",
|
\ " while (node && node.id != 'vimCodeElement"..s:settings.id_suffix.."')",
|
||||||
\ " {",
|
\ " {",
|
||||||
\ " if (node.className == 'closed-fold')",
|
\ " if (node.className == 'closed-fold')",
|
||||||
\ " {",
|
\ " {",
|
||||||
@@ -640,7 +640,7 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
call append(style_start, [
|
call append(style_start, [
|
||||||
\ " function toggleFold(objID)",
|
\ " function toggleFold(objID)",
|
||||||
\ " {",
|
\ " {",
|
||||||
\ " for (win_num = 1; win_num <= ".len(a:buf_list)."; win_num++)",
|
\ " for (win_num = 1; win_num <= "..len(a:buf_list).."; win_num++)",
|
||||||
\ " {",
|
\ " {",
|
||||||
\ " var fold;",
|
\ " var fold;",
|
||||||
\ ' fold = document.getElementById("win"+win_num+objID);',
|
\ ' fold = document.getElementById("win"+win_num+objID);',
|
||||||
@@ -660,7 +660,7 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
if s:uses_script
|
if s:uses_script
|
||||||
" insert script tag if needed
|
" insert script tag if needed
|
||||||
call append(style_start, [
|
call append(style_start, [
|
||||||
\ "<script" . (s:html5 ? "" : " type='text/javascript'") . ">",
|
\ "<script" .. (s:html5 ? "" : " type='text/javascript'") .. ">",
|
||||||
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -671,14 +671,14 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
" is pretty useless for really long lines. {{{
|
" is pretty useless for really long lines. {{{
|
||||||
if s:settings.use_css
|
if s:settings.use_css
|
||||||
call append(style_start,
|
call append(style_start,
|
||||||
\ ['<style' . (s:html5 ? '' : 'type="text/css"') . '>']+
|
\ ['<style' .. (s:html5 ? '' : 'type="text/css"') .. '>']+
|
||||||
\ style+
|
\ style+
|
||||||
\ [ s:settings.use_xhtml ? '' : '<!--',
|
\ [ s:settings.use_xhtml ? '' : '<!--',
|
||||||
\ 'table { table-layout: fixed; }',
|
\ 'table { table-layout: fixed; }',
|
||||||
\ 'html, body, table, tbody { width: 100%; margin: 0; padding: 0; }',
|
\ 'html, body, table, tbody { width: 100%; margin: 0; padding: 0; }',
|
||||||
\ 'table, td, th { border: 1px solid; }',
|
\ 'table, td, th { border: 1px solid; }',
|
||||||
\ 'td { vertical-align: top; }',
|
\ 'td { vertical-align: top; }',
|
||||||
\ 'th, td { width: '.printf("%.1f",100.0/len(a:win_list)).'%; }',
|
\ 'th, td { width: '..printf("%.1f",100.0/len(a:win_list))..'%; }',
|
||||||
\ 'td div { overflow: auto; }',
|
\ 'td div { overflow: auto; }',
|
||||||
\ s:settings.use_xhtml ? '' : '-->',
|
\ s:settings.use_xhtml ? '' : '-->',
|
||||||
\ '</style>'
|
\ '</style>'
|
||||||
@@ -694,7 +694,7 @@ endfunc "}}}
|
|||||||
" Gets a single user option and sets it in the passed-in Dict, or gives it the
|
" Gets a single user option and sets it in the passed-in Dict, or gives it the
|
||||||
" default value if the option doesn't actually exist.
|
" default value if the option doesn't actually exist.
|
||||||
func! tohtml#GetOption(settings, option, default) "{{{
|
func! tohtml#GetOption(settings, option, default) "{{{
|
||||||
if exists('g:html_'.a:option)
|
if exists('g:html_'..a:option)
|
||||||
let a:settings[a:option] = g:html_{a:option}
|
let a:settings[a:option] = g:html_{a:option}
|
||||||
else
|
else
|
||||||
let a:settings[a:option] = a:default
|
let a:settings[a:option] = a:default
|
||||||
@@ -713,10 +713,11 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
let user_settings = {}
|
let user_settings = {}
|
||||||
|
|
||||||
" Define the correct option if the old option name exists and we haven't
|
" Define the correct option if the old option name exists and we haven't
|
||||||
" already defined the correct one. Maybe I'll put out a warning message about
|
" already defined the correct one.
|
||||||
" this sometime and remove the old option entirely at some even later time,
|
|
||||||
" but for now just silently accept the old option.
|
|
||||||
if exists('g:use_xhtml') && !exists("g:html_use_xhtml")
|
if exists('g:use_xhtml') && !exists("g:html_use_xhtml")
|
||||||
|
echohl WarningMsg
|
||||||
|
echomsg "Warning: g:use_xhtml is deprecated, use g:html_use_xhtml"
|
||||||
|
echohl None
|
||||||
let g:html_use_xhtml = g:use_xhtml
|
let g:html_use_xhtml = g:use_xhtml
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -739,7 +740,7 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
call tohtml#GetOption(user_settings, 'whole_filler', 0 )
|
call tohtml#GetOption(user_settings, 'whole_filler', 0 )
|
||||||
call tohtml#GetOption(user_settings, 'use_xhtml', 0 )
|
call tohtml#GetOption(user_settings, 'use_xhtml', 0 )
|
||||||
call tohtml#GetOption(user_settings, 'line_ids', user_settings.number_lines )
|
call tohtml#GetOption(user_settings, 'line_ids', user_settings.number_lines )
|
||||||
call tohtml#GetOption(user_settings, 'use_input_for_pc', 'fallback')
|
call tohtml#GetOption(user_settings, 'use_input_for_pc', 'none')
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" override those settings that need it {{{
|
" override those settings that need it {{{
|
||||||
@@ -854,16 +855,16 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
if user_settings.use_css
|
if user_settings.use_css
|
||||||
if exists("g:html_prevent_copy")
|
if exists("g:html_prevent_copy")
|
||||||
if user_settings.dynamic_folds && !user_settings.no_foldcolumn && g:html_prevent_copy =~# 'f'
|
if user_settings.dynamic_folds && !user_settings.no_foldcolumn && g:html_prevent_copy =~# 'f'
|
||||||
let user_settings.prevent_copy .= 'f'
|
let user_settings.prevent_copy ..= 'f'
|
||||||
endif
|
endif
|
||||||
if user_settings.number_lines && g:html_prevent_copy =~# 'n'
|
if user_settings.number_lines && g:html_prevent_copy =~# 'n'
|
||||||
let user_settings.prevent_copy .= 'n'
|
let user_settings.prevent_copy ..= 'n'
|
||||||
endif
|
endif
|
||||||
if &diff && g:html_prevent_copy =~# 'd'
|
if &diff && g:html_prevent_copy =~# 'd'
|
||||||
let user_settings.prevent_copy .= 'd'
|
let user_settings.prevent_copy ..= 'd'
|
||||||
endif
|
endif
|
||||||
if !user_settings.ignore_folding && g:html_prevent_copy =~# 't'
|
if !user_settings.ignore_folding && g:html_prevent_copy =~# 't'
|
||||||
let user_settings.prevent_copy .= 't'
|
let user_settings.prevent_copy ..= 't'
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
let user_settings.prevent_copy = ""
|
let user_settings.prevent_copy = ""
|
||||||
@@ -875,10 +876,10 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
|
|
||||||
" enforce valid values for use_input_for_pc
|
" enforce valid values for use_input_for_pc
|
||||||
if user_settings.use_input_for_pc !~# 'fallback\|none\|all'
|
if user_settings.use_input_for_pc !~# 'fallback\|none\|all'
|
||||||
let user_settings.use_input_for_pc = 'fallback'
|
let user_settings.use_input_for_pc = 'none'
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echomsg '2html: "' . g:html_use_input_for_pc . '" is not valid for g:html_use_input_for_pc'
|
echomsg '2html: "' .. g:html_use_input_for_pc .. '" is not valid for g:html_use_input_for_pc'
|
||||||
echomsg '2html: defaulting to "' . user_settings.use_input_for_pc . '"'
|
echomsg '2html: defaulting to "' .. user_settings.use_input_for_pc .. '"'
|
||||||
echohl None
|
echohl None
|
||||||
sleep 3
|
sleep 3
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -57,6 +57,15 @@ if !exists("g:zip_extractcmd")
|
|||||||
let g:zip_extractcmd= g:zip_unzipcmd
|
let g:zip_extractcmd= g:zip_unzipcmd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let s:tmp_cwd = getcwd()
|
||||||
|
if (fnamemodify(exepath(g:zip_unzipcmd), ":p:h") ==# getcwd()
|
||||||
|
\ && (index(split($PATH,has("win32")? ';' : ':'), s:tmp_cwd) == -1 || s:tmp_cwd == '.'))
|
||||||
|
unlet s:tmp_cwd
|
||||||
|
echoerr "Warning: NOT executing " .. g:zip_unzipcmd .. " from current directory!"
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
unlet s:tmp_cwd
|
||||||
|
|
||||||
" ----------------
|
" ----------------
|
||||||
" Functions: {{{1
|
" Functions: {{{1
|
||||||
" ----------------
|
" ----------------
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
:" Use this script to create the file "bugreport.txt", which contains
|
:" Use this script to create the file "bugreport.txt", which contains
|
||||||
:" information about the environment of a possible bug in Vim.
|
:" information about the environment of a possible bug in Vim.
|
||||||
:"
|
:"
|
||||||
:" Maintainer: Bram Moolenaar <Bram@vim.org>
|
:" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
:" Last change: 2019 Jan 27
|
:" Last change: 2023 Aug 10
|
||||||
|
:" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
:"
|
:"
|
||||||
:" To use inside Vim:
|
:" To use inside Vim:
|
||||||
:" :so $VIMRUNTIME/bugreport.vim
|
:" :so $VIMRUNTIME/bugreport.vim
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
" Vim color file
|
" Vim color file
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2001 Jul 23
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" This is the default color scheme. It doesn't define the Normal
|
" This is the default color scheme. It doesn't define the Normal
|
||||||
" highlighting, it uses whatever the colors used to be.
|
" highlighting, it uses whatever the colors used to be.
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ If you want to write your own compiler plugin, have a look at the other files
|
|||||||
for how to do it, the format is simple.
|
for how to do it, the format is simple.
|
||||||
|
|
||||||
If you think a compiler plugin you have written is useful for others, please
|
If you think a compiler plugin you have written is useful for others, please
|
||||||
send it to Bram@vim.org.
|
send it to the vim-dev mailing list: <vim-dev@vim.org>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Microsoft Visual C
|
" Compiler: Microsoft Visual C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2014 Sep 20
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
|||||||
+14
-9
@@ -1,7 +1,8 @@
|
|||||||
" The default vimrc file.
|
" The default vimrc file.
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last change: 2023 May 10
|
" Last change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
"
|
"
|
||||||
" This is loaded if no vimrc file was found.
|
" This is loaded if no vimrc file was found.
|
||||||
" Except when Vim is run with "-u NONE" or "-C".
|
" Except when Vim is run with "-u NONE" or "-C".
|
||||||
@@ -97,17 +98,21 @@ if 1
|
|||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
" Put these in an autocmd group, so that you can revert them with:
|
" Put these in an autocmd group, so that you can revert them with:
|
||||||
" ":augroup vimStartup | exe 'au!' | augroup END"
|
" ":autocmd! vimStartup"
|
||||||
augroup vimStartup
|
augroup vimStartup
|
||||||
au!
|
autocmd!
|
||||||
|
|
||||||
" When editing a file, always jump to the last known cursor position.
|
" When editing a file, always jump to the last known cursor position.
|
||||||
" Don't do it when the position is invalid, when inside an event handler
|
" Don't do it when the position is invalid, when inside an event handler
|
||||||
" (happens when dropping a file on gvim) and for a commit message (it's
|
" (happens when dropping a file on gvim), for a commit or rebase message
|
||||||
" likely a different one than last time).
|
" (likely a different one than last time), and when using xxd(1) to filter
|
||||||
|
" and edit binary files (it transforms input files back and forth, causing
|
||||||
|
" them to have dual nature, so to speak)
|
||||||
autocmd BufReadPost *
|
autocmd BufReadPost *
|
||||||
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
|
\ let line = line("'\"")
|
||||||
\ | exe "normal! g`\""
|
\ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
|
||||||
|
\ && index(['xxd', 'gitrebase'], &filetype) == -1
|
||||||
|
\ | execute "normal! g`\""
|
||||||
\ | endif
|
\ | endif
|
||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
@@ -115,7 +120,7 @@ if 1
|
|||||||
" Quite a few people accidentally type "q:" instead of ":q" and get confused
|
" Quite a few people accidentally type "q:" instead of ":q" and get confused
|
||||||
" by the command line window. Give a hint about how to get out.
|
" by the command line window. Give a hint about how to get out.
|
||||||
" If you don't like this you can put this in your vimrc:
|
" If you don't like this you can put this in your vimrc:
|
||||||
" ":augroup vimHints | exe 'au!' | augroup END"
|
" ":autocmd! vimHints"
|
||||||
augroup vimHints
|
augroup vimHints
|
||||||
au!
|
au!
|
||||||
autocmd CmdwinEnter *
|
autocmd CmdwinEnter *
|
||||||
|
|||||||
+3
-2
@@ -1,8 +1,9 @@
|
|||||||
" This Vim script deletes all the menus, so that they can be redefined.
|
" This Vim script deletes all the menus, so that they can be redefined.
|
||||||
" Warning: This also deletes all menus defined by the user!
|
" Warning: This also deletes all menus defined by the user!
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2019 Dec 10
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
aunmenu *
|
aunmenu *
|
||||||
tlunmenu *
|
tlunmenu *
|
||||||
|
|||||||
+158
-16
@@ -1,4 +1,4 @@
|
|||||||
*builtin.txt* For Vim version 9.0. Last change: 2023 Jun 08
|
*builtin.txt* For Vim version 9.0. Last change: 2023 Aug 09
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -156,7 +156,7 @@ digraph_setlist({digraphlist}) Boolean register multiple |digraph|s
|
|||||||
echoraw({expr}) none output {expr} as-is
|
echoraw({expr}) none output {expr} as-is
|
||||||
empty({expr}) Number |TRUE| if {expr} is empty
|
empty({expr}) Number |TRUE| if {expr} is empty
|
||||||
environ() Dict return environment variables
|
environ() Dict return environment variables
|
||||||
err_teapot() Number produce error 418
|
err_teapot([{expr}]) none give E418, or E503 if {expr} is |TRUE|
|
||||||
escape({string}, {chars}) String escape {chars} in {string} with '\'
|
escape({string}, {chars}) String escape {chars} in {string} with '\'
|
||||||
eval({string}) any evaluate {string} into its value
|
eval({string}) any evaluate {string} into its value
|
||||||
eventhandler() Number |TRUE| if inside an event handler
|
eventhandler() Number |TRUE| if inside an event handler
|
||||||
@@ -310,6 +310,7 @@ inputrestore() Number restore typeahead
|
|||||||
inputsave() Number save and clear typeahead
|
inputsave() Number save and clear typeahead
|
||||||
inputsecret({prompt} [, {text}]) String like input() but hiding the text
|
inputsecret({prompt} [, {text}]) String like input() but hiding the text
|
||||||
insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}]
|
insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}]
|
||||||
|
instanceof({object}, {class}) Number |TRUE| if {object} is an instance of {class}
|
||||||
interrupt() none interrupt script execution
|
interrupt() none interrupt script execution
|
||||||
invert({expr}) Number bitwise invert
|
invert({expr}) Number bitwise invert
|
||||||
isabsolutepath({path}) Number |TRUE| if {path} is an absolute path
|
isabsolutepath({path}) Number |TRUE| if {path} is an absolute path
|
||||||
@@ -709,13 +710,14 @@ trunc({expr}) Float truncate Float {expr}
|
|||||||
type({expr}) Number type of value {expr}
|
type({expr}) Number type of value {expr}
|
||||||
typename({expr}) String representation of the type of {expr}
|
typename({expr}) String representation of the type of {expr}
|
||||||
undofile({name}) String undo file name for {name}
|
undofile({name}) String undo file name for {name}
|
||||||
undotree() List undo file tree
|
undotree([{buf}]) List undo file tree for buffer {buf}
|
||||||
uniq({list} [, {func} [, {dict}]])
|
uniq({list} [, {func} [, {dict}]])
|
||||||
List remove adjacent duplicates from a list
|
List remove adjacent duplicates from a list
|
||||||
utf16idx({string}, {idx} [, {countcc} [, {charidx}]])
|
utf16idx({string}, {idx} [, {countcc} [, {charidx}]])
|
||||||
Number UTF-16 index of byte {idx} in {string}
|
Number UTF-16 index of byte {idx} in {string}
|
||||||
values({dict}) List values in {dict}
|
values({dict}) List values in {dict}
|
||||||
virtcol({expr} [, {list}]) Number or List
|
virtcol({expr} [, {list} [, {winid}])
|
||||||
|
Number or List
|
||||||
screen column of cursor or mark
|
screen column of cursor or mark
|
||||||
virtcol2col({winid}, {lnum}, {col})
|
virtcol2col({winid}, {lnum}, {col})
|
||||||
Number byte index of a character on screen
|
Number byte index of a character on screen
|
||||||
@@ -1251,7 +1253,7 @@ bufload({buf}) *bufload()*
|
|||||||
refers to an existing file then the file is read. Otherwise
|
refers to an existing file then the file is read. Otherwise
|
||||||
the buffer will be empty. If the buffer was already loaded
|
the buffer will be empty. If the buffer was already loaded
|
||||||
then there is no change. If the buffer is not related to a
|
then there is no change. If the buffer is not related to a
|
||||||
file the no file is read (e.g., when 'buftype' is "nofile").
|
file then no file is read (e.g., when 'buftype' is "nofile").
|
||||||
If there is an existing swap file for the file of the buffer,
|
If there is an existing swap file for the file of the buffer,
|
||||||
there will be no dialog, the buffer will be loaded anyway.
|
there will be no dialog, the buffer will be loaded anyway.
|
||||||
The {buf} argument is used like with |bufexists()|.
|
The {buf} argument is used like with |bufexists()|.
|
||||||
@@ -2207,7 +2209,7 @@ environ() *environ()*
|
|||||||
|
|
||||||
err_teapot([{expr}]) *err_teapot()*
|
err_teapot([{expr}]) *err_teapot()*
|
||||||
Produce an error with number 418, needed for implementation of
|
Produce an error with number 418, needed for implementation of
|
||||||
RFC 2325.
|
RFC 2324.
|
||||||
If {expr} is present and it is TRUE error 503 is given,
|
If {expr} is present and it is TRUE error 503 is given,
|
||||||
indicating that coffee is temporarily not available.
|
indicating that coffee is temporarily not available.
|
||||||
If {expr} is present it must be a String.
|
If {expr} is present it must be a String.
|
||||||
@@ -3552,6 +3554,8 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
|||||||
cmdline |cmdline-completion| result
|
cmdline |cmdline-completion| result
|
||||||
compiler compilers
|
compiler compilers
|
||||||
cscope |:cscope| suboptions
|
cscope |:cscope| suboptions
|
||||||
|
custom,{func} custom completion, defined via {func}
|
||||||
|
customlist,{func} custom completion, defined via {func}
|
||||||
diff_buffer |:diffget| and |:diffput| completion
|
diff_buffer |:diffget| and |:diffput| completion
|
||||||
dir directory names
|
dir directory names
|
||||||
environment environment variable names
|
environment environment variable names
|
||||||
@@ -4004,6 +4008,9 @@ getqflist([{what}]) *getqflist()*
|
|||||||
text description of the error
|
text description of the error
|
||||||
type type of the error, 'E', '1', etc.
|
type type of the error, 'E', '1', etc.
|
||||||
valid |TRUE|: recognized error message
|
valid |TRUE|: recognized error message
|
||||||
|
user_data
|
||||||
|
custom data associated with the item, can be
|
||||||
|
any type.
|
||||||
|
|
||||||
When there is no error list or it's empty, an empty list is
|
When there is no error list or it's empty, an empty list is
|
||||||
returned. Quickfix list entries with a non-existing buffer
|
returned. Quickfix list entries with a non-existing buffer
|
||||||
@@ -5048,6 +5055,17 @@ insert({object}, {item} [, {idx}]) *insert()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
mylist->insert(item)
|
mylist->insert(item)
|
||||||
|
|
||||||
|
instanceof({object}, {class}) *instanceof()*
|
||||||
|
The result is a Number, which is |TRUE| when the {object} argument is a
|
||||||
|
direct or indirect instance of a |Class| specified by {class}.
|
||||||
|
When {class} is a |List| the function returns |TRUE| when {object} is an
|
||||||
|
instance of any of the specified classes.
|
||||||
|
Example: >
|
||||||
|
instanceof(animal, [Dog, Cat])
|
||||||
|
|
||||||
|
< Can also be used as a |method|: >
|
||||||
|
myobj->instanceof(mytype)
|
||||||
|
|
||||||
interrupt() *interrupt()*
|
interrupt() *interrupt()*
|
||||||
Interrupt script execution. It works more or less like the
|
Interrupt script execution. It works more or less like the
|
||||||
user typing CTRL-C, most commands won't execute and control
|
user typing CTRL-C, most commands won't execute and control
|
||||||
@@ -6392,6 +6410,7 @@ mode([expr]) Return a string that indicates the current mode.
|
|||||||
Rvc Virtual Replace mode completion |compl-generic|
|
Rvc Virtual Replace mode completion |compl-generic|
|
||||||
Rvx Virtual Replace mode |i_CTRL-X| completion
|
Rvx Virtual Replace mode |i_CTRL-X| completion
|
||||||
c Command-line editing
|
c Command-line editing
|
||||||
|
ct Command-line editing via Terminal-Job mode
|
||||||
cv Vim Ex mode |gQ|
|
cv Vim Ex mode |gQ|
|
||||||
ce Normal Ex mode |Q|
|
ce Normal Ex mode |Q|
|
||||||
r Hit-enter prompt
|
r Hit-enter prompt
|
||||||
@@ -6589,7 +6608,11 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
The "%" starts a conversion specification. The following
|
The "%" starts a conversion specification. The following
|
||||||
arguments appear in sequence:
|
arguments appear in sequence:
|
||||||
|
|
||||||
% [flags] [field-width] [.precision] type
|
% [pos-argument] [flags] [field-width] [.precision] type
|
||||||
|
|
||||||
|
pos-argument
|
||||||
|
At most one positional argument specifier. These
|
||||||
|
take the form {n$}, where n is >= 1.
|
||||||
|
|
||||||
flags
|
flags
|
||||||
Zero or more of the following flags:
|
Zero or more of the following flags:
|
||||||
@@ -6661,6 +6684,13 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
< This limits the length of the text used from "line" to
|
< This limits the length of the text used from "line" to
|
||||||
"width" bytes.
|
"width" bytes.
|
||||||
|
|
||||||
|
If the argument to be formatted is specified using a posional
|
||||||
|
argument specifier, and a '*' is used to indicate that a
|
||||||
|
number argument is to be used to specify the width or
|
||||||
|
precision, the argument(s) to be used must also be specified
|
||||||
|
using a {n$} positional argument specifier. See |printf-$|.
|
||||||
|
|
||||||
|
|
||||||
The conversion specifiers and their meanings are:
|
The conversion specifiers and their meanings are:
|
||||||
|
|
||||||
*printf-d* *printf-b* *printf-B* *printf-o*
|
*printf-d* *printf-b* *printf-B* *printf-o*
|
||||||
@@ -6679,8 +6709,13 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
a conversion is wider than the field width, the field
|
a conversion is wider than the field width, the field
|
||||||
is expanded to contain the conversion result.
|
is expanded to contain the conversion result.
|
||||||
The 'h' modifier indicates the argument is 16 bits.
|
The 'h' modifier indicates the argument is 16 bits.
|
||||||
The 'l' modifier indicates the argument is 32 bits.
|
The 'l' modifier indicates the argument is a long
|
||||||
The 'L' modifier indicates the argument is 64 bits.
|
integer. The size will be 32 bits or 64 bits
|
||||||
|
depending on your platform.
|
||||||
|
The "ll" modifier indicates the argument is 64 bits.
|
||||||
|
The b and B conversion specifiers never take a width
|
||||||
|
modifier and always assume their argument is a 64 bit
|
||||||
|
integer.
|
||||||
Generally, these modifiers are not useful. They are
|
Generally, these modifiers are not useful. They are
|
||||||
ignored when type is known from the argument.
|
ignored when type is known from the argument.
|
||||||
|
|
||||||
@@ -6750,6 +6785,103 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
of "%" items. If there are not sufficient or too many
|
of "%" items. If there are not sufficient or too many
|
||||||
arguments an error is given. Up to 18 arguments can be used.
|
arguments an error is given. Up to 18 arguments can be used.
|
||||||
|
|
||||||
|
*printf-$*
|
||||||
|
In certain languages, error and informative messages are
|
||||||
|
more readable when the order of words is different from the
|
||||||
|
corresponding message in English. To accommodate translations
|
||||||
|
having a different word order, positional arguments may be
|
||||||
|
used to indicate this. For instance: >
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
msgid "%s returning %s"
|
||||||
|
msgstr "waarde %2$s komt terug van %1$s"
|
||||||
|
<
|
||||||
|
In this example, the sentence has its 2 string arguments reversed
|
||||||
|
in the output. >
|
||||||
|
|
||||||
|
echo printf(
|
||||||
|
"In The Netherlands, vim's creator's name is: %1$s %2$s",
|
||||||
|
"Bram", "Moolenaar")
|
||||||
|
< In The Netherlands, vim's creator's name is: Bram Moolenaar >
|
||||||
|
|
||||||
|
echo printf(
|
||||||
|
"In Belgium, vim's creator's name is: %2$s %1$s",
|
||||||
|
"Bram", "Moolenaar")
|
||||||
|
< In Belgium, vim's creator's name is: Moolenaar Bram
|
||||||
|
|
||||||
|
Width (and precision) can be specified using the '*' specifier.
|
||||||
|
In this case, you must specify the field width position in the
|
||||||
|
argument list. >
|
||||||
|
|
||||||
|
echo printf("%1$*2$.*3$d", 1, 2, 3)
|
||||||
|
< 001 >
|
||||||
|
echo printf("%2$*3$.*1$d", 1, 2, 3)
|
||||||
|
< 2 >
|
||||||
|
echo printf("%3$*1$.*2$d", 1, 2, 3)
|
||||||
|
< 03 >
|
||||||
|
echo printf("%1$*2$.*3$g", 1.4142, 2, 3)
|
||||||
|
< 1.414
|
||||||
|
|
||||||
|
You can mix specifying the width and/or precision directly
|
||||||
|
and via positional arguments: >
|
||||||
|
|
||||||
|
echo printf("%1$4.*2$f", 1.4142135, 6)
|
||||||
|
< 1.414214 >
|
||||||
|
echo printf("%1$*2$.4f", 1.4142135, 6)
|
||||||
|
< 1.4142 >
|
||||||
|
echo printf("%1$*2$.*3$f", 1.4142135, 6, 2)
|
||||||
|
< 1.41
|
||||||
|
|
||||||
|
*E1400*
|
||||||
|
You cannot mix positional and non-positional arguments: >
|
||||||
|
echo printf("%s%1$s", "One", "Two")
|
||||||
|
< E1400: Cannot mix positional and non-positional
|
||||||
|
arguments: %s%1$s
|
||||||
|
|
||||||
|
*E1401*
|
||||||
|
You cannot skip a positional argument in a format string: >
|
||||||
|
echo printf("%3$s%1$s", "One", "Two", "Three")
|
||||||
|
< E1401: format argument 2 unused in $-style
|
||||||
|
format: %3$s%1$s
|
||||||
|
|
||||||
|
*E1402*
|
||||||
|
You can re-use a [field-width] (or [precision]) argument: >
|
||||||
|
echo printf("%1$d at width %2$d is: %01$*2$d", 1, 2)
|
||||||
|
< 1 at width 2 is: 01
|
||||||
|
|
||||||
|
However, you can't use it as a different type: >
|
||||||
|
echo printf("%1$d at width %2$ld is: %01$*2$d", 1, 2)
|
||||||
|
< E1402: Positional argument 2 used as field
|
||||||
|
width reused as different type: long int/int
|
||||||
|
|
||||||
|
*E1403*
|
||||||
|
When a positional argument is used, but not the correct number
|
||||||
|
or arguments is given, an error is raised: >
|
||||||
|
echo printf("%1$d at width %2$d is: %01$*2$.*3$d", 1, 2)
|
||||||
|
< E1403: Positional argument 3 out of bounds:
|
||||||
|
%1$d at width %2$d is: %01$*2$.*3$d
|
||||||
|
|
||||||
|
Only the first error is reported: >
|
||||||
|
echo printf("%01$*2$.*3$d %4$d", 1, 2)
|
||||||
|
< E1403: Positional argument 3 out of bounds:
|
||||||
|
%01$*2$.*3$d %4$d
|
||||||
|
|
||||||
|
*E1404*
|
||||||
|
A positional argument can be used more than once: >
|
||||||
|
echo printf("%1$s %2$s %1$s", "One", "Two")
|
||||||
|
< One Two One
|
||||||
|
|
||||||
|
However, you can't use a different type the second time: >
|
||||||
|
echo printf("%1$s %2$s %1$d", "One", "Two")
|
||||||
|
< E1404: Positional argument 1 type used
|
||||||
|
inconsistently: int/string
|
||||||
|
|
||||||
|
*E1405*
|
||||||
|
Various other errors that lead to a format string being
|
||||||
|
wrongly formatted lead to: >
|
||||||
|
echo printf("%1$d at width %2$d is: %01$*2$.3$d", 1, 2)
|
||||||
|
< E1405: Invalid format specifier:
|
||||||
|
%1$d at width %2$d is: %01$*2$.3$d
|
||||||
|
|
||||||
prompt_getprompt({buf}) *prompt_getprompt()*
|
prompt_getprompt({buf}) *prompt_getprompt()*
|
||||||
Returns the effective prompt text for buffer {buf}. {buf} can
|
Returns the effective prompt text for buffer {buf}. {buf} can
|
||||||
@@ -8300,6 +8432,8 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
|
|||||||
text description of the error
|
text description of the error
|
||||||
type single-character error type, 'E', 'W', etc.
|
type single-character error type, 'E', 'W', etc.
|
||||||
valid recognized error message
|
valid recognized error message
|
||||||
|
user_data custom data associated with the item, can be
|
||||||
|
any type.
|
||||||
|
|
||||||
The "col", "vcol", "nr", "type" and "text" entries are
|
The "col", "vcol", "nr", "type" and "text" entries are
|
||||||
optional. Either "lnum" or "pattern" entry can be used to
|
optional. Either "lnum" or "pattern" entry can be used to
|
||||||
@@ -10097,9 +10231,10 @@ undofile({name}) *undofile()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetFilename()->undofile()
|
GetFilename()->undofile()
|
||||||
|
|
||||||
undotree() *undotree()*
|
undotree([{buf}]) *undotree()*
|
||||||
Return the current state of the undo tree in a dictionary with
|
Return the current state of the undo tree for the current
|
||||||
the following items:
|
buffer, or for a specific buffer if {buf} is given. The
|
||||||
|
result is a dictionary with the following items:
|
||||||
"seq_last" The highest undo sequence number used.
|
"seq_last" The highest undo sequence number used.
|
||||||
"seq_cur" The sequence number of the current position in
|
"seq_cur" The sequence number of the current position in
|
||||||
the undo tree. This differs from "seq_last"
|
the undo tree. This differs from "seq_last"
|
||||||
@@ -10193,7 +10328,7 @@ values({dict}) *values()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
mydict->values()
|
mydict->values()
|
||||||
|
|
||||||
virtcol({expr} [, {list}]) *virtcol()*
|
virtcol({expr} [, {list} [, {winid}]]) *virtcol()*
|
||||||
The result is a Number, which is the screen column of the file
|
The result is a Number, which is the screen column of the file
|
||||||
position given with {expr}. That is, the last screen position
|
position given with {expr}. That is, the last screen position
|
||||||
occupied by the character at that position, when the screen
|
occupied by the character at that position, when the screen
|
||||||
@@ -10225,10 +10360,13 @@ virtcol({expr} [, {list}]) *virtcol()*
|
|||||||
returns the cursor position. Differs from |'<| in
|
returns the cursor position. Differs from |'<| in
|
||||||
that it's updated right away.
|
that it's updated right away.
|
||||||
|
|
||||||
If {list} is present and non-zero then virtcol() returns a List
|
If {list} is present and non-zero then virtcol() returns a
|
||||||
with the first and last screen position occupied by the
|
List with the first and last screen position occupied by the
|
||||||
character.
|
character.
|
||||||
|
|
||||||
|
With the optional {winid} argument the values are obtained for
|
||||||
|
that window instead of the current window.
|
||||||
|
|
||||||
Note that only marks in the current file can be used.
|
Note that only marks in the current file can be used.
|
||||||
Examples: >
|
Examples: >
|
||||||
" With text "foo^Lbar" and cursor on the "^L":
|
" With text "foo^Lbar" and cursor on the "^L":
|
||||||
@@ -10240,7 +10378,7 @@ virtcol({expr} [, {list}]) *virtcol()*
|
|||||||
" With text " there", with 't at 'h':
|
" With text " there", with 't at 'h':
|
||||||
|
|
||||||
virtcol("'t") " returns 6
|
virtcol("'t") " returns 6
|
||||||
< The first column is 1. 0 is returned for an error.
|
< The first column is 1. 0 or [0, 0] is returned for an error.
|
||||||
A more advanced example that echoes the maximum length of
|
A more advanced example that echoes the maximum length of
|
||||||
all lines: >
|
all lines: >
|
||||||
echo max(map(range(1, line('$')), "virtcol([v:val, '$'])"))
|
echo max(map(range(1, line('$')), "virtcol([v:val, '$'])"))
|
||||||
@@ -10257,6 +10395,9 @@ virtcol2col({winid}, {lnum}, {col}) *virtcol2col()*
|
|||||||
{lnum}, then the byte index of the character at the last
|
{lnum}, then the byte index of the character at the last
|
||||||
virtual column is returned.
|
virtual column is returned.
|
||||||
|
|
||||||
|
For a multi-byte character, the column number of the first
|
||||||
|
byte in the character is returned.
|
||||||
|
|
||||||
The {winid} argument can be the window number or the
|
The {winid} argument can be the window number or the
|
||||||
|window-ID|. If this is zero, then the current window is used.
|
|window-ID|. If this is zero, then the current window is used.
|
||||||
|
|
||||||
@@ -10887,6 +11028,7 @@ python_dynamic Python 2.x interface is dynamically loaded. |has-python|
|
|||||||
python3 Python 3.x interface available. |has-python|
|
python3 Python 3.x interface available. |has-python|
|
||||||
python3_compiled Compiled with Python 3.x interface. |has-python|
|
python3_compiled Compiled with Python 3.x interface. |has-python|
|
||||||
python3_dynamic Python 3.x interface is dynamically loaded. |has-python|
|
python3_dynamic Python 3.x interface is dynamically loaded. |has-python|
|
||||||
|
python3_stable Python 3.x interface is using Python Stable ABI. |has-python|
|
||||||
pythonx Python 2.x and/or 3.x interface available. |python_x|
|
pythonx Python 2.x and/or 3.x interface available. |python_x|
|
||||||
qnx QNX version of Vim.
|
qnx QNX version of Vim.
|
||||||
quickfix Compiled with |quickfix| support.
|
quickfix Compiled with |quickfix| support.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*channel.txt* For Vim version 9.0. Last change: 2022 Dec 01
|
*channel.txt* For Vim version 9.0. Last change: 2023 Aug 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -956,7 +956,7 @@ job_start({command} [, {options}]) *job_start()*
|
|||||||
to String. This works best on Unix.
|
to String. This works best on Unix.
|
||||||
|
|
||||||
On MS-Windows, job_start() makes a GUI application hidden. If
|
On MS-Windows, job_start() makes a GUI application hidden. If
|
||||||
want to show it, Use |:!start| instead.
|
you want to show it, use |:!start| instead.
|
||||||
|
|
||||||
The command is executed directly, not through a shell, the
|
The command is executed directly, not through a shell, the
|
||||||
'shell' option is not used. To use the shell: >
|
'shell' option is not used. To use the shell: >
|
||||||
|
|||||||
@@ -2436,6 +2436,25 @@ v:progpath Contains the command with which Vim was invoked, in a form
|
|||||||
".exe" is not added to v:progpath.
|
".exe" is not added to v:progpath.
|
||||||
Read-only.
|
Read-only.
|
||||||
|
|
||||||
|
*v:python3_version* *python3-version-variable*
|
||||||
|
v:python3_version
|
||||||
|
Version of Python 3 that Vim was built against. When
|
||||||
|
Python is loaded dynamically (|python-dynamic|), this version
|
||||||
|
should exactly match the Python library up to the minor
|
||||||
|
version (e.g. 3.10.2 and 3.10.3 are compatible as the minor
|
||||||
|
version is "10", whereas 3.9.4 and 3.10.3 are not compatible).
|
||||||
|
When |python-stable-abi| is used, this will be the minimum Python
|
||||||
|
version that you can use instead. (e.g. if v:python3_version
|
||||||
|
indicates 3.9, you can use 3.9, 3.10, or anything above).
|
||||||
|
|
||||||
|
This number is encoded as a hex number following Python ABI
|
||||||
|
versioning conventions. Do the following to have a
|
||||||
|
human-readable full version in hex: >
|
||||||
|
echo printf("%08X", v:python3_version)
|
||||||
|
< You can obtain only the minor version by doing: >
|
||||||
|
echo and(v:python3_version>>16,0xff)
|
||||||
|
< Read-only.
|
||||||
|
|
||||||
*v:register* *register-variable*
|
*v:register* *register-variable*
|
||||||
v:register The name of the register in effect for the current normal mode
|
v:register The name of the register in effect for the current normal mode
|
||||||
command (regardless of whether that command actually used a
|
command (regardless of whether that command actually used a
|
||||||
|
|||||||
+17
-22
@@ -1,8 +1,6 @@
|
|||||||
.TH EVIM 1 "16 febbraio 2002 "
|
.TH EVIM 1 "16 febbraio 2002 "
|
||||||
.SH NOME
|
.SH NOME
|
||||||
evim \- Vim "facile", Vim impostato in modo da poter essere usato
|
evim \- Vim "facile", impostato in modo da poter essere usato come editore non-modale
|
||||||
facilmente per modificare file, anche da chi non abbia familiarità
|
|
||||||
con i comandi.
|
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.br
|
.br
|
||||||
.B evim
|
.B evim
|
||||||
@@ -13,42 +11,39 @@ con i comandi.
|
|||||||
.B evim
|
.B evim
|
||||||
Inizia
|
Inizia
|
||||||
.B Vim
|
.B Vim
|
||||||
e imposta le opzioni per farlo comportare come un editore "modeless".
|
e imposta le opzioni per farlo comportare come un editore non-modale.
|
||||||
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
|
Si tratta sempre di Vim, ma usato nello stile "posizionati-e-clicca".
|
||||||
Simile all'uso di Notepad in MS-Windows.
|
Rammenta molto l'utilizzo di Notepad in MS-Windows.
|
||||||
.B evim
|
.B eVim
|
||||||
richiede la presenza della GUI, per avere a disposizione menù e barra
|
necessita della disponibilità della GUI, per utilizzare menù e barra strumenti.
|
||||||
strumenti.
|
|
||||||
.PP
|
.PP
|
||||||
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
|
Va a usato soltanto se non si è in grado di lavorare con Vim nella maniera usuale.
|
||||||
maniera usuale.
|
L'edit dei file sarà molto meno efficiente.
|
||||||
La modifica file sarà molto meno efficiente.
|
|
||||||
.PP
|
.PP
|
||||||
.B eview
|
.B eview
|
||||||
come sopra, ma parte in modalità "Sola Lettura". Funziona come evim \-R.
|
come sopra, ma si parte in modalità "Sola Lettura". Funziona come evim \-R.
|
||||||
.PP
|
.PP
|
||||||
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
|
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
|
||||||
.PP
|
.PP
|
||||||
L'opzione 'insertmode' è impostata per poter immettere del testo direttamente.
|
L'opzione 'insertmode' è impostata in modo da consentire l'immissione diretta di testo fin dall'inizio.
|
||||||
.br
|
.br
|
||||||
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
|
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i familiari tasti usati sotto MS-Windows.
|
||||||
familiari tasti usati sotto MS-Windows.
|
|
||||||
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
|
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.
|
Occorre usare CTRL-Q per ottenere il comportamenti di CTRL-V in Vim nativo.
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Vedere vim(1).
|
Vedere vim(1).
|
||||||
.SH FILE
|
.SH FILE
|
||||||
.TP 15
|
.TP 15
|
||||||
/usr/local/lib/vim/evim.vim
|
/usr/local/lib/vim/evim.vim
|
||||||
Lo script caricato per inizializzare eVim.
|
Lo script caricato per inizializzare eVim.
|
||||||
.SH NAC [NOTO ANCHE COME]
|
.SH AKA
|
||||||
Noto Anche Come "Vim per semplici".
|
[Also Known As] noto anche come "Vim per semplici".
|
||||||
Quando usate evim si suppone che prendiate un fazzoletto,
|
Quando is usa evim si suppone che si prenda un fazzoletto,
|
||||||
facciate un nodo ad ogni angolo e ve lo mettiate in testa.
|
si faccia un nodo ad ogni angolo e lo si metta in testa.
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
vim(1)
|
vim(1)
|
||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
Buona parte di
|
Buona parte di
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
|
||||||
Vedere il menù "Aiuto/Crediti".
|
Vedere il menù "Aiuto/Crediti".
|
||||||
|
|||||||
+17
-22
@@ -1,8 +1,6 @@
|
|||||||
.TH EVIM 1 "16 febbraio 2002 "
|
.TH EVIM 1 "16 febbraio 2002 "
|
||||||
.SH NOME
|
.SH NOME
|
||||||
evim \- Vim "facile", Vim impostato in modo da poter essere usato
|
evim \- Vim "facile", impostato in modo da poter essere usato come editore non-modale
|
||||||
facilmente per modificare file, anche da chi non abbia familiarità
|
|
||||||
con i comandi.
|
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.br
|
.br
|
||||||
.B evim
|
.B evim
|
||||||
@@ -13,42 +11,39 @@ con i comandi.
|
|||||||
.B evim
|
.B evim
|
||||||
Inizia
|
Inizia
|
||||||
.B Vim
|
.B Vim
|
||||||
e imposta le opzioni per farlo comportare come un editore "modeless".
|
e imposta le opzioni per farlo comportare come un editore non-modale.
|
||||||
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
|
Si tratta sempre di Vim, ma usato nello stile "posizionati-e-clicca".
|
||||||
Simile all'uso di Notepad in MS-Windows.
|
Rammenta molto l'utilizzo di Notepad in MS-Windows.
|
||||||
.B evim
|
.B eVim
|
||||||
richiede la presenza della GUI, per avere a disposizione menù e barra
|
necessita della disponibilità della GUI, per utilizzare menù e barra strumenti.
|
||||||
strumenti.
|
|
||||||
.PP
|
.PP
|
||||||
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
|
Va a usato soltanto se non si è in grado di lavorare con Vim nella maniera usuale.
|
||||||
maniera usuale.
|
L'edit dei file sarà molto meno efficiente.
|
||||||
La modifica file sarà molto meno efficiente.
|
|
||||||
.PP
|
.PP
|
||||||
.B eview
|
.B eview
|
||||||
come sopra, ma parte in modalità "Sola Lettura". Funziona come evim \-R.
|
come sopra, ma si parte in modalità "Sola Lettura". Funziona come evim \-R.
|
||||||
.PP
|
.PP
|
||||||
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
|
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
|
||||||
.PP
|
.PP
|
||||||
L'opzione 'insertmode' è impostata per poter immettere del testo direttamente.
|
L'opzione 'insertmode' è impostata in modo da consentire l'immissione diretta di testo fin dall'inizio.
|
||||||
.br
|
.br
|
||||||
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
|
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i familiari tasti usati sotto MS-Windows.
|
||||||
familiari tasti usati sotto MS-Windows.
|
|
||||||
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
|
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.
|
Occorre usare CTRL-Q per ottenere il comportamenti di CTRL-V in Vim nativo.
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Vedere vim(1).
|
Vedere vim(1).
|
||||||
.SH FILE
|
.SH FILE
|
||||||
.TP 15
|
.TP 15
|
||||||
/usr/local/lib/vim/evim.vim
|
/usr/local/lib/vim/evim.vim
|
||||||
Lo script caricato per inizializzare eVim.
|
Lo script caricato per inizializzare eVim.
|
||||||
.SH NAC [NOTO ANCHE COME]
|
.SH AKA
|
||||||
Noto Anche Come "Vim per semplici".
|
[Also Known As] noto anche come "Vim per semplici".
|
||||||
Quando usate evim si suppone che prendiate un fazzoletto,
|
Quando is usa evim si suppone che si prenda un fazzoletto,
|
||||||
facciate un nodo ad ogni angolo e ve lo mettiate in testa.
|
si faccia un nodo ad ogni angolo e lo si metta in testa.
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
vim(1)
|
vim(1)
|
||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
Buona parte di
|
Buona parte di
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
|
||||||
Vedere il menù "Aiuto/Crediti".
|
Vedere il menù "Aiuto/Crediti".
|
||||||
|
|||||||
+37
-20
@@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 9.0. Last change: 2023 Apr 29
|
*filetype.txt* For Vim version 9.0. Last change: 2023 Sep 11
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -138,34 +138,38 @@ what kind of file it is. This doesn't always work. A number of global
|
|||||||
variables can be used to overrule the filetype used for certain extensions:
|
variables can be used to overrule the filetype used for certain extensions:
|
||||||
|
|
||||||
file name variable ~
|
file name variable ~
|
||||||
*.asa g:filetype_asa |ft-aspvbs-syntax| |ft-aspperl-syntax|
|
*.asa g:filetype_asa |ft-aspperl-syntax|
|
||||||
*.asm g:asmsyntax |ft-asm-syntax|
|
|ft-aspvbs-syntax|
|
||||||
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
|
*.asm g:asmsyntax |ft-asm-syntax|
|
||||||
*.bas g:filetype_bas |ft-basic-syntax|
|
*.asp g:filetype_asp |ft-aspperl-syntax|
|
||||||
|
|ft-aspvbs-syntax|
|
||||||
|
*.bas g:filetype_bas |ft-basic-syntax|
|
||||||
*.cfg g:filetype_cfg
|
*.cfg g:filetype_cfg
|
||||||
*.cls g:filetype_cls
|
*.cls g:filetype_cls
|
||||||
*.csh g:filetype_csh |ft-csh-syntax|
|
*.csh g:filetype_csh |ft-csh-syntax|
|
||||||
*.dat g:filetype_dat
|
*.dat g:filetype_dat
|
||||||
*.frm g:filetype_frm |ft-form-syntax|
|
*.f g:filetype_f |ft-forth-syntax|
|
||||||
*.fs g:filetype_fs |ft-forth-syntax|
|
*.frm g:filetype_frm |ft-form-syntax|
|
||||||
*.i g:filetype_i |ft-progress-syntax|
|
*.fs g:filetype_fs |ft-forth-syntax|
|
||||||
|
*.h g:c_syntax_for_h |ft-c-syntax|
|
||||||
|
*.i g:filetype_i |ft-progress-syntax|
|
||||||
*.inc g:filetype_inc
|
*.inc g:filetype_inc
|
||||||
*.lsl g:filetype_lsl
|
*.lsl g:filetype_lsl
|
||||||
*.m g:filetype_m |ft-mathematica-syntax|
|
*.m g:filetype_m |ft-mathematica-syntax|
|
||||||
*.mod g:filetype_mod
|
*.mod g:filetype_mod
|
||||||
*.p g:filetype_p |ft-pascal-syntax|
|
*.p g:filetype_p |ft-pascal-syntax|
|
||||||
*.pl g:filetype_pl
|
*.pl g:filetype_pl
|
||||||
*.pp g:filetype_pp |ft-pascal-syntax|
|
*.pp g:filetype_pp |ft-pascal-syntax|
|
||||||
*.prg g:filetype_prg
|
*.prg g:filetype_prg
|
||||||
*.r g:filetype_r
|
*.r g:filetype_r
|
||||||
*.sig g:filetype_sig
|
*.sig g:filetype_sig
|
||||||
*.sql g:filetype_sql |ft-sql-syntax|
|
*.sql g:filetype_sql |ft-sql-syntax|
|
||||||
*.src g:filetype_src
|
*.src g:filetype_src
|
||||||
*.sys g:filetype_sys
|
*.sys g:filetype_sys
|
||||||
*.sh g:bash_is_sh |ft-sh-syntax|
|
*.sh g:bash_is_sh |ft-sh-syntax|
|
||||||
*.tex g:tex_flavor |ft-tex-plugin|
|
*.tex g:tex_flavor |ft-tex-plugin|
|
||||||
*.typ g:filetype_typ
|
*.typ g:filetype_typ
|
||||||
*.w g:filetype_w |ft-cweb-syntax|
|
*.w g:filetype_w |ft-cweb-syntax|
|
||||||
|
|
||||||
For a few filetypes the global variable is used only when the filetype could
|
For a few filetypes the global variable is used only when the filetype could
|
||||||
not be detected:
|
not be detected:
|
||||||
@@ -394,7 +398,7 @@ ways to change this:
|
|||||||
You must create a new filetype plugin in a directory early in
|
You must create a new filetype plugin in a directory early in
|
||||||
'runtimepath'. For Unix, for example you could use this file: >
|
'runtimepath'. For Unix, for example you could use this file: >
|
||||||
vim ~/.vim/ftplugin/fortran.vim
|
vim ~/.vim/ftplugin/fortran.vim
|
||||||
< You can set those settings and mappings that you would like to add. Note
|
< You can set those settings and mappings that you would like to add. Note
|
||||||
that the global plugin will be loaded after this, it may overrule the
|
that the global plugin will be loaded after this, it may overrule the
|
||||||
settings that you do here. If this is the case, you need to use one of the
|
settings that you do here. If this is the case, you need to use one of the
|
||||||
following two methods.
|
following two methods.
|
||||||
@@ -403,7 +407,7 @@ ways to change this:
|
|||||||
You must put the copy in a directory early in 'runtimepath'. For Unix, for
|
You must put the copy in a directory early in 'runtimepath'. For Unix, for
|
||||||
example, you could do this: >
|
example, you could do this: >
|
||||||
cp $VIMRUNTIME/ftplugin/fortran.vim ~/.vim/ftplugin/fortran.vim
|
cp $VIMRUNTIME/ftplugin/fortran.vim ~/.vim/ftplugin/fortran.vim
|
||||||
< Then you can edit the copied file to your liking. Since the b:did_ftplugin
|
< Then you can edit the copied file to your liking. Since the b:did_ftplugin
|
||||||
variable will be set, the global plugin will not be loaded.
|
variable will be set, the global plugin will not be loaded.
|
||||||
A disadvantage of this method is that when the distributed plugin gets
|
A disadvantage of this method is that when the distributed plugin gets
|
||||||
improved, you will have to copy and modify it again.
|
improved, you will have to copy and modify it again.
|
||||||
@@ -412,17 +416,30 @@ ways to change this:
|
|||||||
You must create a new filetype plugin in a directory from the end of
|
You must create a new filetype plugin in a directory from the end of
|
||||||
'runtimepath'. For Unix, for example, you could use this file: >
|
'runtimepath'. For Unix, for example, you could use this file: >
|
||||||
vim ~/.vim/after/ftplugin/fortran.vim
|
vim ~/.vim/after/ftplugin/fortran.vim
|
||||||
< In this file you can change just those settings that you want to change.
|
< In this file you can change just those settings that you want to change.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Docs for the default filetype plugins. *ftplugin-docs*
|
3. Docs for the default filetype plugins. *ftplugin-docs*
|
||||||
|
|
||||||
|
|
||||||
|
*plugin_exec* *g:plugin_exec*
|
||||||
|
Enable executing of external commands. This was done historically for e.g.
|
||||||
|
the perl filetype plugin (and a few others) to set the search path.
|
||||||
|
Disabled by default for security reasons: >
|
||||||
|
:let g:plugin_exec = 1
|
||||||
|
It is also possible to enable this only for certain filetypes: >
|
||||||
|
:let g:<filetype>_exec = 1
|
||||||
|
So to enable this only for ruby, set the following variable: >
|
||||||
|
:let g:ruby_exec = 1
|
||||||
|
|
||||||
|
If both, the global `plugin_exec` and the `<filetype>_exec` specific variable
|
||||||
|
are set, the filetpe specific variable should have precedent.
|
||||||
|
|
||||||
AWK *ft-awk-plugin*
|
AWK *ft-awk-plugin*
|
||||||
|
|
||||||
Support for features specific to GNU Awk, like @include, can be enabled by
|
Support for features specific to GNU Awk, like @include, can be enabled by
|
||||||
setting: >
|
setting: >
|
||||||
let g:awk_is_gawk = 1
|
:let g:awk_is_gawk = 1
|
||||||
|
|
||||||
|
|
||||||
CHANGELOG *ft-changelog-plugin*
|
CHANGELOG *ft-changelog-plugin*
|
||||||
|
|||||||
@@ -205,15 +205,17 @@ After that, type "mvim" to start MacVim from Terminal. >
|
|||||||
$ mvim
|
$ mvim
|
||||||
You can also specify files to open with. >
|
You can also specify files to open with. >
|
||||||
$ mvim file ...
|
$ mvim file ...
|
||||||
Also the bin folder has convenient scripts for diffing and opening file as the
|
The bin folder also contains `mvimdiff` and `mview` that work as alias of
|
||||||
file is read-only. >
|
|gvimdiff| and |gview|, as well as `xxd` for |hex-editing|.
|
||||||
* Diff: mvimdiff
|
|
||||||
* Read-only: mview
|
|
||||||
<
|
|
||||||
You can still use the normal "vim", "vimdiff", and "view" commands if you want
|
You can still use the normal "vim", "vimdiff", and "view" commands if you want
|
||||||
to use non-GUI Vim, and "gvim" to launch MacVim ("gvim" works the same way as
|
to use non-GUI Vim, and "gvim" to launch MacVim ("gvim" works the same way as
|
||||||
"mvim").
|
"mvim").
|
||||||
|
|
||||||
|
If you would like to have man pages with the command-line tools, you can add
|
||||||
|
the following to `~/.zprofile`: >
|
||||||
|
export MANPATH="/Applications/MacVim.app/Contents/man:$MANPATH"
|
||||||
|
<
|
||||||
Going from terminal to GUI mode ~
|
Going from terminal to GUI mode ~
|
||||||
|
|
||||||
Once in terminal Vim it is possible to start the MacVim GUI by using the
|
Once in terminal Vim it is possible to start the MacVim GUI by using the
|
||||||
|
|||||||
@@ -297,5 +297,11 @@ instead of DYNAMIC_PERL_DLL file what was specified at compile time. The
|
|||||||
version of the shared library must match the Perl version Vim was compiled
|
version of the shared library must match the Perl version Vim was compiled
|
||||||
with.
|
with.
|
||||||
|
|
||||||
|
Note: If you are building Perl locally, you have to use a version compiled
|
||||||
|
with threading support for it for Vim to successfully link against it. You can
|
||||||
|
use the `-Dusethreads` flags when configuring Perl, and check that a Perl
|
||||||
|
binary has it enabled by running `perl -V` and verify that `USE_ITHREADS` is
|
||||||
|
under "Compile-time options".
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
|||||||
+25
-1
@@ -769,7 +769,19 @@ Unix ~
|
|||||||
The 'pythondll' or 'pythonthreedll' option can be used to specify the Python
|
The 'pythondll' or 'pythonthreedll' option can be used to specify the Python
|
||||||
shared library file instead of DYNAMIC_PYTHON_DLL or DYNAMIC_PYTHON3_DLL file
|
shared library file instead of DYNAMIC_PYTHON_DLL or DYNAMIC_PYTHON3_DLL file
|
||||||
what were specified at compile time. The version of the shared library must
|
what were specified at compile time. The version of the shared library must
|
||||||
match the Python 2.x or Python 3 version Vim was compiled with.
|
match the Python 2.x or Python 3 version (|v:python3_version|) Vim was
|
||||||
|
compiled with unless using |python3-stable-abi|.
|
||||||
|
|
||||||
|
|
||||||
|
Stable ABI and mixing Python versions ~
|
||||||
|
*python-stable* *python-stable-abi* *python3-stable-abi*
|
||||||
|
If Vim was not compiled with Stable ABI (only available for Python 3), the
|
||||||
|
version of the Python shared library must match the version that Vim was
|
||||||
|
compiled with. Otherwise, mixing versions could result in unexpected crashes
|
||||||
|
and failures. With Stable ABI, this restriction is relaxed, and any Python 3
|
||||||
|
library with version of at least |v:python3_version| will work. See
|
||||||
|
|has-python| for how to check if Stable ABI is supported, or see if version
|
||||||
|
output includes |+python3/dyn-stable|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
10. Python 3 *python3*
|
10. Python 3 *python3*
|
||||||
@@ -881,6 +893,18 @@ python support: >
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
When loading the library dynamically, Vim can be compiled to support Python 3
|
||||||
|
Stable ABI (|python3-stable-abi|) which allows you to load a different version
|
||||||
|
of Python 3 library than the one Vim was compiled with. To check it: >
|
||||||
|
if has('python3_dynamic')
|
||||||
|
if has('python3_stable')
|
||||||
|
echo 'support Python 3 Stable ABI.'
|
||||||
|
else
|
||||||
|
echo 'does not support Python 3 Stable ABI.'
|
||||||
|
echo 'only use Python 3 version ' .. v:python3_version
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
This also tells you whether Python is dynamically loaded, which will fail if
|
This also tells you whether Python is dynamically loaded, which will fail if
|
||||||
the runtime library cannot be found.
|
the runtime library cannot be found.
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,11 @@ CTRL-R {register} *i_CTRL-R*
|
|||||||
'/' the last search pattern
|
'/' the last search pattern
|
||||||
':' the last command-line
|
':' the last command-line
|
||||||
'.' the last inserted text
|
'.' the last inserted text
|
||||||
|
*i_CTRL-R_-*
|
||||||
'-' the last small (less than a line) delete
|
'-' the last small (less than a line) delete
|
||||||
|
register. This is repeatable using |.| since
|
||||||
|
it remembers the register to put instead of
|
||||||
|
the literal text to insert.
|
||||||
*i_CTRL-R_=*
|
*i_CTRL-R_=*
|
||||||
'=' the expression register: you are prompted to
|
'=' the expression register: you are prompted to
|
||||||
enter an expression (see |expression|)
|
enter an expression (see |expression|)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*intro.txt* For Vim version 9.0. Last change: 2022 Nov 20
|
*intro.txt* For Vim version 9.0. Last change: 2023 Aug 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -129,8 +129,9 @@ There are three ways to report bugs:
|
|||||||
3. Send bug reports to: Vim Developers <vim-dev@vim.org>
|
3. Send bug reports to: Vim Developers <vim-dev@vim.org>
|
||||||
This is a maillist, you need to become a member first and many people will
|
This is a maillist, you need to become a member first and many people will
|
||||||
see the message. If you don't want that, e.g. because it is a security
|
see the message. If you don't want that, e.g. because it is a security
|
||||||
issue, send it to <bugs@vim.org>, this only goes to the Vim maintainer
|
issue, please contact any of the current Vim maintainers
|
||||||
(that's Bram).
|
https://github.com/orgs/vim/people (but not Bram or the vim-dev ML).
|
||||||
|
In the future, a proper process for handling security issues will be setup.
|
||||||
|
|
||||||
Please be brief; all the time that is spent on answering mail is subtracted
|
Please be brief; all the time that is spent on answering mail is subtracted
|
||||||
from the time that is spent on improving Vim! Always give a reproducible
|
from the time that is spent on improving Vim! Always give a reproducible
|
||||||
@@ -181,9 +182,9 @@ The user may create scripts for Vim that use external commands. These might
|
|||||||
introduce Y2K problems, but those are not really part of Vim itself.
|
introduce Y2K problems, but those are not really part of Vim itself.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Credits *credits* *author* *Bram* *Moolenaar*
|
3. Credits *credits* *author*
|
||||||
|
|
||||||
Most of Vim was created by Bram Moolenaar <Bram@vim.org>.
|
Most of Vim was created by Bram Moolenaar <Bram@vim.org> |Bram-Moolenaar|
|
||||||
|
|
||||||
Parts of the documentation come from several Vi manuals, written by:
|
Parts of the documentation come from several Vi manuals, written by:
|
||||||
W.N. Joy
|
W.N. Joy
|
||||||
@@ -214,9 +215,9 @@ Vim would never have become what it is now, without the help of these people!
|
|||||||
Eric Fischer Mac port, 'cindent', and other improvements
|
Eric Fischer Mac port, 'cindent', and other improvements
|
||||||
Benji Fisher Answering lots of user questions
|
Benji Fisher Answering lots of user questions
|
||||||
Bill Foster Athena GUI port (later removed)
|
Bill Foster Athena GUI port (later removed)
|
||||||
Google Lets me work on Vim one day a week
|
Google Let Bram work on Vim one day a week
|
||||||
Loic Grenie xvim (ideas for multi windows version)
|
Loic Grenie xvim (ideas for multi windows version)
|
||||||
Sven Guckes Vim promoter and previous WWW page maintainer
|
Sven Guckes Vim promoter and previous WWW page maintainer |Sven-Guckes|
|
||||||
Darren Hiebert Exuberant ctags
|
Darren Hiebert Exuberant ctags
|
||||||
Jason Hildebrand GTK+ 2 port
|
Jason Hildebrand GTK+ 2 port
|
||||||
Bruce Hunsaker improvements for VMS port
|
Bruce Hunsaker improvements for VMS port
|
||||||
|
|||||||
@@ -242,8 +242,8 @@ gM Like "g0", but to halfway the text of the line.
|
|||||||
Thus "10gM" is near the start of the text and "90gM"
|
Thus "10gM" is near the start of the text and "90gM"
|
||||||
is near the end of the text.
|
is near the end of the text.
|
||||||
|
|
||||||
*g$* *g<End>*
|
*g$*
|
||||||
g$ or g<End> When lines wrap ('wrap' on): To the last character of
|
g$ When lines wrap ('wrap' on): To the last character of
|
||||||
the screen line and [count - 1] screen lines downward
|
the screen line and [count - 1] screen lines downward
|
||||||
|inclusive|. Differs from "$" when a line is wider
|
|inclusive|. Differs from "$" when a line is wider
|
||||||
than the screen.
|
than the screen.
|
||||||
@@ -256,6 +256,10 @@ g$ or g<End> When lines wrap ('wrap' on): To the last character of
|
|||||||
When 'virtualedit' is enabled moves to the end of the
|
When 'virtualedit' is enabled moves to the end of the
|
||||||
screen line.
|
screen line.
|
||||||
|
|
||||||
|
*g<End>* *g<kEnd>*
|
||||||
|
g<End> Like |g$| but to the last non-blank character
|
||||||
|
instead of the last character.
|
||||||
|
|
||||||
*bar*
|
*bar*
|
||||||
| To screen column [count] in the current line.
|
| To screen column [count] in the current line.
|
||||||
|exclusive| motion. Ceci n'est pas une pipe.
|
|exclusive| motion. Ceci n'est pas une pipe.
|
||||||
|
|||||||
+37
-12
@@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 9.0. Last change: 2023 Jun 02
|
*options.txt* For Vim version 9.0. Last change: 2023 Aug 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -252,6 +252,8 @@ opt+=val" the expansion is done before the adding or removing.
|
|||||||
|
|
||||||
Handling of local options *local-options*
|
Handling of local options *local-options*
|
||||||
|
|
||||||
|
Note: The following also applies to |global-local| options.
|
||||||
|
|
||||||
Some of the options only apply to a window or buffer. Each window or buffer
|
Some of the options only apply to a window or buffer. Each window or buffer
|
||||||
has its own copy of this option, thus each can have its own value. This
|
has its own copy of this option, thus each can have its own value. This
|
||||||
allows you to set 'list' in one window but not in another. And set
|
allows you to set 'list' in one window but not in another. And set
|
||||||
@@ -301,6 +303,30 @@ The options local to a window are remembered for each buffer. This also
|
|||||||
happens when the buffer is not loaded, but they are lost when the buffer is
|
happens when the buffer is not loaded, but they are lost when the buffer is
|
||||||
wiped out |:bwipe|.
|
wiped out |:bwipe|.
|
||||||
|
|
||||||
|
Special local window options *local-noglobal*
|
||||||
|
|
||||||
|
The following local window options won't be copied over when new windows are
|
||||||
|
created, thus they behave slightly differently:
|
||||||
|
|
||||||
|
Option Reason ~
|
||||||
|
'previewwindow' there can only be a single one
|
||||||
|
'scroll' specific to existing window
|
||||||
|
'winfixheight' specific to existing window
|
||||||
|
'winfixwidth' specific to existing window
|
||||||
|
|
||||||
|
Special local buffer options
|
||||||
|
|
||||||
|
The following local buffer options won't be copied over when new buffers are
|
||||||
|
created, thus they behave slightly differently:
|
||||||
|
|
||||||
|
Option Reason ~
|
||||||
|
'filetype' explicitly set by autocommands
|
||||||
|
'syntax' explicitly set by autocommands
|
||||||
|
'bufhidden' denote |special-buffers|
|
||||||
|
'buftype' denote |special-buffers|
|
||||||
|
'readonly' will be detected automatically
|
||||||
|
'modified' will be detected automatically
|
||||||
|
|
||||||
*:setl* *:setlocal*
|
*:setl* *:setlocal*
|
||||||
:setl[ocal][!] ... Like ":set" but set only the value local to the
|
:setl[ocal][!] ... Like ":set" but set only the value local to the
|
||||||
current buffer or window. Not all options have a
|
current buffer or window. Not all options have a
|
||||||
@@ -374,7 +400,6 @@ used. Thus it does the same as: >
|
|||||||
Note: In the future more global options can be made |global-local|. Using
|
Note: In the future more global options can be made |global-local|. Using
|
||||||
":setlocal" on a global option might work differently then.
|
":setlocal" on a global option might work differently then.
|
||||||
|
|
||||||
|
|
||||||
*option-value-function*
|
*option-value-function*
|
||||||
Some options ('completefunc', 'imactivatefunc', 'imstatusfunc', 'omnifunc',
|
Some options ('completefunc', 'imactivatefunc', 'imstatusfunc', 'omnifunc',
|
||||||
'operatorfunc', 'quickfixtextfunc', 'tagfunc' and 'thesaurusfunc') are set to
|
'operatorfunc', 'quickfixtextfunc', 'tagfunc' and 'thesaurusfunc') are set to
|
||||||
@@ -1454,7 +1479,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'bufhidden'* *'bh'*
|
*'bufhidden'* *'bh'*
|
||||||
'bufhidden' 'bh' string (default: "")
|
'bufhidden' 'bh' string (default: "")
|
||||||
local to buffer
|
local to buffer |local-noglobal|
|
||||||
This option specifies what happens when a buffer is no longer
|
This option specifies what happens when a buffer is no longer
|
||||||
displayed in a window:
|
displayed in a window:
|
||||||
<empty> follow the global 'hidden' option
|
<empty> follow the global 'hidden' option
|
||||||
@@ -1486,7 +1511,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'buftype'* *'bt'* *E382*
|
*'buftype'* *'bt'* *E382*
|
||||||
'buftype' 'bt' string (default: "")
|
'buftype' 'bt' string (default: "")
|
||||||
local to buffer
|
local to buffer |local-noglobal|
|
||||||
The value of this option specifies the type of a buffer:
|
The value of this option specifies the type of a buffer:
|
||||||
<empty> normal buffer
|
<empty> normal buffer
|
||||||
nofile buffer which is not related to a file and will not be
|
nofile buffer which is not related to a file and will not be
|
||||||
@@ -3423,7 +3448,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'filetype'* *'ft'*
|
*'filetype'* *'ft'*
|
||||||
'filetype' 'ft' string (default: "")
|
'filetype' 'ft' string (default: "")
|
||||||
local to buffer
|
local to buffer |local-noglobal|
|
||||||
When this option is set, the FileType autocommand event is triggered.
|
When this option is set, the FileType autocommand event is triggered.
|
||||||
All autocommands that match with the value of this option will be
|
All autocommands that match with the value of this option will be
|
||||||
executed. Thus the value of 'filetype' is used in place of the file
|
executed. Thus the value of 'filetype' is used in place of the file
|
||||||
@@ -5694,7 +5719,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'modified'* *'mod'* *'nomodified'* *'nomod'*
|
*'modified'* *'mod'* *'nomodified'* *'nomod'*
|
||||||
'modified' 'mod' boolean (default off)
|
'modified' 'mod' boolean (default off)
|
||||||
local to buffer
|
local to buffer |local-noglobal|
|
||||||
When on, the buffer is considered to be modified. This option is set
|
When on, the buffer is considered to be modified. This option is set
|
||||||
when:
|
when:
|
||||||
1. A change was made to the text since it was last written. Using the
|
1. A change was made to the text since it was last written. Using the
|
||||||
@@ -6265,7 +6290,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'previewwindow'* *'nopreviewwindow'*
|
*'previewwindow'* *'nopreviewwindow'*
|
||||||
*'pvw'* *'nopvw'* *E590*
|
*'pvw'* *'nopvw'* *E590*
|
||||||
'previewwindow' 'pvw' boolean (default off)
|
'previewwindow' 'pvw' boolean (default off)
|
||||||
local to window
|
local to window |local-noglobal|
|
||||||
{not available when compiled without the |+quickfix|
|
{not available when compiled without the |+quickfix|
|
||||||
feature}
|
feature}
|
||||||
Identifies the preview window. Only one window can have this option
|
Identifies the preview window. Only one window can have this option
|
||||||
@@ -6460,7 +6485,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'readonly'* *'ro'* *'noreadonly'* *'noro'*
|
*'readonly'* *'ro'* *'noreadonly'* *'noro'*
|
||||||
'readonly' 'ro' boolean (default off)
|
'readonly' 'ro' boolean (default off)
|
||||||
local to buffer
|
local to buffer |local-noglobal|
|
||||||
If on, writes fail unless you use a '!'. Protects you from
|
If on, writes fail unless you use a '!'. Protects you from
|
||||||
accidentally overwriting a file. Default on when Vim is started
|
accidentally overwriting a file. Default on when Vim is started
|
||||||
in read-only mode ("vim -R") or when the executable is called "view".
|
in read-only mode ("vim -R") or when the executable is called "view".
|
||||||
@@ -6839,7 +6864,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'scroll'* *'scr'*
|
*'scroll'* *'scr'*
|
||||||
'scroll' 'scr' number (default: half the window height)
|
'scroll' 'scr' number (default: half the window height)
|
||||||
local to window
|
local to window |local-noglobal|
|
||||||
Number of lines to scroll with CTRL-U and CTRL-D commands. Will be
|
Number of lines to scroll with CTRL-U and CTRL-D commands. Will be
|
||||||
set to half the number of lines in the window when the window size
|
set to half the number of lines in the window when the window size
|
||||||
changes. This may happen when enabling the |status-line| or
|
changes. This may happen when enabling the |status-line| or
|
||||||
@@ -8101,7 +8126,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'syntax'* *'syn'*
|
*'syntax'* *'syn'*
|
||||||
'syntax' 'syn' string (default empty)
|
'syntax' 'syn' string (default empty)
|
||||||
local to buffer
|
local to buffer |local-noglobal|
|
||||||
{not available when compiled without the |+syntax|
|
{not available when compiled without the |+syntax|
|
||||||
feature}
|
feature}
|
||||||
When this option is set, the syntax with this name is loaded, unless
|
When this option is set, the syntax with this name is loaded, unless
|
||||||
@@ -9562,7 +9587,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'winfixheight'* *'wfh'* *'nowinfixheight'* *'nowfh'*
|
*'winfixheight'* *'wfh'* *'nowinfixheight'* *'nowfh'*
|
||||||
'winfixheight' 'wfh' boolean (default off)
|
'winfixheight' 'wfh' boolean (default off)
|
||||||
local to window
|
local to window |local-noglobal|
|
||||||
Keep the window height when windows are opened or closed and
|
Keep the window height when windows are opened or closed and
|
||||||
'equalalways' is set. Also for |CTRL-W_=|. Set by default for the
|
'equalalways' is set. Also for |CTRL-W_=|. Set by default for the
|
||||||
|preview-window| and |quickfix-window|.
|
|preview-window| and |quickfix-window|.
|
||||||
@@ -9570,7 +9595,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'winfixwidth'* *'wfw'* *'nowinfixwidth'* *'nowfw'*
|
*'winfixwidth'* *'wfw'* *'nowinfixwidth'* *'nowfw'*
|
||||||
'winfixwidth' 'wfw' boolean (default off)
|
'winfixwidth' 'wfw' boolean (default off)
|
||||||
local to window
|
local to window |local-noglobal|
|
||||||
Keep the window width when windows are opened or closed and
|
Keep the window width when windows are opened or closed and
|
||||||
'equalalways' is set. Also for |CTRL-W_=|.
|
'equalalways' is set. Also for |CTRL-W_=|.
|
||||||
The width may be changed anyway when running out of room.
|
The width may be changed anyway when running out of room.
|
||||||
|
|||||||
+12
-11
@@ -214,10 +214,10 @@ A syntax group name is to be used for syntax items that match the same kind of
|
|||||||
thing. These are then linked to a highlight group that specifies the color.
|
thing. These are then linked to a highlight group that specifies the color.
|
||||||
A syntax group name doesn't specify any color or attributes itself.
|
A syntax group name doesn't specify any color or attributes itself.
|
||||||
|
|
||||||
The name for a highlight or syntax group must consist of ASCII letters, digits
|
The name for a highlight or syntax group must consist of ASCII letters,
|
||||||
and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give
|
digits, underscores, dots, or hyphens. As a regexp: "[a-zA-Z0-9_.-]*".
|
||||||
an error when using other characters. The maximum length of a group name is
|
However, Vim does not give an error when using other characters. The maximum
|
||||||
about 200 bytes. *E1249*
|
length of a group name is about 200 bytes. *E1249*
|
||||||
|
|
||||||
To be able to allow each user to pick their favorite set of colors, there must
|
To be able to allow each user to pick their favorite set of colors, there must
|
||||||
be preferred names for highlight groups that are common for many languages.
|
be preferred names for highlight groups that are common for many languages.
|
||||||
@@ -596,7 +596,7 @@ The method used to prevent copying in the generated page depends on the value
|
|||||||
of |g:html_use_input_for_pc|.
|
of |g:html_use_input_for_pc|.
|
||||||
|
|
||||||
*g:html_use_input_for_pc*
|
*g:html_use_input_for_pc*
|
||||||
Default: "fallback"
|
Default: "none"
|
||||||
If |g:html_prevent_copy| is non-empty, then:
|
If |g:html_prevent_copy| is non-empty, then:
|
||||||
|
|
||||||
When "all", read-only <input> elements are used in place of normal text for
|
When "all", read-only <input> elements are used in place of normal text for
|
||||||
@@ -1579,9 +1579,10 @@ example, FORM files, use this in your startup vimrc: >
|
|||||||
|
|
||||||
FORTH *forth.vim* *ft-forth-syntax*
|
FORTH *forth.vim* *ft-forth-syntax*
|
||||||
|
|
||||||
Files matching "*.fs" could be F# or Forth. If the automatic detection
|
Files matching "*.f" could be Fortran or Forth and those matching "*.fs" could
|
||||||
doesn't work for you, or you don't edit F# at all, use this in your
|
be F# or Forth. If the automatic detection doesn't work for you, or you don't
|
||||||
startup vimrc: >
|
edit F# or Fortran at all, use this in your startup vimrc: >
|
||||||
|
:let filetype_f = "forth"
|
||||||
:let filetype_fs = "forth"
|
:let filetype_fs = "forth"
|
||||||
|
|
||||||
|
|
||||||
@@ -2159,11 +2160,11 @@ should set a variable in your .vimrc file: >
|
|||||||
:let lpc_syntax_for_c = 1
|
:let lpc_syntax_for_c = 1
|
||||||
|
|
||||||
If it doesn't work properly for some particular C or LPC files, use a
|
If it doesn't work properly for some particular C or LPC files, use a
|
||||||
modeline. For a LPC file:
|
modeline. For a LPC file: >
|
||||||
|
|
||||||
// vim:set ft=lpc:
|
// vim:set ft=lpc:
|
||||||
|
|
||||||
For a C file that is recognized as LPC:
|
For a C file that is recognized as LPC: >
|
||||||
|
|
||||||
// vim:set ft=c:
|
// vim:set ft=c:
|
||||||
|
|
||||||
@@ -2195,7 +2196,7 @@ LUA *lua.vim* *ft-lua-syntax*
|
|||||||
The Lua syntax file can be used for versions 4.0, 5.0, 5.1 and 5.2 (5.2 is
|
The Lua syntax file can be used for versions 4.0, 5.0, 5.1 and 5.2 (5.2 is
|
||||||
the default). You can select one of these versions using the global variables
|
the default). You can select one of these versions using the global variables
|
||||||
lua_version and lua_subversion. For example, to activate Lua
|
lua_version and lua_subversion. For example, to activate Lua
|
||||||
5.1 syntax highlighting, set the variables like this:
|
5.1 syntax highlighting, set the variables like this: >
|
||||||
|
|
||||||
:let lua_version = 5
|
:let lua_version = 5
|
||||||
:let lua_subversion = 1
|
:let lua_subversion = 1
|
||||||
|
|||||||
+34
-2
@@ -1456,6 +1456,7 @@ $quote eval.txt /*$quote*
|
|||||||
+python/dyn various.txt /*+python\/dyn*
|
+python/dyn various.txt /*+python\/dyn*
|
||||||
+python3 various.txt /*+python3*
|
+python3 various.txt /*+python3*
|
||||||
+python3/dyn various.txt /*+python3\/dyn*
|
+python3/dyn various.txt /*+python3\/dyn*
|
||||||
|
+python3/dyn-stable various.txt /*+python3\/dyn-stable*
|
||||||
+quickfix various.txt /*+quickfix*
|
+quickfix various.txt /*+quickfix*
|
||||||
+reltime various.txt /*+reltime*
|
+reltime various.txt /*+reltime*
|
||||||
+rightleft various.txt /*+rightleft*
|
+rightleft various.txt /*+rightleft*
|
||||||
@@ -2107,10 +2108,12 @@ $quote eval.txt /*$quote*
|
|||||||
:Continue terminal.txt /*:Continue*
|
:Continue terminal.txt /*:Continue*
|
||||||
:DiffOrig diff.txt /*:DiffOrig*
|
:DiffOrig diff.txt /*:DiffOrig*
|
||||||
:DoMatchParen pi_paren.txt /*:DoMatchParen*
|
:DoMatchParen pi_paren.txt /*:DoMatchParen*
|
||||||
|
:Down terminal.txt /*:Down*
|
||||||
:Evaluate terminal.txt /*:Evaluate*
|
:Evaluate terminal.txt /*:Evaluate*
|
||||||
:Explore pi_netrw.txt /*:Explore*
|
:Explore pi_netrw.txt /*:Explore*
|
||||||
:Finish terminal.txt /*:Finish*
|
:Finish terminal.txt /*:Finish*
|
||||||
:FixBeginfigs ft_mp.txt /*:FixBeginfigs*
|
:FixBeginfigs ft_mp.txt /*:FixBeginfigs*
|
||||||
|
:Frame terminal.txt /*:Frame*
|
||||||
:GLVS pi_getscript.txt /*:GLVS*
|
:GLVS pi_getscript.txt /*:GLVS*
|
||||||
:Gdb terminal.txt /*:Gdb*
|
:Gdb terminal.txt /*:Gdb*
|
||||||
:GetLatestVimScripts_dat pi_getscript.txt /*:GetLatestVimScripts_dat*
|
:GetLatestVimScripts_dat pi_getscript.txt /*:GetLatestVimScripts_dat*
|
||||||
@@ -2163,7 +2166,9 @@ $quote eval.txt /*$quote*
|
|||||||
:TermdebugCommand terminal.txt /*:TermdebugCommand*
|
:TermdebugCommand terminal.txt /*:TermdebugCommand*
|
||||||
:Texplore pi_netrw.txt /*:Texplore*
|
:Texplore pi_netrw.txt /*:Texplore*
|
||||||
:Until terminal.txt /*:Until*
|
:Until terminal.txt /*:Until*
|
||||||
|
:Up terminal.txt /*:Up*
|
||||||
:UseVimball pi_vimball.txt /*:UseVimball*
|
:UseVimball pi_vimball.txt /*:UseVimball*
|
||||||
|
:Var terminal.txt /*:Var*
|
||||||
:Vexplore pi_netrw.txt /*:Vexplore*
|
:Vexplore pi_netrw.txt /*:Vexplore*
|
||||||
:VimballList pi_vimball.txt /*:VimballList*
|
:VimballList pi_vimball.txt /*:VimballList*
|
||||||
:Vimuntar pi_tar.txt /*:Vimuntar*
|
:Vimuntar pi_tar.txt /*:Vimuntar*
|
||||||
@@ -3903,7 +3908,8 @@ BeOS os_beos.txt /*BeOS*
|
|||||||
Blob eval.txt /*Blob*
|
Blob eval.txt /*Blob*
|
||||||
Blobs eval.txt /*Blobs*
|
Blobs eval.txt /*Blobs*
|
||||||
Boolean eval.txt /*Boolean*
|
Boolean eval.txt /*Boolean*
|
||||||
Bram intro.txt /*Bram*
|
Bram version9.txt /*Bram*
|
||||||
|
Bram-Moolenaar version9.txt /*Bram-Moolenaar*
|
||||||
BufAdd autocmd.txt /*BufAdd*
|
BufAdd autocmd.txt /*BufAdd*
|
||||||
BufCreate autocmd.txt /*BufCreate*
|
BufCreate autocmd.txt /*BufCreate*
|
||||||
BufDelete autocmd.txt /*BufDelete*
|
BufDelete autocmd.txt /*BufDelete*
|
||||||
@@ -4490,9 +4496,16 @@ E1362 vim9class.txt /*E1362*
|
|||||||
E1363 vim9class.txt /*E1363*
|
E1363 vim9class.txt /*E1363*
|
||||||
E1364 recover.txt /*E1364*
|
E1364 recover.txt /*E1364*
|
||||||
E137 starting.txt /*E137*
|
E137 starting.txt /*E137*
|
||||||
|
E1370 vim9class.txt /*E1370*
|
||||||
E138 starting.txt /*E138*
|
E138 starting.txt /*E138*
|
||||||
E139 message.txt /*E139*
|
E139 message.txt /*E139*
|
||||||
E140 message.txt /*E140*
|
E140 message.txt /*E140*
|
||||||
|
E1400 builtin.txt /*E1400*
|
||||||
|
E1401 builtin.txt /*E1401*
|
||||||
|
E1402 builtin.txt /*E1402*
|
||||||
|
E1403 builtin.txt /*E1403*
|
||||||
|
E1404 builtin.txt /*E1404*
|
||||||
|
E1405 builtin.txt /*E1405*
|
||||||
E141 message.txt /*E141*
|
E141 message.txt /*E141*
|
||||||
E142 message.txt /*E142*
|
E142 message.txt /*E142*
|
||||||
E143 autocmd.txt /*E143*
|
E143 autocmd.txt /*E143*
|
||||||
@@ -5549,7 +5562,7 @@ Mark motion.txt /*Mark*
|
|||||||
MenuPopup autocmd.txt /*MenuPopup*
|
MenuPopup autocmd.txt /*MenuPopup*
|
||||||
MiNT os_mint.txt /*MiNT*
|
MiNT os_mint.txt /*MiNT*
|
||||||
ModeChanged autocmd.txt /*ModeChanged*
|
ModeChanged autocmd.txt /*ModeChanged*
|
||||||
Moolenaar intro.txt /*Moolenaar*
|
Moolenaar version9.txt /*Moolenaar*
|
||||||
MorphOS os_amiga.txt /*MorphOS*
|
MorphOS os_amiga.txt /*MorphOS*
|
||||||
Motif gui_x11.txt /*Motif*
|
Motif gui_x11.txt /*Motif*
|
||||||
Myspell spell.txt /*Myspell*
|
Myspell spell.txt /*Myspell*
|
||||||
@@ -5931,6 +5944,7 @@ abandon editing.txt /*abandon*
|
|||||||
abbreviations map.txt /*abbreviations*
|
abbreviations map.txt /*abbreviations*
|
||||||
abel.vim syntax.txt /*abel.vim*
|
abel.vim syntax.txt /*abel.vim*
|
||||||
abs() builtin.txt /*abs()*
|
abs() builtin.txt /*abs()*
|
||||||
|
abstract-method vim9class.txt /*abstract-method*
|
||||||
acos() builtin.txt /*acos()*
|
acos() builtin.txt /*acos()*
|
||||||
active-buffer windows.txt /*active-buffer*
|
active-buffer windows.txt /*active-buffer*
|
||||||
ada#Create_Tags() ft_ada.txt /*ada#Create_Tags()*
|
ada#Create_Tags() ft_ada.txt /*ada#Create_Tags()*
|
||||||
@@ -6851,6 +6865,7 @@ err_mode channel.txt /*err_mode*
|
|||||||
err_modifiable channel.txt /*err_modifiable*
|
err_modifiable channel.txt /*err_modifiable*
|
||||||
err_msg channel.txt /*err_msg*
|
err_msg channel.txt /*err_msg*
|
||||||
err_name channel.txt /*err_name*
|
err_name channel.txt /*err_name*
|
||||||
|
err_teapot() builtin.txt /*err_teapot()*
|
||||||
err_timeout channel.txt /*err_timeout*
|
err_timeout channel.txt /*err_timeout*
|
||||||
errmsg-variable eval.txt /*errmsg-variable*
|
errmsg-variable eval.txt /*errmsg-variable*
|
||||||
error-file-format quickfix.txt /*error-file-format*
|
error-file-format quickfix.txt /*error-file-format*
|
||||||
@@ -7569,6 +7584,7 @@ g:netrw_wiw pi_netrw.txt /*g:netrw_wiw*
|
|||||||
g:netrw_xstrlen pi_netrw.txt /*g:netrw_xstrlen*
|
g:netrw_xstrlen pi_netrw.txt /*g:netrw_xstrlen*
|
||||||
g:no_mail_maps filetype.txt /*g:no_mail_maps*
|
g:no_mail_maps filetype.txt /*g:no_mail_maps*
|
||||||
g:no_plugin_maps filetype.txt /*g:no_plugin_maps*
|
g:no_plugin_maps filetype.txt /*g:no_plugin_maps*
|
||||||
|
g:plugin_exec filetype.txt /*g:plugin_exec*
|
||||||
g:rust_bang_comment_leader ft_rust.txt /*g:rust_bang_comment_leader*
|
g:rust_bang_comment_leader ft_rust.txt /*g:rust_bang_comment_leader*
|
||||||
g:rust_conceal ft_rust.txt /*g:rust_conceal*
|
g:rust_conceal ft_rust.txt /*g:rust_conceal*
|
||||||
g:rust_conceal_mod_path ft_rust.txt /*g:rust_conceal_mod_path*
|
g:rust_conceal_mod_path ft_rust.txt /*g:rust_conceal_mod_path*
|
||||||
@@ -7635,6 +7651,7 @@ g<LeftMouse> tagsrch.txt /*g<LeftMouse>*
|
|||||||
g<RightMouse> tagsrch.txt /*g<RightMouse>*
|
g<RightMouse> tagsrch.txt /*g<RightMouse>*
|
||||||
g<Tab> tabpage.txt /*g<Tab>*
|
g<Tab> tabpage.txt /*g<Tab>*
|
||||||
g<Up> motion.txt /*g<Up>*
|
g<Up> motion.txt /*g<Up>*
|
||||||
|
g<kEnd> motion.txt /*g<kEnd>*
|
||||||
g? change.txt /*g?*
|
g? change.txt /*g?*
|
||||||
g?? change.txt /*g??*
|
g?? change.txt /*g??*
|
||||||
g?g? change.txt /*g?g?*
|
g?g? change.txt /*g?g?*
|
||||||
@@ -8121,6 +8138,7 @@ i_CTRL-O insert.txt /*i_CTRL-O*
|
|||||||
i_CTRL-P insert.txt /*i_CTRL-P*
|
i_CTRL-P insert.txt /*i_CTRL-P*
|
||||||
i_CTRL-Q insert.txt /*i_CTRL-Q*
|
i_CTRL-Q insert.txt /*i_CTRL-Q*
|
||||||
i_CTRL-R insert.txt /*i_CTRL-R*
|
i_CTRL-R insert.txt /*i_CTRL-R*
|
||||||
|
i_CTRL-R_- insert.txt /*i_CTRL-R_-*
|
||||||
i_CTRL-R_= insert.txt /*i_CTRL-R_=*
|
i_CTRL-R_= insert.txt /*i_CTRL-R_=*
|
||||||
i_CTRL-R_CTRL-O insert.txt /*i_CTRL-R_CTRL-O*
|
i_CTRL-R_CTRL-O insert.txt /*i_CTRL-R_CTRL-O*
|
||||||
i_CTRL-R_CTRL-P insert.txt /*i_CTRL-R_CTRL-P*
|
i_CTRL-R_CTRL-P insert.txt /*i_CTRL-R_CTRL-P*
|
||||||
@@ -8259,6 +8277,7 @@ insertmode-variable eval.txt /*insertmode-variable*
|
|||||||
install usr_90.txt /*install*
|
install usr_90.txt /*install*
|
||||||
install-home usr_90.txt /*install-home*
|
install-home usr_90.txt /*install-home*
|
||||||
install-registry gui_w32.txt /*install-registry*
|
install-registry gui_w32.txt /*install-registry*
|
||||||
|
instanceof() builtin.txt /*instanceof()*
|
||||||
intel-itanium syntax.txt /*intel-itanium*
|
intel-itanium syntax.txt /*intel-itanium*
|
||||||
intellimouse-wheel-problems gui_w32.txt /*intellimouse-wheel-problems*
|
intellimouse-wheel-problems gui_w32.txt /*intellimouse-wheel-problems*
|
||||||
interactive-functions usr_41.txt /*interactive-functions*
|
interactive-functions usr_41.txt /*interactive-functions*
|
||||||
@@ -8430,6 +8449,7 @@ load-plugins starting.txt /*load-plugins*
|
|||||||
load-vim-script repeat.txt /*load-vim-script*
|
load-vim-script repeat.txt /*load-vim-script*
|
||||||
local-additions help.txt /*local-additions*
|
local-additions help.txt /*local-additions*
|
||||||
local-function userfunc.txt /*local-function*
|
local-function userfunc.txt /*local-function*
|
||||||
|
local-noglobal options.txt /*local-noglobal*
|
||||||
local-options options.txt /*local-options*
|
local-options options.txt /*local-options*
|
||||||
local-variable eval.txt /*local-variable*
|
local-variable eval.txt /*local-variable*
|
||||||
local-variables userfunc.txt /*local-variables*
|
local-variables userfunc.txt /*local-variables*
|
||||||
@@ -9289,6 +9309,7 @@ plugin usr_05.txt /*plugin*
|
|||||||
plugin-details filetype.txt /*plugin-details*
|
plugin-details filetype.txt /*plugin-details*
|
||||||
plugin-filetype usr_51.txt /*plugin-filetype*
|
plugin-filetype usr_51.txt /*plugin-filetype*
|
||||||
plugin-special usr_51.txt /*plugin-special*
|
plugin-special usr_51.txt /*plugin-special*
|
||||||
|
plugin_exec filetype.txt /*plugin_exec*
|
||||||
plugin_name.txt helphelp.txt /*plugin_name.txt*
|
plugin_name.txt helphelp.txt /*plugin_name.txt*
|
||||||
pmbcs-option print.txt /*pmbcs-option*
|
pmbcs-option print.txt /*pmbcs-option*
|
||||||
pmbfn-option print.txt /*pmbfn-option*
|
pmbfn-option print.txt /*pmbfn-option*
|
||||||
@@ -9370,6 +9391,7 @@ print-intro print.txt /*print-intro*
|
|||||||
print-options print.txt /*print-options*
|
print-options print.txt /*print-options*
|
||||||
print.txt print.txt /*print.txt*
|
print.txt print.txt /*print.txt*
|
||||||
printf() builtin.txt /*printf()*
|
printf() builtin.txt /*printf()*
|
||||||
|
printf-$ builtin.txt /*printf-$*
|
||||||
printf-% builtin.txt /*printf-%*
|
printf-% builtin.txt /*printf-%*
|
||||||
printf-B builtin.txt /*printf-B*
|
printf-B builtin.txt /*printf-B*
|
||||||
printf-E builtin.txt /*printf-E*
|
printf-E builtin.txt /*printf-E*
|
||||||
@@ -9457,6 +9479,8 @@ python-path_hook if_pyth.txt /*python-path_hook*
|
|||||||
python-pyeval if_pyth.txt /*python-pyeval*
|
python-pyeval if_pyth.txt /*python-pyeval*
|
||||||
python-range if_pyth.txt /*python-range*
|
python-range if_pyth.txt /*python-range*
|
||||||
python-special-path if_pyth.txt /*python-special-path*
|
python-special-path if_pyth.txt /*python-special-path*
|
||||||
|
python-stable if_pyth.txt /*python-stable*
|
||||||
|
python-stable-abi if_pyth.txt /*python-stable-abi*
|
||||||
python-strwidth if_pyth.txt /*python-strwidth*
|
python-strwidth if_pyth.txt /*python-strwidth*
|
||||||
python-tabpage if_pyth.txt /*python-tabpage*
|
python-tabpage if_pyth.txt /*python-tabpage*
|
||||||
python-tabpages if_pyth.txt /*python-tabpages*
|
python-tabpages if_pyth.txt /*python-tabpages*
|
||||||
@@ -9469,6 +9493,8 @@ python.vim syntax.txt /*python.vim*
|
|||||||
python2-directory if_pyth.txt /*python2-directory*
|
python2-directory if_pyth.txt /*python2-directory*
|
||||||
python3 if_pyth.txt /*python3*
|
python3 if_pyth.txt /*python3*
|
||||||
python3-directory if_pyth.txt /*python3-directory*
|
python3-directory if_pyth.txt /*python3-directory*
|
||||||
|
python3-stable-abi if_pyth.txt /*python3-stable-abi*
|
||||||
|
python3-version-variable eval.txt /*python3-version-variable*
|
||||||
python_x if_pyth.txt /*python_x*
|
python_x if_pyth.txt /*python_x*
|
||||||
python_x-special-comments if_pyth.txt /*python_x-special-comments*
|
python_x-special-comments if_pyth.txt /*python_x-special-comments*
|
||||||
pythonx if_pyth.txt /*pythonx*
|
pythonx if_pyth.txt /*pythonx*
|
||||||
@@ -10481,15 +10507,20 @@ termdebug-communication terminal.txt /*termdebug-communication*
|
|||||||
termdebug-customizing terminal.txt /*termdebug-customizing*
|
termdebug-customizing terminal.txt /*termdebug-customizing*
|
||||||
termdebug-events terminal.txt /*termdebug-events*
|
termdebug-events terminal.txt /*termdebug-events*
|
||||||
termdebug-example terminal.txt /*termdebug-example*
|
termdebug-example terminal.txt /*termdebug-example*
|
||||||
|
termdebug-frames terminal.txt /*termdebug-frames*
|
||||||
termdebug-prompt terminal.txt /*termdebug-prompt*
|
termdebug-prompt terminal.txt /*termdebug-prompt*
|
||||||
termdebug-starting terminal.txt /*termdebug-starting*
|
termdebug-starting terminal.txt /*termdebug-starting*
|
||||||
termdebug-stepping terminal.txt /*termdebug-stepping*
|
termdebug-stepping terminal.txt /*termdebug-stepping*
|
||||||
termdebug-variables terminal.txt /*termdebug-variables*
|
termdebug-variables terminal.txt /*termdebug-variables*
|
||||||
termdebug_disasm_window terminal.txt /*termdebug_disasm_window*
|
termdebug_disasm_window terminal.txt /*termdebug_disasm_window*
|
||||||
termdebug_map_K terminal.txt /*termdebug_map_K*
|
termdebug_map_K terminal.txt /*termdebug_map_K*
|
||||||
|
termdebug_map_minus terminal.txt /*termdebug_map_minus*
|
||||||
|
termdebug_map_plus terminal.txt /*termdebug_map_plus*
|
||||||
termdebug_popup terminal.txt /*termdebug_popup*
|
termdebug_popup terminal.txt /*termdebug_popup*
|
||||||
termdebug_shortcuts terminal.txt /*termdebug_shortcuts*
|
termdebug_shortcuts terminal.txt /*termdebug_shortcuts*
|
||||||
|
termdebug_signs terminal.txt /*termdebug_signs*
|
||||||
termdebug_use_prompt terminal.txt /*termdebug_use_prompt*
|
termdebug_use_prompt terminal.txt /*termdebug_use_prompt*
|
||||||
|
termdebug_variables_window terminal.txt /*termdebug_variables_window*
|
||||||
termdebug_wide terminal.txt /*termdebug_wide*
|
termdebug_wide terminal.txt /*termdebug_wide*
|
||||||
termdebug_winbar terminal.txt /*termdebug_winbar*
|
termdebug_winbar terminal.txt /*termdebug_winbar*
|
||||||
terminal terminal.txt /*terminal*
|
terminal terminal.txt /*terminal*
|
||||||
@@ -10795,6 +10826,7 @@ v:prevcount eval.txt /*v:prevcount*
|
|||||||
v:profiling eval.txt /*v:profiling*
|
v:profiling eval.txt /*v:profiling*
|
||||||
v:progname eval.txt /*v:progname*
|
v:progname eval.txt /*v:progname*
|
||||||
v:progpath eval.txt /*v:progpath*
|
v:progpath eval.txt /*v:progpath*
|
||||||
|
v:python3_version eval.txt /*v:python3_version*
|
||||||
v:register eval.txt /*v:register*
|
v:register eval.txt /*v:register*
|
||||||
v:scrollstart eval.txt /*v:scrollstart*
|
v:scrollstart eval.txt /*v:scrollstart*
|
||||||
v:searchforward eval.txt /*v:searchforward*
|
v:searchforward eval.txt /*v:searchforward*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*terminal.txt* For Vim version 9.0. Last change: 2023 Jun 28
|
*terminal.txt* For Vim version 9.0. Last change: 2023 Aug 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -38,6 +38,7 @@ If the result is "1" you have it.
|
|||||||
Example session |termdebug-example|
|
Example session |termdebug-example|
|
||||||
Stepping through code |termdebug-stepping|
|
Stepping through code |termdebug-stepping|
|
||||||
Inspecting variables |termdebug-variables|
|
Inspecting variables |termdebug-variables|
|
||||||
|
Navigating stack frames |termdebug-frames|
|
||||||
Other commands |termdebug-commands|
|
Other commands |termdebug-commands|
|
||||||
Events |termdebug-events|
|
Events |termdebug-events|
|
||||||
Prompt mode |termdebug-prompt|
|
Prompt mode |termdebug-prompt|
|
||||||
@@ -1376,6 +1377,18 @@ This is similar to using "print" in the gdb window.
|
|||||||
You can usually shorten `:Evaluate` to `:Ev`.
|
You can usually shorten `:Evaluate` to `:Ev`.
|
||||||
|
|
||||||
|
|
||||||
|
Navigating stack frames ~
|
||||||
|
*termdebug-frames* *:Frame* *:Up* *:Down*
|
||||||
|
`:Frame` [frame] select frame [frame], which is a frame number,
|
||||||
|
address, or function name (default: current frame)
|
||||||
|
`:Up` [count] go up [count] frames (default: 1; the frame that
|
||||||
|
called the current)
|
||||||
|
`+` same (see |termdebug_map_plus| to disable)
|
||||||
|
`:Down` [count] go down [count] frames (default: 1; the frame called
|
||||||
|
by the current)
|
||||||
|
`-` same (see |termdebug_map_minus| to disable)
|
||||||
|
|
||||||
|
|
||||||
Other commands ~
|
Other commands ~
|
||||||
*termdebug-commands*
|
*termdebug-commands*
|
||||||
*:Gdb* jump to the gdb window
|
*:Gdb* jump to the gdb window
|
||||||
@@ -1384,6 +1397,9 @@ Other commands ~
|
|||||||
isn't one
|
isn't one
|
||||||
*:Asm* jump to the window with the disassembly, create it if there
|
*:Asm* jump to the window with the disassembly, create it if there
|
||||||
isn't one
|
isn't one
|
||||||
|
*:Var* jump to the window with the local and argument variables,
|
||||||
|
create it if there isn't one. This window updates whenever the
|
||||||
|
program is stopped
|
||||||
|
|
||||||
Events ~
|
Events ~
|
||||||
*termdebug-events*
|
*termdebug-events*
|
||||||
@@ -1446,10 +1462,18 @@ If there is no g:termdebug_config you can use: >
|
|||||||
let g:termdebug_use_prompt = 1
|
let g:termdebug_use_prompt = 1
|
||||||
<
|
<
|
||||||
*termdebug_map_K*
|
*termdebug_map_K*
|
||||||
The K key is normally mapped to :Evaluate. If you do not want this use: >
|
The K key is normally mapped to |:Evaluate|. If you do not want this use: >
|
||||||
let g:termdebug_config['map_K'] = 0
|
let g:termdebug_config['map_K'] = 0
|
||||||
If there is no g:termdebug_config you can use: >
|
If there is no g:termdebug_config you can use: >
|
||||||
let g:termdebug_map_K = 0
|
let g:termdebug_map_K = 0
|
||||||
|
<
|
||||||
|
*termdebug_map_minus*
|
||||||
|
The - key is normally mapped to |:Down|. If you do not want this use: >
|
||||||
|
let g:termdebug_config['map_minus'] = 0
|
||||||
|
<
|
||||||
|
*termdebug_map_plus*
|
||||||
|
The + key is normally mapped to |:Up|. If you do not want this use: >
|
||||||
|
let g:termdebug_config['map_plus'] = 0
|
||||||
<
|
<
|
||||||
*termdebug_disasm_window*
|
*termdebug_disasm_window*
|
||||||
If you want the Asm window shown by default, set the "disasm_window" flag to
|
If you want the Asm window shown by default, set the "disasm_window" flag to
|
||||||
@@ -1460,6 +1484,15 @@ If there is no g:termdebug_config you can use: >
|
|||||||
let g:termdebug_disasm_window = 15
|
let g:termdebug_disasm_window = 15
|
||||||
Any value greater than 1 will set the Asm window height to that value.
|
Any value greater than 1 will set the Asm window height to that value.
|
||||||
|
|
||||||
|
*termdebug_variables_window*
|
||||||
|
If you want the Var window shown by default, set the flag to 1.
|
||||||
|
the "variables_window_height" entry can be used to set the window height: >
|
||||||
|
let g:termdebug_config['variables_window'] = 1
|
||||||
|
let g:termdebug_config['variables_window_height'] = 15
|
||||||
|
If there is no g:termdebug_config you can use: >
|
||||||
|
let g:termdebug_variables_window = 15
|
||||||
|
Any value greater than 1 will set the Var window height to that value.
|
||||||
|
|
||||||
Communication ~
|
Communication ~
|
||||||
*termdebug-communication*
|
*termdebug-communication*
|
||||||
There is another, hidden, buffer, which is used for Vim to communicate with
|
There is another, hidden, buffer, which is used for Vim to communicate with
|
||||||
|
|||||||
@@ -335,6 +335,12 @@ prop_list({lnum} [, {props}]) *prop_list()*
|
|||||||
length length in bytes, one more if line break is
|
length length in bytes, one more if line break is
|
||||||
included
|
included
|
||||||
id property ID
|
id property ID
|
||||||
|
text text to be displayed before {col}. Only
|
||||||
|
present for |virtual-text| properties.
|
||||||
|
text_align alignment property of |virtual-text|.
|
||||||
|
text_padding_left
|
||||||
|
left padding used for virtual text.
|
||||||
|
text_wrap specifies whether |virtual-text| is wrapped.
|
||||||
type name of the property type, omitted if
|
type name of the property type, omitted if
|
||||||
the type was deleted
|
the type was deleted
|
||||||
type_bufnr buffer number for which this type was defined;
|
type_bufnr buffer number for which this type was defined;
|
||||||
|
|||||||
+21
-9
@@ -1,4 +1,4 @@
|
|||||||
*tips.txt* For Vim version 9.0. Last change: 2021 Nov 06
|
*tips.txt* For Vim version 9.0. Last change: 2023 Aug 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -431,14 +431,26 @@ comma-separated list of extension(s) you find yourself wanting to edit: >
|
|||||||
|
|
||||||
" vim -b : edit binary using xxd-format!
|
" vim -b : edit binary using xxd-format!
|
||||||
augroup Binary
|
augroup Binary
|
||||||
au!
|
autocmd!
|
||||||
au BufReadPre *.bin let &bin=1
|
autocmd BufReadPre *.bin set binary
|
||||||
au BufReadPost *.bin if &bin | %!xxd
|
autocmd BufReadPost *.bin
|
||||||
au BufReadPost *.bin set ft=xxd | endif
|
\ if &binary
|
||||||
au BufWritePre *.bin if &bin | %!xxd -r
|
\ | execute "silent %!xxd -c 32"
|
||||||
au BufWritePre *.bin endif
|
\ | set filetype=xxd
|
||||||
au BufWritePost *.bin if &bin | %!xxd
|
\ | redraw
|
||||||
au BufWritePost *.bin set nomod | endif
|
\ | endif
|
||||||
|
autocmd BufWritePre *.bin
|
||||||
|
\ if &binary
|
||||||
|
\ | let s:view = winsaveview()
|
||||||
|
\ | execute "silent %!xxd -r -c 32"
|
||||||
|
\ | endif
|
||||||
|
autocmd BufWritePost *.bin
|
||||||
|
\ if &binary
|
||||||
|
\ | execute "silent %!xxd -c 32"
|
||||||
|
\ | set nomodified
|
||||||
|
\ | call winrestview(s:view)
|
||||||
|
\ | redraw
|
||||||
|
\ | endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|||||||
+3
-22
@@ -61,8 +61,6 @@ without all the help files.
|
|||||||
SpellCap highlight not updated - PR #12428
|
SpellCap highlight not updated - PR #12428
|
||||||
|
|
||||||
Virtual text problems:
|
Virtual text problems:
|
||||||
- Deleting character before a wrapping virtual text, causes for the following
|
|
||||||
lines to dissapear (Issue #12244)
|
|
||||||
- If 'list' is on, 'below' virtual text which includes 1 or 2 characters are
|
- If 'list' is on, 'below' virtual text which includes 1 or 2 characters are
|
||||||
gone (Issue #12028)
|
gone (Issue #12028)
|
||||||
- Virtual text aligned "above": Wrong indentation when using tabs (Issue
|
- Virtual text aligned "above": Wrong indentation when using tabs (Issue
|
||||||
@@ -75,14 +73,6 @@ Virtual text problems:
|
|||||||
'below' on an empty line (Issue #11959)
|
'below' on an empty line (Issue #11959)
|
||||||
- truncated Virtual text below an empty line causes display error #12493
|
- truncated Virtual text below an empty line causes display error #12493
|
||||||
|
|
||||||
include #12403: window for Termdebug showing local variables
|
|
||||||
|
|
||||||
include #12140: positional arguments in printf(), fixes #10577
|
|
||||||
|
|
||||||
Include #11818: attach custom data to quickfix items.
|
|
||||||
|
|
||||||
Include #12292: buffer argument for undotree()?
|
|
||||||
|
|
||||||
When 'virtualedit' is "all" and 'cursorcolumn' is set, the wrong column may be
|
When 'virtualedit' is "all" and 'cursorcolumn' is set, the wrong column may be
|
||||||
highlighted. (van-de-bugger, 2018 Jan 23, #2576)
|
highlighted. (van-de-bugger, 2018 Jan 23, #2576)
|
||||||
|
|
||||||
@@ -131,7 +121,7 @@ Upcoming larger works:
|
|||||||
|
|
||||||
|
|
||||||
Further Vim9 improvements, possibly after launch:
|
Further Vim9 improvements, possibly after launch:
|
||||||
- implement :class and :interface: See |vim9-classes
|
- Classes and Interfaces. See |vim9-classes|
|
||||||
- Change access: public by default, private by prefixing "_".
|
- Change access: public by default, private by prefixing "_".
|
||||||
Check for error: can't have same name twice (ignoring "_" prefix).
|
Check for error: can't have same name twice (ignoring "_" prefix).
|
||||||
- Private methods?
|
- Private methods?
|
||||||
@@ -139,25 +129,19 @@ Further Vim9 improvements, possibly after launch:
|
|||||||
or: def _Func()
|
or: def _Func()
|
||||||
Perhaps use "private" keyword instead of "_" prefix?
|
Perhaps use "private" keyword instead of "_" prefix?
|
||||||
- "final" object members - can only be set in the constructor.
|
- "final" object members - can only be set in the constructor.
|
||||||
|
- Support export/import of classes and interfaces.
|
||||||
- Cannot use class type of itself in the method (Issue #12369)
|
- Cannot use class type of itself in the method (Issue #12369)
|
||||||
- Cannot use an object method in a lambda #12417
|
- Cannot use an object method in a lambda #12417
|
||||||
Define all methods before compiling them?
|
Define all methods before compiling them?
|
||||||
- class members initialized during definition (Issue #12041)
|
|
||||||
- Cannot call class member of funcref type (Issue #12324)
|
- Cannot call class member of funcref type (Issue #12324)
|
||||||
Also #12081 first case.
|
Also #12081 first case.
|
||||||
- Using list of functions does not work #12081 (repro in later message).
|
- Using list of functions does not work #12081 (repro in later message).
|
||||||
- Weird `class X not found on interface X` error (Issue #12023)
|
|
||||||
- First argument of call() cannot be "obj.Func". (#11865)
|
- First argument of call() cannot be "obj.Func". (#11865)
|
||||||
- "return this" required for early return from constructor (inconsistent)
|
|
||||||
(Issue #12040)
|
|
||||||
- class/method confusion inside ":def" when using "class extends" (Issue
|
|
||||||
#12089)
|
|
||||||
- null_object - constant type 17 not supported (Issue #12043)
|
- null_object - constant type 17 not supported (Issue #12043)
|
||||||
- problem compiling object method call as function call argument (Issue
|
- problem compiling object method call as function call argument (Issue
|
||||||
#12081)
|
#12081)
|
||||||
- Make ":defcompile ClassName" compile all functions and methods in the
|
- Make ":defcompile ClassName" compile all functions and methods in the
|
||||||
class.
|
class.
|
||||||
- object's method in stacktrace missing information (Issue #12078)
|
|
||||||
- Forward declaration of a class? E.g. for Clone() function.
|
- Forward declaration of a class? E.g. for Clone() function.
|
||||||
email lifepillar 2023 Mar 26
|
email lifepillar 2023 Mar 26
|
||||||
- Getting member of variable with "any" type should be handled at runtime.
|
- Getting member of variable with "any" type should be handled at runtime.
|
||||||
@@ -180,7 +164,7 @@ Further Vim9 improvements, possibly after launch:
|
|||||||
- For chaining, allow using the class name as type for function return
|
- For chaining, allow using the class name as type for function return
|
||||||
value.
|
value.
|
||||||
- Implement generics
|
- Implement generics
|
||||||
- Add "instanceof" (exact class name). And "assignable" (class or child)?
|
- Add "assignable" (class or child)?
|
||||||
- More efficient way for interface member index than iterating over list?
|
- More efficient way for interface member index than iterating over list?
|
||||||
- a variant of type() that returns a different type for each class?
|
- a variant of type() that returns a different type for each class?
|
||||||
list<number> and list<string> should also differ.
|
list<number> and list<string> should also differ.
|
||||||
@@ -3552,8 +3536,6 @@ Macintosh:
|
|||||||
8 Dragging the status line doesn't scroll but redraw.
|
8 Dragging the status line doesn't scroll but redraw.
|
||||||
8 When performing incremental search, should abort searching as soon as a
|
8 When performing incremental search, should abort searching as soon as a
|
||||||
character is typed.
|
character is typed.
|
||||||
8 When the value of $MAKE contains a path, configure can't handle this.
|
|
||||||
It's an autoconf bug. Remove the path from $MAKE to work around it.
|
|
||||||
8 How to set VIMRC_FILE to \"something\" for configure? Why does this not
|
8 How to set VIMRC_FILE to \"something\" for configure? Why does this not
|
||||||
work: CFLAGS='-DVIMRC_FILE=\"/mydir/myfile\"' ./configure
|
work: CFLAGS='-DVIMRC_FILE=\"/mydir/myfile\"' ./configure
|
||||||
8 The temporary file is sometimes not writable. Check for this, and use an
|
8 The temporary file is sometimes not writable. Check for this, and use an
|
||||||
@@ -5535,7 +5517,6 @@ Undo:
|
|||||||
- Undo history wrong when ":next file" re-uses a buffer. (#5426) ex_next()
|
- Undo history wrong when ":next file" re-uses a buffer. (#5426) ex_next()
|
||||||
should pass flag to do_argfile(), then to do_ecmd(). Is there a test for
|
should pass flag to do_argfile(), then to do_ecmd(). Is there a test for
|
||||||
this?
|
this?
|
||||||
- Add buffer argument to undotree(). (#4001)
|
|
||||||
- Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)
|
- Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)
|
||||||
- Undo message is not always properly displayed. Patch by Ken Takata, 2013
|
- Undo message is not always properly displayed. Patch by Ken Takata, 2013
|
||||||
oct 3. Doesn't work properly according to Yukihiro Nakadaira.
|
oct 3. Doesn't work properly according to Yukihiro Nakadaira.
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ II) It is allowed to distribute a modified (or extended) version of Vim,
|
|||||||
maintainer will do with your changes and under what license they
|
maintainer will do with your changes and under what license they
|
||||||
will be distributed is negotiable. If there has been no negotiation
|
will be distributed is negotiable. If there has been no negotiation
|
||||||
then this license, or a later version, also applies to your changes.
|
then this license, or a later version, also applies to your changes.
|
||||||
The current maintainer is Bram Moolenaar <Bram@vim.org>. If this
|
The current maintainers are listed here: https://github.com/orgs/vim/people.
|
||||||
changes it will be announced in appropriate places (most likely
|
If this changes it will be announced in appropriate places (most likely
|
||||||
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
|
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
|
||||||
impossible to contact the maintainer, the obligation to send him
|
impossible to contact the maintainer, the obligation to send him
|
||||||
your changes ceases. Once the maintainer has confirmed that he has
|
your changes ceases. Once the maintainer has confirmed that he has
|
||||||
|
|||||||
+23
-5
@@ -111,9 +111,19 @@ use CTRL-G u. This is useful if you want an insert command to be undoable in
|
|||||||
parts. E.g., for each sentence. |i_CTRL-G_u|
|
parts. E.g., for each sentence. |i_CTRL-G_u|
|
||||||
|
|
||||||
Setting the value of 'undolevels' also closes the undo block. Even when the
|
Setting the value of 'undolevels' also closes the undo block. Even when the
|
||||||
new value is equal to the old value. In |Vim9| script: >
|
new value is equal to the old value. Use `g:undolevels` to explicitly read
|
||||||
&undolevels = &undolevels
|
and write only the global value of 'undolevels'. In |Vim9| script: >
|
||||||
|
&g:undolevels = &g:undolevels
|
||||||
In legacy script: >
|
In legacy script: >
|
||||||
|
let &g:undolevels = &g:undolevels
|
||||||
|
|
||||||
|
Note that the similar-looking assignment `let &undolevels=&undolevels` does not
|
||||||
|
preserve the global option value of 'undolevels' in the event that the local
|
||||||
|
option has been set to a different value. For example: >
|
||||||
|
" Start with different global and local values for 'undolevels'.
|
||||||
|
let &g:undolevels = 1000
|
||||||
|
let &l:undolevels = 2000
|
||||||
|
" This assignment changes the global option to 2000:
|
||||||
let &undolevels = &undolevels
|
let &undolevels = &undolevels
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@@ -366,12 +376,20 @@ undo is possible. Use this if you are running out of memory.
|
|||||||
When you set 'undolevels' to -1 the undo information is not immediately
|
When you set 'undolevels' to -1 the undo information is not immediately
|
||||||
cleared, this happens at the next change. To force clearing the undo
|
cleared, this happens at the next change. To force clearing the undo
|
||||||
information you can use these commands: >
|
information you can use these commands: >
|
||||||
:let old_undolevels = &undolevels
|
:let old_undolevels = &l:undolevels
|
||||||
:set undolevels=-1
|
:setlocal undolevels=-1
|
||||||
:exe "normal a \<BS>\<Esc>"
|
:exe "normal a \<BS>\<Esc>"
|
||||||
:let &undolevels = old_undolevels
|
:let &l:undolevels = old_undolevels
|
||||||
:unlet old_undolevels
|
:unlet old_undolevels
|
||||||
|
|
||||||
|
Note use of `&l:undolevels` to explicitly read the local value of 'undolevels'
|
||||||
|
and the use of `:setlocal` to change only the local option (which takes
|
||||||
|
precedence over the corresponding global option value). Saving the option value
|
||||||
|
via the use of `&undolevels` is unpredictable; it reads either the local value
|
||||||
|
(if one has been set) or the global value (otherwise). Also, if a local value
|
||||||
|
has been set, changing the option via `:set undolevels` will change both the
|
||||||
|
global and local values, requiring extra work to save and restore both values.
|
||||||
|
|
||||||
Marks for the buffer ('a to 'z) are also saved and restored, together with the
|
Marks for the buffer ('a to 'z) are also saved and restored, together with the
|
||||||
text.
|
text.
|
||||||
|
|
||||||
|
|||||||
+19
-9
@@ -1,4 +1,4 @@
|
|||||||
*usr_05.txt* For Vim version 9.0. Last change: 2019 May 23
|
*usr_05.txt* For Vim version 9.0. Last change: 2023 Aug 10
|
||||||
|
|
||||||
VIM USER MANUAL - by Bram Moolenaar
|
VIM USER MANUAL - by Bram Moolenaar
|
||||||
|
|
||||||
@@ -308,17 +308,27 @@ This switches on three very clever mechanisms:
|
|||||||
|
|
||||||
|
|
||||||
*restore-cursor* *last-position-jump* >
|
*restore-cursor* *last-position-jump* >
|
||||||
autocmd BufReadPost *
|
augroup RestoreCursor
|
||||||
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
|
autocmd!
|
||||||
\ | exe "normal! g`\""
|
autocmd BufReadPost *
|
||||||
\ | endif
|
\ let line = line("'\"")
|
||||||
|
\ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
|
||||||
|
\ && index(['xxd', 'gitrebase'], &filetype) == -1
|
||||||
|
\ | execute "normal! g`\""
|
||||||
|
\ | endif
|
||||||
|
augroup END
|
||||||
|
|
||||||
Another autocommand. This time it is used after reading any file. The
|
Another autocommand. This time it is used after reading any file. The
|
||||||
complicated stuff after it checks if the '" mark is defined, and jumps to it
|
complicated stuff after it checks if the '" mark is defined, and jumps to it
|
||||||
if so. The backslash at the start of a line is used to continue the command
|
if so. It doesn't do that for a commit or rebase message, which are likely
|
||||||
from the previous line. That avoids a line getting very long.
|
a different one than last time, and when using xxd(1) to filter and edit
|
||||||
See |line-continuation|. This only works in a Vim script file, not when
|
binary files, which transforms input files back and forth, causing them to
|
||||||
typing commands at the command-line.
|
have dual nature, so to speak. See also |using-xxd|.
|
||||||
|
|
||||||
|
The backslash at the start of a line is used to continue the command from the
|
||||||
|
previous line. That avoids a line getting very long. See |line-continuation|.
|
||||||
|
This only works in a Vim script file, not when typing commands at the
|
||||||
|
command line.
|
||||||
|
|
||||||
>
|
>
|
||||||
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
|
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
|
||||||
|
|||||||
@@ -877,6 +877,7 @@ Other computation: *bitwise-function*
|
|||||||
srand() initialize seed used by rand()
|
srand() initialize seed used by rand()
|
||||||
|
|
||||||
Variables: *var-functions*
|
Variables: *var-functions*
|
||||||
|
instanceof() check if a variable is an instance of a given class
|
||||||
type() type of a variable as a number
|
type() type of a variable as a number
|
||||||
typename() type of a variable as text
|
typename() type of a variable as text
|
||||||
islocked() check if a variable is locked
|
islocked() check if a variable is locked
|
||||||
@@ -1373,7 +1374,7 @@ Various: *various-functions*
|
|||||||
libcallnr() idem, returning a number
|
libcallnr() idem, returning a number
|
||||||
|
|
||||||
undofile() get the name of the undo file
|
undofile() get the name of the undo file
|
||||||
undotree() return the state of the undo tree
|
undotree() return the state of the undo tree for a buffer
|
||||||
|
|
||||||
shiftwidth() effective value of 'shiftwidth'
|
shiftwidth() effective value of 'shiftwidth'
|
||||||
|
|
||||||
|
|||||||
@@ -452,6 +452,8 @@ m *+python* Python 2 interface |python|
|
|||||||
m *+python/dyn* Python 2 interface |python-dynamic| |/dyn|
|
m *+python/dyn* Python 2 interface |python-dynamic| |/dyn|
|
||||||
m *+python3* Python 3 interface |python|
|
m *+python3* Python 3 interface |python|
|
||||||
m *+python3/dyn* Python 3 interface |python-dynamic| |/dyn|
|
m *+python3/dyn* Python 3 interface |python-dynamic| |/dyn|
|
||||||
|
m *+python3/dyn-stable*
|
||||||
|
Python 3 interface |python-dynamic| |python-stable| |/dyn|
|
||||||
N *+quickfix* |:make| and |quickfix| commands
|
N *+quickfix* |:make| and |quickfix| commands
|
||||||
N *+reltime* |reltime()| function, 'hlsearch'/'incsearch' timeout,
|
N *+reltime* |reltime()| function, 'hlsearch'/'incsearch' timeout,
|
||||||
'redrawtime' option
|
'redrawtime' option
|
||||||
|
|||||||
@@ -4629,7 +4629,7 @@ using an #ifdef. (Sergey Khorev)
|
|||||||
Mzscheme interface didn't link, missing function. Changed order of libraries
|
Mzscheme interface didn't link, missing function. Changed order of libraries
|
||||||
in the configure script.
|
in the configure script.
|
||||||
|
|
||||||
Ruby interface didn't compile on Mac. Changed #ifdef. (Kevin Ballard)
|
Ruby interface didn't compile on Mac. Changed #ifdef. (Lily Ballard)
|
||||||
|
|
||||||
Patch 7.1b.001 (extra)
|
Patch 7.1b.001 (extra)
|
||||||
Problem: Random text in a source file. No idea how it got there.
|
Problem: Random text in a source file. No idea how it got there.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*version9.txt* For Vim version 9.0. Last change: 2022 Nov 23
|
*version9.txt* For Vim version 9.0. Last change: 2023 Aug 09
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -43,6 +43,17 @@ when the release was being prepared. Sven was a long time supporter of Vim.
|
|||||||
He registered the vim.org domain and created the first Vim website. We will
|
He registered the vim.org domain and created the first Vim website. We will
|
||||||
remember him!
|
remember him!
|
||||||
|
|
||||||
|
*Bram* *Moolenaar* *Bram-Moolenaar*
|
||||||
|
Vim version 9.1 is dedicated to Bram Moolenaar, who passed away on August 3rd
|
||||||
|
2023 while still working full-time on Vim. The Vim project would not exist
|
||||||
|
without his ongoing passion to lead and develop Vim and the community for more
|
||||||
|
than 30 years. Bram was also passionate about his |ICCF| foundation to help
|
||||||
|
children in Uganda. If you enjoy using Vim, please consider donating! We will
|
||||||
|
miss his guidance, passion and leadership.
|
||||||
|
|
||||||
|
Obituary Articles: https://github.com/vim/vim/discussions/12742
|
||||||
|
Say Farewell: https://github.com/vim/vim/discussions/12737
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
NEW FEATURES *new-9*
|
NEW FEATURES *new-9*
|
||||||
|
|
||||||
|
|||||||
+72
-80
@@ -1,4 +1,4 @@
|
|||||||
.TH VIM 1 "22 febbraio 2002"
|
.TH VIM 1 "13 giugno 2022"
|
||||||
.SH NOME
|
.SH NOME
|
||||||
vim \- VI Migliorato, un editor di testi per programmatori
|
vim \- VI Migliorato, un editor di testi per programmatori
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
@@ -35,17 +35,17 @@ Un editore di testi, compatibile con, e migliore di, Vi.
|
|||||||
Può essere usato per editare qualsiasi file di testo.
|
Può essere usato per editare qualsiasi file di testo.
|
||||||
Particolarmente utile per editare programmi.
|
Particolarmente utile per editare programmi.
|
||||||
.PP
|
.PP
|
||||||
Ci sono parecchi miglioramenti rispetto a Vi: undo multipli,
|
Ci sono parecchi miglioramenti rispetto a Vi: undo multipli, finestre e buffer
|
||||||
finestre e buffer multipli, evidenziazione sintattica, possibilità
|
multipli, evidenziazione sintattica, possibilità di modificare la riga di comando,
|
||||||
di modificare la linea di comando, completamento nomi file, help
|
completamento nomi file, help in linea, selezione testi in Modo Visual, etc..
|
||||||
in linea, selezione testi in Modo Visual, etc..
|
|
||||||
Vedere ":help vi_diff.txt" per un sommario delle differenze fra
|
Vedere ":help vi_diff.txt" per un sommario delle differenze fra
|
||||||
.B Vim
|
.B Vim
|
||||||
e Vi.
|
e Vi.
|
||||||
.PP
|
.PP
|
||||||
Mentre usate
|
Mentre usate
|
||||||
.B Vim
|
.B Vim
|
||||||
potete ricevere molto aiuto dal sistema di help online, col comando ":help".
|
potete ricevere molto aiuto dal sistema di help online, col comando
|
||||||
|
":help".
|
||||||
Vedere qui sotto la sezione AIUTO ONLINE.
|
Vedere qui sotto la sezione AIUTO ONLINE.
|
||||||
.PP
|
.PP
|
||||||
Quasi sempre
|
Quasi sempre
|
||||||
@@ -69,18 +69,16 @@ Una lista di nomi di file.
|
|||||||
Il primo di questi sarà il file corrente, e verrà letto nel buffer.
|
Il primo di questi sarà il file corrente, e verrà letto nel buffer.
|
||||||
Il cursore sarà posizionato sulla prima linea del buffer.
|
Il cursore sarà posizionato sulla prima linea del buffer.
|
||||||
Potete arrivare agli altri file col comando ":next".
|
Potete arrivare agli altri file col comando ":next".
|
||||||
Per editare un file il cui nome inizia per "\-" premettete "\-\-" alla
|
Per editare un file il cui nome inizia per "\-" premettete "\-\-" alla lista_file.
|
||||||
lista_file.
|
|
||||||
.TP
|
.TP
|
||||||
\-
|
\-
|
||||||
Il file da editare è letto dallo "stdin" [di solito, ma non
|
Il file da editare è letto dallo "stdin"-
|
||||||
necessariamente, il terminale \- NdT]. I comandi sono letti da "stderr",
|
I comandi sono letti da "stderr", che dovrebbe essere un terminale [tty].
|
||||||
che dovrebbe essere un terminale [tty].
|
|
||||||
.TP
|
.TP
|
||||||
\-t {tag}
|
\-t {tag}
|
||||||
Il file da editare e la posizione iniziale del cursore dipendono da "tag",
|
Il file da editare e la posizione iniziale del cursore dipendono da "tag",
|
||||||
una specie di "etichetta" a cui saltare.
|
una specie di "etichetta" a cui saltare.
|
||||||
{tag} viene cercata nel file "tags", ed il file ad essa associato diventa
|
{tag} viene cercata nel file "tags", e il file a essa associato diventa
|
||||||
quello corrente, ed il comando ad essa associato viene eseguito.
|
quello corrente, ed il comando ad essa associato viene eseguito.
|
||||||
Di solito si usa per programmi C, nel qual caso {tag} potrebbe essere un
|
Di solito si usa per programmi C, nel qual caso {tag} potrebbe essere un
|
||||||
nome di funzione.
|
nome di funzione.
|
||||||
@@ -129,9 +127,8 @@ della shell o sospendere
|
|||||||
.B Vim.
|
.B Vim.
|
||||||
Si può chiedere la stessa cosa anche con l'argomento "\-Z".
|
Si può chiedere la stessa cosa anche con l'argomento "\-Z".
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Le opzioni possono essere in un ordine qualsiasi, prima o dopo i nomi di
|
Le opzioni possono essere in un ordine qualsiasi, prima o dopo i nomi di file.
|
||||||
file. Opzioni che non necessitano un argomento possono essere specificate
|
Opzioni che non hanno un argomento si possono specificare dietro a un solo "\-".
|
||||||
dietro a un solo "\-".
|
|
||||||
.TP 12
|
.TP 12
|
||||||
+[numero]
|
+[numero]
|
||||||
Per il primo file il cursore sarà posizionato sulla linea "numero".
|
Per il primo file il cursore sarà posizionato sulla linea "numero".
|
||||||
@@ -145,8 +142,7 @@ Vedere ":help search\-pattern" per come specificare l'espressione.
|
|||||||
+{comando}
|
+{comando}
|
||||||
.TP
|
.TP
|
||||||
\-c {comando}
|
\-c {comando}
|
||||||
{comando} sarà eseguito dopo che il
|
{comando} sarà eseguito dopo che il primo file è stato letto.
|
||||||
primo file è stato letto.
|
|
||||||
{comando} è interpretato come un comando Ex.
|
{comando} è interpretato come un comando Ex.
|
||||||
Se il {comando} contiene spazi deve essere incluso fra doppi apici
|
Se il {comando} contiene spazi deve essere incluso fra doppi apici
|
||||||
(o altro delimitatore, a seconda della shell che si sta usando).
|
(o altro delimitatore, a seconda della shell che si sta usando).
|
||||||
@@ -164,14 +160,13 @@ argomento specificato).
|
|||||||
\-\-cmd {comando}
|
\-\-cmd {comando}
|
||||||
Come "\-c", ma il comando è eseguito PRIMA
|
Come "\-c", ma il comando è eseguito PRIMA
|
||||||
di eseguire qualsiasi file vimrc.
|
di eseguire qualsiasi file vimrc.
|
||||||
Si possono usare fino a 10 di questi comandi, indipendentemente dai comandi
|
Si possono usare fino a 10 di questi comandi, indipendentemente dai comandi "\-c".
|
||||||
"\-c".
|
|
||||||
.TP
|
.TP
|
||||||
\-A
|
\-A
|
||||||
Se
|
Se
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato compilato con supporto Arabic per editare file con orientamento
|
è stato compilato con supporto ARABIC per editare file con orientamento
|
||||||
destra-sinistra e tastiera con mappatura Araba, questa opzione inizia
|
destra-sinistra e tastiera con mappatura araba, questa opzione inizia
|
||||||
.B Vim
|
.B Vim
|
||||||
in Modo Arabic, cioè impostando 'arabic'.
|
in Modo Arabic, cioè impostando 'arabic'.
|
||||||
Altrimenti viene dato un messaggio di errore e
|
Altrimenti viene dato un messaggio di errore e
|
||||||
@@ -187,8 +182,7 @@ binario o un programma eseguibile.
|
|||||||
Compatibile. Imposta l'opzione 'compatible'.
|
Compatibile. Imposta l'opzione 'compatible'.
|
||||||
In questo modo
|
In questo modo
|
||||||
.B Vim
|
.B Vim
|
||||||
ha quasi lo stesso comportamento di Vi, anche in presenza di un file
|
ha quasi lo stesso comportamento di Vi, anche in presenza di un file .vimrc.
|
||||||
di configurazione .vimrc [proprio di Vim, vi usa .exrc \- Ndt].
|
|
||||||
.TP
|
.TP
|
||||||
\-d
|
\-d
|
||||||
Inizia in Modo Diff [differenze].
|
Inizia in Modo Diff [differenze].
|
||||||
@@ -274,7 +268,8 @@ termina in modo anormale.
|
|||||||
\-i {viminfo}
|
\-i {viminfo}
|
||||||
Se è abilitato l'uso di un file viminfo, questa opzione indica il nome
|
Se è abilitato l'uso di un file viminfo, questa opzione indica il nome
|
||||||
del file da usare invece di quello predefinito "~/.viminfo".
|
del file da usare invece di quello predefinito "~/.viminfo".
|
||||||
Si può anche evitare l'uso di un file .viminfo, dando come nome "NONE".
|
Si può anche evitare l'uso di un file .viminfo, dando come nome
|
||||||
|
"NONE".
|
||||||
.TP
|
.TP
|
||||||
\-L
|
\-L
|
||||||
Equivalente a \-r.
|
Equivalente a \-r.
|
||||||
@@ -285,8 +280,8 @@ Imposta le opzioni 'lisp' e 'showmatch'.
|
|||||||
.TP
|
.TP
|
||||||
\-m
|
\-m
|
||||||
Inibisce modifica file.
|
Inibisce modifica file.
|
||||||
Annulla l'opzione 'write'.
|
Inibisce l'opzione 'write'.
|
||||||
È ancora possibile modificare un buffer [in memoria \- Ndt], ma non scriverlo.
|
È ancora possibile modificare un buffer, ma non riscriverlo.
|
||||||
.TP
|
.TP
|
||||||
\-M
|
\-M
|
||||||
Modifiche non permesse. Le opzioni 'modifiable' e 'write' sono annullate,
|
Modifiche non permesse. Le opzioni 'modifiable' e 'write' sono annullate,
|
||||||
@@ -318,19 +313,23 @@ Se N manca, apri una finestra per ciascun file.
|
|||||||
Apri N finestre, in verticale.
|
Apri N finestre, in verticale.
|
||||||
Se N manca, apri una finestra per ciascun file.
|
Se N manca, apri una finestra per ciascun file.
|
||||||
.TP
|
.TP
|
||||||
|
\-p[N]
|
||||||
|
Apri N pagine di linguette.
|
||||||
|
Quando N è omesso, apri una pagine di linguette per ciascun file.
|
||||||
|
.TP
|
||||||
\-R
|
\-R
|
||||||
Modo Read-only (Sola Lettura).
|
Modo Read-only (Sola Lettura).
|
||||||
Imposta l'opzione 'readonly'.
|
Imposta l'opzione 'readonly'.
|
||||||
Si può ancora modificare il buffer, ma siete protetti da una riscrittura
|
Si può ancora modificare il buffer, ma il file è protetto da una riscrittura
|
||||||
involontaria.
|
involontaria.
|
||||||
Se volete davvero riscrivere il file, aggiungete un punto esclamativo
|
Se si vuole davvero riscrivere il file, occorre aggiungere un punto esclamativo
|
||||||
al comando Ex, come in ":w!".
|
al comando Ex, come in ":w!".
|
||||||
L'opzione \-R implica anche l'opzione \-n (vedere sotto).
|
L'opzione \-R implica anche l'opzione \-n (vedere sotto).
|
||||||
L'opzione 'readonly' può essere annullata con ":set noro".
|
L'opzione 'readonly' può essere annullata con ":set noro".
|
||||||
Vedere ":help 'readonly'".
|
Vedere ":help 'readonly'".
|
||||||
.TP
|
.TP
|
||||||
\-r
|
\-r
|
||||||
Lista file di swap, assieme a dati utili per un recupero.
|
Lista file di swap, e informazioni su come usarli per ripristinare file.
|
||||||
.TP
|
.TP
|
||||||
\-r {file}
|
\-r {file}
|
||||||
Modo Recovery (ripristino).
|
Modo Recovery (ripristino).
|
||||||
@@ -345,10 +344,10 @@ Modo silenzioso. Solo quando invocato come "Ex" o quando l'opzione
|
|||||||
.TP
|
.TP
|
||||||
\-s {scriptin}
|
\-s {scriptin}
|
||||||
Lo script file {scriptin} è letto.
|
Lo script file {scriptin} è letto.
|
||||||
I caratteri nel file sono interpretati come se immessi da voi.
|
I caratteri nel file sono interpretati come se immessi da terminale.
|
||||||
Lo stesso si può ottenere col comando ":source! {scriptin}".
|
Lo stesso risultato si può ottenere col comando ":source! {scriptin}".
|
||||||
Se la fine del file di input viene raggiunta prima che Vim termini,
|
Se la fine del file di input viene raggiunta prima che Vim termini,
|
||||||
l'ulteriore input viene preso dalla tastiera.
|
l'ulteriore input verrà preso dalla tastiera.
|
||||||
.TP
|
.TP
|
||||||
\-T {terminale}
|
\-T {terminale}
|
||||||
Dice a
|
Dice a
|
||||||
@@ -357,28 +356,25 @@ quale tipo di terminale state usando.
|
|||||||
Utile solo se il terminale non viene riconosciuto correttamente da Vim.
|
Utile solo se il terminale non viene riconosciuto correttamente da Vim.
|
||||||
Dovrebbe essere un terminale noto a
|
Dovrebbe essere un terminale noto a
|
||||||
.B Vim
|
.B Vim
|
||||||
(internamente) o definito nel file termcap o terminfo.
|
(internamente) o definito nei file termcap o terminfo.
|
||||||
.TP
|
.TP
|
||||||
\-u {vimrc}
|
\-u {vimrc}
|
||||||
Usa i comandi nel file {vimrc} per inizializzazioni.
|
Usa i comandi nel file {vimrc} per inizializzazioni.
|
||||||
Tutte le altre inizializzazioni non sono eseguite.
|
Tutte le altre inizializzazioni non sono eseguite.
|
||||||
Usate questa opzione per editare qualche file di tipo speciale.
|
Usate questa opzione per editare qualche file di tipo speciale.
|
||||||
Può anche essere usato per non fare alcuna inizializzazione dando
|
Si possono anche omettere tutte le inizializzazioni dando come nome "NONE".
|
||||||
come nome "NONE".
|
|
||||||
Vedere ":help initialization" da vim per ulteriori dettagli.
|
Vedere ":help initialization" da vim per ulteriori dettagli.
|
||||||
.TP
|
.TP
|
||||||
\-U {gvimrc}
|
\-U {gvimrc}
|
||||||
Usa i comandi nel file {gvimrc} per inizializzazioni GUI.
|
Usa i comandi nel file {gvimrc} per inizializzazioni GUI.
|
||||||
Tutte le altre inizializzazioni GUI non sono eseguite.
|
Tutte le altre inizializzazioni GUI non sono eseguite.
|
||||||
Può anche essere usata per non fare alcuna inizializzazione GUI dando
|
Si possono anche omettere tutte le inizializzazioni GUI dando come nome "NONE".
|
||||||
come nome "NONE".
|
|
||||||
Vedere ":help gui-init" da vim per ulteriori dettagli.
|
Vedere ":help gui-init" da vim per ulteriori dettagli.
|
||||||
.TP
|
.TP
|
||||||
\-V[N]
|
\-V[N]
|
||||||
Verboso. Vim manda messaggi relativi agli script file che esegue
|
Verboso. Vim manda messaggi relativi ai file di script che esegue
|
||||||
e quando legge o scrive un file viminfo. Il numero opzionale N è il valore
|
e quando legge o scrive un file viminfo. Il numero opzionale N è il valore
|
||||||
dell'opzione 'verbose'.
|
dell'opzione 'verbose'. Il valore predefinito è 10.
|
||||||
Il valore predefinito è 10.
|
|
||||||
.TP
|
.TP
|
||||||
\-v
|
\-v
|
||||||
Inizia
|
Inizia
|
||||||
@@ -388,7 +384,7 @@ effetto solo quando Vim viene invocato con il nome "ex".
|
|||||||
.TP
|
.TP
|
||||||
\-w {scriptout}
|
\-w {scriptout}
|
||||||
Ogni carattere immesso viene registrato nel file {scriptout},
|
Ogni carattere immesso viene registrato nel file {scriptout},
|
||||||
finché non uscite da
|
finché non si esce da
|
||||||
.B Vim.
|
.B Vim.
|
||||||
Utile se si vuole creare uno script file da usare con "vim \-s" o
|
Utile se si vuole creare uno script file da usare con "vim \-s" o
|
||||||
":source!".
|
":source!".
|
||||||
@@ -398,40 +394,41 @@ Se il file {scriptout} esiste, quel che immettete viene aggiunto in fondo.
|
|||||||
Come \-w, ma uno script file esistente viene sovrascritto.
|
Come \-w, ma uno script file esistente viene sovrascritto.
|
||||||
.TP
|
.TP
|
||||||
\-x
|
\-x
|
||||||
Uso di cifratura nella scrittura dei file. E' necessario immettere
|
Uso di cifratura nella scrittura dei file. Verrà chiesta una chiave di cifratura.
|
||||||
una chiave di cifratura.
|
|
||||||
.TP
|
.TP
|
||||||
\-X
|
\-X
|
||||||
Non connetterti al server X. Vim parte più rapidamente,
|
Non connettersi al server X. Vim parte più rapidamente,
|
||||||
ma il titolo della finestra e la clipboard non sono disponibili.
|
ma il titolo della finestra e la clipboard non sono usati.
|
||||||
.TP
|
.TP
|
||||||
\-y
|
\-y
|
||||||
Eseguire
|
Eseguire
|
||||||
.B Vim
|
.B Vim
|
||||||
in Modo Easy (semplificata), come se l'eseguibile invocato
|
in Modo Easy (semplificato), come se l'eseguibile invocato sia "evim" o "eview".
|
||||||
sia "evim" o "eview".
|
|
||||||
Fa sì che
|
Fa sì che
|
||||||
.B Vim
|
.B Vim
|
||||||
si comporti come un editor che usa solo il mouse e i caratteri.
|
si comporti come un editor che usa solo il mouse e i caratteri.
|
||||||
.TP
|
.TP
|
||||||
\-Z
|
\-Z
|
||||||
Modo ristretto. Vim si comporta come se invocato con un nome
|
Modo ristretto. Vim si comporta come se invocato con un nome che inizia per "r".
|
||||||
che inizia per "r".
|
|
||||||
.TP
|
.TP
|
||||||
\-\-
|
\-\-
|
||||||
Specifica la fine delle opzioni.
|
Specifica la fine delle opzioni.
|
||||||
Argomenti specificati dopo questo sono considerati nomi file.
|
Argomenti specificati dopo questo sono considerati nomi file.
|
||||||
Si può usare per editare un file il cui nome inizi per '-'.
|
Si può usare per editare un file il cui nome inizi per '-'.
|
||||||
.TP
|
.TP
|
||||||
|
\-\-clean
|
||||||
|
Richiede di non usare alcun file di personalizzazione (vimrc, plugin, etc.).
|
||||||
|
Utile per verificare se un problema persiste invocando Vim "originale".
|
||||||
|
.TP
|
||||||
\-\-echo\-wid
|
\-\-echo\-wid
|
||||||
Solo con GUI GTK: Visualizza Window ID su "stdout".
|
Solo per GUI GTK: Visualizza Window ID su "stdout".
|
||||||
.TP
|
.TP
|
||||||
\-\-help
|
\-\-help
|
||||||
Vim dà un messaggio ed esce, come con l'argomento "\-h".
|
Vim dà un messaggio ed esce, come con l'argomento "\-h".
|
||||||
.TP
|
.TP
|
||||||
\-\-literal
|
\-\-literal
|
||||||
Considera i nomi passati come argomenti letterali, senza espandere
|
Considera i nomi passati come argomenti letterali, senza espandere metacaratteri.
|
||||||
metacaratteri. Non necessario in Unix, la shell espande i metacaratteri.
|
Non ha effetto in Unix, dove la shell espande comunque i metacaratteri.
|
||||||
.TP
|
.TP
|
||||||
\-\-noplugin
|
\-\-noplugin
|
||||||
Non caricare plugin. Implicito se si specifica \-u NONE.
|
Non caricare plugin. Implicito se si specifica \-u NONE.
|
||||||
@@ -442,8 +439,7 @@ argomenti. Se non si trova un server viene dato un messaggio e i file sono
|
|||||||
editati nel Vim corrente.
|
editati nel Vim corrente.
|
||||||
.TP
|
.TP
|
||||||
\-\-remote\-expr {expr}
|
\-\-remote\-expr {expr}
|
||||||
Connettersi a un server Vim, valutare ivi {expr} e stampare il risultato
|
Connettersi a un server Vim, valutare {expr} e stampare il risultato su "stdout".
|
||||||
su "stdout".
|
|
||||||
.TP
|
.TP
|
||||||
\-\-remote\-send {chiavi}
|
\-\-remote\-send {chiavi}
|
||||||
Connettersi a un server Vim e spedirgli {chiavi}.
|
Connettersi a un server Vim e spedirgli {chiavi}.
|
||||||
@@ -458,16 +454,17 @@ Come \-\-remote, ma Vim non termina finch
|
|||||||
Come \-\-remote\-wait, ma senza avvisare se non si trova un server.
|
Come \-\-remote\-wait, ma senza avvisare se non si trova un server.
|
||||||
.TP
|
.TP
|
||||||
\-\-serverlist
|
\-\-serverlist
|
||||||
Lista i nomi di tutti i server Vim disponibili.
|
Elenca i nomi di tutti i server Vim disponibili.
|
||||||
.TP
|
.TP
|
||||||
\-\-servername {nome}
|
\-\-servername {nome}
|
||||||
Usa {nome} come nome server. Usato per il Vim corrente, a meno che sia
|
Usa {nome} come nome server. Usato per il Vim corrente, a meno che sia usato
|
||||||
usato con l'argomento \-\-remote, nel qual caso indica il server a cui
|
con l'argomento \-\-remote, nel qual caso indica il server a cui connettersi.
|
||||||
connettersi.
|
|
||||||
.TP
|
.TP
|
||||||
\-\-socketid {id}
|
\-\-socketid {id}
|
||||||
Solo con GUI GTK: Usa il meccanismo GtkPlug per eseguire gvim in un'altra
|
Solo per GUI GTK: Usa meccanismo GtkPlug per eseguire gvim in un'altra finestra.
|
||||||
finestra.
|
.TP
|
||||||
|
\-\-startuptime {nome_file}
|
||||||
|
Durante la fase iniziale, scrive messaggi di log al file {nome_file}.
|
||||||
.TP
|
.TP
|
||||||
\-\-version
|
\-\-version
|
||||||
Stampa la versione di Vim ed esci.
|
Stampa la versione di Vim ed esci.
|
||||||
@@ -477,9 +474,8 @@ Battere ":help" in
|
|||||||
per iniziare.
|
per iniziare.
|
||||||
Battere ":help argomento" per ricevere aiuto su uno specifico argomento.
|
Battere ":help argomento" per ricevere aiuto su uno specifico argomento.
|
||||||
Per esempio: ":help ZZ" per ricevere aiuto sul comando "ZZ".
|
Per esempio: ":help ZZ" per ricevere aiuto sul comando "ZZ".
|
||||||
Usare <Tab> e CTRL\-D per completare gli argomenti
|
Usare <Tab> e CTRL\-D per completare gli argomenti (":help cmdline\-completion").
|
||||||
(":help cmdline\-completion").
|
Ci sono "tag" nei file di help per passare da un argomento a un altro
|
||||||
Ci sono "tag" nei file di help per saltare da un argomento a un altro
|
|
||||||
(simili a legami ipertestuali, vedere ":help").
|
(simili a legami ipertestuali, vedere ":help").
|
||||||
Tutti i file di documentazione possono essere navigati così. Ad es.:
|
Tutti i file di documentazione possono essere navigati così. Ad es.:
|
||||||
":help syntax.txt".
|
":help syntax.txt".
|
||||||
@@ -489,7 +485,7 @@ Tutti i file di documentazione possono essere navigati cos
|
|||||||
I file di documentazione di
|
I file di documentazione di
|
||||||
.B Vim
|
.B Vim
|
||||||
.
|
.
|
||||||
Usate ":help doc\-file\-list" per avere la lista completa.
|
Usare ":help doc\-file\-list" per avere la lista completa.
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/doc/tags
|
/usr/local/lib/vim/doc/tags
|
||||||
Il file di tags usato per trovare informazioni nei file di documentazione.
|
Il file di tags usato per trovare informazioni nei file di documentazione.
|
||||||
@@ -506,7 +502,7 @@ Inizializzazioni
|
|||||||
a livello di sistema.
|
a livello di sistema.
|
||||||
.TP
|
.TP
|
||||||
~/.vimrc
|
~/.vimrc
|
||||||
Le vostre personali inizializzazioni di
|
Inizializzazioni personali di
|
||||||
.B Vim
|
.B Vim
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
@@ -514,11 +510,10 @@ Le vostre personali inizializzazioni di
|
|||||||
Inizializzazioni gvim a livello di sistema.
|
Inizializzazioni gvim a livello di sistema.
|
||||||
.TP
|
.TP
|
||||||
~/.gvimrc
|
~/.gvimrc
|
||||||
Le vostre personali inizializzazioni di gvim.
|
Inizializzazioni personali di
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/optwin.vim
|
/usr/local/lib/vim/optwin.vim
|
||||||
Script Vim usato dal comando ":options", un modo semplice
|
Script Vim usato dal comando ":options", da usare per visualizzare e impostare opzioni.
|
||||||
per visualizzare e impostare opzioni.
|
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/menu.vim
|
/usr/local/lib/vim/menu.vim
|
||||||
Inizializzazioni del menù gvim a livello di sistema.
|
Inizializzazioni del menù gvim a livello di sistema.
|
||||||
@@ -527,12 +522,10 @@ Inizializzazioni del men
|
|||||||
Script Vim per generare una segnalazione di errore. Vedere ":help bugs".
|
Script Vim per generare una segnalazione di errore. Vedere ":help bugs".
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/filetype.vim
|
/usr/local/lib/vim/filetype.vim
|
||||||
Script Vim per determinare il tipo di un file a partire dal suo nome.
|
Script Vim per determinare il tipo di un file dal suo nome. Vedere ":help 'filetype'".
|
||||||
Vedere ":help 'filetype'".
|
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/scripts.vim
|
/usr/local/lib/vim/scripts.vim
|
||||||
Script Vim per determinare il tipo di un file a partire dal suo contenuto.
|
Script Vim per determinare il tipo di un file dal suo contenuto. Vedere ":help 'filetype'".
|
||||||
Vedere ":help 'filetype'".
|
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/print/*.ps
|
/usr/local/lib/vim/print/*.ps
|
||||||
File usati per stampa PostScript.
|
File usati per stampa PostScript.
|
||||||
@@ -545,7 +538,7 @@ vimtutor(1)
|
|||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
Buona parte di
|
Buona parte di
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
|
||||||
Vedere ":help credits" in
|
Vedere ":help credits" in
|
||||||
.B Vim.
|
.B Vim.
|
||||||
.br
|
.br
|
||||||
@@ -557,10 +550,9 @@ In verit
|
|||||||
Probabili.
|
Probabili.
|
||||||
Vedere ":help todo" per una lista di problemi noti.
|
Vedere ":help todo" per una lista di problemi noti.
|
||||||
.PP
|
.PP
|
||||||
Si noti che un certo numero di comportamenti che possono essere considerati
|
Si noti che un certo numero di comportamenti che possono essere considerati errori
|
||||||
errori da qualcuno, sono in effetti causati da una riproduzione fin troppo
|
da qualcuno, sono in effetti causati da una riproduzione fin troppo fedele del
|
||||||
fedele del comportamento di Vi.
|
comportamento di Vi. Se si ritiene che altre cose siano errori "perché Vi si comporta
|
||||||
Se ritenete che altre cose siano errori "perché Vi si comporta diversamente",
|
diversamente", si dia prima un'occhiata al file vi_diff.txt (o si immetta
|
||||||
date prima un'occhiata al file vi_diff.txt
|
:help vi_diff.txt da Vim).
|
||||||
(o battere :help vi_diff.txt da Vim).
|
Un'occhiata va data anche alle opzioni 'compatible' e 'cpoptions.
|
||||||
Date anche un'occhiata alle opzioni 'compatible' e 'cpoptions.
|
|
||||||
|
|||||||
+72
-80
@@ -1,4 +1,4 @@
|
|||||||
.TH VIM 1 "22 febbraio 2002"
|
.TH VIM 1 "13 giugno 2022"
|
||||||
.SH NOME
|
.SH NOME
|
||||||
vim \- VI Migliorato, un editor di testi per programmatori
|
vim \- VI Migliorato, un editor di testi per programmatori
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
@@ -35,17 +35,17 @@ Un editore di testi, compatibile con, e migliore di, Vi.
|
|||||||
Può essere usato per editare qualsiasi file di testo.
|
Può essere usato per editare qualsiasi file di testo.
|
||||||
Particolarmente utile per editare programmi.
|
Particolarmente utile per editare programmi.
|
||||||
.PP
|
.PP
|
||||||
Ci sono parecchi miglioramenti rispetto a Vi: undo multipli,
|
Ci sono parecchi miglioramenti rispetto a Vi: undo multipli, finestre e buffer
|
||||||
finestre e buffer multipli, evidenziazione sintattica, possibilità
|
multipli, evidenziazione sintattica, possibilità di modificare la riga di comando,
|
||||||
di modificare la linea di comando, completamento nomi file, help
|
completamento nomi file, help in linea, selezione testi in Modo Visual, etc..
|
||||||
in linea, selezione testi in Modo Visual, etc..
|
|
||||||
Vedere ":help vi_diff.txt" per un sommario delle differenze fra
|
Vedere ":help vi_diff.txt" per un sommario delle differenze fra
|
||||||
.B Vim
|
.B Vim
|
||||||
e Vi.
|
e Vi.
|
||||||
.PP
|
.PP
|
||||||
Mentre usate
|
Mentre usate
|
||||||
.B Vim
|
.B Vim
|
||||||
potete ricevere molto aiuto dal sistema di help online, col comando ":help".
|
potete ricevere molto aiuto dal sistema di help online, col comando
|
||||||
|
":help".
|
||||||
Vedere qui sotto la sezione AIUTO ONLINE.
|
Vedere qui sotto la sezione AIUTO ONLINE.
|
||||||
.PP
|
.PP
|
||||||
Quasi sempre
|
Quasi sempre
|
||||||
@@ -69,18 +69,16 @@ Una lista di nomi di file.
|
|||||||
Il primo di questi sarà il file corrente, e verrà letto nel buffer.
|
Il primo di questi sarà il file corrente, e verrà letto nel buffer.
|
||||||
Il cursore sarà posizionato sulla prima linea del buffer.
|
Il cursore sarà posizionato sulla prima linea del buffer.
|
||||||
Potete arrivare agli altri file col comando ":next".
|
Potete arrivare agli altri file col comando ":next".
|
||||||
Per editare un file il cui nome inizia per "\-" premettete "\-\-" alla
|
Per editare un file il cui nome inizia per "\-" premettete "\-\-" alla lista_file.
|
||||||
lista_file.
|
|
||||||
.TP
|
.TP
|
||||||
\-
|
\-
|
||||||
Il file da editare è letto dallo "stdin" [di solito, ma non
|
Il file da editare è letto dallo "stdin"-
|
||||||
necessariamente, il terminale \- NdT]. I comandi sono letti da "stderr",
|
I comandi sono letti da "stderr", che dovrebbe essere un terminale [tty].
|
||||||
che dovrebbe essere un terminale [tty].
|
|
||||||
.TP
|
.TP
|
||||||
\-t {tag}
|
\-t {tag}
|
||||||
Il file da editare e la posizione iniziale del cursore dipendono da "tag",
|
Il file da editare e la posizione iniziale del cursore dipendono da "tag",
|
||||||
una specie di "etichetta" a cui saltare.
|
una specie di "etichetta" a cui saltare.
|
||||||
{tag} viene cercata nel file "tags", ed il file ad essa associato diventa
|
{tag} viene cercata nel file "tags", e il file a essa associato diventa
|
||||||
quello corrente, ed il comando ad essa associato viene eseguito.
|
quello corrente, ed il comando ad essa associato viene eseguito.
|
||||||
Di solito si usa per programmi C, nel qual caso {tag} potrebbe essere un
|
Di solito si usa per programmi C, nel qual caso {tag} potrebbe essere un
|
||||||
nome di funzione.
|
nome di funzione.
|
||||||
@@ -129,9 +127,8 @@ della shell o sospendere
|
|||||||
.B Vim.
|
.B Vim.
|
||||||
Si può chiedere la stessa cosa anche con l'argomento "\-Z".
|
Si può chiedere la stessa cosa anche con l'argomento "\-Z".
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Le opzioni possono essere in un ordine qualsiasi, prima o dopo i nomi di
|
Le opzioni possono essere in un ordine qualsiasi, prima o dopo i nomi di file.
|
||||||
file. Opzioni che non necessitano un argomento possono essere specificate
|
Opzioni che non hanno un argomento si possono specificare dietro a un solo "\-".
|
||||||
dietro a un solo "\-".
|
|
||||||
.TP 12
|
.TP 12
|
||||||
+[numero]
|
+[numero]
|
||||||
Per il primo file il cursore sarà posizionato sulla linea "numero".
|
Per il primo file il cursore sarà posizionato sulla linea "numero".
|
||||||
@@ -145,8 +142,7 @@ Vedere ":help search\-pattern" per come specificare l'espressione.
|
|||||||
+{comando}
|
+{comando}
|
||||||
.TP
|
.TP
|
||||||
\-c {comando}
|
\-c {comando}
|
||||||
{comando} sarà eseguito dopo che il
|
{comando} sarà eseguito dopo che il primo file è stato letto.
|
||||||
primo file è stato letto.
|
|
||||||
{comando} è interpretato come un comando Ex.
|
{comando} è interpretato come un comando Ex.
|
||||||
Se il {comando} contiene spazi deve essere incluso fra doppi apici
|
Se il {comando} contiene spazi deve essere incluso fra doppi apici
|
||||||
(o altro delimitatore, a seconda della shell che si sta usando).
|
(o altro delimitatore, a seconda della shell che si sta usando).
|
||||||
@@ -164,14 +160,13 @@ argomento specificato).
|
|||||||
\-\-cmd {comando}
|
\-\-cmd {comando}
|
||||||
Come "\-c", ma il comando è eseguito PRIMA
|
Come "\-c", ma il comando è eseguito PRIMA
|
||||||
di eseguire qualsiasi file vimrc.
|
di eseguire qualsiasi file vimrc.
|
||||||
Si possono usare fino a 10 di questi comandi, indipendentemente dai comandi
|
Si possono usare fino a 10 di questi comandi, indipendentemente dai comandi "\-c".
|
||||||
"\-c".
|
|
||||||
.TP
|
.TP
|
||||||
\-A
|
\-A
|
||||||
Se
|
Se
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato compilato con supporto Arabic per editare file con orientamento
|
è stato compilato con supporto ARABIC per editare file con orientamento
|
||||||
destra-sinistra e tastiera con mappatura Araba, questa opzione inizia
|
destra-sinistra e tastiera con mappatura araba, questa opzione inizia
|
||||||
.B Vim
|
.B Vim
|
||||||
in Modo Arabic, cioè impostando 'arabic'.
|
in Modo Arabic, cioè impostando 'arabic'.
|
||||||
Altrimenti viene dato un messaggio di errore e
|
Altrimenti viene dato un messaggio di errore e
|
||||||
@@ -187,8 +182,7 @@ binario o un programma eseguibile.
|
|||||||
Compatibile. Imposta l'opzione 'compatible'.
|
Compatibile. Imposta l'opzione 'compatible'.
|
||||||
In questo modo
|
In questo modo
|
||||||
.B Vim
|
.B Vim
|
||||||
ha quasi lo stesso comportamento di Vi, anche in presenza di un file
|
ha quasi lo stesso comportamento di Vi, anche in presenza di un file .vimrc.
|
||||||
di configurazione .vimrc [proprio di Vim, vi usa .exrc \- Ndt].
|
|
||||||
.TP
|
.TP
|
||||||
\-d
|
\-d
|
||||||
Inizia in Modo Diff [differenze].
|
Inizia in Modo Diff [differenze].
|
||||||
@@ -274,7 +268,8 @@ termina in modo anormale.
|
|||||||
\-i {viminfo}
|
\-i {viminfo}
|
||||||
Se è abilitato l'uso di un file viminfo, questa opzione indica il nome
|
Se è abilitato l'uso di un file viminfo, questa opzione indica il nome
|
||||||
del file da usare invece di quello predefinito "~/.viminfo".
|
del file da usare invece di quello predefinito "~/.viminfo".
|
||||||
Si può anche evitare l'uso di un file .viminfo, dando come nome "NONE".
|
Si può anche evitare l'uso di un file .viminfo, dando come nome
|
||||||
|
"NONE".
|
||||||
.TP
|
.TP
|
||||||
\-L
|
\-L
|
||||||
Equivalente a \-r.
|
Equivalente a \-r.
|
||||||
@@ -285,8 +280,8 @@ Imposta le opzioni 'lisp' e 'showmatch'.
|
|||||||
.TP
|
.TP
|
||||||
\-m
|
\-m
|
||||||
Inibisce modifica file.
|
Inibisce modifica file.
|
||||||
Annulla l'opzione 'write'.
|
Inibisce l'opzione 'write'.
|
||||||
È ancora possibile modificare un buffer [in memoria \- Ndt], ma non scriverlo.
|
È ancora possibile modificare un buffer, ma non riscriverlo.
|
||||||
.TP
|
.TP
|
||||||
\-M
|
\-M
|
||||||
Modifiche non permesse. Le opzioni 'modifiable' e 'write' sono annullate,
|
Modifiche non permesse. Le opzioni 'modifiable' e 'write' sono annullate,
|
||||||
@@ -318,19 +313,23 @@ Se N manca, apri una finestra per ciascun file.
|
|||||||
Apri N finestre, in verticale.
|
Apri N finestre, in verticale.
|
||||||
Se N manca, apri una finestra per ciascun file.
|
Se N manca, apri una finestra per ciascun file.
|
||||||
.TP
|
.TP
|
||||||
|
\-p[N]
|
||||||
|
Apri N pagine di linguette.
|
||||||
|
Quando N è omesso, apri una pagine di linguette per ciascun file.
|
||||||
|
.TP
|
||||||
\-R
|
\-R
|
||||||
Modo Read-only (Sola Lettura).
|
Modo Read-only (Sola Lettura).
|
||||||
Imposta l'opzione 'readonly'.
|
Imposta l'opzione 'readonly'.
|
||||||
Si può ancora modificare il buffer, ma siete protetti da una riscrittura
|
Si può ancora modificare il buffer, ma il file è protetto da una riscrittura
|
||||||
involontaria.
|
involontaria.
|
||||||
Se volete davvero riscrivere il file, aggiungete un punto esclamativo
|
Se si vuole davvero riscrivere il file, occorre aggiungere un punto esclamativo
|
||||||
al comando Ex, come in ":w!".
|
al comando Ex, come in ":w!".
|
||||||
L'opzione \-R implica anche l'opzione \-n (vedere sotto).
|
L'opzione \-R implica anche l'opzione \-n (vedere sotto).
|
||||||
L'opzione 'readonly' può essere annullata con ":set noro".
|
L'opzione 'readonly' può essere annullata con ":set noro".
|
||||||
Vedere ":help 'readonly'".
|
Vedere ":help 'readonly'".
|
||||||
.TP
|
.TP
|
||||||
\-r
|
\-r
|
||||||
Lista file di swap, assieme a dati utili per un recupero.
|
Lista file di swap, e informazioni su come usarli per ripristinare file.
|
||||||
.TP
|
.TP
|
||||||
\-r {file}
|
\-r {file}
|
||||||
Modo Recovery (ripristino).
|
Modo Recovery (ripristino).
|
||||||
@@ -345,10 +344,10 @@ Modo silenzioso. Solo quando invocato come "Ex" o quando l'opzione
|
|||||||
.TP
|
.TP
|
||||||
\-s {scriptin}
|
\-s {scriptin}
|
||||||
Lo script file {scriptin} è letto.
|
Lo script file {scriptin} è letto.
|
||||||
I caratteri nel file sono interpretati come se immessi da voi.
|
I caratteri nel file sono interpretati come se immessi da terminale.
|
||||||
Lo stesso si può ottenere col comando ":source! {scriptin}".
|
Lo stesso risultato si può ottenere col comando ":source! {scriptin}".
|
||||||
Se la fine del file di input viene raggiunta prima che Vim termini,
|
Se la fine del file di input viene raggiunta prima che Vim termini,
|
||||||
l'ulteriore input viene preso dalla tastiera.
|
l'ulteriore input verrà preso dalla tastiera.
|
||||||
.TP
|
.TP
|
||||||
\-T {terminale}
|
\-T {terminale}
|
||||||
Dice a
|
Dice a
|
||||||
@@ -357,28 +356,25 @@ quale tipo di terminale state usando.
|
|||||||
Utile solo se il terminale non viene riconosciuto correttamente da Vim.
|
Utile solo se il terminale non viene riconosciuto correttamente da Vim.
|
||||||
Dovrebbe essere un terminale noto a
|
Dovrebbe essere un terminale noto a
|
||||||
.B Vim
|
.B Vim
|
||||||
(internamente) o definito nel file termcap o terminfo.
|
(internamente) o definito nei file termcap o terminfo.
|
||||||
.TP
|
.TP
|
||||||
\-u {vimrc}
|
\-u {vimrc}
|
||||||
Usa i comandi nel file {vimrc} per inizializzazioni.
|
Usa i comandi nel file {vimrc} per inizializzazioni.
|
||||||
Tutte le altre inizializzazioni non sono eseguite.
|
Tutte le altre inizializzazioni non sono eseguite.
|
||||||
Usate questa opzione per editare qualche file di tipo speciale.
|
Usate questa opzione per editare qualche file di tipo speciale.
|
||||||
Può anche essere usato per non fare alcuna inizializzazione dando
|
Si possono anche omettere tutte le inizializzazioni dando come nome "NONE".
|
||||||
come nome "NONE".
|
|
||||||
Vedere ":help initialization" da vim per ulteriori dettagli.
|
Vedere ":help initialization" da vim per ulteriori dettagli.
|
||||||
.TP
|
.TP
|
||||||
\-U {gvimrc}
|
\-U {gvimrc}
|
||||||
Usa i comandi nel file {gvimrc} per inizializzazioni GUI.
|
Usa i comandi nel file {gvimrc} per inizializzazioni GUI.
|
||||||
Tutte le altre inizializzazioni GUI non sono eseguite.
|
Tutte le altre inizializzazioni GUI non sono eseguite.
|
||||||
Può anche essere usata per non fare alcuna inizializzazione GUI dando
|
Si possono anche omettere tutte le inizializzazioni GUI dando come nome "NONE".
|
||||||
come nome "NONE".
|
|
||||||
Vedere ":help gui-init" da vim per ulteriori dettagli.
|
Vedere ":help gui-init" da vim per ulteriori dettagli.
|
||||||
.TP
|
.TP
|
||||||
\-V[N]
|
\-V[N]
|
||||||
Verboso. Vim manda messaggi relativi agli script file che esegue
|
Verboso. Vim manda messaggi relativi ai file di script che esegue
|
||||||
e quando legge o scrive un file viminfo. Il numero opzionale N è il valore
|
e quando legge o scrive un file viminfo. Il numero opzionale N è il valore
|
||||||
dell'opzione 'verbose'.
|
dell'opzione 'verbose'. Il valore predefinito è 10.
|
||||||
Il valore predefinito è 10.
|
|
||||||
.TP
|
.TP
|
||||||
\-v
|
\-v
|
||||||
Inizia
|
Inizia
|
||||||
@@ -388,7 +384,7 @@ effetto solo quando Vim viene invocato con il nome "ex".
|
|||||||
.TP
|
.TP
|
||||||
\-w {scriptout}
|
\-w {scriptout}
|
||||||
Ogni carattere immesso viene registrato nel file {scriptout},
|
Ogni carattere immesso viene registrato nel file {scriptout},
|
||||||
finché non uscite da
|
finché non si esce da
|
||||||
.B Vim.
|
.B Vim.
|
||||||
Utile se si vuole creare uno script file da usare con "vim \-s" o
|
Utile se si vuole creare uno script file da usare con "vim \-s" o
|
||||||
":source!".
|
":source!".
|
||||||
@@ -398,40 +394,41 @@ Se il file {scriptout} esiste, quel che immettete viene aggiunto in fondo.
|
|||||||
Come \-w, ma uno script file esistente viene sovrascritto.
|
Come \-w, ma uno script file esistente viene sovrascritto.
|
||||||
.TP
|
.TP
|
||||||
\-x
|
\-x
|
||||||
Uso di cifratura nella scrittura dei file. E' necessario immettere
|
Uso di cifratura nella scrittura dei file. Verrà chiesta una chiave di cifratura.
|
||||||
una chiave di cifratura.
|
|
||||||
.TP
|
.TP
|
||||||
\-X
|
\-X
|
||||||
Non connetterti al server X. Vim parte più rapidamente,
|
Non connettersi al server X. Vim parte più rapidamente,
|
||||||
ma il titolo della finestra e la clipboard non sono disponibili.
|
ma il titolo della finestra e la clipboard non sono usati.
|
||||||
.TP
|
.TP
|
||||||
\-y
|
\-y
|
||||||
Eseguire
|
Eseguire
|
||||||
.B Vim
|
.B Vim
|
||||||
in Modo Easy (semplificata), come se l'eseguibile invocato
|
in Modo Easy (semplificato), come se l'eseguibile invocato sia "evim" o "eview".
|
||||||
sia "evim" o "eview".
|
|
||||||
Fa sì che
|
Fa sì che
|
||||||
.B Vim
|
.B Vim
|
||||||
si comporti come un editor che usa solo il mouse e i caratteri.
|
si comporti come un editor che usa solo il mouse e i caratteri.
|
||||||
.TP
|
.TP
|
||||||
\-Z
|
\-Z
|
||||||
Modo ristretto. Vim si comporta come se invocato con un nome
|
Modo ristretto. Vim si comporta come se invocato con un nome che inizia per "r".
|
||||||
che inizia per "r".
|
|
||||||
.TP
|
.TP
|
||||||
\-\-
|
\-\-
|
||||||
Specifica la fine delle opzioni.
|
Specifica la fine delle opzioni.
|
||||||
Argomenti specificati dopo questo sono considerati nomi file.
|
Argomenti specificati dopo questo sono considerati nomi file.
|
||||||
Si può usare per editare un file il cui nome inizi per '-'.
|
Si può usare per editare un file il cui nome inizi per '-'.
|
||||||
.TP
|
.TP
|
||||||
|
\-\-clean
|
||||||
|
Richiede di non usare alcun file di personalizzazione (vimrc, plugin, etc.).
|
||||||
|
Utile per verificare se un problema persiste invocando Vim "originale".
|
||||||
|
.TP
|
||||||
\-\-echo\-wid
|
\-\-echo\-wid
|
||||||
Solo con GUI GTK: Visualizza Window ID su "stdout".
|
Solo per GUI GTK: Visualizza Window ID su "stdout".
|
||||||
.TP
|
.TP
|
||||||
\-\-help
|
\-\-help
|
||||||
Vim dà un messaggio ed esce, come con l'argomento "\-h".
|
Vim dà un messaggio ed esce, come con l'argomento "\-h".
|
||||||
.TP
|
.TP
|
||||||
\-\-literal
|
\-\-literal
|
||||||
Considera i nomi passati come argomenti letterali, senza espandere
|
Considera i nomi passati come argomenti letterali, senza espandere metacaratteri.
|
||||||
metacaratteri. Non necessario in Unix, la shell espande i metacaratteri.
|
Non ha effetto in Unix, dove la shell espande comunque i metacaratteri.
|
||||||
.TP
|
.TP
|
||||||
\-\-noplugin
|
\-\-noplugin
|
||||||
Non caricare plugin. Implicito se si specifica \-u NONE.
|
Non caricare plugin. Implicito se si specifica \-u NONE.
|
||||||
@@ -442,8 +439,7 @@ argomenti. Se non si trova un server viene dato un messaggio e i file sono
|
|||||||
editati nel Vim corrente.
|
editati nel Vim corrente.
|
||||||
.TP
|
.TP
|
||||||
\-\-remote\-expr {expr}
|
\-\-remote\-expr {expr}
|
||||||
Connettersi a un server Vim, valutare ivi {expr} e stampare il risultato
|
Connettersi a un server Vim, valutare {expr} e stampare il risultato su "stdout".
|
||||||
su "stdout".
|
|
||||||
.TP
|
.TP
|
||||||
\-\-remote\-send {chiavi}
|
\-\-remote\-send {chiavi}
|
||||||
Connettersi a un server Vim e spedirgli {chiavi}.
|
Connettersi a un server Vim e spedirgli {chiavi}.
|
||||||
@@ -458,16 +454,17 @@ Come \-\-remote, ma Vim non termina finché i file non sono stati editati.
|
|||||||
Come \-\-remote\-wait, ma senza avvisare se non si trova un server.
|
Come \-\-remote\-wait, ma senza avvisare se non si trova un server.
|
||||||
.TP
|
.TP
|
||||||
\-\-serverlist
|
\-\-serverlist
|
||||||
Lista i nomi di tutti i server Vim disponibili.
|
Elenca i nomi di tutti i server Vim disponibili.
|
||||||
.TP
|
.TP
|
||||||
\-\-servername {nome}
|
\-\-servername {nome}
|
||||||
Usa {nome} come nome server. Usato per il Vim corrente, a meno che sia
|
Usa {nome} come nome server. Usato per il Vim corrente, a meno che sia usato
|
||||||
usato con l'argomento \-\-remote, nel qual caso indica il server a cui
|
con l'argomento \-\-remote, nel qual caso indica il server a cui connettersi.
|
||||||
connettersi.
|
|
||||||
.TP
|
.TP
|
||||||
\-\-socketid {id}
|
\-\-socketid {id}
|
||||||
Solo con GUI GTK: Usa il meccanismo GtkPlug per eseguire gvim in un'altra
|
Solo per GUI GTK: Usa meccanismo GtkPlug per eseguire gvim in un'altra finestra.
|
||||||
finestra.
|
.TP
|
||||||
|
\-\-startuptime {nome_file}
|
||||||
|
Durante la fase iniziale, scrive messaggi di log al file {nome_file}.
|
||||||
.TP
|
.TP
|
||||||
\-\-version
|
\-\-version
|
||||||
Stampa la versione di Vim ed esci.
|
Stampa la versione di Vim ed esci.
|
||||||
@@ -477,9 +474,8 @@ Battere ":help" in
|
|||||||
per iniziare.
|
per iniziare.
|
||||||
Battere ":help argomento" per ricevere aiuto su uno specifico argomento.
|
Battere ":help argomento" per ricevere aiuto su uno specifico argomento.
|
||||||
Per esempio: ":help ZZ" per ricevere aiuto sul comando "ZZ".
|
Per esempio: ":help ZZ" per ricevere aiuto sul comando "ZZ".
|
||||||
Usare <Tab> e CTRL\-D per completare gli argomenti
|
Usare <Tab> e CTRL\-D per completare gli argomenti (":help cmdline\-completion").
|
||||||
(":help cmdline\-completion").
|
Ci sono "tag" nei file di help per passare da un argomento a un altro
|
||||||
Ci sono "tag" nei file di help per saltare da un argomento a un altro
|
|
||||||
(simili a legami ipertestuali, vedere ":help").
|
(simili a legami ipertestuali, vedere ":help").
|
||||||
Tutti i file di documentazione possono essere navigati così. Ad es.:
|
Tutti i file di documentazione possono essere navigati così. Ad es.:
|
||||||
":help syntax.txt".
|
":help syntax.txt".
|
||||||
@@ -489,7 +485,7 @@ Tutti i file di documentazione possono essere navigati così. Ad es.:
|
|||||||
I file di documentazione di
|
I file di documentazione di
|
||||||
.B Vim
|
.B Vim
|
||||||
.
|
.
|
||||||
Usate ":help doc\-file\-list" per avere la lista completa.
|
Usare ":help doc\-file\-list" per avere la lista completa.
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/doc/tags
|
/usr/local/lib/vim/doc/tags
|
||||||
Il file di tags usato per trovare informazioni nei file di documentazione.
|
Il file di tags usato per trovare informazioni nei file di documentazione.
|
||||||
@@ -506,7 +502,7 @@ Inizializzazioni
|
|||||||
a livello di sistema.
|
a livello di sistema.
|
||||||
.TP
|
.TP
|
||||||
~/.vimrc
|
~/.vimrc
|
||||||
Le vostre personali inizializzazioni di
|
Inizializzazioni personali di
|
||||||
.B Vim
|
.B Vim
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
@@ -514,11 +510,10 @@ Le vostre personali inizializzazioni di
|
|||||||
Inizializzazioni gvim a livello di sistema.
|
Inizializzazioni gvim a livello di sistema.
|
||||||
.TP
|
.TP
|
||||||
~/.gvimrc
|
~/.gvimrc
|
||||||
Le vostre personali inizializzazioni di gvim.
|
Inizializzazioni personali di
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/optwin.vim
|
/usr/local/lib/vim/optwin.vim
|
||||||
Script Vim usato dal comando ":options", un modo semplice
|
Script Vim usato dal comando ":options", da usare per visualizzare e impostare opzioni.
|
||||||
per visualizzare e impostare opzioni.
|
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/menu.vim
|
/usr/local/lib/vim/menu.vim
|
||||||
Inizializzazioni del menù gvim a livello di sistema.
|
Inizializzazioni del menù gvim a livello di sistema.
|
||||||
@@ -527,12 +522,10 @@ Inizializzazioni del menù gvim a livello di sistema.
|
|||||||
Script Vim per generare una segnalazione di errore. Vedere ":help bugs".
|
Script Vim per generare una segnalazione di errore. Vedere ":help bugs".
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/filetype.vim
|
/usr/local/lib/vim/filetype.vim
|
||||||
Script Vim per determinare il tipo di un file a partire dal suo nome.
|
Script Vim per determinare il tipo di un file dal suo nome. Vedere ":help 'filetype'".
|
||||||
Vedere ":help 'filetype'".
|
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/scripts.vim
|
/usr/local/lib/vim/scripts.vim
|
||||||
Script Vim per determinare il tipo di un file a partire dal suo contenuto.
|
Script Vim per determinare il tipo di un file dal suo contenuto. Vedere ":help 'filetype'".
|
||||||
Vedere ":help 'filetype'".
|
|
||||||
.TP
|
.TP
|
||||||
/usr/local/lib/vim/print/*.ps
|
/usr/local/lib/vim/print/*.ps
|
||||||
File usati per stampa PostScript.
|
File usati per stampa PostScript.
|
||||||
@@ -545,7 +538,7 @@ vimtutor(1)
|
|||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
Buona parte di
|
Buona parte di
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
|
||||||
Vedere ":help credits" in
|
Vedere ":help credits" in
|
||||||
.B Vim.
|
.B Vim.
|
||||||
.br
|
.br
|
||||||
@@ -557,10 +550,9 @@ In verità, poco o nulla è rimasto del loro codice originale.
|
|||||||
Probabili.
|
Probabili.
|
||||||
Vedere ":help todo" per una lista di problemi noti.
|
Vedere ":help todo" per una lista di problemi noti.
|
||||||
.PP
|
.PP
|
||||||
Si noti che un certo numero di comportamenti che possono essere considerati
|
Si noti che un certo numero di comportamenti che possono essere considerati errori
|
||||||
errori da qualcuno, sono in effetti causati da una riproduzione fin troppo
|
da qualcuno, sono in effetti causati da una riproduzione fin troppo fedele del
|
||||||
fedele del comportamento di Vi.
|
comportamento di Vi. Se si ritiene che altre cose siano errori "perché Vi si comporta
|
||||||
Se ritenete che altre cose siano errori "perché Vi si comporta diversamente",
|
diversamente", si dia prima un'occhiata al file vi_diff.txt (o si immetta
|
||||||
date prima un'occhiata al file vi_diff.txt
|
:help vi_diff.txt da Vim).
|
||||||
(o battere :help vi_diff.txt da Vim).
|
Un'occhiata va data anche alle opzioni 'compatible' e 'cpoptions.
|
||||||
Date anche un'occhiata alle opzioni 'compatible' e 'cpoptions.
|
|
||||||
|
|||||||
+3
-2
@@ -20,6 +20,7 @@ vim \- Vi IMproved, a programmer's text editor
|
|||||||
.br
|
.br
|
||||||
.B view
|
.B view
|
||||||
.br
|
.br
|
||||||
|
.B mvim
|
||||||
.B gvim
|
.B gvim
|
||||||
.B gview
|
.B gview
|
||||||
.B evim
|
.B evim
|
||||||
@@ -111,8 +112,8 @@ view
|
|||||||
Start in read-only mode. You will be protected from writing the files.
|
Start in read-only mode. You will be protected from writing the files.
|
||||||
Can also be done with the "\-R" argument.
|
Can also be done with the "\-R" argument.
|
||||||
.TP
|
.TP
|
||||||
gvim gview
|
mvim gvim gview
|
||||||
The GUI version.
|
The GUI version (MacVim).
|
||||||
Starts a new window.
|
Starts a new window.
|
||||||
Can also be done with the "\-g" argument.
|
Can also be done with the "\-g" argument.
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
+4
-4
@@ -13,7 +13,7 @@ SYNOPSIS
|
|||||||
|
|
||||||
ex
|
ex
|
||||||
view
|
view
|
||||||
gvim gview evim eview
|
mvim gvim gview evim eview
|
||||||
rvim rview rgvim rgview
|
rvim rview rgvim rgview
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
@@ -78,9 +78,9 @@ DESCRIPTION
|
|||||||
view Start in read-only mode. You will be protected from writing
|
view Start in read-only mode. You will be protected from writing
|
||||||
the files. Can also be done with the "-R" argument.
|
the files. Can also be done with the "-R" argument.
|
||||||
|
|
||||||
gvim gview
|
mvim gvim gview
|
||||||
The GUI version. Starts a new window. Can also be done with
|
The GUI version (MacVim). Starts a new window. Can also be
|
||||||
the "-g" argument.
|
done with the "-g" argument.
|
||||||
|
|
||||||
evim eview
|
evim eview
|
||||||
The GUI version in easy mode. Starts a new window. Can also
|
The GUI version in easy mode. Starts a new window. Can also
|
||||||
|
|||||||
@@ -1033,10 +1033,12 @@ In Vim9 script one can use the following predefined values: >
|
|||||||
null
|
null
|
||||||
null_blob
|
null_blob
|
||||||
null_channel
|
null_channel
|
||||||
|
null_class
|
||||||
null_dict
|
null_dict
|
||||||
null_function
|
null_function
|
||||||
null_job
|
null_job
|
||||||
null_list
|
null_list
|
||||||
|
null_object
|
||||||
null_partial
|
null_partial
|
||||||
null_string
|
null_string
|
||||||
`true` is the same as `v:true`, `false` the same as `v:false`, `null` the same
|
`true` is the same as `v:true`, `false` the same as `v:false`, `null` the same
|
||||||
|
|||||||
@@ -178,6 +178,26 @@ number to the total number of lines: >
|
|||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
|
||||||
|
Private methods ~
|
||||||
|
If you want object methods to be accessible only from other methods of the
|
||||||
|
same class and not used from outside the class, then you can make them
|
||||||
|
private. This is done by prefixing the method name with an underscore: >
|
||||||
|
|
||||||
|
class SomeClass
|
||||||
|
def _Foo(): number
|
||||||
|
return 10
|
||||||
|
enddef
|
||||||
|
def Bar(): number
|
||||||
|
return this._Foo()
|
||||||
|
enddef
|
||||||
|
endclass
|
||||||
|
<
|
||||||
|
Accessing a private method outside the class will result in an error (using
|
||||||
|
the above class): >
|
||||||
|
|
||||||
|
var a = SomeClass.new()
|
||||||
|
a._Foo()
|
||||||
|
<
|
||||||
Simplifying the new() method ~
|
Simplifying the new() method ~
|
||||||
|
|
||||||
Many constructors take values for the object members. Thus you very often see
|
Many constructors take values for the object members. Thus you very often see
|
||||||
@@ -232,6 +252,9 @@ If the class extends a parent class, the same thing happens. In the second
|
|||||||
step the members of the parent class are done first. There is no need to call
|
step the members of the parent class are done first. There is no need to call
|
||||||
"super()" or "new()" on the parent.
|
"super()" or "new()" on the parent.
|
||||||
|
|
||||||
|
When defining the new() method the return type should not be specified. It
|
||||||
|
always returns an object of the class.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
3. class members and functions *Vim9-class-member*
|
3. class members and functions *Vim9-class-member*
|
||||||
@@ -281,6 +304,22 @@ object members, they cannot use the "this" keyword. >
|
|||||||
Inside the class the function can be called by name directly, outside the
|
Inside the class the function can be called by name directly, outside the
|
||||||
class the class name must be prefixed: `OtherThing.ClearTotalSize()`.
|
class the class name must be prefixed: `OtherThing.ClearTotalSize()`.
|
||||||
|
|
||||||
|
Just like object methods the access can be made private by using an underscore
|
||||||
|
as the first character in the method name: >
|
||||||
|
|
||||||
|
class OtherThing
|
||||||
|
static def _Foo()
|
||||||
|
echo "Foo"
|
||||||
|
enddef
|
||||||
|
def Bar()
|
||||||
|
OtherThing._Foo()
|
||||||
|
enddef
|
||||||
|
endclass
|
||||||
|
<
|
||||||
|
*E1370*
|
||||||
|
Note that constructors cannot be declared as "static", because they always
|
||||||
|
are.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
4. Using an abstract class *Vim9-abstract-class*
|
4. Using an abstract class *Vim9-abstract-class*
|
||||||
@@ -319,6 +358,16 @@ class, for which objects can be created. Example: >
|
|||||||
An abstract class is defined the same way as a normal class, except that it
|
An abstract class is defined the same way as a normal class, except that it
|
||||||
does not have any new() method. *E1359*
|
does not have any new() method. *E1359*
|
||||||
|
|
||||||
|
*abstract-method*
|
||||||
|
An abstract method can be defined in an abstract class by using the "abstract"
|
||||||
|
prefix when defining the function: >
|
||||||
|
|
||||||
|
abstract class Shape
|
||||||
|
abstract def Draw()
|
||||||
|
endclass
|
||||||
|
|
||||||
|
A class extending the abstract class must implement all the abstract methods.
|
||||||
|
Class methods in an abstract class can also be abstract methods.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -420,6 +469,12 @@ Each member and function name can be used only once. It is not possible to
|
|||||||
define a function with the same name and different type of arguments.
|
define a function with the same name and different type of arguments.
|
||||||
|
|
||||||
|
|
||||||
|
Member Initialization ~
|
||||||
|
If the type of a member is not explicitly specified in a class, then it is set
|
||||||
|
to "any" during class definition. When an object is instantiated from the
|
||||||
|
class, then the type of the member is set.
|
||||||
|
|
||||||
|
|
||||||
Extending a class ~
|
Extending a class ~
|
||||||
*extends*
|
*extends*
|
||||||
A class can extend one other class. *E1352* *E1353* *E1354*
|
A class can extend one other class. *E1352* *E1353* *E1354*
|
||||||
|
|||||||
+14
-16
@@ -1,48 +1,46 @@
|
|||||||
.TH VIMDIFF 1 "30 marzo 2001"
|
.TH VIMDIFF 1 "30 marzo 2001"
|
||||||
.SH NOME
|
.SH NOME
|
||||||
vimdiff \- modifica due, tre o quattro versioni di un file con Vim,
|
vimdiff \- modifica da due, fino a otto versioni di un file con Vim, visualizzando le differenze
|
||||||
visualizzando le differenze
|
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.br
|
.br
|
||||||
.B vimdiff
|
.B vimdiff
|
||||||
[opzioni] file1 file2 [file3 [file4]]
|
[opzioni] file1 file2 [file3 [file4 [file5 [file6 [file7 [file8]]]]]]
|
||||||
.PP
|
.PP
|
||||||
.B gvimdiff
|
.B gvimdiff
|
||||||
.SH DESCRIZIONE
|
.SH DESCRIZIONE
|
||||||
.B Vimdiff
|
.B Vimdiff
|
||||||
inizia
|
inizia
|
||||||
.B Vim
|
.B Vim
|
||||||
per due (o tre o quattro) file.
|
per due e fino a otto file.
|
||||||
Ogni file ha una sua finestra.
|
Ogni file ha una sua finestra.
|
||||||
Le differenze fra file sono evidenziate.
|
Le differenze fra file sono evidenziate.
|
||||||
È una maniera elegante per controllare modifiche e portare modifiche
|
È una maniera elegante per controllare modifiche e applicare modifiche
|
||||||
verso un'altra versione dello stesso file.
|
a qualche altra versione dello stesso file.
|
||||||
.PP
|
.PP
|
||||||
Vedere vim(1) per dettagli su Vim in generale.
|
Vedere vim(1) per dettagli su Vim in sé.
|
||||||
.PP
|
.PP
|
||||||
Se iniziato con
|
Se iniziato con
|
||||||
.B gvimdiff
|
.B gvimdiff
|
||||||
la GUI sarà utilizzata, se disponibile.
|
la GUI sarà utilizzata, se disponibile.
|
||||||
.PP
|
.PP
|
||||||
In ogni finestra l'opzione 'diff' è impostata, evidenziando così le
|
In ogni finestra l'opzione 'diff' è impostata, in modo da evidenziare le
|
||||||
differenze.
|
differenze fra le versioni
|
||||||
.br
|
.br
|
||||||
Le opzioni 'wrap' e 'scrollbind' sono impostate per migliorare la
|
Le opzioni 'wrap' e 'scrollbind' sono impostate per favorire la visibilità del testo.
|
||||||
visibilità del testo.
|
|
||||||
.br
|
.br
|
||||||
L'opzione 'foldmethod' è impostata al valore "diff", che mette gruppi di
|
L'opzione 'foldmethod' è impostata al valore "diff", che mette i gruppi di
|
||||||
linee uguali fra i diversi file in una piegatura. 'foldcolumn' è impostato
|
linee uguali fra i diversi file in una piegatura. 'foldcolumn' è impostato
|
||||||
a due per poter facilmente visualizzare le piegature, aprirle e chiuderle.
|
a due per poter facilmente visualizzare le piegature, aprirle e chiuderle.
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Lo schermo è diviso verticalmente, come se aveste usato l'opzione "\-O".
|
Lo schermo è diviso verticalmente, come quando si usa l'opzione "\-O".
|
||||||
Per dividerlo orizzontalmente, usare l'opzione "\-o".
|
Per dividerlo orizzontalmente, usare invece l'opzione "\-o".
|
||||||
.PP
|
.PP
|
||||||
Per tutte le altre opzioni, vedere vim(1).
|
Per tutti gli altri argomenti, vedere vim(1).
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
vim(1)
|
vim(1)
|
||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
Buona parte di
|
Buona parte di
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
|
||||||
Vedere ":help credits" in
|
Vedere ":help credits" in
|
||||||
.B Vim.
|
.B Vim.
|
||||||
|
|||||||
@@ -1,48 +1,46 @@
|
|||||||
.TH VIMDIFF 1 "30 marzo 2001"
|
.TH VIMDIFF 1 "30 marzo 2001"
|
||||||
.SH NOME
|
.SH NOME
|
||||||
vimdiff \- modifica due, tre o quattro versioni di un file con Vim,
|
vimdiff \- modifica da due, fino a otto versioni di un file con Vim, visualizzando le differenze
|
||||||
visualizzando le differenze
|
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.br
|
.br
|
||||||
.B vimdiff
|
.B vimdiff
|
||||||
[opzioni] file1 file2 [file3 [file4]]
|
[opzioni] file1 file2 [file3 [file4 [file5 [file6 [file7 [file8]]]]]]
|
||||||
.PP
|
.PP
|
||||||
.B gvimdiff
|
.B gvimdiff
|
||||||
.SH DESCRIZIONE
|
.SH DESCRIZIONE
|
||||||
.B Vimdiff
|
.B Vimdiff
|
||||||
inizia
|
inizia
|
||||||
.B Vim
|
.B Vim
|
||||||
per due (o tre o quattro) file.
|
per due e fino a otto file.
|
||||||
Ogni file ha una sua finestra.
|
Ogni file ha una sua finestra.
|
||||||
Le differenze fra file sono evidenziate.
|
Le differenze fra file sono evidenziate.
|
||||||
È una maniera elegante per controllare modifiche e portare modifiche
|
È una maniera elegante per controllare modifiche e applicare modifiche
|
||||||
verso un'altra versione dello stesso file.
|
a qualche altra versione dello stesso file.
|
||||||
.PP
|
.PP
|
||||||
Vedere vim(1) per dettagli su Vim in generale.
|
Vedere vim(1) per dettagli su Vim in sé.
|
||||||
.PP
|
.PP
|
||||||
Se iniziato con
|
Se iniziato con
|
||||||
.B gvimdiff
|
.B gvimdiff
|
||||||
la GUI sarà utilizzata, se disponibile.
|
la GUI sarà utilizzata, se disponibile.
|
||||||
.PP
|
.PP
|
||||||
In ogni finestra l'opzione 'diff' è impostata, evidenziando così le
|
In ogni finestra l'opzione 'diff' è impostata, in modo da evidenziare le
|
||||||
differenze.
|
differenze fra le versioni
|
||||||
.br
|
.br
|
||||||
Le opzioni 'wrap' e 'scrollbind' sono impostate per migliorare la
|
Le opzioni 'wrap' e 'scrollbind' sono impostate per favorire la visibilità del testo.
|
||||||
visibilità del testo.
|
|
||||||
.br
|
.br
|
||||||
L'opzione 'foldmethod' è impostata al valore "diff", che mette gruppi di
|
L'opzione 'foldmethod' è impostata al valore "diff", che mette i gruppi di
|
||||||
linee uguali fra i diversi file in una piegatura. 'foldcolumn' è impostato
|
linee uguali fra i diversi file in una piegatura. 'foldcolumn' è impostato
|
||||||
a due per poter facilmente visualizzare le piegature, aprirle e chiuderle.
|
a due per poter facilmente visualizzare le piegature, aprirle e chiuderle.
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Lo schermo è diviso verticalmente, come se aveste usato l'opzione "\-O".
|
Lo schermo è diviso verticalmente, come quando si usa l'opzione "\-O".
|
||||||
Per dividerlo orizzontalmente, usare l'opzione "\-o".
|
Per dividerlo orizzontalmente, usare invece l'opzione "\-o".
|
||||||
.PP
|
.PP
|
||||||
Per tutte le altre opzioni, vedere vim(1).
|
Per tutti gli altri argomenti, vedere vim(1).
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
vim(1)
|
vim(1)
|
||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
Buona parte di
|
Buona parte di
|
||||||
.B Vim
|
.B Vim
|
||||||
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
|
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
|
||||||
Vedere ":help credits" in
|
Vedere ":help credits" in
|
||||||
.B Vim.
|
.B Vim.
|
||||||
|
|||||||
+16
-17
@@ -1,6 +1,6 @@
|
|||||||
.TH VIMTUTOR 1 "2 aprile 2001"
|
.TH VIMTUTOR 1 "2 aprile 2001"
|
||||||
.SH NOME
|
.SH NOME
|
||||||
vimtutor \- Un breve corso per imparare Vim
|
vimtutor \- Un breve corso introduttivo a Vim
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.br
|
.br
|
||||||
.B vimtutor [\-g] [lingua]
|
.B vimtutor [\-g] [lingua]
|
||||||
@@ -8,51 +8,50 @@ vimtutor \- Un breve corso per imparare Vim
|
|||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
inizia il
|
inizia il
|
||||||
.B Vim
|
.B Vim
|
||||||
tutor (una breve corso per imparare Vim).
|
tutor (un breve corso introduttivo a Vim).
|
||||||
Per prima cosa viene creata una copia del file di lavoro, che può così essere
|
Viene utilizzata una copia del file di lavoro, che può così essere modificato
|
||||||
modificato senza alterare il file usato come modello.
|
a piacere senza alterare il file usato come modello.
|
||||||
.PP
|
.PP
|
||||||
Il comando
|
Il comando
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
è utile a chi voglia imparare i primi comandi
|
è utile a chi voglia imparare i primi comandi di
|
||||||
.B Vim
|
.B Vim
|
||||||
.
|
.
|
||||||
.PP
|
.PP
|
||||||
L'argomento opzionale \-g inizia vimtutor usando gvim invece che vim, se la
|
L'argomento opzionale \-g inizia vimtutor usando gvim invece che vim, se la
|
||||||
versione GUI di vim è disponibile. oppure utilizza vim, se gvim non è
|
versione GUI di vim è disponibile; altrimenti viene utilizzato Vim.
|
||||||
disponibile.
|
|
||||||
.PP
|
.PP
|
||||||
L'arogmento opzionale [lingua] è l'abbreviazione di due lettere del nome
|
L'argomento opzionale [lingua] è l'abbreviazione di due lettere del nome
|
||||||
di una lingua, per esempio "it" oppure "es".
|
di una lingua, per esempio "it" oppure "es".
|
||||||
se L'argomento [lingua] non viene specificato, si utilizza la lingua "locale"
|
Se l'argomento [lingua] non viene specificato, si utilizza la lingua "locale"
|
||||||
del computer.
|
del computer.
|
||||||
Se la versione in quella lingua del "tutor" è disponibile, sarà usata.
|
Se la versione in tale lingua del "tutor" non è disponibile,
|
||||||
Altrimenti sarà usata la versione inglese.
|
verrà usata la versione inglese.
|
||||||
.PP
|
.PP
|
||||||
.B Vim
|
.B Vim
|
||||||
è sempre iniziato in Modo compatibile con vi.
|
è sempre iniziato in Modo compatibile con Vi.
|
||||||
.SH FILE
|
.SH FILE
|
||||||
.TP 15
|
.TP 15
|
||||||
/usr/local/lib/vim/tutor/tutor[.language]
|
/usr/local/lib/vim/tutor/tutor[.language]
|
||||||
Il/I file di testo per
|
I file di testo per
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
|
.
|
||||||
.TP 15
|
.TP 15
|
||||||
/usr/local/lib/vim/tutor/tutor.vim
|
/usr/local/lib/vim/tutor/tutor.vim
|
||||||
Lo script di Vim usato per copiare il file di testo
|
Lo script di Vim usato per copiare il file di testo
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
.
|
.
|
||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
The
|
Il corso introduttivo
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
è stato scritto in origine per Vi da Michael C. Pierce e Robert K. Ware,
|
è 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 School of Mines, usando idee fornite da Charles Smith,
|
||||||
Colorado State University.
|
Colorado State University.
|
||||||
E\-mail: bware@mines.colorado.edu.
|
E-mail: bware@mines.colorado.edu (non più valido).
|
||||||
.br
|
.br
|
||||||
È stato modificato per
|
È stato modificato per
|
||||||
.B Vim
|
.B Vim
|
||||||
da Bram Moolenaar.
|
da Bram Moolenaar.
|
||||||
Per i nomi dei traduttori, vedere i file usati nelle rispettive lingue.
|
Per i nomi dei traduttori, vedere i file nelle rispettive lingue.
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
vim(1)
|
vim(1)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.TH VIMTUTOR 1 "2 aprile 2001"
|
.TH VIMTUTOR 1 "2 aprile 2001"
|
||||||
.SH NOME
|
.SH NOME
|
||||||
vimtutor \- Un breve corso per imparare Vim
|
vimtutor \- Un breve corso introduttivo a Vim
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.br
|
.br
|
||||||
.B vimtutor [\-g] [lingua]
|
.B vimtutor [\-g] [lingua]
|
||||||
@@ -8,51 +8,50 @@ vimtutor \- Un breve corso per imparare Vim
|
|||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
inizia il
|
inizia il
|
||||||
.B Vim
|
.B Vim
|
||||||
tutor (una breve corso per imparare Vim).
|
tutor (un breve corso introduttivo a Vim).
|
||||||
Per prima cosa viene creata una copia del file di lavoro, che può così essere
|
Viene utilizzata una copia del file di lavoro, che può così essere modificato
|
||||||
modificato senza alterare il file usato come modello.
|
a piacere senza alterare il file usato come modello.
|
||||||
.PP
|
.PP
|
||||||
Il comando
|
Il comando
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
è utile a chi voglia imparare i primi comandi
|
è utile a chi voglia imparare i primi comandi di
|
||||||
.B Vim
|
.B Vim
|
||||||
.
|
.
|
||||||
.PP
|
.PP
|
||||||
L'argomento opzionale \-g inizia vimtutor usando gvim invece che vim, se la
|
L'argomento opzionale \-g inizia vimtutor usando gvim invece che vim, se la
|
||||||
versione GUI di vim è disponibile. oppure utilizza vim, se gvim non è
|
versione GUI di vim è disponibile; altrimenti viene utilizzato Vim.
|
||||||
disponibile.
|
|
||||||
.PP
|
.PP
|
||||||
L'arogmento opzionale [lingua] è l'abbreviazione di due lettere del nome
|
L'argomento opzionale [lingua] è l'abbreviazione di due lettere del nome
|
||||||
di una lingua, per esempio "it" oppure "es".
|
di una lingua, per esempio "it" oppure "es".
|
||||||
se L'argomento [lingua] non viene specificato, si utilizza la lingua "locale"
|
Se l'argomento [lingua] non viene specificato, si utilizza la lingua "locale"
|
||||||
del computer.
|
del computer.
|
||||||
Se la versione in quella lingua del "tutor" è disponibile, sarà usata.
|
Se la versione in tale lingua del "tutor" non è disponibile,
|
||||||
Altrimenti sarà usata la versione inglese.
|
verrà usata la versione inglese.
|
||||||
.PP
|
.PP
|
||||||
.B Vim
|
.B Vim
|
||||||
è sempre iniziato in Modo compatibile con vi.
|
è sempre iniziato in Modo compatibile con Vi.
|
||||||
.SH FILE
|
.SH FILE
|
||||||
.TP 15
|
.TP 15
|
||||||
/usr/local/lib/vim/tutor/tutor[.language]
|
/usr/local/lib/vim/tutor/tutor[.language]
|
||||||
Il/I file di testo per
|
I file di testo per
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
|
.
|
||||||
.TP 15
|
.TP 15
|
||||||
/usr/local/lib/vim/tutor/tutor.vim
|
/usr/local/lib/vim/tutor/tutor.vim
|
||||||
Lo script di Vim usato per copiare il file di testo
|
Lo script di Vim usato per copiare il file di testo
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
.
|
.
|
||||||
.SH AUTORE
|
.SH AUTORE
|
||||||
The
|
Il corso introduttivo
|
||||||
.B Vimtutor
|
.B Vimtutor
|
||||||
è stato scritto in origine per Vi da Michael C. Pierce e Robert K. Ware,
|
è 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 School of Mines, usando idee fornite da Charles Smith,
|
||||||
Colorado State University.
|
Colorado State University.
|
||||||
E\-mail: bware@mines.colorado.edu.
|
E-mail: bware@mines.colorado.edu (non più valido).
|
||||||
.br
|
.br
|
||||||
È stato modificato per
|
È stato modificato per
|
||||||
.B Vim
|
.B Vim
|
||||||
da Bram Moolenaar.
|
da Bram Moolenaar.
|
||||||
Per i nomi dei traduttori, vedere i file usati nelle rispettive lingue.
|
Per i nomi dei traduttori, vedere i file nelle rispettive lingue.
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
vim(1)
|
vim(1)
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ CTRL-W v *CTRL-W_v*
|
|||||||
it doesn't!
|
it doesn't!
|
||||||
|
|
||||||
CTRL-W n *CTRL-W_n*
|
CTRL-W n *CTRL-W_n*
|
||||||
CTRL-W CTRL_N *CTRL-W_CTRL-N*
|
CTRL-W CTRL-N *CTRL-W_CTRL-N*
|
||||||
:[N]new [++opt] [+cmd] *:new*
|
:[N]new [++opt] [+cmd] *:new*
|
||||||
Create a new window and start editing an empty file in it.
|
Create a new window and start editing an empty file in it.
|
||||||
Make new window N high (default is to use half the existing
|
Make new window N high (default is to use half the existing
|
||||||
|
|||||||
+119
-121
@@ -6,7 +6,7 @@
|
|||||||
.\" Modificato da Bram Moolenaar <Bram@vim.org>
|
.\" Modificato da Bram Moolenaar <Bram@vim.org>
|
||||||
.SH NOME
|
.SH NOME
|
||||||
.I xxd
|
.I xxd
|
||||||
\- Produce esadecimale da un file binario o viceversa.
|
\- Produce lista esadecimale da un file binario o viceversa.
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.B xxd
|
.B xxd
|
||||||
\-h[elp]
|
\-h[elp]
|
||||||
@@ -18,36 +18,33 @@
|
|||||||
\-r[evert] [opzioni] [input_file [output_file]]
|
\-r[evert] [opzioni] [input_file [output_file]]
|
||||||
.SH DESCRIZIONE
|
.SH DESCRIZIONE
|
||||||
.I xxd
|
.I xxd
|
||||||
crea un'immagine esadecimale di un dato file o dello "standard input".
|
crea un'immagine esadecimale di un dato file o dello `standard input'.
|
||||||
Può anche ottenere da un'immagine esadecimale il file binario originale.
|
Può anche ricostruire da un'immagine esadecimale il file binario originale.
|
||||||
Come
|
Come
|
||||||
.BR uuencode (1)
|
.BR uuencode (1)
|
||||||
e
|
e
|
||||||
.BR uudecode (1)
|
.BR uudecode (1)
|
||||||
permette di trasmettere dati binari in una rappresentazione ASCII "a prova
|
permette di trasmettere dati binari in una rappresentazione ASCII `a prova
|
||||||
di email", ma ha anche il vantaggio di poter decodificare sullo "standard
|
di email', ma ha anche il vantaggio di poter decodificare sullo `standard output'.
|
||||||
output". Inoltre, può essere usato per effettuare delle modifiche (patch)
|
Inoltre, può essere usato per effettuare delle modifiche (patch) a file binari.
|
||||||
a file binari.
|
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Se non si specifica un
|
Se non si specifica un
|
||||||
.I input_file
|
.I input_file
|
||||||
il programma legge dallo "standard input".
|
il programma legge dallo `standard input'.
|
||||||
Se
|
Se
|
||||||
.I input_file
|
.I input_file
|
||||||
è specificato come il carattere
|
è specificato come il carattere
|
||||||
.RB \` \- '
|
.RB \` \- '
|
||||||
, l'input è letto dallo "standard input".
|
, l'input è letto dallo `standard input'.
|
||||||
Se non si specifica un
|
Se non si specifica un
|
||||||
.I output_file
|
.I output_file
|
||||||
(o si mette al suo posto il carattere
|
(o si mette al suo posto il carattere
|
||||||
.RB \` \- '
|
.RB \` \- '
|
||||||
), i risultati sono inviati allo "standard output".
|
), i risultati sono inviati allo `standard output'.
|
||||||
.PP
|
.PP
|
||||||
Si noti che la scansione dei caratteri è "pigra", e non controlla oltre
|
Si noti che la scansione dei caratteri è "pigra", e non controlla oltre la prima
|
||||||
la prima lettera dell'opzione, a meno che l'opzione sia seguita da un
|
lettera di un'opzione, a meno che l'opzione sia seguita da un parametro.
|
||||||
parametro.
|
Gli spazi fra una singola lettera di opzione e il relativo parametro sono facoltativi.
|
||||||
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
|
I parametri delle opzioni possono essere specificati usando la notazione
|
||||||
decimale, esadecimale oppure ottale.
|
decimale, esadecimale oppure ottale.
|
||||||
Pertanto
|
Pertanto
|
||||||
@@ -60,118 +57,129 @@ sono notazioni equivalenti fra loro.
|
|||||||
.PP
|
.PP
|
||||||
.TP
|
.TP
|
||||||
.IR \-a " | " \-autoskip
|
.IR \-a " | " \-autoskip
|
||||||
Richiesta di autoskip: Un singolo '*' rimpiazza linee di zeri binari.
|
Richiesta di omissione: Un singolo '*' rimpiazza righe a zeri binari. Default: off.
|
||||||
Valore di default: off.
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-b " | " \-bits
|
.IR \-b " | " \-bits
|
||||||
Richiesta di una immagine binaria (cifre binarie), invece che esadecimale.
|
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
|
Quest'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
|
numeri esadecimali. Ogni riga è preceduta da un indirizzo in esadecimale e
|
||||||
seguita da una decodifica ascii (o ebcdic). Le opzioni specificabili dalla
|
seguita da una decodifica ASCII (o EBCDIC). Le opzioni specificabili dalla
|
||||||
linea comando \-r, \-p, \-i non funzionano in questo modo.
|
riga comando \-r, \-p, \-i non funzionano in questo modo.
|
||||||
.TP
|
.TP
|
||||||
.IR "\-c colonne " | " \-cols colonne"
|
.IR "\-c colonne " | " \-cols colonne"
|
||||||
.IR "\-c colonne " | " \-cols colonne"
|
In ogni riga sono formattate
|
||||||
In ogni linea sono formattate
|
|
||||||
.RI < colonne >
|
.RI < colonne >
|
||||||
colonne. Valore di default 16 (\-i: 12, \-ps: 30, \-b: 6).
|
colonne. Valore di default 16 (\-i: 12, \-ps: 30, \-b: 6).
|
||||||
Valore massimo 256.
|
Non c'è un valore massimo per \-ps; se si specifica 0 viene scritta un'unica lunga riga di output.
|
||||||
|
.TP
|
||||||
|
.IR \-C " | " \-capitalize
|
||||||
|
Mette in maiuscolo i nomi di variabili nello stile delle `include' C, se si usa \-i.
|
||||||
.TP
|
.TP
|
||||||
.IR \-E " | " \-EBCDIC
|
.IR \-E " | " \-EBCDIC
|
||||||
Cambia la codifica della colonna di destra da ASCII a EBCDIC.
|
Cambia la codifica della colonna di destra da ASCII a EBCDIC.
|
||||||
Questo non modifica la rappresentazione esadecimale. Non ha senso
|
Questo non modifica la rappresentazione esadecimale. Non ha senso
|
||||||
specificare questa opzione in combinazione con \-r, \-p o \-i.
|
specificare quest'opzione in combinazione con \-r, \-p o \-i.
|
||||||
.TP
|
.TP
|
||||||
.IR "\-g numero_byte " | " \-groupsize numero_byte"
|
.IR \-e
|
||||||
Inserisci ogni
|
Considera la lista esadecimale come avente codifica `little-endian'.
|
||||||
.RI < numero_byte >
|
Quest'opzione tratta i gruppi di byte come parole in codifica `little-endian'.
|
||||||
byte di output (di due caratteri esadecimali o otto numeri binari ognuno)
|
Il raggruppamento di default dei byte a 4 a 4 può essere cambiato usando
|
||||||
uno spazio bianco.
|
.RI "" \-g .
|
||||||
|
Quest'opzione si applica solo alla lista esadecimale, Lasciando inalterata
|
||||||
|
la rappresentazione ASCII (or EBCDIC).
|
||||||
|
Le opzioni della riga di comando
|
||||||
|
\-r, \-p, \-i non funzionano in questa modalità.
|
||||||
|
.TP
|
||||||
|
.IR "\-g numero " | " \-groupsize numero"
|
||||||
|
Separa ogni gruppo di
|
||||||
|
.RI < numero >
|
||||||
|
byte in output (di due caratteri esadecimali o otto caratteri binari ognuno) con uno spazio bianco.
|
||||||
Specificando
|
Specificando
|
||||||
.I \-g 0
|
.I \-g 0
|
||||||
i byte di output non sono separati da alcuno spazio.
|
i byte di output non sono separati da alcuno spazio.
|
||||||
.RI < numero_byte > ha come valore di default " 2
|
.RI < Numero "> ha come valore di default " 2
|
||||||
in modalità normale [esadecimale] e \fI1\fP in modalità binaria.
|
in modalità normale [esadecimale], \fI4\fP in modalità `little-endian' e \fI1\fP in modalità binaria.
|
||||||
Il raggruppamento non si applica agli stili "PostScript" e "include".
|
Il raggruppamento non si applica agli stili `PostScript' e `include'.
|
||||||
.TP
|
.TP
|
||||||
.IR \-h " | " \-help
|
.IR \-h " | " \-help
|
||||||
stampa un sommario dei comandi disponibili ed esce. Non viene fatto
|
Stampa un sommario dei comandi disponibili ed esce. Non viene fatto null'altro.
|
||||||
null'altro.
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-i " | " \-include
|
.IR \-i " | " \-include
|
||||||
L'output è nello stile dei file "include" in C. Viene preparata la
|
L'output è un file `include' in C. Viene preparata la definizione completa del
|
||||||
definizione completa di un "array" [vettore], dandogli il nome del
|
vettore (col nome del file di input), tranne quando xxd legga dallo `standard input'.
|
||||||
file di input), tranne che nel caso in cui xxd legga dallo "standard input".
|
|
||||||
.TP
|
.TP
|
||||||
.IR "\-l numero " | " \-len numero"
|
.IR "\-l numero " | " \-len numero"
|
||||||
Il programma esce dopo aver scritto
|
Il programma esce dopo aver scritto
|
||||||
.RI < numero >
|
.RI < numero >
|
||||||
byte.
|
byte.
|
||||||
.TP
|
.TP
|
||||||
|
.I "\-n nome " | " \-name nome"
|
||||||
|
Specifica il nome del vettore in output quando si usa \-i. Il vettore viene chiamato
|
||||||
|
\fInome\fP e la sua lunghezza viene chiamata \fInome\fP_len.
|
||||||
|
.TP
|
||||||
|
.I \-o incremento
|
||||||
|
Aggiunge
|
||||||
|
.RI < incremento >
|
||||||
|
alla posizione visualizzata dei byte del file.
|
||||||
|
.TP
|
||||||
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
||||||
L'output è nello stile di un dump continuo sotto postscript.
|
L'output è nello stile di un dump esadecimale continuo sotto postscript. Noto anche come stile esadecimale semplice.
|
||||||
Noto anche come stile esadecimale semplice [plain].
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-r " | " \-revert
|
.IR \-r " | " \-revert
|
||||||
ricostruzione: converte (o mette una patch) a partire dall'immagine
|
Ricostruisce: converte (o mette una patch) da immagine esadecimale, a file binario.
|
||||||
esadecimale, creando [o modificando] il file binario.
|
Se non scrive sullo `standard output', xxd scrive nel file di output in maniera
|
||||||
Se non diretto allo "standard output", xxd scrive nel suo file di output
|
continua, senza interruzioni. Usare la combinazione
|
||||||
in maniera continua, senza interruzioni. Usare la combinazione
|
|
||||||
.I \-r \-p
|
.I \-r \-p
|
||||||
per leggere dump in stile esadecimale semplice [plain], senza l'informazione
|
per leggere dump in stile esadecimale semplice, senza l'informazione del numero
|
||||||
di numero di linea e senza un particolare tracciato di colonna. Degli spazi
|
di riga e senza un particolare tracciato di colonna. Spazi o righe vuote possono
|
||||||
o delle linee vuote possono essere inserite a piacere [e vengono ignorate].
|
essere presenti [e vengono ignorati].
|
||||||
|
.TP
|
||||||
|
.IR \-R " "[quando]
|
||||||
|
Nell'output i valori esadecimali e i caratteri corrispondenti hanno entrambi lo stesso colore, a seconda del valore esadecimale. Utile soprattutto a distinguere i caratteri stampabili da quello non stampabili.
|
||||||
|
.I quando
|
||||||
|
può assumere i valori
|
||||||
|
.BR never ", " always ", o " auto .
|
||||||
.TP
|
.TP
|
||||||
.I \-seek distanza
|
.I \-seek distanza
|
||||||
Usato con l'opzione
|
Usato con l'opzione
|
||||||
.IR \-r :
|
.IR \-r :
|
||||||
(ricostruzione),
|
(ricostruzione),
|
||||||
.RI < distanza >
|
.RI < distanza >
|
||||||
viene aggiunta alla posizione nel file trovata nella immagine
|
viene aggiunta alla posizione nel file trovata nella immagine esadecimale.
|
||||||
esadecimale.
|
|
||||||
.TP
|
.TP
|
||||||
.I \-s [+][\-]seek
|
.I \-s [+][\-]seek
|
||||||
Inizia a
|
Inizia a
|
||||||
.RI < seek >
|
.RI < seek >
|
||||||
byte assoluti (o relativi) di distanza all'interno di input_file.
|
byte assoluti (o relativi) di distanza all'interno di input_file.
|
||||||
\fI+ \fRindica che il "seek" è relativo alla posizione corrente nel file
|
\fI+ \fRindica che il `seek' è relativo alla posizione corrente nel file `standard input'
|
||||||
"standard input" (non significativa quando non si legge da "standard input").
|
(non significativo quando non si legge da `standard input'). \fI\- \fRindica che il
|
||||||
\fI\- \fRindica che il "seek" dovrebbe posizionarsi ad quel numero di
|
`seek' dovrebbe posizionarsi al numero specificato di caratteri dalla fine dell'input
|
||||||
caratteri dalla fine dell'input (o se in combinazione con
|
(o se in combinazione con \fI+ \fR: prima della posizione corrente nel file `standard input').
|
||||||
\fI+ \fR: prime della posizione corrente nel file "standard input").
|
Se non si specifica l'opzione \-s, xxd inizia dalla posizione corrente all'interno del file.
|
||||||
Se non si specifica una opzione \-s, xxd inizia alla posizione
|
|
||||||
corrente all'interno del file.
|
|
||||||
.TP
|
.TP
|
||||||
.I \-u
|
.I \-u
|
||||||
usa lettere esadecimali maiuscole. Il valore di default è di usare
|
Usa lettere esadecimali maiuscole. Per default si usano lettere minuscole.
|
||||||
lettere minuscole.
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-v " | " \-version
|
.IR \-v " | " \-version
|
||||||
visualizza la stringa contenente la versione del programma.
|
Visualizza la stringa contenente la versione del programma.
|
||||||
.SH ATTENZIONE
|
.SH ATTENZIONE
|
||||||
.PP
|
.PP
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
è capace di operare "magie" nell'utilizzare l'informazione "numero di linea".
|
è capace di operare "magie" nell'utilizzare l'informazione "numero di riga".
|
||||||
Se sul file di output ci si può posizionare usando la "seek", il numero di
|
Se è possibili posizionarsi tramite `seek' sul file di output, il numero di riga
|
||||||
linea all'inizio di ogni riga esadecimale può essere non ordinato, delle
|
di ogni riga esadecimale può essere non ordinato, delle righe possono mancare, o
|
||||||
linee possono mancare delle linee, oppure esserci delle sovrapposizioni.
|
sovrapporsi. In tal caso xxd userà lseek(2) per posizionarsi all'interno del file.
|
||||||
In simili casi xxd userà lseek(2) per raggiungere la posizione d'inizio.
|
Se per il file di output non si può usare `seek', sono permessi solo dei "buchi", che saranno riempiti con zeri binari.
|
||||||
Se il file di output non consente di usare "seek", sono permessi solo dei
|
|
||||||
"buchi", che saranno riempiti con zeri binari.
|
|
||||||
.PP
|
.PP
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
non genera mai errori di specifica parametri. I parametri non riconosciuti
|
non genera mai errori per parametri errati. I parametri extra sono silenziosamente ignorati.
|
||||||
sono silenziosamente ignorati.
|
|
||||||
.PP
|
.PP
|
||||||
Nel modificare immagini esadecimali, tenete conto che
|
Nel modificare immagini esadecimali, si tenga conto che
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
salta il resto della linea, dopo aver letto abbastanza caratteri contenenti
|
salta il resto della riga, dopo aver letto i caratteri contenenti dati esadecimali
|
||||||
dati esadecimali (vedere opzione \-c). Ciò implica pure che le modifiche alle
|
(vedere opzione \-c). Ciò implica pure che le modifiche alle colonne di caratteri
|
||||||
colonne di caratteri stampabili ascii (o ebcdic) sono sempre ignorate.
|
stampabili ASCII (o EBCDIC) sono sempre ignorate. La ricostruzione da un file immagine
|
||||||
La ricostruzione da un file immagine esadecimale in stile semplice
|
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].
|
||||||
(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
|
.PP
|
||||||
Notare la differenza fra
|
Notare la differenza fra
|
||||||
.br
|
.br
|
||||||
@@ -183,53 +191,48 @@ e
|
|||||||
.PP
|
.PP
|
||||||
.I xxd \-s \+seek
|
.I xxd \-s \+seek
|
||||||
può comportarsi in modo diverso da
|
può comportarsi in modo diverso da
|
||||||
.IR "xxd \-s seek"
|
.IR "xxd \-s seek" ,
|
||||||
, perché lseek(2) è usata per tornare indietro nel file di input. Il '+'
|
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
|
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,
|
file di `standard input' non è all'inizio del file quando xxd è eseguito, e riceve input.
|
||||||
con questo input.
|
I seguenti esempi possono contribuire a chiarire il concetto (o ad oscurarlo!)...
|
||||||
I seguenti esempi possono contribuire a chiarire il concetto
|
|
||||||
(o ad oscurarlo!)...
|
|
||||||
.PP
|
.PP
|
||||||
Riavvolge lo "standard input" prima di leggere; necessario perché `cat'
|
Riavvolge lo `standard input' prima di leggere; necessario perché `cat'
|
||||||
ha già letto lo stesso file ["file"] fino alla fine dello "standard input".
|
ha già letto lo stesso file fino alla fine dello `standard input'.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c 'cat > copia_normale; xxd \-s 0 > copia_esadecimale' < file
|
\fI% sh \-c "cat > copia_normale; xxd \-s 0 > copia_esadecimale" < file\fR
|
||||||
.PP
|
.PP
|
||||||
Stampa immagine esadecimale dalla posizione file 0x480 (=1024+128) in poi.
|
Stampa immagine esadecimale dalla posizione file 0x480 (=1024+128) in poi.
|
||||||
Il segno `+' vuol dire "rispetto alla posizione corrente", quindi il `128'
|
Il segno `+' vuol dire "rispetto alla posizione corrente", quindi il `128'
|
||||||
si aggiunge a 1k (1024) dove `dd' si era fermato.
|
si aggiunge a 1k (1024) dove `dd' si era fermato.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +128 > esadecimale' < file
|
\fI% sh \-c "dd of=normale bs=1k count=1; xxd \-s +128 > esadecimale" < file\fR
|
||||||
.PP
|
.PP
|
||||||
Immagine esadecimale dalla posizione 0x100 ( = 1024\-768 ) del file in avanti.
|
Immagine esadecimale dalla posizione 0x100 (=1024\-768 ) del file in avanti.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +\-768 > esadecimale' < file
|
\fI% sh \-c "dd of=normale bs=1k count=1; xxd \-s +\-768 > esadecimale" < file
|
||||||
.PP
|
.PP
|
||||||
Comunque, questo capita raramente, e l'uso del `+' non serve quasi mai.
|
Comunque, questo capita raramente, e l'uso del `+' non serve quasi mai.
|
||||||
L'autore preferisce monitorare il comportamento di xxd con strace(1) o
|
L'autore preferisce monitorare il comportamento di xxd con strace(1) o truss(1), quando si usa l'opzione \-s.
|
||||||
truss(1), quando si usa l'opzione \-s.
|
|
||||||
.SH ESEMPI
|
.SH ESEMPI
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa tutto tranne le prime tre linee (0x30 byte esadecimali) di
|
Stampa tutto tranne le prime tre righe (0x30 byte in esadecimale) di
|
||||||
.B file
|
.BR file
|
||||||
\.
|
\.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-s 0x30 file
|
\fI% xxd \-s 0x30 file\fR
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa 3 linee (0x30 byte esadecimali) alla fine di
|
Stampa 3 righe (0x30 byte in esadecimale) alla fine di
|
||||||
.B file
|
.BR file .
|
||||||
\.
|
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-s \-0x30 file
|
\fI% xxd \-s \-0x30 file
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa 120 byte come immagine esadecimale continua con 20 byte per linea.
|
Stampa 120 byte come immagine esadecimale continua con 20 byte per riga.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR
|
\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR
|
||||||
|
|
||||||
.br
|
.br
|
||||||
2e54482058584420312022417567757374203139
|
2e54482058584420312022417567757374203139
|
||||||
.br
|
.br
|
||||||
@@ -245,11 +248,9 @@ Stampa 120 byte come immagine esadecimale continua con 20 byte per linea.
|
|||||||
.br
|
.br
|
||||||
|
|
||||||
.br
|
.br
|
||||||
Stampa i primi 120 byte della pagina di manuale vim.1 a 12 byte per linea.
|
Stampa i primi 120 byte della pagina di manuale xxd.1 a 12 byte per riga.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-l 120 \-c 12 xxd.1\fR
|
\fI% xxd \-l 120 \-c 12 xxd.1\fR
|
||||||
|
|
||||||
|
|
||||||
.br
|
.br
|
||||||
0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A
|
0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A
|
||||||
.br
|
.br
|
||||||
@@ -285,13 +286,13 @@ su
|
|||||||
.B output_file
|
.B output_file
|
||||||
premettendogli 100 byte a 0x00.
|
premettendogli 100 byte a 0x00.
|
||||||
.br
|
.br
|
||||||
\fI% xxd input_file | xxd \-r \-s 100 \> output_file\fR
|
\fI% xxd input_file | xxd \-r \-s 100 > output_file\fR
|
||||||
.br
|
.br
|
||||||
|
|
||||||
.br
|
.br
|
||||||
Modificare (patch) la data nel file xxd.1
|
Modificare (patch) la data nel file xxd.1
|
||||||
.br
|
.br
|
||||||
\fI% echo '0000037: 3574 68' | xxd \-r \- xxd.1\fR
|
\fI% echo "0000037: 3574 68" | xxd \-r \- xxd.1\fR
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR
|
\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR
|
||||||
.br
|
.br
|
||||||
@@ -299,9 +300,9 @@ Modificare (patch) la data nel file xxd.1
|
|||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Creare un file di 65537 byte tutto a 0x00,
|
Creare un file di 65537 byte tutto a 0x00,
|
||||||
tranne che l'ultimo carattere che è una 'A' (esadecimale 0x41).
|
tranne l'ultimo carattere che è una 'A' (esadecimale 0x41).
|
||||||
.br
|
.br
|
||||||
\fI% echo '010000: 41' | xxd \-r \> file\fR
|
\fI% echo "010000: 41" | xxd \-r > file\fR
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa una immagine esadecimale del file di cui sopra con opzione autoskip.
|
Stampa una immagine esadecimale del file di cui sopra con opzione autoskip.
|
||||||
@@ -314,34 +315,31 @@ Stampa una immagine esadecimale del file di cui sopra con opzione autoskip.
|
|||||||
.br
|
.br
|
||||||
000fffc: 0000 0000 40 ....A
|
000fffc: 0000 0000 40 ....A
|
||||||
.PP
|
.PP
|
||||||
Crea un file di 1 byte che contiene il solo carattere 'A'.
|
Creare un file di 1 byte che contiene il solo carattere 'A'.
|
||||||
Il numero dopo '\-r \-s' viene aggiunto a quello trovato nel file;
|
Il numero dopo '\-r \-s' viene aggiunto a quello trovato nel file;
|
||||||
in pratica, i byte precedenti non sono stampati.
|
in pratica, i byte precedenti non sono stampati.
|
||||||
.br
|
.br
|
||||||
\fI% echo '010000: 41' | xxd \-r \-s \-0x10000 \> file\fR
|
\fI% echo "010000: 41" | xxd \-r \-s \-0x10000 > file\fR
|
||||||
.PP
|
.PP
|
||||||
Usa xxd come filtro all'interno di un editor come
|
Usare xxd come filtro all'interno di un editor come
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
per ottenere una immagine esadecimale di una parte di file
|
per ottenere l'immagine esadecimale della parte di file fra i marcatori `a' e `z'.
|
||||||
delimitata dai marcatori `a' e `z'.
|
|
||||||
.br
|
.br
|
||||||
\fI:'a,'z!xxd\fR
|
\fI:'a,'z!xxd\fR
|
||||||
.PP
|
.PP
|
||||||
Usare xxd come filtro all'interno di un editor come
|
Usare xxd come filtro all'interno di un editor come
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
per ricostruire un pezzo di file binario da una immagine esadecimale
|
per ricostruire un pezzo di file binario da un'immagine esadecimale fra i marcatori `a' e `z'.
|
||||||
delimitata dai marcatori `a' e `z'.
|
|
||||||
.br
|
.br
|
||||||
\fI:'a,'z!xxd \-r\fR
|
\fI:'a,'z!xxd \-r\fR
|
||||||
.PP
|
.PP
|
||||||
Usare xxd come filtro all'interno di un editor come
|
Usare xxd come filtro all'interno di un editor come
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
per ricostruire una sola linea di file binario da una immagine esadecimale,
|
per ricostruire una sola riga di file binario da un'immagine esadecimale. Portare il cursore sopra la riga e battere:
|
||||||
Portare il cursore sopra la linea e battere:
|
|
||||||
.br
|
.br
|
||||||
\fI!!xxd \-r\fR
|
\fI!!xxd \-r\fR
|
||||||
.PP
|
.PP
|
||||||
Per leggere singoli caratteri da una linea seriale
|
Leggere singoli caratteri da una linea seriale
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-c1 < /dev/term/b &\fR
|
\fI% xxd \-c1 < /dev/term/b &\fR
|
||||||
.br
|
.br
|
||||||
@@ -356,7 +354,8 @@ Il programma pu
|
|||||||
nessun errore rilevato.
|
nessun errore rilevato.
|
||||||
.TP
|
.TP
|
||||||
\-1
|
\-1
|
||||||
operazione non supportata (
|
operazione non supportata
|
||||||
|
\%(\c
|
||||||
.I xxd \-r \-i
|
.I xxd \-r \-i
|
||||||
non ancora possible).
|
non ancora possible).
|
||||||
.TP
|
.TP
|
||||||
@@ -370,14 +369,13 @@ problemi con il file di input.
|
|||||||
problemi con il file di output.
|
problemi con il file di output.
|
||||||
.TP
|
.TP
|
||||||
4,5
|
4,5
|
||||||
posizione "seek" specificata non raggiungibile all'interno del file.
|
posizione `seek' specificata non raggiungibile all'interno del file.
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
uuencode(1), uudecode(1), patch(1)
|
uuencode(1), uudecode(1), patch(1)
|
||||||
.br
|
.br
|
||||||
.SH AVVERTIMENTI
|
.SH AVVERTIMENTI
|
||||||
La stranezza dello strumento rispecchia la mente del suo creatore.
|
La stranezza dello strumento rispecchia la mente del suo creatore.
|
||||||
Usate a vostro rischio e pericolo. Copiate i file. Tracciate l'esecuzione.
|
Usate a vostro rischio e pericolo. Copiate i file. Tracciate l'esecuzione. Diventate un mago.
|
||||||
Diventate un mago.
|
|
||||||
.br
|
.br
|
||||||
.SH VERSIONE
|
.SH VERSIONE
|
||||||
Questa pagina di manuale documenta la versione 1.7 di xxd.
|
Questa pagina di manuale documenta la versione 1.7 di xxd.
|
||||||
@@ -393,7 +391,7 @@ fate soldi e condivideteli con me
|
|||||||
.br
|
.br
|
||||||
perdete soldi e non venite a chiederli a me.
|
perdete soldi e non venite a chiederli a me.
|
||||||
.PP
|
.PP
|
||||||
Pagina di manuale messa in piedi da Tony Nugent
|
Pagina di manuale iniziata da Tony Nugent
|
||||||
.br
|
.br
|
||||||
<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au>
|
<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au>
|
||||||
.br
|
.br
|
||||||
|
|||||||
+119
-121
@@ -6,7 +6,7 @@
|
|||||||
.\" Modificato da Bram Moolenaar <Bram@vim.org>
|
.\" Modificato da Bram Moolenaar <Bram@vim.org>
|
||||||
.SH NOME
|
.SH NOME
|
||||||
.I xxd
|
.I xxd
|
||||||
\- Produce esadecimale da un file binario o viceversa.
|
\- Produce lista esadecimale da un file binario o viceversa.
|
||||||
.SH SINTASSI
|
.SH SINTASSI
|
||||||
.B xxd
|
.B xxd
|
||||||
\-h[elp]
|
\-h[elp]
|
||||||
@@ -18,36 +18,33 @@
|
|||||||
\-r[evert] [opzioni] [input_file [output_file]]
|
\-r[evert] [opzioni] [input_file [output_file]]
|
||||||
.SH DESCRIZIONE
|
.SH DESCRIZIONE
|
||||||
.I xxd
|
.I xxd
|
||||||
crea un'immagine esadecimale di un dato file o dello "standard input".
|
crea un'immagine esadecimale di un dato file o dello `standard input'.
|
||||||
Può anche ottenere da un'immagine esadecimale il file binario originale.
|
Può anche ricostruire da un'immagine esadecimale il file binario originale.
|
||||||
Come
|
Come
|
||||||
.BR uuencode (1)
|
.BR uuencode (1)
|
||||||
e
|
e
|
||||||
.BR uudecode (1)
|
.BR uudecode (1)
|
||||||
permette di trasmettere dati binari in una rappresentazione ASCII "a prova
|
permette di trasmettere dati binari in una rappresentazione ASCII `a prova
|
||||||
di email", ma ha anche il vantaggio di poter decodificare sullo "standard
|
di email', ma ha anche il vantaggio di poter decodificare sullo `standard output'.
|
||||||
output". Inoltre, può essere usato per effettuare delle modifiche (patch)
|
Inoltre, può essere usato per effettuare delle modifiche (patch) a file binari.
|
||||||
a file binari.
|
|
||||||
.SH OPZIONI
|
.SH OPZIONI
|
||||||
Se non si specifica un
|
Se non si specifica un
|
||||||
.I input_file
|
.I input_file
|
||||||
il programma legge dallo "standard input".
|
il programma legge dallo `standard input'.
|
||||||
Se
|
Se
|
||||||
.I input_file
|
.I input_file
|
||||||
è specificato come il carattere
|
è specificato come il carattere
|
||||||
.RB \` \- '
|
.RB \` \- '
|
||||||
, l'input è letto dallo "standard input".
|
, l'input è letto dallo `standard input'.
|
||||||
Se non si specifica un
|
Se non si specifica un
|
||||||
.I output_file
|
.I output_file
|
||||||
(o si mette al suo posto il carattere
|
(o si mette al suo posto il carattere
|
||||||
.RB \` \- '
|
.RB \` \- '
|
||||||
), i risultati sono inviati allo "standard output".
|
), i risultati sono inviati allo `standard output'.
|
||||||
.PP
|
.PP
|
||||||
Si noti che la scansione dei caratteri è "pigra", e non controlla oltre
|
Si noti che la scansione dei caratteri è "pigra", e non controlla oltre la prima
|
||||||
la prima lettera dell'opzione, a meno che l'opzione sia seguita da un
|
lettera di un'opzione, a meno che l'opzione sia seguita da un parametro.
|
||||||
parametro.
|
Gli spazi fra una singola lettera di opzione e il relativo parametro sono facoltativi.
|
||||||
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
|
I parametri delle opzioni possono essere specificati usando la notazione
|
||||||
decimale, esadecimale oppure ottale.
|
decimale, esadecimale oppure ottale.
|
||||||
Pertanto
|
Pertanto
|
||||||
@@ -60,118 +57,129 @@ sono notazioni equivalenti fra loro.
|
|||||||
.PP
|
.PP
|
||||||
.TP
|
.TP
|
||||||
.IR \-a " | " \-autoskip
|
.IR \-a " | " \-autoskip
|
||||||
Richiesta di autoskip: Un singolo '*' rimpiazza linee di zeri binari.
|
Richiesta di omissione: Un singolo '*' rimpiazza righe a zeri binari. Default: off.
|
||||||
Valore di default: off.
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-b " | " \-bits
|
.IR \-b " | " \-bits
|
||||||
Richiesta di una immagine binaria (cifre binarie), invece che esadecimale.
|
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
|
Quest'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
|
numeri esadecimali. Ogni riga è preceduta da un indirizzo in esadecimale e
|
||||||
seguita da una decodifica ascii (o ebcdic). Le opzioni specificabili dalla
|
seguita da una decodifica ASCII (o EBCDIC). Le opzioni specificabili dalla
|
||||||
linea comando \-r, \-p, \-i non funzionano in questo modo.
|
riga comando \-r, \-p, \-i non funzionano in questo modo.
|
||||||
.TP
|
.TP
|
||||||
.IR "\-c colonne " | " \-cols colonne"
|
.IR "\-c colonne " | " \-cols colonne"
|
||||||
.IR "\-c colonne " | " \-cols colonne"
|
In ogni riga sono formattate
|
||||||
In ogni linea sono formattate
|
|
||||||
.RI < colonne >
|
.RI < colonne >
|
||||||
colonne. Valore di default 16 (\-i: 12, \-ps: 30, \-b: 6).
|
colonne. Valore di default 16 (\-i: 12, \-ps: 30, \-b: 6).
|
||||||
Valore massimo 256.
|
Non c'è un valore massimo per \-ps; se si specifica 0 viene scritta un'unica lunga riga di output.
|
||||||
|
.TP
|
||||||
|
.IR \-C " | " \-capitalize
|
||||||
|
Mette in maiuscolo i nomi di variabili nello stile delle `include' C, se si usa \-i.
|
||||||
.TP
|
.TP
|
||||||
.IR \-E " | " \-EBCDIC
|
.IR \-E " | " \-EBCDIC
|
||||||
Cambia la codifica della colonna di destra da ASCII a EBCDIC.
|
Cambia la codifica della colonna di destra da ASCII a EBCDIC.
|
||||||
Questo non modifica la rappresentazione esadecimale. Non ha senso
|
Questo non modifica la rappresentazione esadecimale. Non ha senso
|
||||||
specificare questa opzione in combinazione con \-r, \-p o \-i.
|
specificare quest'opzione in combinazione con \-r, \-p o \-i.
|
||||||
.TP
|
.TP
|
||||||
.IR "\-g numero_byte " | " \-groupsize numero_byte"
|
.IR \-e
|
||||||
Inserisci ogni
|
Considera la lista esadecimale come avente codifica `little-endian'.
|
||||||
.RI < numero_byte >
|
Quest'opzione tratta i gruppi di byte come parole in codifica `little-endian'.
|
||||||
byte di output (di due caratteri esadecimali o otto numeri binari ognuno)
|
Il raggruppamento di default dei byte a 4 a 4 può essere cambiato usando
|
||||||
uno spazio bianco.
|
.RI "" \-g .
|
||||||
|
Quest'opzione si applica solo alla lista esadecimale, Lasciando inalterata
|
||||||
|
la rappresentazione ASCII (or EBCDIC).
|
||||||
|
Le opzioni della riga di comando
|
||||||
|
\-r, \-p, \-i non funzionano in questa modalità.
|
||||||
|
.TP
|
||||||
|
.IR "\-g numero " | " \-groupsize numero"
|
||||||
|
Separa ogni gruppo di
|
||||||
|
.RI < numero >
|
||||||
|
byte in output (di due caratteri esadecimali o otto caratteri binari ognuno) con uno spazio bianco.
|
||||||
Specificando
|
Specificando
|
||||||
.I \-g 0
|
.I \-g 0
|
||||||
i byte di output non sono separati da alcuno spazio.
|
i byte di output non sono separati da alcuno spazio.
|
||||||
.RI < numero_byte > ha come valore di default " 2
|
.RI < Numero "> ha come valore di default " 2
|
||||||
in modalità normale [esadecimale] e \fI1\fP in modalità binaria.
|
in modalità normale [esadecimale], \fI4\fP in modalità `little-endian' e \fI1\fP in modalità binaria.
|
||||||
Il raggruppamento non si applica agli stili "PostScript" e "include".
|
Il raggruppamento non si applica agli stili `PostScript' e `include'.
|
||||||
.TP
|
.TP
|
||||||
.IR \-h " | " \-help
|
.IR \-h " | " \-help
|
||||||
stampa un sommario dei comandi disponibili ed esce. Non viene fatto
|
Stampa un sommario dei comandi disponibili ed esce. Non viene fatto null'altro.
|
||||||
null'altro.
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-i " | " \-include
|
.IR \-i " | " \-include
|
||||||
L'output è nello stile dei file "include" in C. Viene preparata la
|
L'output è un file `include' in C. Viene preparata la definizione completa del
|
||||||
definizione completa di un "array" [vettore], dandogli il nome del
|
vettore (col nome del file di input), tranne quando xxd legga dallo `standard input'.
|
||||||
file di input), tranne che nel caso in cui xxd legga dallo "standard input".
|
|
||||||
.TP
|
.TP
|
||||||
.IR "\-l numero " | " \-len numero"
|
.IR "\-l numero " | " \-len numero"
|
||||||
Il programma esce dopo aver scritto
|
Il programma esce dopo aver scritto
|
||||||
.RI < numero >
|
.RI < numero >
|
||||||
byte.
|
byte.
|
||||||
.TP
|
.TP
|
||||||
|
.I "\-n nome " | " \-name nome"
|
||||||
|
Specifica il nome del vettore in output quando si usa \-i. Il vettore viene chiamato
|
||||||
|
\fInome\fP e la sua lunghezza viene chiamata \fInome\fP_len.
|
||||||
|
.TP
|
||||||
|
.I \-o incremento
|
||||||
|
Aggiunge
|
||||||
|
.RI < incremento >
|
||||||
|
alla posizione visualizzata dei byte del file.
|
||||||
|
.TP
|
||||||
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
||||||
L'output è nello stile di un dump continuo sotto postscript.
|
L'output è nello stile di un dump esadecimale continuo sotto postscript. Noto anche come stile esadecimale semplice.
|
||||||
Noto anche come stile esadecimale semplice [plain].
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-r " | " \-revert
|
.IR \-r " | " \-revert
|
||||||
ricostruzione: converte (o mette una patch) a partire dall'immagine
|
Ricostruisce: converte (o mette una patch) da immagine esadecimale, a file binario.
|
||||||
esadecimale, creando [o modificando] il file binario.
|
Se non scrive sullo `standard output', xxd scrive nel file di output in maniera
|
||||||
Se non diretto allo "standard output", xxd scrive nel suo file di output
|
continua, senza interruzioni. Usare la combinazione
|
||||||
in maniera continua, senza interruzioni. Usare la combinazione
|
|
||||||
.I \-r \-p
|
.I \-r \-p
|
||||||
per leggere dump in stile esadecimale semplice [plain], senza l'informazione
|
per leggere dump in stile esadecimale semplice, senza l'informazione del numero
|
||||||
di numero di linea e senza un particolare tracciato di colonna. Degli spazi
|
di riga e senza un particolare tracciato di colonna. Spazi o righe vuote possono
|
||||||
o delle linee vuote possono essere inserite a piacere [e vengono ignorate].
|
essere presenti [e vengono ignorati].
|
||||||
|
.TP
|
||||||
|
.IR \-R " "[quando]
|
||||||
|
Nell'output i valori esadecimali e i caratteri corrispondenti hanno entrambi lo stesso colore, a seconda del valore esadecimale. Utile soprattutto a distinguere i caratteri stampabili da quello non stampabili.
|
||||||
|
.I quando
|
||||||
|
può assumere i valori
|
||||||
|
.BR never ", " always ", o " auto .
|
||||||
.TP
|
.TP
|
||||||
.I \-seek distanza
|
.I \-seek distanza
|
||||||
Usato con l'opzione
|
Usato con l'opzione
|
||||||
.IR \-r :
|
.IR \-r :
|
||||||
(ricostruzione),
|
(ricostruzione),
|
||||||
.RI < distanza >
|
.RI < distanza >
|
||||||
viene aggiunta alla posizione nel file trovata nella immagine
|
viene aggiunta alla posizione nel file trovata nella immagine esadecimale.
|
||||||
esadecimale.
|
|
||||||
.TP
|
.TP
|
||||||
.I \-s [+][\-]seek
|
.I \-s [+][\-]seek
|
||||||
Inizia a
|
Inizia a
|
||||||
.RI < seek >
|
.RI < seek >
|
||||||
byte assoluti (o relativi) di distanza all'interno di input_file.
|
byte assoluti (o relativi) di distanza all'interno di input_file.
|
||||||
\fI+ \fRindica che il "seek" è relativo alla posizione corrente nel file
|
\fI+ \fRindica che il `seek' è relativo alla posizione corrente nel file `standard input'
|
||||||
"standard input" (non significativa quando non si legge da "standard input").
|
(non significativo quando non si legge da `standard input'). \fI\- \fRindica che il
|
||||||
\fI\- \fRindica che il "seek" dovrebbe posizionarsi ad quel numero di
|
`seek' dovrebbe posizionarsi al numero specificato di caratteri dalla fine dell'input
|
||||||
caratteri dalla fine dell'input (o se in combinazione con
|
(o se in combinazione con \fI+ \fR: prima della posizione corrente nel file `standard input').
|
||||||
\fI+ \fR: prime della posizione corrente nel file "standard input").
|
Se non si specifica l'opzione \-s, xxd inizia dalla posizione corrente all'interno del file.
|
||||||
Se non si specifica una opzione \-s, xxd inizia alla posizione
|
|
||||||
corrente all'interno del file.
|
|
||||||
.TP
|
.TP
|
||||||
.I \-u
|
.I \-u
|
||||||
usa lettere esadecimali maiuscole. Il valore di default è di usare
|
Usa lettere esadecimali maiuscole. Per default si usano lettere minuscole.
|
||||||
lettere minuscole.
|
|
||||||
.TP
|
.TP
|
||||||
.IR \-v " | " \-version
|
.IR \-v " | " \-version
|
||||||
visualizza la stringa contenente la versione del programma.
|
Visualizza la stringa contenente la versione del programma.
|
||||||
.SH ATTENZIONE
|
.SH ATTENZIONE
|
||||||
.PP
|
.PP
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
è capace di operare "magie" nell'utilizzare l'informazione "numero di linea".
|
è capace di operare "magie" nell'utilizzare l'informazione "numero di riga".
|
||||||
Se sul file di output ci si può posizionare usando la "seek", il numero di
|
Se è possibili posizionarsi tramite `seek' sul file di output, il numero di riga
|
||||||
linea all'inizio di ogni riga esadecimale può essere non ordinato, delle
|
di ogni riga esadecimale può essere non ordinato, delle righe possono mancare, o
|
||||||
linee possono mancare delle linee, oppure esserci delle sovrapposizioni.
|
sovrapporsi. In tal caso xxd userà lseek(2) per posizionarsi all'interno del file.
|
||||||
In simili casi xxd userà lseek(2) per raggiungere la posizione d'inizio.
|
Se per il file di output non si può usare `seek', sono permessi solo dei "buchi", che saranno riempiti con zeri binari.
|
||||||
Se il file di output non consente di usare "seek", sono permessi solo dei
|
|
||||||
"buchi", che saranno riempiti con zeri binari.
|
|
||||||
.PP
|
.PP
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
non genera mai errori di specifica parametri. I parametri non riconosciuti
|
non genera mai errori per parametri errati. I parametri extra sono silenziosamente ignorati.
|
||||||
sono silenziosamente ignorati.
|
|
||||||
.PP
|
.PP
|
||||||
Nel modificare immagini esadecimali, tenete conto che
|
Nel modificare immagini esadecimali, si tenga conto che
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
salta il resto della linea, dopo aver letto abbastanza caratteri contenenti
|
salta il resto della riga, dopo aver letto i caratteri contenenti dati esadecimali
|
||||||
dati esadecimali (vedere opzione \-c). Ciò implica pure che le modifiche alle
|
(vedere opzione \-c). Ciò implica pure che le modifiche alle colonne di caratteri
|
||||||
colonne di caratteri stampabili ascii (o ebcdic) sono sempre ignorate.
|
stampabili ASCII (o EBCDIC) sono sempre ignorate. La ricostruzione da un file immagine
|
||||||
La ricostruzione da un file immagine esadecimale in stile semplice
|
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].
|
||||||
(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
|
.PP
|
||||||
Notare la differenza fra
|
Notare la differenza fra
|
||||||
.br
|
.br
|
||||||
@@ -183,53 +191,48 @@ e
|
|||||||
.PP
|
.PP
|
||||||
.I xxd \-s \+seek
|
.I xxd \-s \+seek
|
||||||
può comportarsi in modo diverso da
|
può comportarsi in modo diverso da
|
||||||
.IR "xxd \-s seek"
|
.IR "xxd \-s seek" ,
|
||||||
, perché lseek(2) è usata per tornare indietro nel file di input. Il '+'
|
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
|
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,
|
file di `standard input' non è all'inizio del file quando xxd è eseguito, e riceve input.
|
||||||
con questo input.
|
I seguenti esempi possono contribuire a chiarire il concetto (o ad oscurarlo!)...
|
||||||
I seguenti esempi possono contribuire a chiarire il concetto
|
|
||||||
(o ad oscurarlo!)...
|
|
||||||
.PP
|
.PP
|
||||||
Riavvolge lo "standard input" prima di leggere; necessario perché `cat'
|
Riavvolge lo `standard input' prima di leggere; necessario perché `cat'
|
||||||
ha già letto lo stesso file ["file"] fino alla fine dello "standard input".
|
ha già letto lo stesso file fino alla fine dello `standard input'.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c 'cat > copia_normale; xxd \-s 0 > copia_esadecimale' < file
|
\fI% sh \-c "cat > copia_normale; xxd \-s 0 > copia_esadecimale" < file\fR
|
||||||
.PP
|
.PP
|
||||||
Stampa immagine esadecimale dalla posizione file 0x480 (=1024+128) in poi.
|
Stampa immagine esadecimale dalla posizione file 0x480 (=1024+128) in poi.
|
||||||
Il segno `+' vuol dire "rispetto alla posizione corrente", quindi il `128'
|
Il segno `+' vuol dire "rispetto alla posizione corrente", quindi il `128'
|
||||||
si aggiunge a 1k (1024) dove `dd' si era fermato.
|
si aggiunge a 1k (1024) dove `dd' si era fermato.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +128 > esadecimale' < file
|
\fI% sh \-c "dd of=normale bs=1k count=1; xxd \-s +128 > esadecimale" < file\fR
|
||||||
.PP
|
.PP
|
||||||
Immagine esadecimale dalla posizione 0x100 ( = 1024\-768 ) del file in avanti.
|
Immagine esadecimale dalla posizione 0x100 (=1024\-768 ) del file in avanti.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +\-768 > esadecimale' < file
|
\fI% sh \-c "dd of=normale bs=1k count=1; xxd \-s +\-768 > esadecimale" < file
|
||||||
.PP
|
.PP
|
||||||
Comunque, questo capita raramente, e l'uso del `+' non serve quasi mai.
|
Comunque, questo capita raramente, e l'uso del `+' non serve quasi mai.
|
||||||
L'autore preferisce monitorare il comportamento di xxd con strace(1) o
|
L'autore preferisce monitorare il comportamento di xxd con strace(1) o truss(1), quando si usa l'opzione \-s.
|
||||||
truss(1), quando si usa l'opzione \-s.
|
|
||||||
.SH ESEMPI
|
.SH ESEMPI
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa tutto tranne le prime tre linee (0x30 byte esadecimali) di
|
Stampa tutto tranne le prime tre righe (0x30 byte in esadecimale) di
|
||||||
.B file
|
.BR file
|
||||||
\.
|
\.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-s 0x30 file
|
\fI% xxd \-s 0x30 file\fR
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa 3 linee (0x30 byte esadecimali) alla fine di
|
Stampa 3 righe (0x30 byte in esadecimale) alla fine di
|
||||||
.B file
|
.BR file .
|
||||||
\.
|
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-s \-0x30 file
|
\fI% xxd \-s \-0x30 file
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa 120 byte come immagine esadecimale continua con 20 byte per linea.
|
Stampa 120 byte come immagine esadecimale continua con 20 byte per riga.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR
|
\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR
|
||||||
|
|
||||||
.br
|
.br
|
||||||
2e54482058584420312022417567757374203139
|
2e54482058584420312022417567757374203139
|
||||||
.br
|
.br
|
||||||
@@ -245,11 +248,9 @@ Stampa 120 byte come immagine esadecimale continua con 20 byte per linea.
|
|||||||
.br
|
.br
|
||||||
|
|
||||||
.br
|
.br
|
||||||
Stampa i primi 120 byte della pagina di manuale vim.1 a 12 byte per linea.
|
Stampa i primi 120 byte della pagina di manuale xxd.1 a 12 byte per riga.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-l 120 \-c 12 xxd.1\fR
|
\fI% xxd \-l 120 \-c 12 xxd.1\fR
|
||||||
|
|
||||||
|
|
||||||
.br
|
.br
|
||||||
0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A
|
0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A
|
||||||
.br
|
.br
|
||||||
@@ -285,13 +286,13 @@ su
|
|||||||
.B output_file
|
.B output_file
|
||||||
premettendogli 100 byte a 0x00.
|
premettendogli 100 byte a 0x00.
|
||||||
.br
|
.br
|
||||||
\fI% xxd input_file | xxd \-r \-s 100 \> output_file\fR
|
\fI% xxd input_file | xxd \-r \-s 100 > output_file\fR
|
||||||
.br
|
.br
|
||||||
|
|
||||||
.br
|
.br
|
||||||
Modificare (patch) la data nel file xxd.1
|
Modificare (patch) la data nel file xxd.1
|
||||||
.br
|
.br
|
||||||
\fI% echo '0000037: 3574 68' | xxd \-r \- xxd.1\fR
|
\fI% echo "0000037: 3574 68" | xxd \-r \- xxd.1\fR
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR
|
\fI% xxd \-s 0x36 \-l 13 \-c 13 xxd.1\fR
|
||||||
.br
|
.br
|
||||||
@@ -299,9 +300,9 @@ Modificare (patch) la data nel file xxd.1
|
|||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Creare un file di 65537 byte tutto a 0x00,
|
Creare un file di 65537 byte tutto a 0x00,
|
||||||
tranne che l'ultimo carattere che è una 'A' (esadecimale 0x41).
|
tranne l'ultimo carattere che è una 'A' (esadecimale 0x41).
|
||||||
.br
|
.br
|
||||||
\fI% echo '010000: 41' | xxd \-r \> file\fR
|
\fI% echo "010000: 41" | xxd \-r > file\fR
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Stampa una immagine esadecimale del file di cui sopra con opzione autoskip.
|
Stampa una immagine esadecimale del file di cui sopra con opzione autoskip.
|
||||||
@@ -314,34 +315,31 @@ Stampa una immagine esadecimale del file di cui sopra con opzione autoskip.
|
|||||||
.br
|
.br
|
||||||
000fffc: 0000 0000 40 ....A
|
000fffc: 0000 0000 40 ....A
|
||||||
.PP
|
.PP
|
||||||
Crea un file di 1 byte che contiene il solo carattere 'A'.
|
Creare un file di 1 byte che contiene il solo carattere 'A'.
|
||||||
Il numero dopo '\-r \-s' viene aggiunto a quello trovato nel file;
|
Il numero dopo '\-r \-s' viene aggiunto a quello trovato nel file;
|
||||||
in pratica, i byte precedenti non sono stampati.
|
in pratica, i byte precedenti non sono stampati.
|
||||||
.br
|
.br
|
||||||
\fI% echo '010000: 41' | xxd \-r \-s \-0x10000 \> file\fR
|
\fI% echo "010000: 41" | xxd \-r \-s \-0x10000 > file\fR
|
||||||
.PP
|
.PP
|
||||||
Usa xxd come filtro all'interno di un editor come
|
Usare xxd come filtro all'interno di un editor come
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
per ottenere una immagine esadecimale di una parte di file
|
per ottenere l'immagine esadecimale della parte di file fra i marcatori `a' e `z'.
|
||||||
delimitata dai marcatori `a' e `z'.
|
|
||||||
.br
|
.br
|
||||||
\fI:'a,'z!xxd\fR
|
\fI:'a,'z!xxd\fR
|
||||||
.PP
|
.PP
|
||||||
Usare xxd come filtro all'interno di un editor come
|
Usare xxd come filtro all'interno di un editor come
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
per ricostruire un pezzo di file binario da una immagine esadecimale
|
per ricostruire un pezzo di file binario da un'immagine esadecimale fra i marcatori `a' e `z'.
|
||||||
delimitata dai marcatori `a' e `z'.
|
|
||||||
.br
|
.br
|
||||||
\fI:'a,'z!xxd \-r\fR
|
\fI:'a,'z!xxd \-r\fR
|
||||||
.PP
|
.PP
|
||||||
Usare xxd come filtro all'interno di un editor come
|
Usare xxd come filtro all'interno di un editor come
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
per ricostruire una sola linea di file binario da una immagine esadecimale,
|
per ricostruire una sola riga di file binario da un'immagine esadecimale. Portare il cursore sopra la riga e battere:
|
||||||
Portare il cursore sopra la linea e battere:
|
|
||||||
.br
|
.br
|
||||||
\fI!!xxd \-r\fR
|
\fI!!xxd \-r\fR
|
||||||
.PP
|
.PP
|
||||||
Per leggere singoli caratteri da una linea seriale
|
Leggere singoli caratteri da una linea seriale
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-c1 < /dev/term/b &\fR
|
\fI% xxd \-c1 < /dev/term/b &\fR
|
||||||
.br
|
.br
|
||||||
@@ -356,7 +354,8 @@ Il programma può restituire questi codici di errore:
|
|||||||
nessun errore rilevato.
|
nessun errore rilevato.
|
||||||
.TP
|
.TP
|
||||||
\-1
|
\-1
|
||||||
operazione non supportata (
|
operazione non supportata
|
||||||
|
\%(\c
|
||||||
.I xxd \-r \-i
|
.I xxd \-r \-i
|
||||||
non ancora possible).
|
non ancora possible).
|
||||||
.TP
|
.TP
|
||||||
@@ -370,14 +369,13 @@ problemi con il file di input.
|
|||||||
problemi con il file di output.
|
problemi con il file di output.
|
||||||
.TP
|
.TP
|
||||||
4,5
|
4,5
|
||||||
posizione "seek" specificata non raggiungibile all'interno del file.
|
posizione `seek' specificata non raggiungibile all'interno del file.
|
||||||
.SH VEDERE ANCHE
|
.SH VEDERE ANCHE
|
||||||
uuencode(1), uudecode(1), patch(1)
|
uuencode(1), uudecode(1), patch(1)
|
||||||
.br
|
.br
|
||||||
.SH AVVERTIMENTI
|
.SH AVVERTIMENTI
|
||||||
La stranezza dello strumento rispecchia la mente del suo creatore.
|
La stranezza dello strumento rispecchia la mente del suo creatore.
|
||||||
Usate a vostro rischio e pericolo. Copiate i file. Tracciate l'esecuzione.
|
Usate a vostro rischio e pericolo. Copiate i file. Tracciate l'esecuzione. Diventate un mago.
|
||||||
Diventate un mago.
|
|
||||||
.br
|
.br
|
||||||
.SH VERSIONE
|
.SH VERSIONE
|
||||||
Questa pagina di manuale documenta la versione 1.7 di xxd.
|
Questa pagina di manuale documenta la versione 1.7 di xxd.
|
||||||
@@ -393,7 +391,7 @@ fate soldi e condivideteli con me
|
|||||||
.br
|
.br
|
||||||
perdete soldi e non venite a chiederli a me.
|
perdete soldi e non venite a chiederli a me.
|
||||||
.PP
|
.PP
|
||||||
Pagina di manuale messa in piedi da Tony Nugent
|
Pagina di manuale iniziata da Tony Nugent
|
||||||
.br
|
.br
|
||||||
<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au>
|
<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au>
|
||||||
.br
|
.br
|
||||||
|
|||||||
+41
-34
@@ -6,7 +6,7 @@
|
|||||||
.\" Changes by Bram Moolenaar <Bram@vim.org>
|
.\" Changes by Bram Moolenaar <Bram@vim.org>
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.I xxd
|
.I xxd
|
||||||
\- make a hexdump or do the reverse.
|
\- make a hex dump or do the reverse.
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B xxd
|
.B xxd
|
||||||
\-h[elp]
|
\-h[elp]
|
||||||
@@ -57,20 +57,20 @@ are all equivalent.
|
|||||||
.PP
|
.PP
|
||||||
.TP
|
.TP
|
||||||
.IR \-a " | " \-autoskip
|
.IR \-a " | " \-autoskip
|
||||||
Toggle autoskip: A single '*' replaces nul-lines. Default off.
|
Toggle autoskip: A single '*' replaces NUL-lines. Default off.
|
||||||
.TP
|
.TP
|
||||||
.IR \-b " | " \-bits
|
.IR \-b " | " \-bits
|
||||||
Switch to bits (binary digits) dump, rather than hexdump.
|
Switch to bits (binary digits) dump, rather than hex dump.
|
||||||
This option writes octets as eight digits "1"s and "0"s instead of a normal
|
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
|
hexadecimal dump. Each line is preceded by a line number in hexadecimal and
|
||||||
followed by an ascii (or ebcdic) representation. The command line switches
|
followed by an ASCII (or EBCDIC) representation. The command line switches
|
||||||
\-r, \-p, \-i do not work with this mode.
|
\-r, \-p, \-i do not work with this mode.
|
||||||
.TP
|
.TP
|
||||||
.IR "\-c cols " | " \-cols cols"
|
.IR "\-c cols " | " \-cols cols"
|
||||||
Format
|
Format
|
||||||
.RI < cols >
|
.RI < cols >
|
||||||
octets per line. Default 16 (\-i: 12, \-ps: 30, \-b: 6). Max 256.
|
octets per line. Default 16 (\-i: 12, \-ps: 30, \-b: 6). Max 256.
|
||||||
No maxmimum for \-ps. With \-ps, 0 results in one long line of output.
|
No maximum for \-ps. With \-ps, 0 results in one long line of output.
|
||||||
.TP
|
.TP
|
||||||
.IR \-C " | " \-capitalize
|
.IR \-C " | " \-capitalize
|
||||||
Capitalize variable names in C include file style, when using \-i.
|
Capitalize variable names in C include file style, when using \-i.
|
||||||
@@ -81,11 +81,11 @@ This does not change the hexadecimal representation. The option is
|
|||||||
meaningless in combinations with \-r, \-p or \-i.
|
meaningless in combinations with \-r, \-p or \-i.
|
||||||
.TP
|
.TP
|
||||||
.IR \-e
|
.IR \-e
|
||||||
Switch to little-endian hexdump.
|
Switch to little-endian hex dump.
|
||||||
This option treats byte groups as words in little-endian byte order.
|
This option treats byte groups as words in little-endian byte order.
|
||||||
The default grouping of 4 bytes may be changed using
|
The default grouping of 4 bytes may be changed using
|
||||||
.RI "" \-g .
|
.RI "" \-g .
|
||||||
This option only applies to hexdump, leaving the ASCII (or EBCDIC)
|
This option only applies to the hex dump, leaving the ASCII (or EBCDIC)
|
||||||
representation unchanged.
|
representation unchanged.
|
||||||
The command line switches
|
The command line switches
|
||||||
\-r, \-p, \-i do not work with this mode.
|
\-r, \-p, \-i do not work with this mode.
|
||||||
@@ -93,13 +93,13 @@ The command line switches
|
|||||||
.IR "\-g bytes " | " \-groupsize bytes"
|
.IR "\-g bytes " | " \-groupsize bytes"
|
||||||
Separate the output of every
|
Separate the output of every
|
||||||
.RI < bytes >
|
.RI < bytes >
|
||||||
bytes (two hex characters or eight bit-digits each) by a whitespace.
|
bytes (two hex characters or eight bit digits each) by a whitespace.
|
||||||
Specify
|
Specify
|
||||||
.I \-g 0
|
.I \-g 0
|
||||||
to suppress grouping.
|
to suppress grouping.
|
||||||
.RI < Bytes "> defaults to " 2
|
.RI < Bytes "> defaults to " 2
|
||||||
in normal mode, \fI4\fP in little-endian mode and \fI1\fP in bits mode.
|
in normal mode, \fI4\fP in little-endian mode and \fI1\fP in bits mode.
|
||||||
Grouping does not apply to postscript or include style.
|
Grouping does not apply to PostScript or include style.
|
||||||
.TP
|
.TP
|
||||||
.IR \-h " | " \-help
|
.IR \-h " | " \-help
|
||||||
Print a summary of available commands and exit. No hex dumping is performed.
|
Print a summary of available commands and exit. No hex dumping is performed.
|
||||||
@@ -123,24 +123,30 @@ Add
|
|||||||
to the displayed file position.
|
to the displayed file position.
|
||||||
.TP
|
.TP
|
||||||
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
||||||
Output in postscript continuous hexdump style. Also known as plain hexdump
|
Output in PostScript continuous hex dump style. Also known as plain hex dump
|
||||||
style.
|
style.
|
||||||
.TP
|
.TP
|
||||||
.IR \-r " | " \-revert
|
.IR \-r " | " \-revert
|
||||||
Reverse operation: convert (or patch) hexdump into binary.
|
Reverse operation: convert (or patch) hex dump into binary.
|
||||||
If not writing to stdout, xxd writes into its output file without truncating
|
If not writing to stdout, xxd writes into its output file without truncating
|
||||||
it. Use the combination
|
it. Use the combination
|
||||||
.I \-r \-p
|
.I \-r \-p
|
||||||
to read plain hexadecimal dumps without line number information and without a
|
to read plain hexadecimal dumps without line number information and without a
|
||||||
particular column layout. Additional Whitespace and line-breaks are allowed
|
particular column layout. Additional whitespace and line breaks are allowed
|
||||||
anywhere.
|
anywhere.
|
||||||
.TP
|
.TP
|
||||||
|
.IR \-R " " when
|
||||||
|
In output the hex-value and the value are both colored with the same color depending on the hex-value. Mostly helping to differentiate printable and non-printable characters.
|
||||||
|
.I \fIwhen\fP
|
||||||
|
is
|
||||||
|
.BR never ", " always ", or " auto .
|
||||||
|
.TP
|
||||||
.I \-seek offset
|
.I \-seek offset
|
||||||
When used after
|
When used after
|
||||||
.IR \-r :
|
.IR \-r :
|
||||||
revert with
|
revert with
|
||||||
.RI < offset >
|
.RI < offset >
|
||||||
added to file positions found in hexdump.
|
added to file positions found in hex dump.
|
||||||
.TP
|
.TP
|
||||||
.I \-s [+][\-]seek
|
.I \-s [+][\-]seek
|
||||||
Start at
|
Start at
|
||||||
@@ -153,28 +159,28 @@ should be that many characters from the end of the input (or if combined with
|
|||||||
Without \-s option, xxd starts at the current file position.
|
Without \-s option, xxd starts at the current file position.
|
||||||
.TP
|
.TP
|
||||||
.I \-u
|
.I \-u
|
||||||
Use upper case hex letters. Default is lower case.
|
Use upper-case hex letters. Default is lower-case.
|
||||||
.TP
|
.TP
|
||||||
.IR \-v " | " \-version
|
.IR \-v " | " \-version
|
||||||
Show version string.
|
Show version string.
|
||||||
.SH CAVEATS
|
.SH CAVEATS
|
||||||
.PP
|
.PP
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
has some builtin magic while evaluating line number information.
|
has some built-in magic while evaluating line number information.
|
||||||
If the output file is seekable, then the linenumbers at the start of each
|
If the output file is seekable, then the line numbers at the start of each
|
||||||
hexdump line may be out of order, lines may be missing, or overlapping. In
|
hex dump line may be out of order, lines may be missing, or overlapping. In
|
||||||
these cases xxd will lseek(2) to the next position. If the output file is not
|
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.
|
seekable, only gaps are allowed, which will be filled by null-bytes.
|
||||||
.PP
|
.PP
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
never generates parse errors. Garbage is silently skipped.
|
never generates parse errors. Garbage is silently skipped.
|
||||||
.PP
|
.PP
|
||||||
When editing hexdumps, please note that
|
When editing hex dumps, please note that
|
||||||
.I xxd \-r
|
.I xxd \-r
|
||||||
skips everything on the input line after reading enough columns of hexadecimal
|
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
|
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
|
EBCDIC) columns are always ignored. Reverting a plain (or PostScript) style
|
||||||
hexdump with xxd \-r \-p does not depend on the correct number of columns. Here anything that looks like a pair of hex-digits is interpreted.
|
hex dump with xxd \-r \-p does not depend on the correct number of columns. Here, anything that looks like a pair of hex digits is interpreted.
|
||||||
.PP
|
.PP
|
||||||
Note the difference between
|
Note the difference between
|
||||||
.br
|
.br
|
||||||
@@ -190,20 +196,20 @@ may be different from
|
|||||||
as lseek(2) is used to "rewind" input. A '+'
|
as lseek(2) is used to "rewind" input. A '+'
|
||||||
makes a difference if the input source is stdin, and if stdin's file position
|
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.
|
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!)...
|
The following examples may help to clarify (or further confuse!):
|
||||||
.PP
|
.PP
|
||||||
Rewind stdin before reading; needed because the `cat' has already read to the
|
Rewind stdin before reading; needed because the `cat' has already read to the
|
||||||
end of stdin.
|
end of stdin.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c "cat > plain_copy; xxd \-s 0 > hex_copy" < file\fR
|
\fI% sh \-c "cat > plain_copy; xxd \-s 0 > hex_copy" < file\fR
|
||||||
.PP
|
.PP
|
||||||
Hexdump from file position 0x480 (=1024+128) onwards.
|
Hex dump from file position 0x480 (=1024+128) onwards.
|
||||||
The `+' sign means "relative to the current position", thus the `128' adds to
|
The `+' sign means "relative to the current position", thus the `128' adds to
|
||||||
the 1k where dd left off.
|
the 1k where dd left off.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c "dd of=plain_snippet bs=1k count=1; xxd \-s +128 > hex_snippet" < file\fR
|
\fI% sh \-c "dd of=plain_snippet bs=1k count=1; xxd \-s +128 > hex_snippet" < file\fR
|
||||||
.PP
|
.PP
|
||||||
Hexdump from file position 0x100 ( = 1024\-768) on.
|
Hex dump from file position 0x100 (=1024\-768) onwards.
|
||||||
.br
|
.br
|
||||||
\fI% sh \-c "dd of=plain_snippet bs=1k count=1; xxd \-s +\-768 > hex_snippet" < file\fR
|
\fI% sh \-c "dd of=plain_snippet bs=1k count=1; xxd \-s +\-768 > hex_snippet" < file\fR
|
||||||
.PP
|
.PP
|
||||||
@@ -224,7 +230,7 @@ Print 3 lines (hex 0x30 bytes) from the end of
|
|||||||
\fI% xxd \-s \-0x30 file\fR
|
\fI% xxd \-s \-0x30 file\fR
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Print 120 bytes as continuous hexdump with 20 octets per line.
|
Print 120 bytes as a continuous hex dump with 20 octets per line.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR
|
\fI% xxd \-l 120 \-ps \-c 20 xxd.1\fR
|
||||||
.br
|
.br
|
||||||
@@ -242,7 +248,7 @@ Print 120 bytes as continuous hexdump with 20 octets per line.
|
|||||||
.br
|
.br
|
||||||
|
|
||||||
.br
|
.br
|
||||||
Hexdump the first 120 bytes of this man page with 12 octets per line.
|
Hex dump the first 120 bytes of this man page with 12 octets per line.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-l 120 \-c 12 xxd.1\fR
|
\fI% xxd \-l 120 \-c 12 xxd.1\fR
|
||||||
.br
|
.br
|
||||||
@@ -299,7 +305,7 @@ except for the last one which is 'A' (hex 0x41).
|
|||||||
\fI% echo "010000: 41" | xxd \-r > file\fR
|
\fI% echo "010000: 41" | xxd \-r > file\fR
|
||||||
.PP
|
.PP
|
||||||
.br
|
.br
|
||||||
Hexdump this file with autoskip.
|
Hex dump this file with autoskip.
|
||||||
.br
|
.br
|
||||||
\fI% xxd \-a \-c 12 file\fR
|
\fI% xxd \-a \-c 12 file\fR
|
||||||
.br
|
.br
|
||||||
@@ -310,26 +316,26 @@ Hexdump this file with autoskip.
|
|||||||
000fffc: 0000 0000 40 ....A
|
000fffc: 0000 0000 40 ....A
|
||||||
.PP
|
.PP
|
||||||
Create a 1 byte file containing a single 'A' character.
|
Create a 1 byte file containing a single 'A' character.
|
||||||
The number after '\-r \-s' adds to the linenumbers found in the file;
|
The number after '\-r \-s' adds to the line numbers found in the file;
|
||||||
in effect, the leading bytes are suppressed.
|
in effect, the leading bytes are suppressed.
|
||||||
.br
|
.br
|
||||||
\fI% echo "010000: 41" | xxd \-r \-s \-0x10000 > file\fR
|
\fI% echo "010000: 41" | xxd \-r \-s \-0x10000 > file\fR
|
||||||
.PP
|
.PP
|
||||||
Use xxd as a filter within an editor such as
|
Use xxd as a filter within an editor such as
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
to hexdump a region marked between `a' and `z'.
|
to hex dump a region marked between `a' and `z'.
|
||||||
.br
|
.br
|
||||||
\fI:'a,'z!xxd\fR
|
\fI:'a,'z!xxd\fR
|
||||||
.PP
|
.PP
|
||||||
Use xxd as a filter within an editor such as
|
Use xxd as a filter within an editor such as
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
to recover a binary hexdump marked between `a' and `z'.
|
to recover a binary hex dump marked between `a' and `z'.
|
||||||
.br
|
.br
|
||||||
\fI:'a,'z!xxd \-r\fR
|
\fI:'a,'z!xxd \-r\fR
|
||||||
.PP
|
.PP
|
||||||
Use xxd as a filter within an editor such as
|
Use xxd as a filter within an editor such as
|
||||||
.B vim(1)
|
.B vim(1)
|
||||||
to recover one line of a hexdump. Move the cursor over the line and type:
|
to recover one line of a hex dump. Move the cursor over the line and type:
|
||||||
.br
|
.br
|
||||||
\fI!!xxd \-r\fR
|
\fI!!xxd \-r\fR
|
||||||
.PP
|
.PP
|
||||||
@@ -348,8 +354,9 @@ The following error values are returned:
|
|||||||
no errors encountered.
|
no errors encountered.
|
||||||
.TP
|
.TP
|
||||||
\-1
|
\-1
|
||||||
operation not supported (
|
operation not supported
|
||||||
.I xxd \-r \-i
|
\%(\c
|
||||||
|
.I \%xxd \-r \-i
|
||||||
still impossible).
|
still impossible).
|
||||||
.TP
|
.TP
|
||||||
1
|
1
|
||||||
@@ -367,7 +374,7 @@ desired seek position is unreachable.
|
|||||||
uuencode(1), uudecode(1), patch(1)
|
uuencode(1), uudecode(1), patch(1)
|
||||||
.br
|
.br
|
||||||
.SH WARNINGS
|
.SH WARNINGS
|
||||||
The tools weirdness matches its creators brain.
|
The tool's weirdness matches its creator's brain.
|
||||||
Use entirely at your own risk. Copy files. Trace it. Become a wizard.
|
Use entirely at your own risk. Copy files. Trace it. Become a wizard.
|
||||||
.br
|
.br
|
||||||
.SH VERSION
|
.SH VERSION
|
||||||
|
|||||||
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
" Vim script for Evim key bindings
|
" Vim script for Evim key bindings
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2022 May 10
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Don't use Vi-compatible mode.
|
" Don't use Vi-compatible mode.
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
|||||||
+71
-13
@@ -1,7 +1,8 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2023 Jun 09
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
if exists("did_load_filetypes")
|
if exists("did_load_filetypes")
|
||||||
@@ -208,9 +209,6 @@ au BufNewFile,BufRead *.bi,*.bm call dist#ft#FTbas()
|
|||||||
" Bass
|
" Bass
|
||||||
au BufNewFile,BufRead *.bass setf bass
|
au BufNewFile,BufRead *.bass setf bass
|
||||||
|
|
||||||
" Visual Basic Script (close to Visual Basic) or Visual Basic .NET
|
|
||||||
au BufNewFile,BufRead *.vb,*.vbs,*.dsm,*.ctl setf vb
|
|
||||||
|
|
||||||
" IBasic file (similar to QBasic)
|
" IBasic file (similar to QBasic)
|
||||||
au BufNewFile,BufRead *.iba,*.ibi setf ibasic
|
au BufNewFile,BufRead *.iba,*.ibi setf ibasic
|
||||||
|
|
||||||
@@ -244,7 +242,7 @@ au BufNewFile,BufRead *.bib setf bib
|
|||||||
au BufNewFile,BufRead *.bst setf bst
|
au BufNewFile,BufRead *.bst setf bst
|
||||||
|
|
||||||
" Bicep
|
" Bicep
|
||||||
au BufNewFile,BufRead *.bicep setf bicep
|
au BufNewFile,BufRead *.bicep,*.bicepparam setf bicep
|
||||||
|
|
||||||
" BIND configuration
|
" BIND configuration
|
||||||
" sudoedit uses namedXXXX.conf
|
" sudoedit uses namedXXXX.conf
|
||||||
@@ -254,6 +252,9 @@ au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named
|
|||||||
au BufNewFile,BufRead named.root setf bindzone
|
au BufNewFile,BufRead named.root setf bindzone
|
||||||
au BufNewFile,BufRead *.db call dist#ft#BindzoneCheck('')
|
au BufNewFile,BufRead *.db call dist#ft#BindzoneCheck('')
|
||||||
|
|
||||||
|
" Blade
|
||||||
|
au BufNewFile,BufRead *.blade.php setf blade
|
||||||
|
|
||||||
" Blank
|
" Blank
|
||||||
au BufNewFile,BufRead *.bl setf blank
|
au BufNewFile,BufRead *.bl setf blank
|
||||||
|
|
||||||
@@ -720,16 +721,19 @@ au BufNewFile,BufRead auto.master setf conf
|
|||||||
au BufNewFile,BufRead *.mas,*.master setf master
|
au BufNewFile,BufRead *.mas,*.master setf master
|
||||||
|
|
||||||
" Forth
|
" Forth
|
||||||
au BufNewFile,BufRead *.ft,*.fth setf forth
|
au BufNewFile,BufRead *.ft,*.fth,*.4th setf forth
|
||||||
|
|
||||||
" Reva Forth
|
" Reva Forth
|
||||||
au BufNewFile,BufRead *.frt setf reva
|
au BufNewFile,BufRead *.frt setf reva
|
||||||
|
|
||||||
" Fortran
|
" Fortran
|
||||||
if has("fname_case")
|
if has("fname_case")
|
||||||
au BufNewFile,BufRead *.F,*.FOR,*.FPP,*.FTN,*.F77,*.F90,*.F95,*.F03,*.F08 setf fortran
|
au BufNewFile,BufRead *.F,*.FOR,*.FPP,*.FTN,*.F77,*.F90,*.F95,*.F03,*.F08 setf fortran
|
||||||
endif
|
endif
|
||||||
au BufNewFile,BufRead *.f,*.for,*.fortran,*.fpp,*.ftn,*.f77,*.f90,*.f95,*.f03,*.f08 setf fortran
|
au BufNewFile,BufRead *.for,*.fortran,*.fpp,*.ftn,*.f77,*.f90,*.f95,*.f03,*.f08 setf fortran
|
||||||
|
|
||||||
|
" Fortran or Forth
|
||||||
|
au BufNewFile,BufRead *.f call dist#ft#FTf()
|
||||||
|
|
||||||
" Framescript
|
" Framescript
|
||||||
au BufNewFile,BufRead *.fsl setf framescript
|
au BufNewFile,BufRead *.fsl setf framescript
|
||||||
@@ -891,6 +895,7 @@ if exists('$XDG_CONFIG_HOME')
|
|||||||
endif
|
endif
|
||||||
au BufNewFile,BufRead $HOME/.config/cabal/config setf cabalconfig
|
au BufNewFile,BufRead $HOME/.config/cabal/config setf cabalconfig
|
||||||
au BufNewFile,BufRead cabal.config setf cabalconfig
|
au BufNewFile,BufRead cabal.config setf cabalconfig
|
||||||
|
au BufNewFile,BufRead *.persistentmodels setf haskellpersistent
|
||||||
|
|
||||||
" Haste
|
" Haste
|
||||||
au BufNewFile,BufRead *.ht setf haste
|
au BufNewFile,BufRead *.ht setf haste
|
||||||
@@ -945,6 +950,9 @@ au BufNewFile,BufRead */etc/host.conf setf hostconf
|
|||||||
" Hosts access
|
" Hosts access
|
||||||
au BufNewFile,BufRead */etc/hosts.allow,*/etc/hosts.deny setf hostsaccess
|
au BufNewFile,BufRead */etc/hosts.allow,*/etc/hosts.deny setf hostsaccess
|
||||||
|
|
||||||
|
" Hurl
|
||||||
|
au BufRead,BufNewFile *.hurl setf hurl
|
||||||
|
|
||||||
" Hyper Builder
|
" Hyper Builder
|
||||||
au BufNewFile,BufRead *.hb setf hb
|
au BufNewFile,BufRead *.hb setf hb
|
||||||
|
|
||||||
@@ -1057,6 +1065,9 @@ au BufNewFile,BufRead *.json5 setf json5
|
|||||||
" JSON Patch (RFC 6902)
|
" JSON Patch (RFC 6902)
|
||||||
au BufNewFile,BufRead *.json-patch setf json
|
au BufNewFile,BufRead *.json-patch setf json
|
||||||
|
|
||||||
|
" Geojson is also json
|
||||||
|
au BufNewFile,BufRead *.geojson setf json
|
||||||
|
|
||||||
" Jupyter Notebook is also json
|
" Jupyter Notebook is also json
|
||||||
au BufNewFile,BufRead *.ipynb setf json
|
au BufNewFile,BufRead *.ipynb setf json
|
||||||
|
|
||||||
@@ -1357,6 +1368,10 @@ au BufNewFile,BufRead *.rc,*.rch
|
|||||||
\ setf rc |
|
\ setf rc |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
|
" Mojo
|
||||||
|
" Mojo files use either .mojo or .🔥 as extension
|
||||||
|
au BufNewFile,BufRead *.mojo,*.🔥 setf mojo
|
||||||
|
|
||||||
" MuPAD source
|
" MuPAD source
|
||||||
au BufRead,BufNewFile *.mu setf mupad
|
au BufRead,BufNewFile *.mu setf mupad
|
||||||
|
|
||||||
@@ -1396,6 +1411,9 @@ au BufNewFile,BufRead *.ninja setf ninja
|
|||||||
" Nix
|
" Nix
|
||||||
au BufRead,BufNewFile *.nix setf nix
|
au BufRead,BufNewFile *.nix setf nix
|
||||||
|
|
||||||
|
" Norg
|
||||||
|
au BufNewFile,BufRead *.norg setf norg
|
||||||
|
|
||||||
" NPM RC file
|
" NPM RC file
|
||||||
au BufNewFile,BufRead npmrc,.npmrc setf dosini
|
au BufNewFile,BufRead npmrc,.npmrc setf dosini
|
||||||
|
|
||||||
@@ -1558,6 +1576,10 @@ au BufNewFile,BufRead *.rcp setf pilrc
|
|||||||
" Pine config
|
" Pine config
|
||||||
au BufNewFile,BufRead .pinerc,pinerc,.pinercex,pinercex setf pine
|
au BufNewFile,BufRead .pinerc,pinerc,.pinercex,pinercex setf pine
|
||||||
|
|
||||||
|
" Pip requirements
|
||||||
|
au BufNewFile,BufRead *.pip setf requirements
|
||||||
|
au BufNewFile,BufRead requirements.txt setf requirements
|
||||||
|
|
||||||
" Pipenv Pipfiles
|
" Pipenv Pipfiles
|
||||||
au BufNewFile,BufRead Pipfile setf toml
|
au BufNewFile,BufRead Pipfile setf toml
|
||||||
au BufNewFile,BufRead Pipfile.lock setf json
|
au BufNewFile,BufRead Pipfile.lock setf json
|
||||||
@@ -1676,6 +1698,9 @@ au BufNewFile,BufRead *.pk setf poke
|
|||||||
" Protocols
|
" Protocols
|
||||||
au BufNewFile,BufRead */etc/protocols setf protocols
|
au BufNewFile,BufRead */etc/protocols setf protocols
|
||||||
|
|
||||||
|
" PyPA manifest files
|
||||||
|
au BufNewFile,BufRead MANIFEST.in setf pymanifest
|
||||||
|
|
||||||
" Pyret
|
" Pyret
|
||||||
au BufNewFile,BufRead *.arr setf pyret
|
au BufNewFile,BufRead *.arr setf pyret
|
||||||
|
|
||||||
@@ -1690,6 +1715,9 @@ au BufNewFile,BufRead *.ptl,*.pyi,SConstruct setf python
|
|||||||
" QL
|
" QL
|
||||||
au BufRead,BufNewFile *.ql,*.qll setf ql
|
au BufRead,BufNewFile *.ql,*.qll setf ql
|
||||||
|
|
||||||
|
" QML
|
||||||
|
au BufRead,BufNewFile *.qml,*.qbs setf qml
|
||||||
|
|
||||||
" QMLdir
|
" QMLdir
|
||||||
au BufRead,BufNewFile qmldir setf qmldir
|
au BufRead,BufNewFile qmldir setf qmldir
|
||||||
|
|
||||||
@@ -2314,6 +2342,9 @@ au BufNewFile,BufRead */.config/upstart/*.override setf upstart
|
|||||||
" URL shortcut
|
" URL shortcut
|
||||||
au BufNewFile,BufRead *.url setf urlshortcut
|
au BufNewFile,BufRead *.url setf urlshortcut
|
||||||
|
|
||||||
|
" V
|
||||||
|
au BufNewFile,BufRead *.vsh,*.vv setf v
|
||||||
|
|
||||||
" Vala
|
" Vala
|
||||||
au BufNewFile,BufRead *.vala setf vala
|
au BufNewFile,BufRead *.vala setf vala
|
||||||
|
|
||||||
@@ -2349,7 +2380,7 @@ au BufNewFile,BufRead *.tape setf vhs
|
|||||||
au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst,*.vho setf vhdl
|
au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst,*.vho setf vhdl
|
||||||
|
|
||||||
" Vim script
|
" Vim script
|
||||||
au BufNewFile,BufRead *.vim,*.vba,.exrc,_exrc setf vim
|
au BufNewFile,BufRead *.vim,.exrc,_exrc setf vim
|
||||||
|
|
||||||
" Viminfo file
|
" Viminfo file
|
||||||
au BufNewFile,BufRead .viminfo,_viminfo setf viminfo
|
au BufNewFile,BufRead .viminfo,_viminfo setf viminfo
|
||||||
@@ -2362,10 +2393,31 @@ au BufRead,BufNewFile *.hw,*.module,*.pkg
|
|||||||
\ setf virata |
|
\ setf virata |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
" Visual Basic (also uses *.bas) or FORM
|
" Visual Basic (see also *.bas *.cls)
|
||||||
|
|
||||||
|
" Visual Basic or FORM
|
||||||
au BufNewFile,BufRead *.frm call dist#ft#FTfrm()
|
au BufNewFile,BufRead *.frm call dist#ft#FTfrm()
|
||||||
|
|
||||||
" SaxBasic is close to Visual Basic
|
" Visual Basic
|
||||||
|
" user control, ActiveX document form, active designer, property page
|
||||||
|
au BufNewFile,BufRead *.ctl,*.dob,*.dsr,*.pag setf vb
|
||||||
|
|
||||||
|
" Visual Basic or Vimball Archiver
|
||||||
|
au BufNewFile,BufRead *.vba call dist#ft#FTvba()
|
||||||
|
|
||||||
|
" Visual Basic Project
|
||||||
|
au BufNewFile,BufRead *.vbp setf dosini
|
||||||
|
|
||||||
|
" VBScript (close to Visual Basic)
|
||||||
|
au BufNewFile,BufRead *.vbs setf vb
|
||||||
|
|
||||||
|
" Visual Basic .NET (close to Visual Basic)
|
||||||
|
au BufNewFile,BufRead *.vb setf vb
|
||||||
|
|
||||||
|
" Visual Studio Macro
|
||||||
|
au BufNewFile,BufRead *.dsm setf vb
|
||||||
|
|
||||||
|
" SaxBasic (close to Visual Basic)
|
||||||
au BufNewFile,BufRead *.sba setf vb
|
au BufNewFile,BufRead *.sba setf vb
|
||||||
|
|
||||||
" Vgrindefs file
|
" Vgrindefs file
|
||||||
@@ -2396,6 +2448,9 @@ au BufNewFile,BufRead .wgetrc,wgetrc setf wget
|
|||||||
" Wget2 config
|
" Wget2 config
|
||||||
au BufNewFile,BufRead .wget2rc,wget2rc setf wget2
|
au BufNewFile,BufRead .wget2rc,wget2rc setf wget2
|
||||||
|
|
||||||
|
" WebGPU Shading Language (WGSL)
|
||||||
|
au BufNewFile,BufRead *.wgsl setf wgsl
|
||||||
|
|
||||||
" Website MetaLanguage
|
" Website MetaLanguage
|
||||||
au BufNewFile,BufRead *.wml setf wml
|
au BufNewFile,BufRead *.wml setf wml
|
||||||
|
|
||||||
@@ -2484,6 +2539,9 @@ au BufNewFile,BufRead *.fsproj,*.fsproj.user setf xml
|
|||||||
" VBPROJ files are Visual Studio.NET's XML-based Visual Basic project config files
|
" VBPROJ files are Visual Studio.NET's XML-based Visual Basic project config files
|
||||||
au BufNewFile,BufRead *.vbproj,*.vbproj.user setf xml
|
au BufNewFile,BufRead *.vbproj,*.vbproj.user setf xml
|
||||||
|
|
||||||
|
" Unison Language
|
||||||
|
au BufNewFile,BufRead *.u,*.uu setf unison
|
||||||
|
|
||||||
" Qt Linguist translation source and Qt User Interface Files are XML
|
" Qt Linguist translation source and Qt User Interface Files are XML
|
||||||
" However, for .ts TypeScript is more common.
|
" However, for .ts TypeScript is more common.
|
||||||
au BufNewFile,BufRead *.ui setf xml
|
au BufNewFile,BufRead *.ui setf xml
|
||||||
@@ -2529,7 +2587,7 @@ au BufNewFile,BufRead *.yy,*.yxx,*.y++ setf yacc
|
|||||||
au BufNewFile,BufRead *.y call dist#ft#FTy()
|
au BufNewFile,BufRead *.y call dist#ft#FTy()
|
||||||
|
|
||||||
" Yaml
|
" Yaml
|
||||||
au BufNewFile,BufRead *.yaml,*.yml setf yaml
|
au BufNewFile,BufRead *.yaml,*.yml,*.eyaml setf yaml
|
||||||
|
|
||||||
" Raml
|
" Raml
|
||||||
au BufNewFile,BufRead *.raml setf raml
|
au BufNewFile,BufRead *.raml setf raml
|
||||||
|
|||||||
+3
-2
@@ -1,7 +1,8 @@
|
|||||||
" Vim support file to switch off detection of file types
|
" Vim support file to switch off detection of file types
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last change: 2001 Jun 11
|
" Last change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
if exists("did_load_filetypes")
|
if exists("did_load_filetypes")
|
||||||
unlet did_load_filetypes
|
unlet did_load_filetypes
|
||||||
|
|||||||
@@ -2,8 +2,9 @@ vim9script noclear
|
|||||||
|
|
||||||
# Vim support file to switch on loading plugins for file types
|
# Vim support file to switch on loading plugins for file types
|
||||||
#
|
#
|
||||||
# Maintainer: Bram Moolenaar <Bram@vim.org>
|
# Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
# Last change: 2022 Feb 11
|
# Last change: 2023 Aug 10
|
||||||
|
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
if exists("g:did_load_ftplugin")
|
if exists("g:did_load_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Aap recipe
|
" Language: Aap recipe
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2021 Nov 14
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
" Author: Steven Oliver <oliver.steven@gmail.com>
|
" Author: Steven Oliver <oliver.steven@gmail.com>
|
||||||
" Copyright: Copyright (c) 2013 Steven Oliver
|
" Copyright: Copyright (c) 2013 Steven Oliver
|
||||||
" License: You may redistribute this under the same terms as Vim itself
|
" License: You may redistribute this under the same terms as Vim itself
|
||||||
|
" Last Change: 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
" --------------------------------------------------------------------------
|
" --------------------------------------------------------------------------
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
@@ -17,10 +18,13 @@ set cpo&vim
|
|||||||
setlocal softtabstop=2 shiftwidth=2
|
setlocal softtabstop=2 shiftwidth=2
|
||||||
setlocal suffixesadd=.abap
|
setlocal suffixesadd=.abap
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setl sts< sua< sw<"
|
||||||
|
|
||||||
" Windows allows you to filter the open file dialog
|
" Windows allows you to filter the open file dialog
|
||||||
if has("gui_win32") && !exists("b:browsefilter")
|
if has("gui_win32") && !exists("b:browsefilter")
|
||||||
let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" .
|
let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" .
|
||||||
\ "All Files (*.*)\t*.*\n"
|
\ "All Files (*.*)\t*.*\n"
|
||||||
|
let b:undo_ftplugin .= " | unlet! b:browsefilter"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Dorai Sitaram <ds26@gte.com>
|
" Maintainer: Dorai Sitaram <ds26@gte.com>
|
||||||
" URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
|
" URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
|
||||||
" Last Change: Apr 2, 2003
|
" Last Change: Apr 2, 2003
|
||||||
|
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@@ -13,3 +14,5 @@ run ftplugin/lisp.vim
|
|||||||
|
|
||||||
setl lw-=if
|
setl lw-=if
|
||||||
setl lw+=def-art-fun,deffacts,defglobal,defrule,defschema,for,schema,while
|
setl lw+=def-art-fun,deffacts,defglobal,defrule,defschema,for,schema,while
|
||||||
|
|
||||||
|
let b:undo_ftplugin ..= " | setl lw<"
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: asm
|
" Language: asm
|
||||||
" Maintainer: Colin Caine <cmcaine at the common googlemail domain>
|
" Maintainer: Colin Caine <cmcaine at the common googlemail domain>
|
||||||
" Last Changed: 23 May 2020
|
" Last Change: 23 May 2020
|
||||||
|
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setl comments=:;,s1:/*,mb:*,ex:*/,://
|
setl comments=:;,s1:/*,mb:*,ex:*/,://
|
||||||
setl commentstring=;%s
|
setl commentstring=;%s
|
||||||
|
|
||||||
let b:did_ftplugin = 1
|
let b:undo_ftplugin = "setl commentstring< comments<"
|
||||||
|
|||||||
@@ -37,11 +37,14 @@ if exists("g:awk_is_gawk")
|
|||||||
let b:undo_ftplugin .= " | setl fp<"
|
let b:undo_ftplugin .= " | setl fp<"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let path = system("gawk 'BEGIN { printf ENVIRON[\"AWKPATH\"] }'")
|
" Disabled by default for security reasons.
|
||||||
let path = substitute(path, '^\.\=:\|:\.\=$\|:\.\=:', ',,', 'g') " POSIX cwd
|
if get(g:, 'awk_exec', get(g:, 'plugin_exec', 0))
|
||||||
let path = substitute(path, ':', ',', 'g')
|
let path = system("gawk 'BEGIN { printf ENVIRON[\"AWKPATH\"] }'")
|
||||||
|
let path = substitute(path, '^\.\=:\|:\.\=$\|:\.\=:', ',,', 'g') " POSIX cwd
|
||||||
|
let path = substitute(path, ':', ',', 'g')
|
||||||
|
|
||||||
let &l:path = path
|
let &l:path = path
|
||||||
|
endif
|
||||||
let b:undo_ftplugin .= " | setl inc< path<"
|
let b:undo_ftplugin .= " | setl inc< path<"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: bash
|
" Language: bash
|
||||||
" Maintainer: Bram Moolenaar
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Changed: 2019 Jan 12
|
" Last Changed: 2023 Aug 13
|
||||||
"
|
"
|
||||||
" This is not a real filetype plugin. It allows for someone to set 'filetype'
|
" This is not a real filetype plugin. It allows for someone to set 'filetype'
|
||||||
" to "bash" in the modeline, and gets the effect of filetype "sh" with
|
" to "bash" in the modeline, and gets the effect of filetype "sh" with
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: BTM
|
" Language: BTM
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2004 Jul 06
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
" Language: Bazel (http://bazel.io)
|
" Language: Bazel (http://bazel.io)
|
||||||
" Maintainer: David Barnett (https://github.com/google/vim-ft-bzl)
|
" Maintainer: David Barnett (https://github.com/google/vim-ft-bzl)
|
||||||
" Last Change: 2021 Jan 19
|
" Last Change: 2021 Jan 19
|
||||||
|
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
|
|
||||||
""
|
""
|
||||||
" @section Introduction, intro
|
" @section Introduction, intro
|
||||||
@@ -41,6 +42,9 @@ let &l:tabstop = s:save_tabstop
|
|||||||
|
|
||||||
setlocal formatoptions-=t
|
setlocal formatoptions-=t
|
||||||
|
|
||||||
|
" Initially defined in the python ftplugin sourced above
|
||||||
|
let b:undo_ftplugin .= " | setlocal fo<"
|
||||||
|
|
||||||
" Make gf work with imports in BUILD files.
|
" Make gf work with imports in BUILD files.
|
||||||
setlocal includeexpr=substitute(v:fname,'//','','')
|
setlocal includeexpr=substitute(v:fname,'//','','')
|
||||||
|
|
||||||
@@ -48,6 +52,7 @@ setlocal includeexpr=substitute(v:fname,'//','','')
|
|||||||
if get(g:, 'ft_bzl_fold', 0)
|
if get(g:, 'ft_bzl_fold', 0)
|
||||||
setlocal foldmethod=syntax
|
setlocal foldmethod=syntax
|
||||||
setlocal foldtext=BzlFoldText()
|
setlocal foldtext=BzlFoldText()
|
||||||
|
let b:undo_ftplugin .= " | setlocal fdm< fdt<"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists('*BzlFoldText')
|
if exists('*BzlFoldText')
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2022 Apr 08
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
|
|||||||
@@ -55,13 +55,19 @@ if &filetype == 'changelog'
|
|||||||
elseif $EMAIL_ADDRESS != ""
|
elseif $EMAIL_ADDRESS != ""
|
||||||
return $EMAIL_ADDRESS
|
return $EMAIL_ADDRESS
|
||||||
endif
|
endif
|
||||||
|
let s:default_login = 'unknown'
|
||||||
|
|
||||||
let login = s:login()
|
" Disabled by default for security reasons.
|
||||||
|
if get(g:, 'changelog_exec', get(g:, 'plugin_exec', 0))
|
||||||
|
let login = s:login()
|
||||||
|
else
|
||||||
|
let login = s:default_login
|
||||||
|
endif
|
||||||
return printf('%s <%s@%s>', s:name(login), login, s:hostname())
|
return printf('%s <%s@%s>', s:name(login), login, s:hostname())
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:login()
|
function! s:login()
|
||||||
return s:trimmed_system_with_default('whoami', 'unknown')
|
return s:trimmed_system_with_default('whoami', s:default_login)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:trimmed_system_with_default(command, default)
|
function! s:trimmed_system_with_default(command, default)
|
||||||
@@ -71,7 +77,7 @@ if &filetype == 'changelog'
|
|||||||
function! s:system_with_default(command, default)
|
function! s:system_with_default(command, default)
|
||||||
let output = system(a:command)
|
let output = system(a:command)
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
return default
|
return a:default
|
||||||
endif
|
endif
|
||||||
return output
|
return output
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: C++
|
" Language: C++
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2020 Jul 26
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ function NewVersion()
|
|||||||
normal! 1G0
|
normal! 1G0
|
||||||
call search(')')
|
call search(')')
|
||||||
normal! h
|
normal! h
|
||||||
" ':normal' doens't support key annotation (<c-a>) directly.
|
" ':normal' doesn't support key annotation (<c-a>) directly.
|
||||||
" Vim's manual recommends using ':exe' to use key annotation indirectly (backslash-escaping needed though).
|
" Vim's manual recommends using ':exe' to use key annotation indirectly (backslash-escaping needed though).
|
||||||
exe "normal! \<c-a>"
|
exe "normal! \<c-a>"
|
||||||
call setline(1, substitute(getline(1), '-\$\$', '-', ''))
|
call setline(1, substitute(getline(1), '-\$\$', '-', ''))
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Diff
|
" Language: Diff
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2021 Nov 14
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
" Anton Kochkov <anton.kochkov@gmail.com>
|
" Anton Kochkov <anton.kochkov@gmail.com>
|
||||||
" URL: https://github.com/ocaml/vim-ocaml
|
" URL: https://github.com/ocaml/vim-ocaml
|
||||||
" Last Change:
|
" Last Change:
|
||||||
" 2018 Nov 3 - Added commentstring (Markus Mottl)
|
" 2023 Aug 28 - Added undo_ftplugin (Vim Project)
|
||||||
" 2017 Sep 6 - Initial version (Etienne Millon)
|
" 2018 Nov 03 - Added commentstring (Markus Mottl)
|
||||||
|
" 2017 Sep 06 - Initial version (Etienne Millon)
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@@ -18,3 +19,5 @@ setl commentstring=;\ %s
|
|||||||
setl comments=:;
|
setl comments=:;
|
||||||
|
|
||||||
setl iskeyword+=#,?,.,/
|
setl iskeyword+=#,?,.,/
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setl lisp< cms< com< isk<"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" URL: https://github.com/vim-ruby/vim-ruby
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2020 Jun 28
|
" Last Change: 2022 May 15
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@@ -86,8 +86,12 @@ runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
" Combine the new set of values with those previously included.
|
" Combine the new set of values with those previously included.
|
||||||
if exists("b:undo_ftplugin")
|
if !exists('b:undo_ftplugin')
|
||||||
let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin
|
" No-op
|
||||||
|
let b:undo_ftplugin = 'exe'
|
||||||
|
endif
|
||||||
|
if !empty(s:undo_ftplugin)
|
||||||
|
let b:undo_ftplugin .= '|' . s:undo_ftplugin
|
||||||
endif
|
endif
|
||||||
if exists ("b:browsefilter")
|
if exists ("b:browsefilter")
|
||||||
let s:browsefilter = substitute(b:browsefilter,'\cAll Files (\*\.\*)\t\*\.\*\n','','') . s:browsefilter
|
let s:browsefilter = substitute(b:browsefilter,'\cAll Files (\*\.\*)\t\*\.\*\n','','') . s:browsefilter
|
||||||
@@ -119,7 +123,7 @@ endif
|
|||||||
setlocal commentstring=<%#%s%>
|
setlocal commentstring=<%#%s%>
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl cms< " .
|
let b:undo_ftplugin = "setl cms< " .
|
||||||
\ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
|
\ " | unlet! b:browsefilter b:match_words | " . b:undo_ftplugin
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Nicholas Boyle (github.com/nickeb96)
|
" Maintainer: Nicholas Boyle (github.com/nickeb96)
|
||||||
" Repository: https://github.com/nickeb96/fish.vim
|
" Repository: https://github.com/nickeb96/fish.vim
|
||||||
" Last Change: February 1, 2023
|
" Last Change: February 1, 2023
|
||||||
|
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@@ -13,3 +14,5 @@ setlocal iskeyword=@,48-57,_,192-255,-,.
|
|||||||
setlocal comments=:#
|
setlocal comments=:#
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#%s
|
||||||
setlocal formatoptions+=crjq
|
setlocal formatoptions+=crjq
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setl cms< com< fo< isk<"
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: Forth
|
||||||
|
" Maintainer: Johan Kotlinski <kotlinski@gmail.com>
|
||||||
|
" Last Change: 2023 Aug 08
|
||||||
|
" URL: https://github.com/jkotlinski/forth.vim
|
||||||
|
|
||||||
|
if exists("b:did_ftplugin")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
setlocal commentstring=\\\ %s
|
||||||
|
setlocal comments=s:(,mb:\ ,e:),b:\\
|
||||||
|
setlocal iskeyword=33-126,128-255
|
||||||
|
|
||||||
|
let s:include_patterns =<< trim EOL
|
||||||
|
|
||||||
|
\<\%(INCLUDE\|REQUIRE\)\>\s\+\zs\k\+\ze
|
||||||
|
\<S"\s\+\zs[^"]*\ze"\s\+\%(INCLUDED\|REQUIRED\)\>
|
||||||
|
EOL
|
||||||
|
let &l:include = $'\c{ s:include_patterns[1:]->join('\|') }'
|
||||||
|
|
||||||
|
let s:define_patterns =<< trim EOL
|
||||||
|
:
|
||||||
|
[2F]\=CONSTANT
|
||||||
|
[2F]\=VALUE
|
||||||
|
[2F]\=VARIABLE
|
||||||
|
BEGIN-STRUCTURE
|
||||||
|
BUFFER:
|
||||||
|
CODE
|
||||||
|
CREATE
|
||||||
|
MARKER
|
||||||
|
SYNONYM
|
||||||
|
EOL
|
||||||
|
let &l:define = $'\c\<\%({ s:define_patterns->join('\|') }\)'
|
||||||
|
|
||||||
|
" assume consistent intra-project file extensions
|
||||||
|
let &l:suffixesadd = "." .. expand("%:e")
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setl cms< com< def< inc< isk< sua<"
|
||||||
|
|
||||||
|
if exists("loaded_matchit") && !exists("b:match_words")
|
||||||
|
let s:matchit_patterns =<< trim EOL
|
||||||
|
|
||||||
|
\<\:\%(NONAME\)\=\>:\<EXIT\>:\<;\>
|
||||||
|
\<IF\>:\<ELSE\>:\<THEN\>
|
||||||
|
\<\[IF]\>:\<\[ELSE]\>:\<\[THEN]\>
|
||||||
|
\<?\=DO\>:\<LEAVE\>:\<+\=LOOP\>
|
||||||
|
\<CASE\>:\<ENDCASE\>
|
||||||
|
\<OF\>:\<ENDOF\>
|
||||||
|
\<BEGIN\>:\<WHILE\>:\<\%(AGAIN\|REPEAT\|UNTIL\)\>
|
||||||
|
\<CODE\>:\<END-CODE\>
|
||||||
|
\<BEGIN-STRUCTURE\>:\<END-STRUCTURE\>
|
||||||
|
EOL
|
||||||
|
let b:match_ignorecase = 1
|
||||||
|
let b:match_words = s:matchit_patterns[1:]->join(',')
|
||||||
|
let b:undo_ftplugin ..= "| unlet! b:match_ignorecase b:match_words"
|
||||||
|
endif
|
||||||
|
|
||||||
|
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||||
|
let b:browsefilter = "Forth Source Files (*.f *.fs *.ft *.fth *.4th)\t*.f;*.fs;*.ft;*.fth;*.4th\n" ..
|
||||||
|
\ "All Files (*.*)\t*.*\n"
|
||||||
|
let b:undo_ftplugin ..= " | unlet! b:browsefilter"
|
||||||
|
endif
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
unlet s:define_patterns s:include_patterns s:matchit_patterns
|
||||||
@@ -15,5 +15,22 @@ let b:undo_ftplugin = "setl com< cms< fo<"
|
|||||||
|
|
||||||
setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
||||||
|
|
||||||
|
if has('unix') && executable('less')
|
||||||
|
if !has('gui_running')
|
||||||
|
command -buffer -nargs=1 Sman
|
||||||
|
\ silent exe '!' . 'LESS= MANPAGER="less --pattern=''^\s+--' . <q-args> . '\b'' --hilite-search" man ' . 'gpg' |
|
||||||
|
\ redraw!
|
||||||
|
elseif has('terminal')
|
||||||
|
command -buffer -nargs=1 Sman
|
||||||
|
\ silent exe ':term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+--' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . 'gpg'
|
||||||
|
endif
|
||||||
|
if exists(':Sman') == 2
|
||||||
|
setlocal iskeyword+=-
|
||||||
|
setlocal keywordprg=:Sman
|
||||||
|
let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer Sman'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
|||||||
+22
-14
@@ -2,26 +2,34 @@
|
|||||||
" Language: Hare
|
" Language: Hare
|
||||||
" Maintainer: Amelia Clarke <me@rsaihe.dev>
|
" Maintainer: Amelia Clarke <me@rsaihe.dev>
|
||||||
" Previous Maintainer: Drew DeVault <sir@cmpwn.com>
|
" Previous Maintainer: Drew DeVault <sir@cmpwn.com>
|
||||||
" Last Updated: 2022-09-21
|
" Last Updated: 2022-09-28
|
||||||
|
" 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Don't load another plugin for this buffer
|
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal noexpandtab
|
" Formatting settings.
|
||||||
setlocal tabstop=8
|
setlocal formatoptions-=t formatoptions+=croql/
|
||||||
setlocal shiftwidth=0
|
|
||||||
setlocal softtabstop=0
|
|
||||||
setlocal textwidth=80
|
|
||||||
setlocal commentstring=//\ %s
|
|
||||||
|
|
||||||
" Set 'formatoptions' to break comment lines but not other lines,
|
" Miscellaneous.
|
||||||
" and insert the comment leader when hitting <CR> or using "o".
|
setlocal comments=://
|
||||||
setlocal fo-=t fo+=croql
|
setlocal commentstring=//\ %s
|
||||||
|
setlocal suffixesadd=.ha
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setl cms< com< fo< sua<"
|
||||||
|
|
||||||
|
" Hare recommended style.
|
||||||
|
if get(g:, "hare_recommended_style", 1)
|
||||||
|
setlocal noexpandtab
|
||||||
|
setlocal shiftwidth=8
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal tabstop=8
|
||||||
|
setlocal textwidth=80
|
||||||
|
let b:undo_ftplugin ..= " | setl et< sts< sw< ts< tw<"
|
||||||
|
endif
|
||||||
|
|
||||||
compiler hare
|
compiler hare
|
||||||
" vim: tabstop=2 shiftwidth=2 expandtab
|
|
||||||
|
" vim: et sw=2 sts=2 ts=8
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ let b:undo_ftplugin = "setl com< cms< fo<"
|
|||||||
setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s
|
setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
setlocal omnifunc=haskellcomplete#Complete
|
setlocal omnifunc=haskellcomplete#Complete
|
||||||
|
setlocal iskeyword+='
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|||||||
@@ -14,3 +14,14 @@ setlocal comments=:<%!--
|
|||||||
setlocal commentstring=<%!--\ %s\ --%>
|
setlocal commentstring=<%!--\ %s\ --%>
|
||||||
|
|
||||||
let b:undo_ftplugin = 'set sw< sts< et< com< cms<'
|
let b:undo_ftplugin = 'set sw< sts< et< com< cms<'
|
||||||
|
|
||||||
|
" HTML: thanks to Johannes Zellner and Benji Fisher.
|
||||||
|
if exists("loaded_matchit") && !exists("b:match_words")
|
||||||
|
let b:match_ignorecase = 1
|
||||||
|
let b:match_words = '<%\{-}!--:--%\{-}>,' ..
|
||||||
|
\ '<:>,' ..
|
||||||
|
\ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' ..
|
||||||
|
\ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' ..
|
||||||
|
\ '<\@<=\([^/!][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
|
||||||
|
let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,32 +1,37 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: InstallShield (ft=ishd)
|
" Language: InstallShield (ft=ishd)
|
||||||
" Maintainer: Johannes Zellner <johannes@zellner.org>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: Sat, 24 May 2003 11:55:36 CEST
|
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||||
|
" Last Change: 2023 Aug 28
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal foldmethod=syntax
|
|
||||||
|
|
||||||
" Using line continuation here.
|
" Using line continuation here.
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
|
setlocal foldmethod=syntax
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setl fdm<"
|
||||||
|
|
||||||
" matchit support
|
" matchit support
|
||||||
if exists("loaded_matchit")
|
if exists("loaded_matchit")
|
||||||
let b:match_ignorecase=0
|
let b:match_ignorecase = 0
|
||||||
let b:match_words=
|
let b:match_words =
|
||||||
\ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' .
|
\ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' .
|
||||||
\ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' .
|
\ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' .
|
||||||
\ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' .
|
\ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' .
|
||||||
\ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' .
|
\ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' .
|
||||||
\ '\%(^\s*\)\@<=\<for\>.\{-}\<\%(to\|downto\)\>:\%(^\s*\)\@<=\<endfor\>\s*;\s*$,' .
|
\ '\%(^\s*\)\@<=\<for\>.\{-}\<\%(to\|downto\)\>:\%(^\s*\)\@<=\<endfor\>\s*;\s*$,' .
|
||||||
\ '\%(^\s*\)\@<=\<if\>\s*(.\{-})\s*then:\%(^\s*\)\@<=\<else\s*if\>\s*([^)]*)\s*then:\%(^\s*\)\@<=\<else\>:\%(^\s*\)\@<=\<endif\>\s*;\s*$'
|
\ '\%(^\s*\)\@<=\<if\>\s*(.\{-})\s*then:\%(^\s*\)\@<=\<else\s*if\>\s*([^)]*)\s*then:\%(^\s*\)\@<=\<else\>:\%(^\s*\)\@<=\<endif\>\s*;\s*$'
|
||||||
|
let b:undo_ftplugin .= " | unlet! b:match_ignorecase b:match_words"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("gui_win32") && !exists("b:browsefilter")
|
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||||
let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" .
|
let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" .
|
||||||
\ "All Files (*.*)\t*.*\n"
|
\ "All Files (*.*)\t*\n"
|
||||||
|
let b:undo_ftplugin .= " | unlet! b:browsefilter"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
" Language: LambdaProlog (Teyjus)
|
" Language: LambdaProlog (Teyjus)
|
||||||
" Maintainer: Markus Mottl <markus.mottl@gmail.com>
|
" Maintainer: Markus Mottl <markus.mottl@gmail.com>
|
||||||
" URL: http://www.ocaml.info/vim/ftplugin/lprolog.vim
|
" URL: http://www.ocaml.info/vim/ftplugin/lprolog.vim
|
||||||
" Last Change: 2006 Feb 05
|
" Last Change: 2023 Aug 28 - added undo_ftplugin (Vim Project)
|
||||||
|
" 2006 Feb 05
|
||||||
" 2001 Sep 16 - fixed 'no_mail_maps'-bug (MM)
|
" 2001 Sep 16 - fixed 'no_mail_maps'-bug (MM)
|
||||||
" 2001 Sep 02 - initial release (MM)
|
" 2001 Sep 02 - initial release (MM)
|
||||||
|
|
||||||
@@ -15,11 +16,13 @@ endif
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
" Error format
|
" Error format
|
||||||
setlocal efm=%+A./%f:%l.%c:\ %m formatprg=fmt\ -w75\ -p\\%
|
setlocal efm=%+A./%f:%l.%c:\ %m
|
||||||
|
|
||||||
" Formatting of comments
|
" Formatting of comments
|
||||||
setlocal formatprg=fmt\ -w75\ -p\\%
|
setlocal formatprg=fmt\ -w75\ -p\\%
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setlocal efm< fp<"
|
||||||
|
|
||||||
" Add mappings, unless the user didn't want this.
|
" Add mappings, unless the user didn't want this.
|
||||||
if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
|
if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
|
||||||
" Uncommenting
|
" Uncommenting
|
||||||
@@ -28,6 +31,11 @@ if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
|
|||||||
vmap <buffer> <LocalLeader>c <Plug>BUncomOn
|
vmap <buffer> <LocalLeader>c <Plug>BUncomOn
|
||||||
nmap <buffer> <LocalLeader>C <Plug>LUncomOff
|
nmap <buffer> <LocalLeader>C <Plug>LUncomOff
|
||||||
vmap <buffer> <LocalLeader>C <Plug>BUncomOff
|
vmap <buffer> <LocalLeader>C <Plug>BUncomOff
|
||||||
|
let b:undo_ftplugin ..=
|
||||||
|
\ " | silent! execute 'nunmap <buffer> <LocalLeader>c'" ..
|
||||||
|
\ " | silent! execute 'vunmap <buffer> <LocalLeader>c'" ..
|
||||||
|
\ " | silent! execute 'nunmap <buffer> <LocalLeader>C'" ..
|
||||||
|
\ " | silent! execute 'vunmap <buffer> <LocalLeader>C'"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
nnoremap <buffer> <Plug>LUncomOn mz0i/* <ESC>$A */<ESC>`z
|
nnoremap <buffer> <Plug>LUncomOn mz0i/* <ESC>$A */<ESC>`z
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Mail
|
" Language: Mail
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2021 Oct 23
|
" Last Change: 2023 Aug 10
|
||||||
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user