summaryrefslogtreecommitdiffstats
path: root/vim/plugin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-03-16 12:28:10 -0500
committerJesse Luehrs <doy@tozt.net>2010-03-16 12:28:10 -0500
commit604b9fc17e764e33ae9aecd2645f00e9e89b1aa6 (patch)
tree7f9789a9e3b9f0771cd800e76ce703c97318f85c /vim/plugin
parentf7275f941bb6383e33de924a117bba581e1d189a (diff)
downloadconf-604b9fc17e764e33ae9aecd2645f00e9e89b1aa6.tar.gz
conf-604b9fc17e764e33ae9aecd2645f00e9e89b1aa6.zip
remove the skeletons plugin, snipmate is a better choice
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/skeleton.vim44
1 files changed, 0 insertions, 44 deletions
diff --git a/vim/plugin/skeleton.vim b/vim/plugin/skeleton.vim
deleted file mode 100644
index 1e13636..0000000
--- a/vim/plugin/skeleton.vim
+++ /dev/null
@@ -1,44 +0,0 @@
-function s:read_skeleton(pattern)
- set modifiable
- " the skeleton file should be a file in ~/.vim/skeletons that matches the
- " glob pattern of files that it should be loaded for
- let skeleton_file = glob("~/.vim/skeletons/".a:pattern)
- " read leaves a blank line at the top of the file
- exe "silent read ".skeleton_file." | normal ggdd"
- let lines = getline(1, "$")
- normal ggdG
- for line in lines
- " sigh... this is *so* dumb
- let remove_extra_line = 0
- if line('$') == 1 && col('$') == 1
- let remove_extra_line = 1
- endif
- " lines starting with :: will start with a literal :
- if line =~ '^::'
- call append(line('$'), strpart(line, 1))
- normal G
- if remove_extra_line
- normal ggdd
- endif
- " lines not starting with a : will just be appended literally
- elseif line !~ '^:'
- call append(line('$'), line)
- normal G
- if remove_extra_line
- normal ggdd
- endif
- else
- exe line
- endif
- endfor
- redraw
-endfunction
-
-function Skeleton(pattern)
- exe "autocmd BufNewFile ".a:pattern." silent call s:read_skeleton(\"".a:pattern."\")"
-endfunction
-
-for pattern in g:Skeleton_patterns
- call Skeleton(pattern)
-endfor
-unlet pattern