tpopeå çã®ææ°ä½ãèªããã®ã¯Gitã ã!!
æãã¨ããããã£ã¦${HOME}/.vimãæ´çããããã®ä»ç°å¢ããã¬ã¤ã«ãã¦ãã¦è©¦ããããã¾ããã£ãtipsã§ãã
vimã§Railsã¢ããªã®éçºããã¦ãã人ã¯ã»ã¼ééããªã tpope先生ã®ãä¸è©±ã«ãªã£ã¦ããã¨ã¨æãã¾ããrails.vimã®ä½è
ã®æ¹ã§ããã
rails.vimã¯vim.orgããè½ã¨ããããæã§å
¥ãããªãGLVSã§å
¥ãããªãããã°ãããã§ãããå
çã¯ã»ãã«ãvim-cucumberã¨ãvim-hamlã¨ã使ããã«ã¯ããããªããã©ã°ã¤ã³ãä½ã£ã¦ããã¦ãããããããã¯vim.orgã«ã¯ã¾ã æ¥ã¦ããªããã¨ããããããæãã«è¿½ãããã¦ç®¡çããæ¹æ³ãæãã¤ããã®ã§æ¸ãã¦ã¿ã¾ãã
åæã¨ãã¦ã~/.vimãGitãªãã¸ããªã§ããå¿
è¦ãããã¾ããä¸ä½ãã£ã¬ã¯ããªããã¨ãã°~/ã®å ´åã¯åºæ¥ãªãããªã®ã§ãåå²ããã¨ããã¨æãã¾ããç§ã¯ä»åã®ä»¶ã§~/.*å
¨è¬ãã~/.vim(ã¨~/.zsh)ã ãã¯ãªãã¸ããªåãããã¨æãã¾ããã
ã¨ãããã¨ã§ã
ãµã¤ãã«.vimãä½ã£ã¦git initãã¦ããã¾ã§ã¤ãã£ã¦ãvimã¹ã¯ãªããããªã«ããã移æ¤ãã¾ãã
$ mv ~/.vim ~/dot.vim.orig $ mkdir ~/.vim; cd ~/.vim $ git init $ cp -r ../dot.vim.orig/* . é©å½ã«ignoreããããããã $ git add * $ git commit -m "import"
次ã«remoteã«tpopeå çã®ãªãã¸ããªã¨ããããããç»é²ãã¾ãã
$ git remote add vim-cucumber git://github.com/tpope/vim-cucumber.git $ git remote add vim-haml git://github.com/tpope/vim-haml.git
git remote updateããã¨ããããéã£ã¦ãã¾ãã
$ git remote update
ãã®ã¨ããtagã ãã¯ã³ã³ããªã¯ããã¦ãã¾ãã¾ããæ°ã«ãªãå ´åã¯git fetch vim-cucumberã¨ãä¸åãã¤ãã£ãããã§ãtagãæ¯ãç´ãã¨ããã§ãããã
ãã¨ã¯mergeããã ãã
$ git merge vim-cucumber/master $ git merge vim-haml/master
ããã§OKãGitããããª
ããã®ãªãã¸ããªã§è©¦ãã¦ã¿ããã§ãããã¡ããã¨åºæ¥ã¦ã¾ãã
$ ls ftplugin
cucumber.vim haml.vim sass.vim
tpopeå çã®çãé²ãã å ´åãremote updateãã¦æ¹ãã¦å·®åãmergeããã¨ããã¨æãã¾ãã