· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Vim Editor

vim_on_fire.gif
[GIF image (6.72 KB)]

ViEditorÀÇ °³·®ÆÇ(Vi iMproved).

¹ø¿ª

Vim Script(plugin)

»ý»ê¼º Çâ»ó°ú ÀúÇϸ¦ À§ÇØ Æí¸®ÇÑ È®Àå±â´ÉÀ̳ª °ÔÀÓÀ» ½ºÅ©¸³Æ®·Î Á¦°øÇÏ°í ÀÖ´Ù.

°³º° ¼³Ä¡

  1. http://www.vim.org/scripts/index.php ¿¡¼­ ¹ÞÀ» ¼ö ÀÖ´Ù.
¿ìºÐÅõ ±âÁØÀ¸·Î
  • /usr/share/vim/addons/plugin ¿¡ ½Éº¼¸¯ ¸µÅ©°¡ ÀÖ°í ½ÇÁ¦ ½ºÅ©¸³Æ®´Â
  • /usr/share/vim/vim73/macros ¿¡ À§Ä¡.

ƯÁ¤ »ç¿ëÀÚ¸¸ »ç¿ëÇÒ ¶§´Â »ç¿ëÀÚ °èÁ¤ .vim/plugin ¿¡ ½ºÅ©¸³Æ® ÆÄÀÏÀ» ³Ö¾îµÎ¸é µÈ´Ù. ³Ö¾îµÎ´Â °ÍÀ¸·Î ¼³Ä¡°¡ ¾È ³¡³ª´Â °æ¿ìµµ ÀÖÀ¸´Ï ½ºÅ©¸³Æ® ÆÄÀÏÀÇ ¼³¸íÀ» ²À È®ÀÎ.

vundle ÀÌ¿ëÇÑ ÀÚµ¿ ¼³Ä¡


vim ½ºÅ©¸³Æ® ¿Â¶óÀÎ ¸ñ·ÏÀ» ºÒ·¯¿Í ¹Ù·Î ¼³Ä¡, ¼³Á¤±îÁö ÇØÁÖ´Â ½ºÅ©¸³Æ®. vimÆÇ yum, apt-get °°´Ù°í ÇÒ ¼ö ÀÖ´Ù.

vundle ¼³Ä¡

¸®´ª½º
  • ¼Â¾÷
    git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
    


  • .vimrc ¼öÁ¤
     set nocompatible               " be iMproved
     filetype off                   " required!
    
     set rtp+=~/.vim/bundle/vundle/
     call vundle#rc()
    
     " let Vundle manage Vundle
     " required! 
     Bundle 'gmarik/vundle'
    
     " My Bundles here:
     "
     " original repos on github
     Bundle 'tpope/vim-fugitive'
     Bundle 'Lokaltog/vim-easymotion'
     Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
     " vim-scripts repos
     Bundle 'L9'
     Bundle 'FuzzyFinder'
     Bundle 'rails.vim'
     " non github repos
     Bundle 'git://git.wincent.com/command-t.git'
     " ...
    
     filetype plugin indent on     " required! 
     "
     " Brief help
     "
     " :BundleInstall  - install bundles (won't update installed)
     " :BundleInstall! - update if installed
     "
     " :Bundles foo    - search for foo
     " :Bundles! foo   - refresh cached list and search for foo
     "
     " :BundleClean    - confirm removal of unused bundles
     " :BundleClean!   - remove without confirmation
     "
     " see :h vundle for more details
     " or wiki for FAQ
     " Note: comments after Bundle command are not allowed..
    
  • ½ºÅ©¸³Æ®°¡ Ãß°¡ µÇ¸é .vimrc¿¡ Àû¾îÁà¾ß Á¦´ë·Î ½ÇÇà µÇ´Â °Í °°´Ù.

  • Install configured bundles:
    1. vim ½ÇÇà
      :BundleInstall
      


