Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Start Vim script @Ujihisa.vim 2011/11/19

1,858 views

Published on

Published in: Technology, Education
  • Be the first to comment

Start Vim script @Ujihisa.vim 2011/11/19

  1. 1. Start Vim script@choplin at ujihisa.vim 2011/11/19
  2. 2. About me@choplinWeb / DB engineerinterested in:PostgreSQL / MongoDBPython / Haskell
  3. 3. Vim scripter
  4. 4. http://www.dataists.com/2010/12/ranking-the-popularity-of-programming- langauges/
  5. 5. here!http://www.dataists.com/2010/12/ranking-the-popularity-of-programming- langauges/
  6. 6. Supply ≠ Demand
  7. 7. Conclusion Please Start Vim script to make my vim life happier :)
  8. 8. Agenda• Vim script ?• Vim script ?• Vim script ?
  9. 9. Vim script ?
  10. 10. Vim script
  11. 11. .vimrc
  12. 12. Vim script
  13. 13. Don’t be afraidof writing Vim script :)
  14. 14. Vim script ?
  15. 15. :help
  16. 16. K:setlocal keywordprg=:help
  17. 17. Syntax
  18. 18. •Vim by thinca •http://d.hatena.ne.jp/thinca/20100201/1265009821•:help by mattn •https://github.com/mattn/learn-vimscript
  19. 19. function! s:sum(a,b) let a = a:a let b = a:b return a + bendfunctionecho s:sum(1,2)
  20. 20. function! s:sum(a,b) let a = a:a let b = a:b return a + bendfunctionecho s:sum(1,2) :Command :h :{cmd}
  21. 21. function! s:sum(a,b) let a = a:a let b = a:b return a + bendfunctionecho s:sum(1,2) :Command :h :{cmd} :expression :h expr
  22. 22. You can read good vim scripts :)• Vim •http://cielquis.net/twitter-engineer/vim.html
  23. 23. Vim script ?
  24. 24. •••Vim →Vim script !
  25. 25. 1. ftplugin2. plugin’s plugin3. library
  26. 26. ftplugin
  27. 27. plugin’s plugin•unite•neocomplcache•quickrun•vim-vcs etc.
  28. 28. library•webapi•wwwrenderer•(vital)
  29. 29. Demo

×