Vimåå¼·ä¼ in MTL è¡ã£ã¦ãã¾ãã
Vimåå¼·ä¼ in MTLã§åå¼·ãã¦ãã¾ããã
è¯ãä¼å ´ã§ãããçæ§ãç²ãæ§ã§ãã楽ããã£ãã
2009å¹´ 4æ 3æ¥ éææ¥ 19æ30å
æ ªå¼ä¼ç¤¾ãªã¯ã«ã¼ã Media Technology Labs 2F
主å¬ï¼æ°¸åã·ã¹ãã ããã¸ã¡ã³ãæ§ã
ãããæ ªå¼ä¼ç¤¾ãªã¯ã«ã¼ã Media Technology Labsæ§
http://atnd.org/events/482
便å©ãªVimã¹ã¯ãªãããTipsç´¹ä»
by ianãã
Media Technology Labs ã¨ã³ã¸ãã¢
http://iandeth.dyndns.org/mt/ian/
vimè¨å®ã¯Google Codeã§ç®¡çãã¦ãã
Google Codeã§ç®¡çãã¦ãæ°ããç°å¢ã«ç§»ããã³ã«ã³ãã¼ãã¦ããã
http://code.google.com/p/iandeth/
Google Codeã¯ãã¼ã¸ã§ã³ç®¡çã®ã¬ãã¸ããªã貸ãã¦ãããã®ã§ããããå©ç¨ãã¦ããã¨ã
æè¿ãGoogle Codeã§å人ç¨ã®ã¬ãã¸ããªã¨ãããã§ãªãããã¸ã§ã¯ãã®åºå¥ãã¤ããªã(以ä¸ç¥
tabe
:tabeã§ã¿ããéããã
ãã¼ãã«ã¢ã¼ãgtãgTã§ã¿ã移åã§ããã
ctags
ctagsã§ã³ã¼ãè£å®ãã¦ãã
1. ctags -r ã§ã¿ã°ãçæãã
2. Ctrl-] ã§ã«ã¼ã½ã«ãããã¼ã¯ã¼ãã®å®ç¾©ãéã
3. Ctrl-t ã§å
ã®ä½ç½®ã«æ»ã
bufexplorer.vim
ãããã¡ç®¡çç¨ãã©ã°ã¤ã³ã
bufexplorer.zip : Buffer Explorer / Browser
http://www.vim.org/scripts/script.php?script_id=42
eregex.vim
vimã®æ£è¦è¡¨ç¾ã§perl5ã®æ£è¦è¡¨ç¾ææ³ã使ããã
http://www.vector.co.jp/soft/unix/writing/se265654.html
:vimgrep
vimgrepã§ã³ã¼ããæ¤ç´¢ããã
:vimgrep {æ¤ç´¢ã¯ã¼ã} {ãã¡ã¤ã«ï¼ã¯ã¤ã«ãã¢ã¼ãå©ç¨å¯ï¼} :vimgrep updateUser **/*.pm
Ctrl-[
ESCãã¼ã®å¤ããã«ãCtrl-[ãã¼ã使ãã
snippetsEmu
ã³ã¼ãã¹ããããã
Tabã§ã³ã¼ããã³ãã¬ã¼ããå±éã§ããTabã§ã³ã¼ãå
¥åä½ç½®ã«é ã
ã«ç§»åã§ãããã©ã°ã¤ã³ã
http://www.vim.org/scripts/script.php?script_id=1318
Vimæããä¸éãããããã£ãã²ã¨ã¤ã®å´ããããæ¹ è³é«ã®ã¨ãã£ã¿ã«ã¯ãè³é«ã®ãã¼ãã¼ã
by ursm
http://d.hatena.ne.jp/ursm/
ãã®ãã¼ãã¼ããè¯ããããã
http://www.edikun.co.jp/kinesis/
- ç²ããªãã
- ã¬ã¤ã¢ã¦ããè¯ãã
- çãä¸ã®ç©ºéã«ã¡ã¢ãç½®ãã¨ãå¿ããªãã§æ¸ãã
- ãããã¹ã¤ãããããã
- ãã¼ãã¦ã¨ã¢ãã¼ãªãããæ©è½ãã¤ãã¦ããã
- å¤ãªãã¼ãã¼ãã®äººã¨è¦ãã¦ããã
Vimæããä¸éãããããã£ãã²ã¨ã¤ã®å´ããããæ¹
ã¨ã¯ãããªãã¡ã
ãã¼ãã¼ããæ¢ããã¨ã ï¼ï¼ï¼
ã©ã¼ãï¼ï¼ï¼
Vim Scriptã§OOP
by ukstudio
http://ukstudio.jp/
vimrcã®èª¬æã
http://github.com/ukstudio/config/tree/master
+ã-ã{ã}ã§åå²ããã¦ã£ã³ãã¦ã®ãµã¤ãºãå¤ããã
nnoremap + 4<C-w>+ nnoremap - 4<C-w>- nnoremap { 4<C-w>< nnoremap } 4<C-w>>
http://vim-users.jp
vim-users.jpãã£ã¦ããï¼
Vimã§ã¹ã¯ãªãããçµã
ä¾ãã°ã
:h eval
ã¨å
¥åãã¦ãEnterã§é¢æ°ã®èª¬æãã§ã¦ããã
ãã«ãã使ãããªãã¦ãVimã¹ã¯ãªããæ¸ãã¾ãããã
Vimã§OOP
ã½ã¼ã¹ã³ã¼ã
http://gist.github.com/89661
çµè«
Vimã§OOPã¯å¿
è¦ãªãï¼ï¼ï¼
ããã§ãVimã§OOPããããªããif_ruby使ãã¨ãã
æ¥æ¬Hamlã®ä¼
æ親ä¼éå§å¾
vimã®ã¨ã¯ã¹ããã¼ã©ã¼
vimã®ã¨ã¯ã¹ããã¼ã©ã¼ã§ãiãæ¼ãã¨ãããªã¼ãã¥ã¼ã«ãªãã
rails.vim
ãã¡ã¤ã«é移åããã³ã¼ãã®è£å®æ©è½ãããã
http://www.vim.org/scripts/script.php?script_id=1567
fuzzyfinder.vim
fbãffãfmã§fuzzyfinderã®æ©è½ãå¼ã³åºãã
http://www.vim.org/scripts/script.php?script_id=1984
nmap fb :FuzzyFinderBuffer<CR> nmap ff :FuzzyFinderFile<CR> nmap fm :FuzzyFinderMruFile<CR>
ãã®ããã«ãããã³ã°ãã¦ä½¿ç¨ãããã©ã°ã¤ã³ã ã£ããããã
ä¾ãã°ãfmã¨å©ãã ãã§ãå±¥æ´ããéããã¡ã¤ã«ã®ãªã¹ããåºã¦ããã
ããããfã«ãããã³ã°ããã®ã¯ãã¡ãã£ã¨å°ãããï¼
ä»ã®ãã¼ã«ãã¹ãã
Align
http://www.vim.org/scripts/script.php?script_id=294
hoge = hoge aaaaaaaaaa = aaaaaa
ã¨ããæããã£ãã¨ãã«ãä¸ã®ããã«æ´å½¢ãããã©ã°ã¤ã³ã
hoge = hoge aaaaaaaaaa = aaaaaa
è¦ãã¦ããã ããã®ã¯ããããããç¯å²é¸æãã¦\t=ã
\t{ã»ãã¬ã¼ã¿}ã§ãæå®ã»ãã¬ã¼ã¿ãåºæºã«ãã¦æ´å½¢ã§ããã
http://nanasi.jp/articles/vim/align/align_vim_mapt.html
ãã®ãããªæãããã2æå以ä¸ã®ã=>ã§æ´å½¢ãããã®ãªãã
hoge => hoge; aaaaaaaaaa => aaaaaa;
ç¯å²é¸æãã¦ã
:Align =>
ã使ããã
ãã¸ã¥ã¢ã«ã¢ã¼ãã§é¸æããããã¹ããæ¤ç´¢ããã
ãããvimrcã«å ¥ãã¦ã*ãã¼ãå©ã
vnoremap * y/<C-r>0<CR>
ææ³
ã¨ã¦ãåå¼·ã«ãªãã¾ããã
ããããåå¼·ä¼ã«åå ããã¨ãæ欲ãããã¦ãã¦è¯ãã§ããã