Vimã§éçºãããªãããã ãã¯ãã£ã¨ã
éçºå¹çãä¸ããããã®ãã©ã°ã¤ã³ãæ©è½ã®ãç´¹ä»ã
â neocomplcache
http://github.com/Shougo/neocomplcache
èªåã§è£å®åè£ããããã¢ãããã¦ããããã©ã°ã¤ã³ã§ãVimã§å¹ççãªéçºããããã¨æãã®ã§ããã°å¿
é ã®ãã©ã°ã¤ã³ã§ããvimrcã«ä»¥ä¸ã®1è¡ãå ããã°ãã©ã°ã¤ã³ãæå¹ã«ãªãã¾ãã
let g:neocomplcache_enable_at_startup = 1
æå¹ã«ããä¸ã§é©å½ã«ãã¡ã¤ã«ãç·¨éããã°èªåã§è£å®åè£ãåºã¦ãã¾ããåè£ãé¸ã¶æã¯Ctrl+Nã§æ¬¡ã®åè£ãCtrl+Pã§åã®åè£ãé¸æã§ãã¾ãã
è¨å®é
ç®ãããããããã¾ãã:help neocomplcache@ja ã¨ããã°æ¥æ¬èªãã«ããè¦ããã®ã§ãåç
§ããªããè¨å®ãã¦ãã ããã
ãããã®ãã©ã°ã¤ã³ã使ã£ããã¨ããªãã®ã§ããã°ã人çã®ååã¯æããã¦ãã¾ãã
â ããã¹ããªãã¸ã§ã¯ã
Vimæ¨æºã®æ©è½ã§ããã«ãã³ã§å²ã¾ããããã¹ããã²ã¨ã¾ã¨ã¾ãã¨ãã¦æ±ãã¾ããä¾ãã°
if (hog*e == 2)
ã¢ã¹ã¿ãªã¹ã¯(*)ãç¾å¨ã®ã«ã¼ã½ã«ä½ç½®ã¨ãã¦ãdi( ã¨æã¤ã¨
if ()
ã¨ãªãã¾ããã«ãã³ã®ä¸ã§ããã°ã«ã¼ã½ã«ã¯ã©ãã«ãã£ã¦ãæ§ãã¾ãããã¾ããda( ã ã¨
if
ã¨ãªã£ã¦ãã«ãã³ãå«ãã¦ã²ã¨ã¾ã¨ã¾ãã¨ãã¦ããã¾ããd ã®é¨åã¯ãªãã¬ã¼ã¿ã¼ãªã®ã§ãc ã«å¤ããã¨åé¤+æ¿å ¥ã¢ã¼ãã«ãªãã¾ãããv ã«å¤ããã°ãã¸ã¥ã¢ã«é¸æã§ãã¾ããã¾ããã«ãã³ã®ä¸ã«æ¹è¡ããã£ã¦ã大ä¸å¤«ã§ãã
func (x) { <-ãã®ã«ãã³ã®ä¸ã§ di{ ã¨ãã㨠print "hoge"; print "foo"; }
func (x) { }
ãããªãã¾ãã対å¿ãã¦ããã«ãã³ã¯[]ã()ã{}ã<>ããã¨ã¯""ã''ã``ãªã©ã®ã¯ãªã¼ãã«ã対å¿ãã¦ãã¾ããä»ã«HTMLã¿ã°ãªã©ã«ã使ããã®ã§ããã詳ããã¯:help text-objectsãåç
§ãã¦ãã ããã
â surround
http://www.vim.org/scripts/script.php?script_id=1697
åè¿°ã®ããã¹ããªãã¸ã§ã¯ãã¨å¯¾ã«ãªããããªãã©ã°ã¤ã³ã§ãã
ããã¹ããªãã¸ã§ã¯ãã§ã¯ã«ãã³ã§å²ã¾ããããã¹ããæ±ãã¾ãããsurroundã¯å¤å´ã®ã«ãã³ãæ±ãã¾ããããã¹ããªãã¸ã§ã¯ãã¨åãä¾ã ã¨
if (hog*e == 2)
ã¢ã¹ã¿ãªã¹ã¯ã®ä½ç½®ã«ã«ã¼ã½ã«ãç½®ã㦠ds( ã¨æã¤ã¨
if hoge == 2
ã¨ãªãã¾ããã«ãã³ã®ç½®ãæããå¯è½ã§ããªãã¬ã¼ã¿ã¼ã® d ã c ã«å¤ã㦠cs(] ã¨ããã¨ç½®ãæãããã¾ãã
if [hoge == 2]
ãªãã¬ã¼ã¿ã¼ã y ã«ãããã¨ã§ãã«ãã³ã§å²ããã¨ãã§ãã¾ãã
if *hoge == 2 | <- *ã®ä½ç½®ã§ ys$) ã§ã«ã¼ã½ã«ä½ç½®ãã$(è¡æ«)ã¾ã§ãå²ã -> | if (hoge == 2) if *hoge == 2 | <- *ã®ä½ç½®ã§ vllls) ã§é¸æç¯å²ãå²ã -> | if (hoge) == 2 if hoge == 2 | <- yss) ã§è¡ãå²ã -> | (if hoge == 2)
対å¿ããã«ãã³ãã¯ãªã¼ãã¯ããã¹ããªãã¸ã§ã¯ãã¨åãã§ãããã£ã¨è©³ããç¥ãããæ¹ã¯:help surroundãåç
§ãã¦ãã ããã
â NERD commenter
http://github.com/scrooloose/nerdcommenter
ã³ã¼ãã®ã³ã¡ã³ãã¢ã¦ãã楽ã«ããããã®ãã©ã°ã¤ã³ãä»ã«ãè²ã
試ãããã©ãããã¼ã«ä½¿ãããã§ã¯ãªãã£ãã®ã§ããã«è½ã¡çããã
ã¨ããããç¯å²ãæå®ããä¸ã§ã
ããããªè¨èªã«å¯¾å¿ãã¦ãããè¨èªã«ãã£ãæ§æã§ã³ã¡ã³ãã¢ã¦ããã¦ãããã
print("hoge") -> #print("hoge")
ã³ã¡ã³ãã¢ã¦ããããç¶æ ã§ãã1åã³ãã³ããå ¥åããã¨è§£é¤ãã¦ãããã
print("hoge")
#print("hoge") -> print("hoge")
ã³ã¡ã³ãã¢ã¦ãããã¦ãªãç¶æ ã§ãã1åå ¥åãã¦ãå¤ãããªãã
print("hoge")
ä»ã«ããã©ã°ã¤ã³ãªãã°AlignãsnipMateãéçºè£å©ã¨ãã¦ã¯ctagsã¨ã®é£æºæ©è½ãããã¾ããVimã§ããã«å¹çããéçºããã人ã¯èª¿ã¹ã¦è¦ã¦ãã ããã
ã¨ããããè²ã
調ã¹ããã¨ãã¯:helpæå¼·ã§ãããã«ãã®æ¥æ¬èªè¨³ãããã¾ã*1ã®ã§ããã¡ãã®ãµã¤ããåç
§ãã¦ãããã¨æãã¾ãã