windowsã®é¦ãå±gvimããdiffãã³ãã³ãã使ããªç¡ãã£ãã®ã§ã¡ã¢ã¡ã¢ãåå¿é²ãããã«ãããã追è¨ãã¦ã¾ãã
diff
:vert diffsplit [ãã¡ã¤ã«ãã¹]
ã§ãç¾å¨ãããã¡ã§éãã¦ãããã¡ã¤ã«ã¨ããã¡ã¤ã«ãã¹ã§æå®ãããã¡ã¤ã«ã¨ã§diffã
æãããã¿ã¯ za ã§éãã
è¿½è¨ 2009/10/20 21:26:26
Windowsã®é¦ãå±vimã§ã¯ãã®ã¾ã¾ã§ã¯è²åãããããªãã§ããdiffã®ãã¤ããªãã¡ã¤ã«ãè¦ãã¾ããä¸è¨ã®ãµã¤ãã®ãdiffã³ãã³ãã®ã¤ã³ã¹ãã¼ã«ããåèã«ãã¦ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
Windows環境のvimエディタでdiff機能を使うには — 名無しのvim使い
ãã¨ãé¦ãå±vimã®å ´åVDsplitã使ã£ãæ¹ãæ©ãã§ãã
å·®åãåããããããã¡ã§
:VDsplit [path]
åã«è¡ã£ãä½æ¥ã®ç¹°ãè¿ã
ã³ãã³ãã¢ã¼ã㧠ã.ã
/ã¨nã«ããæ¤ç´¢ã§è¡æ«ã«å¤æ´ã追å ãã¦åãã¨ããªã©ã«ä¾¿å©ã
ã³ãã¼ã»ãã¼ã¹ã
ã³ãã³ãã¢ã¼ãã§vãããã¦ãã¸ã¥ã¢ã«ã¢ã¼ãã«ãããããã¦å¿ è¦ãªæãé¸æã
ctrl+insertã§ã³ãã¼ãctrl+deleteã§åãåãã
ããã¦Shift+insertã§è²¼ãä»ãã
å¤é¨grep
追è¨ã2009/04/10 15:47:09
cdã§ãã£ã¦æ¤ç´¢ãè¡ããããã£ã¬ã¯ããªã¾ã§ã«ã¬ã³ãã移åãã¦å®è¡ã
:vimgrep [æ¤ç´¢èª] ./*.php
ãµããã£ã¬ã¯ããªãªã©ã調ã¹ã«è¡ãã¨ãã¯ä¸è¨
:vimgrep [æ¤ç´¢èª] **/*.php
ãã§ãã£ã¦ãã®ã¾ã¾ã ã¨ããããã1ã¤ãã表示ããç¡ãã®ã§æ¬¡ã®ã³ãã³ãã§çµæãä¸è¦§è¡¨ç¤ºã
:cwindow
vimé¢ä¿ã®æ å ±linksããã¨ã§èªãã
vim カスタマイズ - Fedora 19(はてな)
http://www.q-eng.imat.eng.osaka-cu.ac.jp/~ippei/unix/vim.html