diff --git a/doc/terminal.jax b/doc/terminal.jax index 3fd162e32..27324b2bf 100644 --- a/doc/terminal.jax +++ b/doc/terminal.jax @@ -1,4 +1,4 @@ -*terminal.txt* For Vim バージョン 8.1. Last change: 2019 May 05 +*terminal.txt* For Vim バージョン 8.1. Last change: 2019 May 20 VIMリファレンスマニュアル by Bram Moolenaar diff --git a/doc/textprop.jax b/doc/textprop.jax index 5682f2f98..a01448b39 100644 --- a/doc/textprop.jax +++ b/doc/textprop.jax @@ -1,4 +1,4 @@ -*textprop.txt* For Vim バージョン 8.1. Last change: 2019 May 06 +*textprop.txt* For Vim バージョン 8.1. Last change: 2019 May 12 VIMリファレンスマニュアル by Bram Moolenaar @@ -13,7 +13,6 @@ THIS IS UNDER DEVELOPMENT - ANYTHING MAY STILL CHANGE *E967* - テキストを挿入するときの桁/長さの調整 - 複数の行にまたがるテキストプロパティ - prop_find() -- テキストプロパティが古くなったときのコールバック 1. 前書き |text-prop-intro| @@ -132,6 +131,12 @@ Vimはテキストプロパティをそれが付加されたテキストの上 置換モードを使用すると、文字自体が変更しても、テキストプロパティは同じ文字位置 に留まります。 +テキストが変更された後にテキストのプロパティを更新するには、`listener_add()` +でコールバックを設置します。例えば、もしあなたのプラグインがスペルチェックをし +ているのなら、変更されたテキスト内のスペルミスをコールバックで更新することがで +きます。変更されたテキストの下にプロパティが移動し、同じテキストがハイライトさ +れるため、これらを更新する必要はありません。 + テキストプロパティの桁が更新されません: ~ diff --git a/doc/usr_05.jax b/doc/usr_05.jax index d8163ba14..1dac2e9a7 100644 --- a/doc/usr_05.jax +++ b/doc/usr_05.jax @@ -1,4 +1,4 @@ -*usr_05.txt* For Vim バージョン 8.1. Last change: 2019 Feb 27 +*usr_05.txt* For Vim バージョン 8.1. Last change: 2019 May 23 VIM USER MANUAL - by Bram Moolenaar @@ -239,7 +239,7 @@ defaults.vim の読み込みは、次のコマンドで無効にできます: > > set display=truncate -最後の行が切り捨てられる場合は、全体を非表示にするのではなく、@@@ を表示しま +最後の行が切り捨てられる場合は、行全体を非表示にするのではなく、@@@ を表示しま す。'display' を参照してください。 > diff --git a/doc/usr_41.jax b/doc/usr_41.jax index 82333a0a8..ea2da5e3c 100644 --- a/doc/usr_41.jax +++ b/doc/usr_41.jax @@ -1,4 +1,4 @@ -*usr_41.txt* For Vim バージョン 8.1. Last change: 2019 May 09 +*usr_41.txt* For Vim バージョン 8.1. Last change: 2019 May 16 VIM USER MANUAL - by Bram Moolenaar @@ -790,6 +790,7 @@ substitute() コマンドの前後にいろいろな処理を入れたりする appendbufline() 指定されたバッファに行のリストを追加する deletebufline() 指定されたバッファの行を削除する listener_add() 変更を監視するためのコールバックを追加する + listener_flush() リスナーコールバックを呼び出す listener_remove() リスナーコールバックを削除する win_findbuf() バッファが含まれるウィンドウを探す win_getid() ウィンドウのウィンドウIDを得る @@ -929,6 +930,7 @@ Vimサーバー: *server-functions* test_autochdir() 起動中に 'autochdir' を有効にする test_override() Vimの内部処理を置き換えてテストする test_garbagecollect_now() 直ちにメモリを解放する + test_getvalue() 内部変数の値を取得する test_ignore_error() 特定のエラーメッセージを無視する test_null_blob() null の Blob を返す test_null_channel() null のチャネルを返す diff --git a/doc/usr_toc.jax b/doc/usr_toc.jax index e73a58d07..82baafa69 100644 --- a/doc/usr_toc.jax +++ b/doc/usr_toc.jax @@ -1,4 +1,4 @@ -*usr_toc.txt* For Vim バージョン 8.1. Last change: 2016 Mar 25 +*usr_toc.txt* For Vim バージョン 8.1. Last change: 2019 May 24 VIM USER MANUAL - by Bram Moolenaar @@ -103,12 +103,13 @@ |usr_05.txt| 設定の変更 |05.1| vimrc ファイル |05.2| 見本 vimrc ファイルの解説 - |05.3| 簡単なマップ - |05.4| パッケージの追加 - |05.5| プラグインの追加 - |05.6| ヘルプファイルの追加 - |05.7| オプションウィンドウ - |05.8| よく使うオプション + |05.3| defaults.vim ファイルの解説 + |05.4| 簡単なマップ + |05.5| パッケージの追加 + |05.6| プラグインの追加 + |05.7| ヘルプファイルの追加 + |05.8| オプションウィンドウ + |05.9| よく使うオプション |usr_06.txt| 構文強調表示 |06.1| 構文強調表示を有効にする diff --git a/doc/windows.jax b/doc/windows.jax index d3d188686..20dfbaab5 100644 --- a/doc/windows.jax +++ b/doc/windows.jax @@ -1,4 +1,4 @@ -*windows.txt* For Vim バージョン 8.1. Last change: 2019 May 05 +*windows.txt* For Vim バージョン 8.1. Last change: 2019 May 10 VIMリファレンスマニュアル by Bram Moolenaar @@ -1212,7 +1212,6 @@ CTRL-W g } *CTRL-W_g}* も、コード/テキストバッファを次々と表示する際にヘルプが邪魔に ならない。次の3つのコマンドも同じように動作する。 - *:sbn* *:sbnext* :[N]sbn[ext] [+cmd] [N] ウィンドウを分割しバッファリストの[N]個先のバッファへ移動す diff --git a/en/terminal.txt b/en/terminal.txt index d01959bac..cca711a53 100644 --- a/en/terminal.txt +++ b/en/terminal.txt @@ -1,4 +1,4 @@ -*terminal.txt* For Vim version 8.1. Last change: 2019 May 05 +*terminal.txt* For Vim version 8.1. Last change: 2019 May 20 VIM REFERENCE MANUAL by Bram Moolenaar @@ -495,7 +495,8 @@ Currently supported commands: directory, thus it's best to use the full path. [options] is only used when opening a new window. If present, - it must be a Dict. Similarly to |++opt|, These entries are recognized: + it must be a Dict. Similarly to |++opt|, These entries are + recognized: "ff" file format: "dos", "mac" or "unix" "fileformat" idem "enc" overrides 'fileencoding' diff --git a/en/textprop.txt b/en/textprop.txt index c24e47a91..bda523038 100644 --- a/en/textprop.txt +++ b/en/textprop.txt @@ -1,4 +1,4 @@ -*textprop.txt* For Vim version 8.1. Last change: 2019 May 06 +*textprop.txt* For Vim version 8.1. Last change: 2019 May 12 VIM REFERENCE MANUAL by Bram Moolenaar @@ -12,7 +12,6 @@ What is not working yet: - Adjusting column/length when inserting text - Text properties spanning more than one line - prop_find() -- callbacks when text properties are outdated 1. Introduction |text-prop-intro| @@ -131,6 +130,12 @@ unless the whole line is deleted. When using replace mode, the text properties stay on the same character positions, even though the characters themselves change. +To update text properties after the text was changed, install a callback with +`listener_add()`. E.g, if your plugin does spell checking, you can have the +callback update spelling mistakes in the changed text. Vim will move the +properties below the changed text, so that they still highlight the same text, +thus you don't need to update these. + Text property columns are not updated: ~ diff --git a/en/usr_05.txt b/en/usr_05.txt index 10623fda8..fb1674288 100644 --- a/en/usr_05.txt +++ b/en/usr_05.txt @@ -1,4 +1,4 @@ -*usr_05.txt* For Vim version 8.1. Last change: 2019 Feb 27 +*usr_05.txt* For Vim version 8.1. Last change: 2019 May 23 VIM USER MANUAL - by Bram Moolenaar @@ -234,7 +234,7 @@ remote connection, increase the number. See 'ttimeout'. set display=truncate Show @@@ in the last line if it is truncated, instead of hiding the whole -like. See 'display'. +line. See 'display'. > set incsearch diff --git a/en/usr_22.txt b/en/usr_22.txt index b3da19cc6..3fcdf31e6 100644 --- a/en/usr_22.txt +++ b/en/usr_22.txt @@ -220,7 +220,7 @@ a tab page share this directory except for windows with a window-local directory. Any new windows opened in this tab page will use this directory as the current working directory. Using a `:cd` command in a tab page will not change the working directory of tab pages which have a tab local directory. -When the global working directory is changed using the ":cd" command in a tab +When the global working directory is changed using the `:cd` command in a tab page, it will also change the current tab page working directory. diff --git a/en/usr_41.txt b/en/usr_41.txt index 866664c4d..a9596c682 100644 --- a/en/usr_41.txt +++ b/en/usr_41.txt @@ -1,4 +1,4 @@ -*usr_41.txt* For Vim version 8.1. Last change: 2019 May 09 +*usr_41.txt* For Vim version 8.1. Last change: 2019 May 16 VIM USER MANUAL - by Bram Moolenaar @@ -813,6 +813,7 @@ Buffers, windows and the argument list: appendbufline() append a list of lines in the specified buffer deletebufline() delete lines from a specified buffer listener_add() add a callback to listen to changes + listener_flush() invoke listener callbacks listener_remove() remove a listener callback win_findbuf() find windows containing a buffer win_getid() get window ID of a window @@ -953,6 +954,7 @@ Testing: *test-functions* test_autochdir() enable 'autochdir' during startup test_override() test with Vim internal overrides test_garbagecollect_now() free memory right now + test_getvalue() get value of an internal variable test_ignore_error() ignore a specific error message test_null_blob() return a null Blob test_null_channel() return a null Channel diff --git a/en/usr_toc.txt b/en/usr_toc.txt index 9247ba03a..5b09d9624 100644 --- a/en/usr_toc.txt +++ b/en/usr_toc.txt @@ -1,4 +1,4 @@ -*usr_toc.txt* For Vim version 8.1. Last change: 2016 Mar 25 +*usr_toc.txt* For Vim version 8.1. Last change: 2019 May 24 VIM USER MANUAL - by Bram Moolenaar @@ -103,12 +103,13 @@ Read this from start to end to learn the essential commands. |usr_05.txt| Set your settings |05.1| The vimrc file |05.2| The example vimrc file explained - |05.3| Simple mappings - |05.4| Adding a package - |05.5| Adding a plugin - |05.6| Adding a help file - |05.7| The option window - |05.8| Often used options + |05.3| The defaults.vim file explained + |05.4| Simple mappings + |05.5| Adding a package + |05.6| Adding a plugin + |05.7| Adding a help file + |05.8| The option window + |05.9| Often used options |usr_06.txt| Using syntax highlighting |06.1| Switching it on diff --git a/en/various.txt b/en/various.txt index 5e9f5cccc..784a08e46 100644 --- a/en/various.txt +++ b/en/various.txt @@ -708,7 +708,7 @@ K Run a program to lookup the keyword under the :xr[estore] [display] Reinitializes the connection to the X11 server. Useful after the X server restarts, e.g. when running Vim for long time inside screen/tmux and connecting from - different machines). + different machines. [display] should be in the format of the $DISPLAY environment variable (e.g. "localhost:10.0") If [display] is omitted, then it reinitializes the diff --git a/en/windows.txt b/en/windows.txt index 9a682e59e..187d00e4d 100644 --- a/en/windows.txt +++ b/en/windows.txt @@ -1,4 +1,4 @@ -*windows.txt* For Vim version 8.1. Last change: 2019 May 05 +*windows.txt* For Vim version 8.1. Last change: 2019 May 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1192,7 +1192,6 @@ list of buffers. |unlisted-buffer| the way when you're browsing code/text buffers. The next three commands also work like this. - *:sbn* *:sbnext* :[N]sbn[ext] [+cmd] [N] Split window and go to [N]th next buffer in buffer list.