vim
ãããã¡ä¸ã®ã½ã¼ã¹ã³ã¼ããå®è¡ - MEMO:ã¯ã¦ãªæ¯åº ä»å¾ã®èª²é¡ å®è¡çµæãåå²ã¦ã¤ã³ãã¦ã«åºããã¨ãããªã http://d.hatena.ne.jp/katona/20070723/1185200165 ã¨æ¸ããã¾ã¾ã»ã£ããããã«ãã¦ããéã«ããã®èª²é¡ã解決ï¼Î±ãã¦ãããã®ãçºè¦ã Vim-usersâ¦
vimããä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ãã¼ã·ã¼ã±ã³ã¹ãéã£ã¦å¶å¾¡ããé¢æ°ãä½ã£ãã ã£ã¦ãåã«WScript.Shellãå¼ã³åºãã¦ãã ãã ãã©ã 使ãæ¹ :call Sendkey('対象ã¢ããªã±ã¼ã·ã§ã³ã®ã¦ã¤ã³ãã¦ã¿ã¤ãã«','éä¿¡ãããã¼ã·ã¼ã±ã³ã¹') ã³ã¼ãæ¬ä½ function! Sendâ¦
æ¡å¼µåã¨ãã¡ã¤ã«ã¿ã¤ãã®å¯¾å¿ã¥ãã¯$VIMRUNTIME/filetype.vimã«å®ç¾©ããã¦ããããã ã Vim documentation: filetype 詳細: ":filetype on"ã³ãã³ãã¯æ¬¡ã®ãã¡ã¤ã«ã®ãã¡1ã¤ããã¼ãããã MS-DOS $VIMRUNTIME\filetype.vim Unix $VIMRUNTIME/filetype.vim â¦
omniè£å®ããã«ãããããã°ãªã©ã便å©æ©è½æºè¼ã Haskell mode for Vim ããæãããã æ¿ãã使ããããªã³ãã³ããã :GHCi main ghciã§é¢æ°mainãä½ç¨ãããããã http://d.hatena.ne.jp/tanakaBox/20071018/1192653919 è¯ããããªã®ã§ã¤ã³ã¹ãã¼ã«ãã¦â¦
ãã®æç¹ã®ãããã¡ä¸ã®ã½ã¼ã¹ã³ã¼ããæ¡å¼µåã«å¿ããå¦çç³»ã§å®è¡ããã åæ© ä»ã¾ã§ã¯ã:%!rubyã¨ãã§æ¸ã¾ãã¦ããã ãã©ãrunghcã¨ãwscriptã 㨠ãã¡ã¤ã«ã®æ¡å¼µåãè¦ã¦ãã®ã§ããã«å¯¾å¦ããããã«ä½ã£ã¦ã¿ãã æºå 以ä¸ã®å 容ãwindowsãªã$VIM/_vimrcâ¦
ããã¥ã¡ã³ããè¦ã¦ãããmapã¨ãrangeã¨ãã使ããã®ãããã£ãã®ã§ã¡ãã£ã¨ç·´ç¿ã«FizzBuzzãæ¸ãã¦ã¿ãã ãããã¡ã«åºåç :call append(0,map(range(1,100),'!(v:val%15)?"FizzBuzz":!(v:val%3)?"Fizz":!(v:val%5)?"Bazz":v:val')) ãããã¡ãæ±ããªãçâ¦
vimã¹ã¯ãªããã§ãããã¿ã¤ããã¼ã¹ã®æ¸ãæ¹ãåºæ¥ãã¨ã¯ã 試ãã«ä»åã¯è¤ç´ æ°ãªãã¸ã§ã¯ããä½ã£ã¦ã¿ãã let Complex={} function Complex.new(r,i) dict let obj=copy(self) let obj.real=a:r let obj.img=a:i return obj endfunction function Complex.â¦