Skip to content
This repository
Browse code

setting up plugin architecture

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

0 notes on commit 7e13dd7

Please sign in to comment.
Something went wrong with that request. Please try again.