[Ttssh2-commit] [4711] 下記サイトを参考に、誤記修正および screen 対応。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 11月 9日 (水) 21:23:48 JST


Revision: 4711
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4711
Author:   yutakapon
Date:     2011-11-09 21:23:47 +0900 (Wed, 09 Nov 2011)

Log Message:
-----------
下記サイトを参考に、誤記修正および screen 対応。
Fedora16で動作確認済み。

http://sanrinsha.lolipop.jp/blog/2011/11/%E3%80%8Cvim-%E3%81%8B%E3%82%89%E3%81%AE%E5%88%B6%E5%BE%A1%E3%82%B7%E3%83%BC%E3%82%B1%E3%83%B3%E3%82%B9%E3%81%AE%E4%BD%BF%E7%94%A8%E4%BE%8B%E3%80%8D%E3%82%92screen%E4%B8%8A%E3%81%A7%E3%82%82%E4%BD%BF.html

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-11-08 02:23:38 UTC (rev 4710)
+++ trunk/doc/en/html/usage/tips/vim.html	2011-11-09 12:23:47 UTC (rev 4711)
@@ -57,8 +57,15 @@
 </p>
 
 <pre class="macro-example">
-let t_SI .= "\e[3 q"
-let t_EI .= "\e[1 q"
+&quot;for screen
+&quot; term xterm-256color in .screenrc
+if &amp;term == &quot;xterm-256color&quot;
+    let &amp;t_SI .= &quot;\eP\e[3 q\e\\&quot;
+    let &amp;t_EI .= &quot;\eP\e[1 q\e\\&quot;
+elseif &amp;term == &quot;xterm&quot;
+    let &amp;t_SI .= &quot;\e[3 q&quot;
+    let &amp;t_EI .= &quot;\e[1 q&quot;
+endif
 </pre>
 
 <p>NOTICE: If a user uses the control sequence except the DECTCEM, turn on the Cursor control sequence of the Additional Settings dialog(The default value is off).
@@ -76,24 +83,32 @@
 </p>
 
 <pre class="macro-example">
-if &term == "xterm"
-  let &t_ti .= "\e[?2004h"
-  let &t_te .= "\e[?2004l"
-  let &pastetoggle = "\e[201~"
+if &amp;term =~ &quot;xterm&quot;
+    &quot;for screen
+    &quot; term xterm-256color in .screenrc
+    if &amp;term == &quot;xterm-256color&quot;
+        let &amp;t_SI = &amp;t_SI . &quot;\eP\e[?2004h\e\\&quot;
+        let &amp;t_EI = &quot;\eP\e[?2004l\e\\&quot; . &amp;t_EI
+        let &amp;pastetoggle = &quot;\e[201~&quot;
+    elseif &amp;term == &quot;xterm&quot;
+        let &amp;t_SI .= &amp;t_SI . &quot;\e[?2004h&quot;
+        let &amp;t_EI .= &quot;\e[?2004l&quot; . &amp;t_EI
+        let &amp;pastetoggle = &quot;\e[201~&quot;
+    endif
 
-  function XTermPasteBegin(ret)
-    set paste
-    return a:ret
-  endfunction
+    function XTermPasteBegin(ret)
+        set paste
+        return a:ret
+    endfunction
 
-  map &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("0i")
-  imap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("")
-  cmap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
-  cmap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
+    map &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;0i&quot;)
+    imap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;&quot;)
+    cmap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
+    cmap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
 endif
 </pre>
 
-<h3>Bracketed Paste mode</h3>
+<h4>About Bracketed Paste mode</h4>
 <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 ~.

Modified: trunk/doc/ja/html/usage/tips/vim.html
===================================================================
--- trunk/doc/ja/html/usage/tips/vim.html	2011-11-08 02:23:38 UTC (rev 4710)
+++ trunk/doc/ja/html/usage/tips/vim.html	2011-11-09 12:23:47 UTC (rev 4711)
@@ -55,8 +55,15 @@
 </p>
 
 <pre class="macro-example">
-let t_SI .= "\e[3 q"
-let t_EI .= "\e[1 q"
+&quot;for screen
+&quot; .screenrc‚Återm xterm-256color‚Æ‚µ‚Ä‚¢‚éê‡
+if &amp;term == &quot;xterm-256color&quot;
+    let &amp;t_SI .= &quot;\eP\e[3 q\e\\&quot;
+    let &amp;t_EI .= &quot;\eP\e[1 q\e\\&quot;
+elseif &amp;term == &quot;xterm&quot;
+    let &amp;t_SI .= &quot;\e[3 q&quot;
+    let &amp;t_EI .= &quot;\e[1 q&quot;
+endif
 </pre>
 
 <p>’: DECTCEM <strong>ˆÈŠO</strong>‚̐§ŒäƒV[ƒPƒ“ƒX‚ðŽg‚¤‚ɂ́AAdditional Settings ƒ_ƒCƒAƒƒO‚Ì Control sequence ƒ^ƒu‚É—L‚é Cursor control sequence ‚ð on ‚É‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B(ƒfƒtƒHƒ‹ƒg‚Í off)</p>
@@ -73,24 +80,32 @@
 </p>
 
 <pre class="macro-example">
-if &term == "xterm"
-  let &t_ti .= "\e[?2004h"
-  let &t_te .= "\e[?2004l"
-  let &pastetoggle = "\e[201~"
+if &amp;term =~ &quot;xterm&quot;
+    &quot;for screen
+    &quot; .screenrc‚Återm xterm-256color‚Æ‚µ‚Ä‚¢‚éê‡
+    if &amp;term == &quot;xterm-256color&quot;
+        let &amp;t_SI = &amp;t_SI . &quot;\eP\e[?2004h\e\\&quot;
+        let &amp;t_EI = &quot;\eP\e[?2004l\e\\&quot; . &amp;t_EI
+        let &amp;pastetoggle = &quot;\e[201~&quot;
+    elseif &amp;term == &quot;xterm&quot;
+        let &amp;t_SI .= &amp;t_SI . &quot;\e[?2004h&quot;
+        let &amp;t_EI .= &quot;\e[?2004l&quot; . &amp;t_EI
+        let &amp;pastetoggle = &quot;\e[201~&quot;
+    endif
 
-  function XTermPasteBegin(ret)
-    set paste
-    return a:ret
-  endfunction
+    function XTermPasteBegin(ret)
+        set paste
+        return a:ret
+    endfunction
 
-  map &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("0i")
-  imap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("")
-  cmap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
-  cmap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
+    map &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;0i&quot;)
+    imap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;&quot;)
+    cmap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
+    cmap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
 endif
 </pre>
 
-<h3>Bracketed Paste mode</h3>
+<h4>Bracketed Paste mode ‚ɂ‚¢‚Ä</h4>
 <p>
 ‚±‚Ì‹@”\‚Í xterm Šg’£‚ŁA—LŒø‚É‚È‚Á‚Ä‚¢‚é‚ƁAƒNƒŠƒbƒvƒ{[ƒh‚©‚ç‚Ì“\‚è•t‚¯Žž‚É•¶Žš—ñ‚Ì‘OŒã‚É“Á•Ê‚ȃV[ƒPƒ“ƒX‚ð•t‰Á‚·‚é‚Æ‚¢‚¤‚à‚Ì‚Å‚·B<br>
 ‹ï‘Ì“I‚ɂ́ADECSET ‚Ì 2004(&lt;CSI&gt;?2004h) ‚Å—LŒø‚É‚È‚èA“\‚è•t‚¯Žž‚É•¶Žš—ñ‚Ì‘O‚É &lt;ESC&gt;200~, Œã‚ë‚É &lt;ESC&gt;201~ ‚ª•t‚­‚悤‚É‚È‚è‚Ü‚·B



Ttssh2-commit メーリングリストの案内
Back to archive index