Permalink
Browse files

setting up plugin architecture

  • Loading branch information...
1 parent 5ab2c64 commit 7e13dd70e75c6a68ab461df406a9572e3c54356b @dahu dahu committed May 23, 2010
Showing with 92 additions and 1 deletion.
  1. +7 −0 INSTALL
  2. +31 −0 README
  3. +5 −0 ftdetect/kata.vim
  4. +17 −0 ftplugin/kata.vim
  5. +31 −0 resources/vim_sites.txt
  6. +1 −1 syntax/kata.vim
View
@@ -0,0 +1,7 @@
+I haven't created a proper plugin for this project yet.
+For now, create the following symlinks to the corresponding files in this tree:
+
+~/.vim/ftdetect/kata.vim
+~/.vim/ftplugin/kata.vim
+~/.vim/syntax/kata.vim
+
View
@@ -0,0 +1,31 @@
+= VimKata: The path to Vim Mastery
+
+VimKata is a series of exercises specially graded to progressively develop your
+skills in the venerable vim editor.
+
+The project is currently maintained by Duane Johnson and Barry Arthur.
+
+== Quick Start
+
+Diving into VimKata is as simple as:
+
+ :VimKata <belt>
+
+== Resources
+
+=== Website:
+
+http://github.com/canadaduane/VimKata
+
+=== Katas:
+
+http://github.com/canadaduane/VimKata/blob/master/vim_1_white.kata
+
+=== Bug Tracker / Wiki:
+
+http://github.com/canadaduane/VimKata/issues
+
+=== Source Code:
+
+http://github.com/canadaduane/VimKata
+
View
@@ -0,0 +1,5 @@
+" Vim filetype plugin
+" Language: VimKata
+" Maintainer: Duane Johnson
+
+au BufNewFile,BufRead *.kata set filetype=kata
View
@@ -1,3 +1,18 @@
+" Vim filetype plugin
+" Language: VimKata
+" Maintainer: Duane Johnson
+
+" Only do this when not done yet for this buffer
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+au BufNewFile,BufRead *.kata set filetype=kata
+
+setlocal commentstring=#%s foldmethod=marker
+setlocal nospell nohlsearch
+
function! KataRenumber()
let b:k_count = 1
exe ":g/^(\\d\\+/s//\\='('.b:k_count/ | let b:k_count += 1"
@@ -6,3 +21,5 @@ endfunction
nnoremap <buffer> <silent> <LocalLeader>kr :call KataRenumber()<cr>
nnoremap Q :call search("(\\d\\+)") <Bar> normal j<Cr>
+
+" vim:set sw=2:
@@ -0,0 +1,31 @@
+Vim Sites
+=========
+
+blogs
+http://dailyvim.blogspot.com/
+http://www.zzapper.co.uk/vim-tips-blog/
+config
+http://github.com/loota/vimfiles/blob/master/vim_usual_options.txt
+recipes
+http://www.oualline.com/vim-cook.html
+tips
+http://rayninfo.co.uk/vimtips.html
+http://www.cs.swarthmore.edu/help/vim/
+http://spf13.com/feature/vim-plugins
+http://www.8t8.us/vim/vim.html
+http://www.ukuug.org/events/linux2004/programme/paper-SMyers/Linux_2004_slides/vim_tips/
+http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118
+tutorials
+http://blog.smr.co.in/linux/advanced-vim-tutorial/
+scripting
+http://www.ibm.com/developerworks/linux/library/l-vim-script-1/index.html
+http://www.ibm.com/developerworks/linux/library/l-vim-script-2/index.html
+http://www.ibm.com/developerworks/linux/library/l-vim-script-3/index.html
+http://www.ibm.com/developerworks/linux/library/l-vim-script-4/index.html
+http://www.ibm.com/developerworks/linux/library/l-vim-script-5/index.html
+http://www.yolinux.com/TUTORIALS/LinuxTutorialAdvanced_vi.html
+plugins
+http://www.catonmat.net/blog/vim-plugins-surround-vim
+http://linuxgazette.net/152/srinivasan.html
+http://www.derekwyatt.org/vim/vim-tutorial-videos/vim-advanced-tutorial-videos/
+http://www.eng.hawaii.edu/Tutor/vi.html
View
@@ -24,6 +24,6 @@ highlight link KataPlainText Function
highlight link KataAnswer Define
highlight link KataComment Comment
-let b:current_syntax = "vimkata"
+let b:current_syntax = "kata"
" vim: wrap et sw=2 sts=2:

0 comments on commit 7e13dd7

Please sign in to comment.