Vim 㧠Coq ç°å¢ãæ´ãã
ã¯ããã«
æ¨æ¥ãã¹ã¿ã¼ã Ssreflect ã¨ããã¤ãã³ãã«åå ãã¦ãCoq + ssreflect ã®ãã³ãºãªã³çãªãã®ãããã¾ããã Coq ç°å¢ã¨ããã°ãEmacs ã® ProofGeneral ãé常ã«æåã§ãã ããããç§ã¯ Emacs ã¯çµäºã®ä»æ¹ããåãããªãã¬ãã«ã®åå¿è ãªã®ã§ Emacs + ProofGeneral ã§ã¯ãã¥ã¼ããªã¢ã«ã®ä¾é¡ãæã¡è¾¼ãã ãã§ãé常ã«è¦å´ãã¾ããã
証æãæ®æ®µä½¿ãæ £ãã¦ãã Vim ã§ä½ã¨ãã§ããªããã¨æã調ã¹ãã¨ãããããããè¯ãæ°ãªç°å¢ãæ§ç¯ã§ããã®ã§ç´¹ä»ãã¾ãã
使ç¨ãããã©ã°ã¤ã³
以ä¸ã®2ã¤ãã¤ã³ã¹ãã¼ã«ãã¾ããNeoBundle ã®ãããªããã±ã¼ã¸ããã¼ã¸ã£ã使ç¨ããã®ããããããã¾ãã
jvoorhis/coq.vim 㯠Coq ã®ã·ã³ã¿ãã¯ã¹ã¨ã¤ã³ãã³ãè¨å®ã追å ããããã®ãã©ã°ã¤ã³ã§ãã vim-scripts/CoqIDE 㯠Vim ä¸ã§ CoqIDE ã®åä½ãã¨ãã¥ã¬ã¼ã·ã§ã³ãããã©ã°ã¤ã³ã§ããå é¨ã§ã¯ coqtop ã使ã£ã¦ããããã§ãã
ã¤ã³ã¹ãã¼ã«æ¹æ³
NeoBundle 'jvoorhis/coq.vim' NeoBundleLazy 'vim-scripts/CoqIDE', { \ 'autoload' : { \ 'filetypes' : 'coq' \ }}
使ãæ¹
Vim ã§æ¡å¼µå .v ã®ãã¡ã¤ã«ãéãã¨èªåçã«è²ä»ããããããã«ãªãã¾ãã
é©å½ã«è¨¼æãæ¸ã㦠:CoqIDENext
ãå®è¡ããã¨ã証æãã²ã¨ã¤é²ãããã¨ãã§ãã¾ãã
ããã¨ãWindow ãåå²ãã㦠CoqIDE ã¨åæ§ã«ç¾å¨ã®æ
å ±ã表示ãããããã«ãªãã¾ãã
証æãã²ã¨ã¤æ»ãã«ã¯ :CoqIDEUndo
ã使ãã¾ãã
:CoqIDEToCursor
ã¨ããã¨ã«ã¼ã½ã«ä½ç½®ã¾ã§è¨¼æãé²ãã¾ãã
è²ãå¤ãã
vim-scripts/CoqIDE ã®ããã©ã«ãè¨å®ã§ã¯è¨¼æãæ¸ãã é¨åã®è²ã¯ã©ã¤ãã°ãªã¼ã³ã«ãªã£ã¦ãã¾ãã ããã¯ç½èæ¯ã®ã«ã©ã¼ã¹ãã¼ã ã§ã¯è¯ãã®ã§ãããé»èæ¯ã®å ´åã¯é常ã«è¦ã¥ããã§ãã ããã解決ããã«ã¯ vimrc ã«ä¸è¨ã®ããã«ãã¤ã©ã¤ãè¨å®ãæ¸ãã¾ãã
autocmd FileType coq highlight SentToCoq ctermbg=17 guibg=#000080
ãããã«
Vim ã§ãçµæ§ããæãã« Coq ã®ç°å¢ãæ´ãããã¾ããã ã¾ã ProofGeneral ã¨æ¯ã¹ã㨠(å¤å) æ©è½çã«å£ã£ã¦ããã¨ã¯æãã¾ãããã©ããã¦ã Vim ã§è¨¼æããã人ã¯è©¦ãã¦ã¿ã¦ã¯ãããã§ããããï¼