diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-08 20:55:08 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-08 20:55:08 -0500 |
commit | 1f1fac254dd0da17b8b723ea175406c7dae3c986 (patch) | |
tree | a69f0c97a589a8de6f4c75af253a3422ac8d7489 | |
parent | 614f5803eaf6abde87309bbbfe27919913f30ddb (diff) | |
download | conf-1f1fac254dd0da17b8b723ea175406c7dae3c986.tar.gz conf-1f1fac254dd0da17b8b723ea175406c7dae3c986.zip |
get rid of neosnippet
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | vim/pack/plugins/start/neosnippet | 0 | ||||
-rw-r--r-- | vim/snippets/_.snippets | 4 | ||||
-rw-r--r-- | vim/snippets/c.snippets | 12 | ||||
-rw-r--r-- | vim/snippets/perl.snippets | 123 | ||||
-rw-r--r-- | vim/snippets/python.snippets | 8 | ||||
-rw-r--r-- | vim/snippets/ruby.snippets | 22 | ||||
-rw-r--r-- | vim/snippets/rust.snippets | 16 | ||||
-rw-r--r-- | vim/snippets/sh.snippets | 6 | ||||
-rw-r--r-- | vim/snippets/tex.snippets | 13 | ||||
-rw-r--r-- | vim/snippets/xs.snippets | 16 | ||||
-rw-r--r-- | vimrc | 29 |
12 files changed, 0 insertions, 252 deletions
diff --git a/.gitmodules b/.gitmodules index 19a2de8..01934c5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,9 +34,6 @@ [submodule "vim/bundle/neocomplete"] path = vim/bundle/neocomplete url = git://github.com/Shougo/neocomplete.vim -[submodule "vim/bundle/neosnippet"] - path = vim/pack/plugins/start/neosnippet - url = git://github.com/Shougo/neosnippet.vim [submodule "vim/bundle/typescript"] path = vim/bundle/typescript url = git://github.com/leafgarland/typescript-vim diff --git a/vim/pack/plugins/start/neosnippet b/vim/pack/plugins/start/neosnippet deleted file mode 160000 -Subproject 30b6b53b7a86b84371714b4a0f092d5d303c4a3 diff --git a/vim/snippets/_.snippets b/vim/snippets/_.snippets deleted file mode 100644 index 982a614..0000000 --- a/vim/snippets/_.snippets +++ /dev/null @@ -1,4 +0,0 @@ -snippet now - `strftime("%Y-%m-%d %H:%M")` -snippet nows - "`strftime("%Y-%m-%d %H:%M")`" diff --git a/vim/snippets/c.snippets b/vim/snippets/c.snippets deleted file mode 100644 index eece346..0000000 --- a/vim/snippets/c.snippets +++ /dev/null @@ -1,12 +0,0 @@ -snippet guard - #ifndef ${1:`'_' . toupper(substitute(matchstr(expand("%"), '^.*/\zs.*\.h'), '[.-]', '_', 'g'))`} - #define $1 - - ${0} - - #endif -snippet main - int main(int argc, char *argv[]) - { - ${0} - } diff --git a/vim/snippets/perl.snippets b/vim/snippets/perl.snippets deleted file mode 100644 index d522f63..0000000 --- a/vim/snippets/perl.snippets +++ /dev/null @@ -1,123 +0,0 @@ -snippet tbl - local $Test::Builder::Level = $Test::Builder::Level + 1; -snippet ccl - local $Carp::CarpLevel = $Carp::CarpLevel + 1; -snippet linc - local $${1:a} = $$1 + ${2:1}; - ${0} -snippet script - #!/usr/bin/env perl - use strict; - use warnings; - - ${0} -snippet test - #!/usr/bin/env perl - use strict; - use warnings; - use Test::More; - - ${0} - - done_testing; -snippet sub - sub ${1:foo} { - ${0} - } -snippet wd - use Data::Dump; ddx(${1}); - ${0} -snippet wdd - use Data::Dump; push @Data::Dump::FILTERS, sub { return {dump => "$_[1]"} if $_[0]->depth > ${1:1} }; ddx(${2}); - ${0} -snippet package - package ${1:`substitute(matchstr(expand("%"), '^lib/\zs.*\ze\.pm'), '/', '::', 'g')`}; - use strict; - use warnings; - - ${0} - - 1; -snippet test_psgi - test_psgi - app => ${1:MyApp}->new->to_app, - client => sub { - my $cb = shift; - - { - ${0} - } - }; -# -# Moose -# -snippet class - package ${1:`substitute(matchstr(expand("%"), '^lib/\zs.*\ze\.pm'), '/', '::', 'g')`}; - use Moose; - - ${0} - - __PACKAGE__->meta->make_immutable; - no Moose; - - 1; -# XXX: ideally, this would be merged with the one above, but we need posthooks -# for that to happen. also, some way to get the extends line to update with -# the package line would be nice, maybe? -snippet subclass - package ${1:`substitute(matchstr(expand("%"), '^lib/\zs.*\ze\.pm'), '/', '::', 'g')`}; - use Moose; - extends '${2:`matchstr(substitute(matchstr(expand("%"), '^lib/\zs.*\ze\.pm'), '/', '::', 'g'), '.*\ze::.*')`}'; - - ${0} - - __PACKAGE__->meta->make_immutable; - no Moose; - - 1; -snippet role - package ${1:`substitute(matchstr(expand("%"), '^lib/\zs.*\ze\.pm'), '/', '::', 'g')`}; - use Moose::Role; - - ${0} - - no Moose::Role; - - 1; -snippet has - has ${1:attr} => ( - is => '${2:ro}', - isa => '${3:Str}',${0} - ); -snippet hasl - has ${1:attr} => ( - is => '${2:ro}', - isa => '${3:Str}', - lazy_build => 1,${4} - ); - - sub _build_$1 { - my $self = shift; - ${0} - } -snippet m - sub ${1:foo} { - my $self = shift; - ${0} - } -snippet around - around ${1:foo} => sub { - my $orig = shift; - my $self = shift; - ${0} - }; -snippet after - after ${1:foo} => sub { - my $self = shift; - ${0} - }; -snippet before - before ${1:foo} => sub { - my $self = shift; - ${0} - }; diff --git a/vim/snippets/python.snippets b/vim/snippets/python.snippets deleted file mode 100644 index fc0dd70..0000000 --- a/vim/snippets/python.snippets +++ /dev/null @@ -1,8 +0,0 @@ -snippet test - import unittest - - ${1} - - class ${2:`join(map(split(matchstr(expand("%"), '^t\(ests\?\)\?/\zs.*\ze\.py'), '_'), 'toupper(v:val[0]) . v:val[1:]'), '')`}(unittest.TestCase): - def test_${3}(self): - ${0} diff --git a/vim/snippets/ruby.snippets b/vim/snippets/ruby.snippets deleted file mode 100644 index 3bf5f28..0000000 --- a/vim/snippets/ruby.snippets +++ /dev/null @@ -1,22 +0,0 @@ -snippet script - #!/usr/bin/env ruby - - def main - ${0} - end - - if \$0 == __FILE__ - main(*ARGV) - end -snippet def - def ${1:foo} - ${0} - end -snippet class - class ${1:Foo} - ${0} - end -snippet module - module ${1:Foo} - ${0} - end diff --git a/vim/snippets/rust.snippets b/vim/snippets/rust.snippets deleted file mode 100644 index f9e885d..0000000 --- a/vim/snippets/rust.snippets +++ /dev/null @@ -1,16 +0,0 @@ -snippet main - fn main () { - ${0} - } -snippet pr - println!(${0}); -snippet struct - #[deriving(PartialEq, Eq, Show)] - struct ${1} { - ${0} - } -snippet test - #[test] - fn ${1} () { - ${0} - } diff --git a/vim/snippets/sh.snippets b/vim/snippets/sh.snippets deleted file mode 100644 index 2a8e4b0..0000000 --- a/vim/snippets/sh.snippets +++ /dev/null @@ -1,6 +0,0 @@ -snippet script - #!/usr/bin/env bash - set -eux - set -o pipefail - - ${0} diff --git a/vim/snippets/tex.snippets b/vim/snippets/tex.snippets deleted file mode 100644 index 3a79579..0000000 --- a/vim/snippets/tex.snippets +++ /dev/null @@ -1,13 +0,0 @@ -snippet article - \documentclass[11pt]{article} - \usepackage{jesse} - - \headers{${1}} - {\huge \textbf{${2}}} - {${3}} - - \begin{document} - - ${0} - - \end{document} diff --git a/vim/snippets/xs.snippets b/vim/snippets/xs.snippets deleted file mode 100644 index eada925..0000000 --- a/vim/snippets/xs.snippets +++ /dev/null @@ -1,16 +0,0 @@ -snippet xs - #include "EXTERN.h" - #include "perl.h" - #include "XSUB.h" - - MODULE = ${1:`matchstr(expand("%"), '^.*\ze\.xs')`} PACKAGE = ${2:$1} - - PROTOTYPES: DISABLE - - - ${0} -snippet xsub - ${3:void} - ${1:name}(${2}) - CODE: - ${0} @@ -115,35 +115,6 @@ endif " matchit {{{ packadd! matchit " }}} -" neosnippet {{{ -let g:neosnippet#snippets_directory = '~/.vim/snippets' -let g:neosnippet#disable_runtime_snippets = { '_' : 1 } - -function! s:configure_neosnippet_tab_mappings() - let g:neosnippet_tab_override_i_tab = maparg("<Tab>", "i", 0, 1) - let g:neosnippet_tab_override_i_stab = maparg("<S-Tab>", "i", 0, 1) - let g:neosnippet_tab_override_s_tab = maparg("<Tab>", "s", 0, 1) - imap <expr> <Tab> - \ neosnippet#expandable_or_jumpable() ? - \ "\<Plug>(neosnippet_expand_or_jump)" : - \ g:neosnippet_tab_override_i_tab["expr"] - \ ? eval(g:neosnippet_tab_override_i_tab["rhs"]) - \ : g:neosnippet_tab_override_i_tab["rhs"] - imap <expr> <S-Tab> - \ neosnippet#expandable_or_jumpable() ? - \ "\<Plug>(neosnippet_expand_or_jump)" : - \ g:neosnippet_tab_override_i_stab["expr"] - \ ? eval(g:neosnippet_tab_override_i_stab["rhs"]) - \ : g:neosnippet_tab_override_i_stab["rhs"] - smap <expr> <Tab> - \ neosnippet#expandable_or_jumpable() ? - \ "\<Plug>(neosnippet_expand_or_jump)" : - \ g:neosnippet_tab_override_s_tab["expr"] - \ ? eval(g:neosnippet_tab_override_s_tab["rhs"]) - \ : g:neosnippet_tab_override_s_tab["rhs"] -endfunction -autocmd vimrc VimEnter * call <SID>configure_neosnippet_tab_mappings() -" }}} " netrw {{{ let g:netrw_home = $HOME . '/.cache/vim/netrw' if !isdirectory(g:netrw_home) |