ããã¯ä½ï¼ Linuxã主ç°å¢ã¨ãã¦ãè¤æ°OSéã§vimã®è¨å®ãå ±æããçºã®ã¡ã¢ã§ã ç°å¢è©³ç´° ç¾å¨ä»¥ä¸ã®ç°å¢ã§åä½ã確èªãã¦ãã¾ã -Ubuntu 8.x -Windows XP SP2 -Mac OS X Snow Leopard ãã®ãã¡MAC OS Xã対å¿ãããã§ã DropBox ã¾ãã¯ãDropBoxã«ä»¥ä¸ã®ãã¡ã¤ã«ããã£ã¬ã¯ããªãç¨æãã¾ã ~/DropBox/dotfile/.vimrc ~/DropBox/dotfile/.vim/ .vimrcã®è¨å® .vimã®ä¸èº«ãè¤æ°ãã·ã³ã§å ±æãããããå ±æããããå°ããã®ããã¼ã«ã«ã«åºãã¾ã å ·ä½çã«ã¯ãã®è¾ºã®è¨å®ãå¤æ´ãã¾ã "swapãã¡ã¤ã«ãã¾ã¨ãã¦ç½®ãå ´æ(DropBox対ç) set swapfile set directory=~/.vimswap "backupãã¡ã¤ã«ãã¾ã¨ãã¦ç½®ãå ´æ(DropBox対ç) s
Vimãã使ãã®çæ§ã®å¤ãã¯ãpathogenã¨git-submoduleãé§ä½¿ãã¦ãã©ã°ã¤ã³ã管çãã¦ããã®ã§ã¯ãªããã¨æãã¾ãã pathogenã¨git-submoduleã®åé¡ç§ããã®æ¹æ³ã使ã£ã¦ããã®ã§ãããgit-submoduleãVimãã©ã°ã¤ã³ã®ç®¡çã«ä½¿ãã®ã¯ãªã¼ãã¼ã¹ããã¯ã ã¨æãã¦ãã¾ããã ç§ã¯ãã©ã°ã¤ã³éçºè ã§ã¯ãªãã®ã§ããã©ã°ã¤ã³ã®ãã¼ã¸ã§ã³ãåºå®ãããã¨ãã欲æ±ãããããã§ããªãã§ãããã§ããã ãæ°ããç©ã使ãããããã§ãã ããããã¨ããã¨ãã°æ¯æãgit submodule updateãã¨ããã£ã¡ããã¨ãã大å¤ã§ãã æ¯æ¥ãplugin version bumpãã¿ãããªã³ããããããªãããããªãããã§ããã ç§ã¯å¸¸ã«ææ°ã®ãã©ã°ã¤ã³ã使ãããã ããªã®ã«ãã³ããããã°ãã©ãã©ãæ±ãã¦ããã¾ãã ã¾ããå¤ã®ç°å¢ã§ãã©ã°ã¤ã³ã管çããªãããããªãã¨ããã®ãã
vimã使ãå§ãã¦æ«ãçµã¤ã®ã ãããªããªãåå¿è ã¬ãã«ãæããããªãã ãããããã£ããvimã使ã£ã¦ã¿ããã¨æãã èããã¨ãããdotfiles(.vimrcãªã©)ã¯githubã§ç®¡çããã¨ä¾¿å©ãããã ã¾ããvimã®pluginã¯vundleã§ç®¡çããã®ããã¦ããããã ä»åã¯ãã®äºã¤ãå®éã«è¡ã£ã¦ã¿ãã ãªããdotfilesã¯Windowsã¨Macã§å ±æããã ç®æ¬¡ ã»vundleã¨ã¯ ã»ç®çã¨æ¹é ã»dotfilesã®ç®¡çã¨vundleã®å°å ¥ ã»vundleãå©ç¨ãããã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã« vundleã¨ã¯ ãããããvundleã¨ã¯ä½ãã ç°¡åã«è¨ãã¨ãvimã®pluginã管çããpluginã§ããã Rubyã®Bundlerã«å½±é¿ãåããããããï¼å人çã«ããããã¤ã³ãé«ãã£ããï¼ ç¹å¾´ã¯ãpluginã.vimrcã§ç®¡çãããã¨ã .vimrcã«å¿ è¦ãªæ å ±ãæ¸ãã¦ãã
ããã¾ã§ä½¿ã£ã¦ãã Linux ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® vim ã¯å¤§æµåæã« set backspace ãã¦ããã¦ããã®ã§ï¼ããã¯ã¹ãã¼ã¹ãå¹ãã®ãå½ããåãªæè¦ã«ãªã£ã¦ãã⦠.vimrc ã«èªåã§è¨å®ãã¦è§£æ±º " ã¤ã³ãµã¼ãã¢ã¼ãæã«ããã¯ã¹ãã¼ã¹ã使ã set backspace=indent,eol,start
æ¥æ¬èªãã¡ã¤ã«ã vim/gvimã§èªã¿è¾¼ãã¨æååãããã®ã¯ãåºæ¬çã«ä»¥ä¸ã®ã©ããã§ãã vim/gvimã®å é¨ã¨ã³ã³ã¼ããcp932ã§ããã®ã«cp932ã§æ±ããªãæåãå«ããã¡ã¤ã«ãéãå ´åiconvã使ããªãå ´åãã¡ã¤ã«ã¨ã³ã³ã¼ãã£ã³ã°ã誤èªèããå ´åcp932ã¨utf-8 utf-8ã«ã¯cp932ã§ã¯æ±ããªãæåãå«ã¾ãã¦ãã¾ãã Windowsã® vim/gvimã¯å é¨ã¨ã³ã³ã¼ãã£ã³ã°ã®ããã©ã«ãã cp932ãªã®ã§ utf-8ã§ãã表示ã§ããªãæåãå«ã¾ãããã¡ã¤ã«ã®å ´åã¯å½ç¶æååããã¾ãã ãã®å ´åã®å¯¾å¦ã¨ãã¦ã¯ vim/gvimã®å é¨ã¨ã³ã³ã¼ãã£ã³ã°ã utf-8ã«ããããããã¾ããã ã¾ãå¯è½ãªãææ¸èªä½ãcp932(Shift_JIS)ã¸å¤æãã¦ãã¾ãæãããã¾ãã ãUTF-8âcp932(Shift_JIS)å¤æ表ã å½ç¶ã§ããå¤æä½æ¥ãVimã§è¡ãããå ´åã¯å é¨
ååã«å¼ãç¶ãï¼ã¯ã¦ãªã®æè¡åå¼·ä¼ã¯ vim ãã¿ã§ï¼ä»å㯠.vimrc ã®èª¬æä¼ã ã£ã模æ§ï¼ secondlife/.vimrc ã¨ããããã§ï¼ååã«ç¶ãã¦ï¼ä»åãå°ãã³ã¡ã³ããã¦ã¿ããã¨æãï¼ ã¾ãåå¼·ä¼ãã¼ã¸ã§å ¬éããã¦ãã .vimrc ã« " ã¿ãå¹ ã®è¨å® set expandtab set tabstop=2 set softtabstop=2 set shiftwidth=2 ã¨ãã£ããã©ï¼vim ã®ã¿ãè¨å®ã¯è¤éãªã®ã§å°ãè£è¶³ï¼ expandtab ã¨ããã®ã¯ã¿ããã¹ãã¼ã¹ã«ç½®ãæããè¨å®ã§ï¼ã¤ã³ãã³ãã«é¢ããè¨å®ã¯æ®ãã® tabstop, softtabstop, shiftwidth ã¨ãªãï¼ã§ï¼ãããã«é¢ãã¦ã¯ä»¥åï¼2ã¡ããããã® vim ã¹ã¬ ã« KoRoN ãããåããããã説æããã¦ããã®ã§ï¼ããããã®ã¾ã¾å¼ç¨ãã¦ãã¾ãã¾ãããï¼ 2ch Vim6 Part3
.vimrcã®è§£èª¬ã®ãããªãã®ãæ¸ããã¨æã£ããã©ããã©ãããã®ã§å®éã®ãã®ãè¦ãæ¹ãæ©ãæ°ãããã®ã§ï¼ç¾æ®µéã§ã®.vimrcã¨.gvimrcãæãã¦ã¿ãï¼.gvimrcã¯GUIçã®Vimï¼GVimï¼ã®ã¿èªã¿è¾¼ã¾ããè¨å®ãã¡ã¤ã«ãªã®ã§ï¼GUIåºæã®è¨å®ã¯ãã£ã¡ã«æ¸ãã¨ãã¨ãããï¼ " ==================== åºæ¬ã®è¨å® ==================== " " å ¨è¬è¨å® set nocompatible " å¿ ãæåã«æ¸ã set viminfo='20,<50,s10,h,! " YankRingç¨ã«!ã追å set shellslash " Windowsã§ãã£ã¬ã¯ããªãã¹ã®åºåãæåã« / ã使ããããã«ãã set lazyredraw " ãã¯ããªã©ãå®è¡ä¸ã¯æç»ãä¸æ colorscheme desert " ã«ã©ã¼ã¹ãã¼ã " ã¿ãå¨ã " tabs
ã¦ãã¦ã§ã¯æå®ã®ã¨ãã£ã¿ããã¬ã¼ã ã¯ã¼ã¯ã¨ããã®ã¯ãªãããµã¯ã©ã¨ãã£ã¿ ãviãemacsãªã©åã ã«ä½¿ããããã¨ãã£ã¿ã使ç¨ãã¦ãã¾ãã viæ´¾ãemacsæ´¾ã«åããã¦ãããã«åªãã¦ããã度ã è«äºã«ãªãã¾ãããã¦ãã¦ã§ã¯ã©ããviæ´¾ãåªå¢ãªããã§ãã ãã¦ããã®å¤æ°æ´¾ã®viã§ãããåå¿è åãã¨ã¯è¨ããããã¨ã£ã¤ãã«ããé¢ãããã¾ãã ããè¨ãç§ããã£ã¨ãµã¯ã©ã¨ãã£ã¿æ´¾ã§ããããä»ã§ã¯viã®ç§»åã³ãã³ãã«æ £ãã¦ãã¾ããã©ã¦ã¶ã§ãjãkãã¿ã¤ããããCtrl+bããããã¦ã¾ãã ã¾ãã«ã¹ã¿ãã¤ãºãããã¨ã§ã©ãã©ã使ãããããªãããã¯ãææ¾ããªãã¢ãã«ãªã£ã¦ãã¾ãã ããã§ãç§ã使ã£ã¦ããã®ã¯vimã§ããã使ã£ã¦ããvimã®è¨å®ãä¸é¨ãç´¹ä»ãããã¨æãã¾ãã .vimrc set autoindentã#ãªã¼ãã¤ã³ãã³ã set numberã#è¡çªå·è¡¨ç¤º set incsearchã
ããããã誰ããããæ·±å¤ã®Webãµã¼ãã£ã³ã¯ã究極ã®ã¨ããæéã®ç¡é§ã§ã¯ãªãã®ãããããªãã ããã¯ãWebã§å¤¢ãã¿ã¦ããã®ã«ã»ããªããªãã®ã ã(T.B=ãªã¼ãWebã®åµæããã) Vimã®ä½¿ãæ¹ãè¦ãããã次ã«ãã£ã¦ããããã®ããªãã·ã§ã³ã®è¨å®ã§ãã ç´°ããªåä½ã調æ´ããããèªåã«ã¨ã£ã¦ä½¿ãããããªãããã«ã¹ã¿ãã¤ãºãã¾ãã ãã ãè¨å®é ç®ã¯ãããã¾ãããªãã®æ°ã«ãªã£ã¦ãã¦ãªããªãã®ããè ã ç§ã¯ãååã®è¨äºã§ãç´¹ä»ããspanish passion Linuxããã®Vimã®ãªãã·ã§ã³è§£èª¬ãã²ãããä¸ããèªã¿ãªããvimrcãæ¸ãã¦ããã¾ããã 以ä¸ãã¾ã ã¾ã å®å ¨ã¨ã¯è¨ãåããªãç¶æ ã§ãããç¾å¨ã®ç§ã®è¨å®å 容ã«ã¤ãã¦ç´¹ä»ãã¾ãã vimrcã®è¨å®æ¹æ³ ã¨ãå ·ä½çãªè¨å®å 容ã®åã«ãVimã®è¨å®æ¹æ³ã«ã¤ãã¦è§¦ãã¦ããã¾ãããã Vimã®è¨å®ã¯ãå ¨ã¦ã_vimrcãã¨ããããã¹ããã¡ã¤ã«ã«è¨è¿°
Mac ã§ãå¿«é©ã« vim7 ã使ããããã«ãªãï¼vim7 ãã㯠unicode ãµãã¼ããæ¹åããã¦ããã¨ã®ãã¨ãªã®ã§ï¼ãããæ©ã« vim ã®ããã©ã«ãæåã³ã¼ãã UTF-8 ã«ãã¦ã¿ãï¼ vim ã®æåã³ã¼ãè¨å®ã¯å°ãè¤éã§ï¼ãã¾ã«ééã£ã¦è§£èª¬ãã¦ãããã¼ã¸ãè¦ãããã®ã§ï¼ä»¥ä¸ã«ã¾ã¨ãã¦ã¿ããï¼ ã¾ãæåã³ã¼ãè¨å®ã«é¢ä¿ãããªãã·ã§ã³ã¯ï¼ 'encoding' (ç縮å 'enc') 'fileencoding' (ç縮å 'fenc') 'fileencodings' (ç縮å 'fencs') ã®3ã¤ï¼fenc 㨠fencs ã¯ååãç´ããããããã®ã§æ³¨æï¼ vim 㯠'enc' ã§æå®ãããæåã³ã¼ããããã©ã«ãã¨ãï¼ãã¡ã¤ã«ãéãæã« 'fencs' ã§æå®ãããæåã³ã¼ãããé çªã« 'enc' ã®æåã³ã¼ãã¸å¤æã試ã¿ï¼æåããã¨ããã§ãããï¼å ¨é¨å¤±æãããå¤æããã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}