svnno****@sourc*****
svnno****@sourc*****
2010年 5月 17日 (月) 17:40:17 JST
Revision: 3894 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3894 Author: doda Date: 2010-05-17 17:40:17 +0900 (Mon, 17 May 2010) Log Message: ----------- ã»"<", ">" ãå®ä½åç §ã«ä¿®æ£ã ã»ã¿ã°ä»ããä¿®æ£ã ã»set compatible ãã¦ãã¦ãåé¡ãªãããã«ãpastetoggle ã®è¨å®æ¹æ³ãå¤æ´ã Modified Paths: -------------- trunk/doc/en/html/usage/tips/xterm.html trunk/doc/ja/html/usage/tips/xterm.html -------------- next part -------------- Modified: trunk/doc/en/html/usage/tips/xterm.html =================================================================== --- trunk/doc/en/html/usage/tips/xterm.html 2010-05-17 08:19:05 UTC (rev 3893) +++ trunk/doc/en/html/usage/tips/xterm.html 2010-05-17 08:40:17 UTC (rev 3894) @@ -1,41 +1,45 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -<HTML> -<HEAD> +<html> +<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -<TITLE>Tips on xterm</TITLE> -<META http-equiv="Content-Style-Type" content="text/css"> +<title>Tips on xterm</title> +<meta http-equiv="Content-Style-Type" content="text/css"> <link rel="stylesheet" href="../../style.css" type="text/css"> -</HEAD> -<BODY> +</head> +<body> <h1>Tips on xterm</h1> -<a name="Bracketed"></a> -<h2>Bracketed Paste Mode</h2> +<h2><a name="Bracketed">Bracketed Paste Mode</a></h2> +<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> + <p> - 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> if &term == "xterm" let &t_ti = &t_ti . "\e[?2004h" let &t_te = "\e[?2004l" . &t_te - set pastetoggle=<Esc>[201~ + let &pastetoggle = "\e[201~" + function XTermPasteBegin(ret) set paste return a:ret endfunction + map <special> <expr> <Esc>[200~ XTermPasteBegin("i") imap <special> <expr> <Esc>[200~ XTermPasteBegin("") - cmap <special> <Esc>[200~ <nop> - cmap <special> <Esc>[201~ <nop> + cmap <special> <Esc>[200~ <nop> + cmap <special> <Esc>[201~ <nop> endif </pre> -</BODY> -</HTML> +</body> +</html> Modified: trunk/doc/ja/html/usage/tips/xterm.html =================================================================== --- trunk/doc/ja/html/usage/tips/xterm.html 2010-05-17 08:19:05 UTC (rev 3893) +++ trunk/doc/ja/html/usage/tips/xterm.html 2010-05-17 08:40:17 UTC (rev 3894) @@ -1,41 +1,45 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -<HTML> -<HEAD> +<html> +<head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> -<TITLE>xterm Ìqg</TITLE> -<META http-equiv="Content-Style-Type" content="text/css"> +<title>xterm Ìqg</title> +<meta http-equiv="Content-Style-Type" content="text/css"> <link rel="stylesheet" href="../../style.css" type="text/css"> -</HEAD> -<BODY> +</head> +<body> <h1>xterm Ìqg</h1> -<a name="Bracketed"></a> -<h2>Bracketed Paste Mode</h2> +<h2><a name="Bracketed">Bracketed Paste Mode</a></h2> +<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 +ïÌIÉÍADECSET Ì 2004(<CSI>?2004h) ÅLøÉÈèA\èt¯É¶ñÌOÉ <ESC>200~, ãëÉ <ESC>201~ ªtæ¤ÉÈèÜ·B +</p> + <p> - 鼃 vim Ì .vimrc Ýèáð¦µÜ·B\èt¯Í©®Cfgª³øÉÈèÜ·B +</p> <pre> if &term == "xterm" let &t_ti = &t_ti . "\e[?2004h" let &t_te = "\e[?2004l" . &t_te - set pastetoggle=<Esc>[201~ + let &pastetoggle = "\e[201~" + function XTermPasteBegin(ret) set paste return a:ret endfunction + map <special> <expr> <Esc>[200~ XTermPasteBegin("i") imap <special> <expr> <Esc>[200~ XTermPasteBegin("") - cmap <special> <Esc>[200~ <nop> - cmap <special> <Esc>[201~ <nop> + cmap <special> <Esc>[200~ <nop> + cmap <special> <Esc>[201~ <nop> endif </pre> -</BODY> -</HTML> +</body> +</html>