vimã§ãã¡ã¤ã«åãã¿ãè£å®ããæãbashã®è£å®ã¨æè¦ãéãã®ã§ä½¿ãã¥ããã
ã¿ãè£å®ã¯wildmodeã§åããè¨å®ãããã¨ãã§ããã
wildmodeã¯ä»¥ä¸ã®å¤ãè¨å®ã§ãã
å¤ | 説æ |
---|---|
"" | æåã®ãããã®ã¿è£å® |
full | TABãæ¼ããã¨ã«æ¬¡ã®ããããè£å®ãããwildmenuãæå¹ãªãwildmenuãéå§ãã |
longest | å ±éããæé·ã®é¨åã¾ã§è£å®ãã |
list | ããããããã®ããªã¹ã表示ãã |
longest:full | longestã¨åãã ããwildmenuãæå¹ãªãwildmenuãéå§ãã |
list:full | ããããããã®ããªã¹ã表示ãã¤ã¤ãTABãæ¼ããã¨ã«æ¬¡ã®ããããè£å® |
list:longest | ããããããã®ããªã¹ã表示ãã¤ã¤ãå ±éããæé·ã®é¨åã¾ã§è£å® |
è¨èã§èª¬æãã¦ããããã¥ããã®ã§ä¾ç¤ºããã
$ ls sample1 sample2 sample3
ã¨ãããããªç¶æ³ã§ã
:e sa<TAB>
ã¨å ¥åããã¨ããã
空æåã ã¨ãsample1ãè£å®ããä½åº¦TABãæ¼ãã¦ããã以ä¸è£å®ããªã
fullã ã¨ãTABãæ¼ããã¨ã«sample1,sample2,sample3,sample1,...ã¨è£å®ãã
longestã ã¨ãsampleã¾ã§è£å®ãã¦æ¢ã¾ã
listã ã¨ãsample1,sample2,sample3ããªã¹ã表示ããè£å®ã¯è¡ããªãã
list:fullã ã¨ãsample1,sample2,sample3ããªã¹ã表示ããsample1ã«è£å®ãããããã«TABãæ¼ããã¨ã«ãsample2,sample3,sample1,...ã¨è£å®ãã
list:longestã ã¨ãsample1,sample2,sample3ããªã¹ã表示ããsampleã¾ã§è£å®ããã
ããã«ãã«ã³ãåºåããã¨ã§ãã¿ãã®åæ°ã«ããåä½ãå¤æ´ãããã¨ãã§ãããæ大ã§4åç®ã¾ã§å¤æ´ã
ä¾ãã°ã以ä¸ã®ããã«longest,listã¨è¨å®ããã¨ãbashã®è£å®ã«è¿ããsampleã¾ã§è£å®ãã¦ãããä¸åº¦TABãæ¼ãã¨ãsample1,sample2,sample3ãã¿ãè£å®ããããããä¸çªèªåã«ã¯ä½¿ããããã£ãã
set wildmode=longest,full
ãã¨ãfullã¨longest:fullã«ããwildmenuã¨ããã®ã¯ã´ã£ã¸ã¥ã¢ã«ã«åè£è¡¨ç¤ºããããã®ã§ããã以ä¸ã®ããã«wildmenuããªã³ã«ããå¾ã«ãwildmodeãfullãlongest:fullã«ããã¨ä½¿ããã®ã ããèªåã«ã¯ã¤ãã¤ã使ãã¥ããã£ãã
set wildmenu set wildmode=full