svnno****@sourc*****
svnno****@sourc*****
2011年 3月 31日 (木) 15:54:40 JST
Revision: 4410 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4410 Author: doda Date: 2011-03-31 15:54:40 +0900 (Thu, 31 Mar 2011) Log Message: ----------- ã«ã¼ã½ã«å½¢ç¶ã IME å¶å¾¡ãApplication Wheel Mode ã«ã¤ãã¦è¿½è¨ã Modified Paths: -------------- trunk/doc/en/html/usage/tips/vim.html trunk/doc/ja/html/usage/tips/vim.html -------------- next part -------------- Modified: trunk/doc/en/html/usage/tips/vim.html =================================================================== --- trunk/doc/en/html/usage/tips/vim.html 2011-03-31 03:34:46 UTC (rev 4409) +++ trunk/doc/en/html/usage/tips/vim.html 2011-03-31 06:54:40 UTC (rev 4410) @@ -10,22 +10,78 @@ <body> <h1>Tips on vim</h1> +<!-- h1>vim ©ç̧äV[PXÌgpá</h1 --> +<!-- p> +Tera Term ÅÍA§äV[PXðgp·éÉæÁÄzXg¤©ç Tera Term Ì®ìðÏXµ½è·éªoÜ·B +±±ÅÍ vim ©ç±êç̧äV[PXðp·é×ÌÝèáðÐîµÜ·B +</p --> -<h2><a name="Bracketed">Bracketed Paste Mode</a></h2> +<!-- +<h2><a name="CursorStyle">}ü[hÖÌoüèÉJ[\`óðÏX·é</a></h2> +<p> +Tera Term ÅÍAȺÌJ[\\¦óÔÏX§äV[PXÉεĢܷB +</p> +<table border="1"> + <tr> <th>ªÌ</th> <th>V[PX</th> <th>@\</th> </tr> + + <tr> <td rowspan="2">DECTCEM</td> + <td>ESC [ ? 25 h</td> <td>J[\ð\¦óÔÉ·é</td> </tr> + <tr> <td>ESC [ ? 25 l</td> <td>J[\ðñ\¦óÔÉ·é</td> </tr> + + <tr> <td rowspan="7">DECSCUSR</td> + <td>ESC SP 0 q</td> <td>J[\`óð ^Å_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 1 q</td> <td>J[\`óð ^Å_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 2 q</td> <td>J[\`óð ^Å_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC SP 3 q</td> <td>J[\`óðºüÅ_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 4 q</td> <td>J[\`óðºüÅ_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC SP 5 q</td> <td>J[\`óðcüÅ_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 6 q</td> <td>J[\`óðcüÅ_(ñ_Å)óÔÉ·é</td> </tr> + + <tr> <td rowspan="2">WYSTCURM</td> + <td>ESC [ 33 h</td> <td>J[\ð_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC [ 33 l</td> <td>J[\ð_ÅóÔÉ·é</td> </tr> + + <tr> <td rowspan="2">WYULCURM</td> + <td>ESC [ 34 h</td> <td>J[\`óðºüÉ·é</td> </tr> + <tr> <td>ESC [ 34 l</td> <td>J[\`óð ^É·é</td> </tr> + + <tr> <td rowspan="2"> (AT&T 610) </td> + <td>ESC [ ? 12 l</td> <td>J[\ð_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC [ ? 12 h</td> <td>J[\ð_ÅóÔÉ·é</td> </tr> +</table> + <p> -The bracketed paste mode is the xterm extension feature. When this feature is enabled, the pasted text is bracketed with control sequences so that the program can differentiate the pasted text from typed-in text.<br> -The program will receive: ESC [ 200 ~, followed by the pasted text, followed by ESC [ 201 ~. +±êç̧äV[PXð}ü[hÉüé (t_SI Ýè) ¨æÑ}ü[h©çoé (t_EI Ýè) ÉoÍ·éÅA}ü[hÅÌJ[\`óðÏXÅ«Ü·B<br> +á¦Î .vimrc ÉȺÌÝèðÇÁ·éÆA}ü[hÉüÁ½ÉJ[\`óªºüÅ_ÅÉA}ü[h©ço½É ^Å_ÅÉÏíéæ¤ÉÈèÜ·B </p> +<pre class="macro-example"> +let t_SI .= "\e[3 q" +let t_EI .= "\e[1 q" +</pre> + +<p>: DECTCEM <strong>ÈO</strong>̧äV[PXðg¤ÉÍAAdditional Settings _CAOÌ Control sequence ^uÉLé Cursor control sequence ð on É·éKvª èÜ·B(ftHgÍ off)</p> +--> + +<h2><a name="Bracketed">Bracketed Paste Mode</a></h2> +<!-- h2><a name="Bracketed">Nbv{[h©çÌ\èt¯É©®Cfgð³øÉ·é</a></h2 --> +<!-- p> +ÊíAzXg¤ÌAvP[V (vim ) ©çÍA[UÌL[üÍÆNbv{[h©çÌ\èt¯ðæÊūܹñB +µ©µ xterm Ìg£@\Å é Bracketed Paste Mode ðp·éƱêçðæÊoéæ¤ÉÈé½ßANbv{[h©çÌ\èt¯Í®ìðϦéªÅ«Ü·B +</p --> + <p> +<!-- +.vimrc ÉȺÌÝèðÇÁ·éÆANbv{[h©çÌ\èt¯É©®Å set paste ðÀsµÄA©®Cfgâ⮪³øÉÈèÜ·B +--> The vim configuration is described below. The following will use xterm's bracketed paste mode to make pasting automatically enable paste mode and insert mode. Also works fine in ~/.vimrc file. </p> -<pre> +<pre class="macro-example"> if &term == "xterm" - let &t_ti = &t_ti . "\e[?2004h" - let &t_te = "\e[?2004l" . &t_te + let &t_ti .= "\e[?2004h" + let &t_te .= "\e[?2004l" let &pastetoggle = "\e[201~" function XTermPasteBegin(ret) @@ -40,6 +96,55 @@ endif </pre> +<h3>Bracketed Paste mode</h3> +<p> +The bracketed paste mode is the xterm extension feature. When this feature is enabled, the pasted text is bracketed with control sequences so that the program can differentiate the pasted text from typed-in text.<br> +The program will receive: ESC [ 200 ~, followed by the pasted text, followed by ESC [ 201 ~. +</p> + +<!-- +<h2><a name="IMEcontrol">IME ð§ä·é</a></h2> +<p> +Tera Term ÅÍ IME ÌóÔð§ä·é×ÌƩ̧äV[PXðT|[gµÄ¢Ü·B +±Ì§äV[PXðp·êÎA[hÉæè IME ÌLø/³øðØèÖ¦éÆ¢Á½ªoéæ¤ÉÈèÜ·B +</p> + +<p> +.vimrc ÉȺÌÝèðÇÁ·éÆA}ü[h©ç²¯½É IME ðItɵAÄx}ü[hÉüÁ½É IME ÌóÔð³Éß·æ¤ÉÈèÜ·B +</p> + +<pre class="macro-example"> +let &t_SI .= "\e[<r" +let &t_EI .= "\e[<s\e[<0t" +let &t_te .= "\e[<0t\e[<s" +</pre> + +<p> +: ±ÌÝèðs¤êA"<a href="#AppESC">}ü[hÅÌ ESC L[ðµ½ãÌÒ¿ð³·</a>"ÌÝèà¹pµ½ûª¢¢Åµå¤B +</p> + + +<h2><a name="AppESC">}ü[hÅÌ ESC L[ðµ½ãÌÒ¿ð³·</a></h2> +<p> +Tera Term â xterm Ì[G~ [^ÅÍAESC L[ª³ê½É ESC (0x1b) ðMµÜ·BܽAJ[\L[ât@NVL[ª³ê½É ESC ÅnÜé¶ñðMµÜ·B +±Ì×AzXg¤ÌAvP[VÅÍ ESC ðóMµÄàA»ê¾¯ÅÍ ESC L[ª³ê½Ì©A»êÆàJ[\L[ât@NVL[ª³ê½Ì©æÊ·éªoܹñB<br> +»±Å vim ÅÍ ESC ðóMµ½Í 1 bÙÇÒ¿A¼Ì¶ªçêıȢ©AçêÄ«½êÍJ[\L[ð\·¶ñÉÈé©Ç¤©ÅAESC L[ª³ê½Ì©A»êÆàJ[\L[ª³ê½Ì©ð»ÊµÜ·B +±Ì×A}ü[hÅ ESC L[ð³êÄ©çÀÛÉ}ü[hð²¯é̪ 1 böxêÜ·B +±êÉæèA<a href="#CursorStyle">[hÉæèJ[\`óðϦéÝè</a>â <a href="#IMEcontrol">IME ð§ä·éÝè</a>ðsÁÄàAóÔª½f³êé̪xêÜ·B +</p> + +<p> +±ÌâèÍ Application Wheel Mode ðg¤ÅñðÅ«Ü·B +.vimrc ÉȺÌÝèðÇÁ·éÆA}ü[hÅ ESC L[ðµ½ÉÒ½¸É·®É}ü[hð²¯éæ¤ÉÈèÜ·B +</p> + +<pre class="macro-example"> +let &t_SI .= "\e[?7727h" +let &t_EI .= "\e[?7727l" +inoremap <special> <Esc>O[ <Esc> +</pre> +--> + </body> </html> Modified: trunk/doc/ja/html/usage/tips/vim.html =================================================================== --- trunk/doc/ja/html/usage/tips/vim.html 2011-03-31 03:34:46 UTC (rev 4409) +++ trunk/doc/ja/html/usage/tips/vim.html 2011-03-31 06:54:40 UTC (rev 4410) @@ -10,22 +10,72 @@ <body> <h1>vim ©ç̧äV[PXÌgpá</h1> +<p> +Tera Term ÅÍA§äV[PXðgp·éÉæÁÄzXg¤©ç Tera Term Ì®ìðÏXµ½è·éªoÜ·B +±±ÅÍ vim ©ç±êç̧äV[PXðp·é×ÌÝèáðÐîµÜ·B +</p> -<h2><a name="Bracketed">Bracketed Paste Mode</a></h2> +<h2><a name="CursorStyle">}ü[hÖÌoüèÉJ[\`óðÏX·é</a></h2> +<p> +Tera Term ÅÍAȺÌJ[\\¦óÔÏX§äV[PXÉεĢܷB +</p> +<table border="1"> + <tr> <th>ªÌ</th> <th>V[PX</th> <th>@\</th> </tr> + + <tr> <td rowspan="2">DECTCEM</td> + <td>ESC [ ? 25 h</td> <td>J[\ð\¦óÔÉ·é</td> </tr> + <tr> <td>ESC [ ? 25 l</td> <td>J[\ðñ\¦óÔÉ·é</td> </tr> + + <tr> <td rowspan="7">DECSCUSR</td> + <td>ESC SP 0 q</td> <td>J[\`óð ^Å_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 1 q</td> <td>J[\`óð ^Å_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 2 q</td> <td>J[\`óð ^Å_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC SP 3 q</td> <td>J[\`óðºüÅ_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 4 q</td> <td>J[\`óðºüÅ_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC SP 5 q</td> <td>J[\`óðcüÅ_ÅóÔÉ·é</td> </tr> + <tr> <td>ESC SP 6 q</td> <td>J[\`óðcüÅ_(ñ_Å)óÔÉ·é</td> </tr> + + <tr> <td rowspan="2">WYSTCURM</td> + <td>ESC [ 33 h</td> <td>J[\ð_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC [ 33 l</td> <td>J[\ð_ÅóÔÉ·é</td> </tr> + + <tr> <td rowspan="2">WYULCURM</td> + <td>ESC [ 34 h</td> <td>J[\`óðºüÉ·é</td> </tr> + <tr> <td>ESC [ 34 l</td> <td>J[\`óð ^É·é</td> </tr> + + <tr> <td rowspan="2"> (AT&T 610) </td> + <td>ESC [ ? 12 l</td> <td>J[\ð_(ñ_Å)óÔÉ·é</td> </tr> + <tr> <td>ESC [ ? 12 h</td> <td>J[\ð_ÅóÔÉ·é</td> </tr> +</table> + <p> -±Ì@\Í xterm g£ÅALøÉÈÁÄ¢éÆANbv{[h©çÌ\èt¯É¶ñÌOãÉÁÊÈV[PXðtÁ·éÆ¢¤àÌÅ·B<br> -ïÌIÉÍADECSET Ì 2004(<CSI>?2004h) ÅLøÉÈèA\èt¯É¶ñÌOÉ <ESC>200~, ãëÉ <ESC>201~ ªtæ¤ÉÈèÜ·B +±êç̧äV[PXð}ü[hÉüé (t_SI Ýè) ¨æÑ}ü[h©çoé (t_EI Ýè) ÉoÍ·éÅA}ü[hÅÌJ[\`óðÏXÅ«Ü·B<br> +á¦Î .vimrc ÉȺÌÝèðÇÁ·éÆA}ü[hÉüÁ½ÉJ[\`óªºüÅ_ÅÉA}ü[h©ço½É ^Å_ÅÉÏíéæ¤ÉÈèÜ·B </p> +<pre class="macro-example"> +let t_SI .= "\e[3 q" +let t_EI .= "\e[1 q" +</pre> + +<p>: DECTCEM <strong>ÈO</strong>̧äV[PXðg¤ÉÍAAdditional Settings _CAOÌ Control sequence ^uÉLé Cursor control sequence ð on É·éKvª èÜ·B(ftHgÍ off)</p> + + +<h2><a name="Bracketed">Nbv{[h©çÌ\èt¯É©®Cfgð³øÉ·é</a></h2> <p> -鼃 vim Ì .vimrc Ýèáð¦µÜ·B\èt¯Í©®Cfgª³øÉÈèÜ·B +ÊíAzXg¤ÌAvP[V (vim ) ©çÍA[UÌL[üÍÆNbv{[h©çÌ\èt¯ðæÊūܹñB +µ©µ xterm Ìg£@\Å é Bracketed Paste Mode ðp·éƱêçðæÊoéæ¤ÉÈé½ßANbv{[h©çÌ\èt¯Í®ìðϦéªÅ«Ü·B </p> -<pre> +<p> +.vimrc ÉȺÌÝèðÇÁ·éÆANbv{[h©çÌ\èt¯É©®Å set paste ðÀsµÄA©®Cfgâ⮪³øÉÈèÜ·B +</p> + +<pre class="macro-example"> if &term == "xterm" - let &t_ti = &t_ti . "\e[?2004h" - let &t_te = "\e[?2004l" . &t_te + let &t_ti .= "\e[?2004h" + let &t_te .= "\e[?2004l" let &pastetoggle = "\e[201~" function XTermPasteBegin(ret) @@ -40,6 +90,53 @@ endif </pre> +<h3>Bracketed Paste mode</h3> +<p> +±Ì@\Í xterm g£ÅALøÉÈÁÄ¢éÆANbv{[h©çÌ\èt¯É¶ñÌOãÉÁÊÈV[PXðtÁ·éÆ¢¤àÌÅ·B<br> +ïÌIÉÍADECSET Ì 2004(<CSI>?2004h) ÅLøÉÈèA\èt¯É¶ñÌOÉ <ESC>200~, ãëÉ <ESC>201~ ªtæ¤ÉÈèÜ·B +</p> + +<h2><a name="IMEcontrol">IME ð§ä·é</a></h2> +<p> +Tera Term ÅÍ IME ÌóÔð§ä·é×ÌƩ̧äV[PXðT|[gµÄ¢Ü·B +±Ì§äV[PXðp·êÎA[hÉæè IME ÌLø/³øðØèÖ¦éÆ¢Á½ªoéæ¤ÉÈèÜ·B +</p> + +<p> +.vimrc ÉȺÌÝèðÇÁ·éÆA}ü[h©ç²¯½É IME ðItɵAÄx}ü[hÉüÁ½É IME ÌóÔð³Éß·æ¤ÉÈèÜ·B +</p> + +<pre class="macro-example"> +let &t_SI .= "\e[<r" +let &t_EI .= "\e[<s\e[<0t" +let &t_te .= "\e[<0t\e[<s" +</pre> + +<p> +: ±ÌÝèðs¤êA"<a href="#AppESC">}ü[hÅÌ ESC L[ðµ½ãÌÒ¿ð³·</a>"ÌÝèà¹pµ½ûª¢¢Åµå¤B +</p> + + +<h2><a name="AppESC">}ü[hÅÌ ESC L[ðµ½ãÌÒ¿ð³·</a></h2> +<p> +Tera Term â xterm Ì[G~ [^ÅÍAESC L[ª³ê½É ESC (0x1b) ðMµÜ·BܽAJ[\L[ât@NVL[ª³ê½É ESC ÅnÜé¶ñðMµÜ·B +±Ì×AzXg¤ÌAvP[VÅÍ ESC ðóMµÄàA»ê¾¯ÅÍ ESC L[ª³ê½Ì©A»êÆàJ[\L[ât@NVL[ª³ê½Ì©æÊ·éªoܹñB<br> +»±Å vim ÅÍ ESC ðóMµ½Í 1 bÙÇÒ¿A¼Ì¶ªçêıȢ©AçêÄ«½êÍJ[\L[ð\·¶ñÉÈé©Ç¤©ÅAESC L[ª³ê½Ì©A»êÆàJ[\L[ª³ê½Ì©ð»ÊµÜ·B +±Ì×A}ü[hÅ ESC L[ð³êÄ©çÀÛÉ}ü[hð²¯é̪ 1 böxêÜ·B +±êÉæèA<a href="#CursorStyle">[hÉæèJ[\`óðϦéÝè</a>â <a href="#IMEcontrol">IME ð§ä·éÝè</a>ðsÁÄàAóÔª½f³êé̪xêÜ·B +</p> + +<p> +±ÌâèÍ Application Wheel Mode ðg¤ÅñðÅ«Ü·B +.vimrc ÉȺÌÝèðÇÁ·éÆA}ü[hÅ ESC L[ðµ½ÉÒ½¸É·®É}ü[hð²¯éæ¤ÉÈèÜ·B +</p> + +<pre class="macro-example"> +let &t_SI .= "\e[?7727h" +let &t_EI .= "\e[?7727l" +inoremap <special> <Esc>O[ <Esc> +</pre> + </body> </html>