vim+pythonã§Eclipseã®ãããªèªåè£å®ãå®ç¾ãã
ä»ã¾ã§vimã§pythonã®è£å®ã¯pydictionã¨neocomplcacheã使ã£ã¦ãã¾ããï¼ï¼æ¥ãããï¼
åæã§pydictionãæåãªã®ã§çµæ§ããã®ãã¨æã£ããéããã¦ãã°ãã£ã
pythonã®ãã¡ã¤ã«ãéãããªã5ç§ãããè¾æ¸ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ã§æ¢ã¾ã£ã¦ãã¾ããä»ã¾ã§è£å®ã¨ããã°IDEã®eclipseããç¥ããªãè¶
ãã¨ãã®ç§ã¯é©ãã¦å³neocomplcacheã®ãã£ãã·ã¥ããcomplete-dictãæ¶ãã
ã¡ãªã¿ã«neocomplcacheã®è¾æ¸ãã¡ã¤ã«ã®ãã£ãã·ã¥ã¯
~/.neocon/dictionary_cache/python
ã¨ãã«ããã®ã§ãããæ¶ããªãã¨å ã®è¾æ¸ãã¡ã¤ã«ãæ¶ãã¦ãä¸çä¿ç®¡ãç¶ãããç¦ãã
IDEã®ãããªç´ æ´ããããªã ãè£å®ãããpluginã¯ãªãã®ãã¨æ¢ãããããã£ãã
- pythoncomplete
- pysmell
- (neocomplcache) âåæ
ã
pythoncompleteã¯pythonã®ãªã ãè£å®ã§ã¯å¸¸èï¼ãªã®ããª
æ¨æºã©ã¤ãã©ãªã¯å
¨é¨èªåè£å®ãã¦ãããã£ã½ã
pysmellã¯èªåè£å®ãããã©ã¤ãã©ãªãªã©ãæå®ãã¦èªåè£å®ç¨ã®ãã¡ã¤ã«ãä½æããã°è£å®ãã¦ããã
,vimrcã«
autocmd FileType python set omnifunc=pythoncomplete#Complete
ã£ã¦æ¸ãã¨pythoncompleteã®èªåè£å®ãå¹ãï¼ä¾¿å©ï¼ï¼
autocmd FileType python set omnifunc=pysmell#Complete
ã£ã¦æ¸ãã¨pysmellã®èªåè£å®ãå¹ãï¼ä¾¿å©ï¼ï¼
â¦ã©ã£ã¡ã®è£å®ãåè£ã«åºãã¦ãï¼ï¼ï¼omnifuncã£ã¦è¤æ°è¨å®ã¯ã§ããªãã®ï¼ã©ãããäºãªã®ï¼èª°ãæãã¦ãã ããï¼ï¼
äºã¤ã®ãã©ã°ã¤ã³ãæå®ã§ããªãã£ã½ãããªã®ã§è¦èã®çã¨ãã¦pythoncomplete.vimã¨pysmell.vimãã²ã¨ã¤ã®vimãã¡ã¤ã«ã«åããããåãã¦ããã£ãvimScriptãã«ãªã¹éããâ¦ã§ã便å©ï¼
datetimeã®ã¡ã½ãããèªåè£å®
djangoã®ã¡ã½ãããèªåè£å®
pysmellå´ã§djangoã®ã©ã¤ãã©ãªãã¡ã¤ã«ãæå®ãã¦ãããã°djangoã®éçºããµã¯ãµã¯ï¼ï¼
Eclipseã§éçºãã¦ãã®ãã®å¦ããªããããªè£å®ï¼ï¼pysmellã§è¤æ°ã©ã¤ãã©ãªãè£å®ãããã¨ããã¨éããªãã®ã§æ³¨æï¼
ãã¡ã¤ã«ãéãã¨ãããã£ã¯ã·ã§ããªè£å®ã®ããã«å¾
ãããããã¨ããªãï¼ãµã¯ãµã¯ï¼
ãã£ã¯ã·ã§ããªè£å®ï¼ç¬ï¼
é£ç¹ã¯è¥å¹²pysmellã®è¨å®ãé¢åãããç¹ã
ãã¨æåãdeleteããã¨ãã¡ãã£ã¨é
延ãçºçããã®ãæ°ã«ãªãâ¦ããã ãã¯ã©ãã«ããªããããªã¼