À©µµ¿ì °è¿­
  1. http://gmarik.info/blog/2011/04/10/windows-vim-plugins-vundle
  2. ÁÖÀÇ! ¹®¼­¸¦ ÆíÁýÇÑ JellyPo´Â ¾ÆÁ÷ Á¦´ë·Î ½ÇÇàÀ» ¸øÇÏ°í ÀÖ½À´Ï´Ù.
  3. ÀÏ´ÜÀº Àú·¸°Ô ÇÏ¸é µÈ´Ù°í µÇ¾îÀÖ°í, ¼³Ä¡ Á÷ÈÄ¿£ ½ºÅ©¸³Æ® ¼³Ä¡ ¹× ½ÇÇàÀÌ Àß µÇÁö¸¸ Á¾·á ÈÄ ´Ù½Ã ½ÇÇàÇÏ¿© È®ÀÎÇغ¸¸é vundle·Î ¼³Ä¡ÇÑ ½ºÅ©¸³Æ®µéÀ» ¸ø ºÒ·¯¿Â´Ù.
  4. gVim ±âº» ¼³Ä¡ÇßÀ» °æ¿ìÀÇ ¹®Á¦·Î º¸ÀÌ°í, vim ¼³Á¤À» º¯°æÇÏ¸é µÉ °ÍÀ¸·Î º¸ÀÓ. ¹®Á¦Á¡ ÇØ°áµÇ¸é ¼öÁ¤ÇÏ°ÚÀ½.

  5. git°ú curlÀ» cmd¿¡¼­ ½ÇÇà °¡´ÉÇϵµ·Ï ¼³Á¤
  6. git clone http://github.com/gmarik/vundle .vim/vundle.git ¸¦ ½ÇÇàÇ϶ó°í µÇ¾îÀִµ¥ Á» ´õ ±ò²ûÇÑ ¼³Ä¡¸¦ À§ÇØ ´ÙÀ½°ú °°ÀÌ ½ÇÇà.
    1. git clone http://github.com/gmarik/vundle .vim/bundle/vundle
  7. vimrc ÆíÁý. ¸®´ª½º °è¿­°ú °°°Ô ÇϵÇ, vundle À§Ä¡ ÁöÁ¤À» º¯°æÇÑ´Ù. vimrc À§Ä¡´Â "c:\Program Files\Vim\_vimrc" (±âº»°ª)
    1. ¸®´ª½º °è¿­ : set rtp+=~/.vim/bundle/vundle/
    2. À©µµ¿ì °è¿­ : set rtp+=%USERPROFILE%/.vim/bundle/vundle
    3. vundle ¼³Ä¡ °æ·Î¸¦ ¹Ù²Ü °æ¿ì ¸Å¿ì °ñÄ¡ ¾ÆÆÄÁø´Ù. Bundle ¸í·ÉÀ¸·Î ½ºÅ©¸³Æ® ¼³Ä¡ÇÒ ¶§ %USERPROFILE%/.vim/bundle/¸¦ ±âº»°ªÀ¸·Î °®°í Àֱ⠶§¹®. ½ºÅ©¸³Æ®¸¦ ÆíÁýÇÏ´øÁö ȯ°æº¯¼ö¸¦ ¼öÁ¤ÇØÁà¾ß ÇÏ´Â ¸ð¾çÀε¥... ±×³É ¾²·Á¸é À§¿¡ ±â¼úÇÑ ³»¿ë´ë·Î ÇÒ °Í.

vundle »ç¿ë¹ý (ÀϺÎ)

:Bundles »ç¿ë °¡´ÉÇÑ ½ºÅ©¸³Æ® ¸ñ·Ï º¸±â
i : ¼³Ä¡(¼³Ä¡ÇÏ°íÀÚ ÇÏ´Â ½ºÅ©¸³Æ®¿¡ Ä¿¼­ ¿Å±â°í ³ª¼­ i ÀÔ·Â) c : Cleanup (½ºÅ©¸³Æ® »èÁ¦) R : ¸ñ·Ï ´Ù½Ã Àбâ r : Refine list (¹ºÁö Àß ¸ð¸£°ÚÀ½. Ãß°¡ ¹Ù¶÷)

:BundleInstall! ¼³Ä¡µÇ¾î ÀÖ´Â ½ºÅ©¸³Æ® ¾÷µ¥ÀÌÆ®

:BundleInstall ½ºÅ©¸³Æ®¸í ÇØ´ç ½ºÅ©¸³Æ® ¼³Ä¡

:Bundles ´Ü¾î ½ºÅ©¸³Æ® ¸ñ·Ï °Ë»ö

See also NoSmoke:VimEditor


ID
Password
Join
You display the wonderful traits of charm and courtesy.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-01-11 13:18:44
Processing time 0.0077 sec