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" +"for screen +" term xterm-256color in .screenrc +if &term == "xterm-256color" + let &t_SI .= "\eP\e[3 q\e\\" + let &t_EI .= "\eP\e[1 q\e\\" +elseif &term == "xterm" + let &t_SI .= "\e[3 q" + let &t_EI .= "\e[1 q" +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 &term =~ "xterm" + "for screen + " term xterm-256color in .screenrc + if &term == "xterm-256color" + let &t_SI = &t_SI . "\eP\e[?2004h\e\\" + let &t_EI = "\eP\e[?2004l\e\\" . &t_EI + let &pastetoggle = "\e[201~" + elseif &term == "xterm" + let &t_SI .= &t_SI . "\e[?2004h" + let &t_EI .= "\e[?2004l" . &t_EI + let &pastetoggle = "\e[201~" + endif - function XTermPasteBegin(ret) - set paste - return a:ret - endfunction + function XTermPasteBegin(ret) + set paste + return a:ret + endfunction - map <special> <expr> <Esc>[200~ XTermPasteBegin("0i") - imap <special> <expr> <Esc>[200~ XTermPasteBegin("") - cmap <special> <Esc>[200~ <nop> - cmap <special> <Esc>[201~ <nop> + map <special> <expr> <Esc>[200~ XTermPasteBegin("0i") + imap <special> <expr> <Esc>[200~ XTermPasteBegin("") + cmap <special> <Esc>[200~ <nop> + cmap <special> <Esc>[201~ <nop> 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" +"for screen +" .screenrcÅterm xterm-256colorƵĢéê +if &term == "xterm-256color" + let &t_SI .= "\eP\e[3 q\e\\" + let &t_EI .= "\eP\e[1 q\e\\" +elseif &term == "xterm" + let &t_SI .= "\e[3 q" + let &t_EI .= "\e[1 q" +endif </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> @@ -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 &term =~ "xterm" + "for screen + " .screenrcÅterm xterm-256colorƵĢéê + if &term == "xterm-256color" + let &t_SI = &t_SI . "\eP\e[?2004h\e\\" + let &t_EI = "\eP\e[?2004l\e\\" . &t_EI + let &pastetoggle = "\e[201~" + elseif &term == "xterm" + let &t_SI .= &t_SI . "\e[?2004h" + let &t_EI .= "\e[?2004l" . &t_EI + let &pastetoggle = "\e[201~" + endif - function XTermPasteBegin(ret) - set paste - return a:ret - endfunction + function XTermPasteBegin(ret) + set paste + return a:ret + endfunction - map <special> <expr> <Esc>[200~ XTermPasteBegin("0i") - imap <special> <expr> <Esc>[200~ XTermPasteBegin("") - cmap <special> <Esc>[200~ <nop> - cmap <special> <Esc>[201~ <nop> + map <special> <expr> <Esc>[200~ XTermPasteBegin("0i") + imap <special> <expr> <Esc>[200~ XTermPasteBegin("") + cmap <special> <Esc>[200~ <nop> + cmap <special> <Esc>[201~ <nop> endif </pre> -<h3>Bracketed Paste mode</h3> +<h4>Bracketed Paste mode É¢Ä</h4> <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