From 7c5213627881adbcf7f26f977ae17bf213a0342a Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Wed, 5 Apr 2017 12:11:27 -0400 Subject: [PATCH] Reorginazation after switching to GNU Stow for organizing dotfiles --- .gitmodules | 42 - aliases => bash/.aliases | 0 bash_profile => bash/.bash_profile | 12 +- bashrc => bash/.bashrc | 0 functions => bash/.functions | 0 ghci/.ghci | 6 + ghci/.haskeline | 8 + kwm/.khdrc | 69 + kwm/.kwm/iterm | 14 + kwm/.kwm/kwmrc | 32 + kwm/.kwm/screensaver | 6 + kwm/.kwm/vim | 6 + python/.pythonrc | 48 + pythonrc | 17 - inputrc => readline/.inputrc | 0 profile => sh/.profile | 29 +- .../bundle/commentary/CONTRIBUTING.markdown | 1 + vim/.vim/bundle/commentary/README.markdown | 51 + vim/.vim/bundle/commentary/doc/commentary.txt | 32 + .../bundle/commentary/plugin/commentary.vim | 103 + vim/.vim/bundle/endwise/CONTRIBUTING.markdown | 1 + vim/.vim/bundle/endwise/README.markdown | 42 + vim/.vim/bundle/endwise/plugin/endwise.vim | 196 + vim/.vim/bundle/eunuch/README.markdown | 52 + vim/.vim/bundle/eunuch/plugin/eunuch.vim | 213 + vim/.vim/bundle/filetype-nix/.travis.yml | 6 + vim/.vim/bundle/filetype-nix/LICENSE | 19 + vim/.vim/bundle/filetype-nix/README.md | 48 + vim/.vim/bundle/filetype-nix/default.nix | 47 + vim/.vim/bundle/filetype-nix/ftdetect/nix.vim | 7 + vim/.vim/bundle/filetype-nix/ftplugin/nix.vim | 13 + vim/.vim/bundle/filetype-nix/indent/nix.vim | 62 + vim/.vim/bundle/filetype-nix/syntax/nix.vim | 183 + vim/.vim/bundle/filetype-nix/test/nix.vader | 326 ++ .../bundle/filetype-nix/test/run-tests.sh | 3 + vim/.vim/bundle/filetype-nix/test/vimrc | 5 + .../bundle/fugitive/CONTRIBUTING.markdown | 18 + vim/.vim/bundle/fugitive/README.markdown | 118 + vim/.vim/bundle/fugitive/doc/fugitive.txt | 357 ++ vim/.vim/bundle/fugitive/plugin/fugitive.vim | 3096 ++++++++++++ .../bundle/pathogen/CONTRIBUTING.markdown | 14 + vim/.vim/bundle/pathogen/README.markdown | 141 + .../bundle/pathogen/autoload/pathogen.vim | 353 ++ vim/.vim/bundle/pencil/LICENSE | 23 + vim/.vim/bundle/pencil/README.markdown | 696 +++ vim/.vim/bundle/pencil/autoload/pencil.vim | 514 ++ vim/.vim/bundle/pencil/plugin/pencil.vim | 198 + vim/.vim/bundle/pencil/screenshots/demo.gif | Bin 0 -> 640607 bytes vim/.vim/bundle/pencil/screenshots/demo.txt | 7 + vim/.vim/bundle/sleuth/CONTRIBUTING.markdown | 1 + vim/.vim/bundle/sleuth/README.markdown | 48 + vim/.vim/bundle/sleuth/doc/sleuth.txt | 17 + vim/.vim/bundle/sleuth/plugin/sleuth.vim | 171 + vim/.vim/bundle/slime | 1 + .../autoload/buf_utils.vim | 24 + .../autoload/cached_file_contents.vim | 104 + .../autoload/env_reload.vim | 12 + .../autoload/funcref.vim | 95 + .../snipmate-addon-mw-utils/autoload/glob.vim | 27 + .../autoload/tiny_cmd.vim | 19 + .../autoload/tovl/scratch_buffer.vim | 103 + .../autoload/tovl/ui/filter_list.vim | 473 ++ .../doc/cached_file_contents.txt | 7 + .../snipmate-addon-mw-utils/doc/funcref.txt | 35 + .../snipmate-addon-mw-utils/doc/tiny_cmd.txt | 18 + .../vim-addon-mw-utils-addon-info.txt | 9 + vim/.vim/bundle/snipmate-tlib/CHANGES.TXT | 755 +++ vim/.vim/bundle/snipmate-tlib/LICENSE.TXT | 674 +++ vim/.vim/bundle/snipmate-tlib/README | 21 + vim/.vim/bundle/snipmate-tlib/addon-info.json | 9 + .../autoload/tinykeymap/map/para_move.vim | 12 + .../bundle/snipmate-tlib/autoload/tlib.vim | 8 + .../autoload/tlib/Filter_cnf.vim | 151 + .../autoload/tlib/Filter_cnfd.vim | 53 + .../autoload/tlib/Filter_fuzzy.vim | 83 + .../autoload/tlib/Filter_glob.vim | 68 + .../snipmate-tlib/autoload/tlib/Object.vim | 154 + .../snipmate-tlib/autoload/tlib/Test.vim | 19 + .../snipmate-tlib/autoload/tlib/TestChild.vim | 19 + .../snipmate-tlib/autoload/tlib/World.vim | 1404 ++++++ .../snipmate-tlib/autoload/tlib/agent.vim | 665 +++ .../snipmate-tlib/autoload/tlib/arg.vim | 338 ++ .../snipmate-tlib/autoload/tlib/assert.vim | 44 + .../autoload/tlib/autocmdgroup.vim | 14 + .../snipmate-tlib/autoload/tlib/balloon.vim | 73 + .../snipmate-tlib/autoload/tlib/bitwise.vim | 141 + .../snipmate-tlib/autoload/tlib/buffer.vim | 401 ++ .../snipmate-tlib/autoload/tlib/cache.vim | 360 ++ .../snipmate-tlib/autoload/tlib/char.vim | 59 + .../snipmate-tlib/autoload/tlib/cmd.vim | 117 + .../snipmate-tlib/autoload/tlib/comments.vim | 26 + .../snipmate-tlib/autoload/tlib/date.vim | 189 + .../autoload/tlib/dictionary.vim | 45 + .../snipmate-tlib/autoload/tlib/dir.vim | 93 + .../snipmate-tlib/autoload/tlib/eval.vim | 72 + .../snipmate-tlib/autoload/tlib/file.vim | 283 ++ .../snipmate-tlib/autoload/tlib/fixes.vim | 14 + .../snipmate-tlib/autoload/tlib/grep.vim | 38 + .../snipmate-tlib/autoload/tlib/hash.vim | 145 + .../snipmate-tlib/autoload/tlib/hook.vim | 25 + .../snipmate-tlib/autoload/tlib/input.vim | 1336 +++++ .../snipmate-tlib/autoload/tlib/list.vim | 194 + .../snipmate-tlib/autoload/tlib/loclist.vim | 13 + .../snipmate-tlib/autoload/tlib/map.vim | 23 + .../snipmate-tlib/autoload/tlib/normal.vim | 34 + .../snipmate-tlib/autoload/tlib/notify.vim | 113 + .../snipmate-tlib/autoload/tlib/number.vim | 30 + .../snipmate-tlib/autoload/tlib/paragraph.vim | 97 + .../autoload/tlib/persistent.vim | 47 + .../autoload/tlib/progressbar.vim | 72 + .../snipmate-tlib/autoload/tlib/qfl.vim | 312 ++ .../bundle/snipmate-tlib/autoload/tlib/rx.vim | 60 + .../snipmate-tlib/autoload/tlib/scratch.vim | 136 + .../snipmate-tlib/autoload/tlib/selection.vim | 40 + .../snipmate-tlib/autoload/tlib/signs.vim | 103 + .../snipmate-tlib/autoload/tlib/string.vim | 194 + .../snipmate-tlib/autoload/tlib/syntax.vim | 38 + .../snipmate-tlib/autoload/tlib/sys.vim | 212 + .../snipmate-tlib/autoload/tlib/tab.vim | 49 + .../snipmate-tlib/autoload/tlib/tag.vim | 132 + .../autoload/tlib/textobjects.vim | 45 + .../snipmate-tlib/autoload/tlib/time.vim | 67 + .../snipmate-tlib/autoload/tlib/trace.vim | 160 + .../snipmate-tlib/autoload/tlib/type.vim | 134 + .../snipmate-tlib/autoload/tlib/url.vim | 52 + .../snipmate-tlib/autoload/tlib/var.vim | 83 + .../snipmate-tlib/autoload/tlib/vcs.vim | 189 + .../snipmate-tlib/autoload/tlib/vim.vim | 152 + .../snipmate-tlib/autoload/tlib/win.vim | 128 + vim/.vim/bundle/snipmate-tlib/doc/tlib.txt | 2559 ++++++++++ .../bundle/snipmate-tlib/etc/tpl_tlib.txt | 30 + vim/.vim/bundle/snipmate-tlib/macros/tlib.vim | 38 + .../bundle/snipmate-tlib/plugin/02tlib.vim | 108 + .../samples/tlib/input/tlib_input_list.vim | 50 + .../snipmate-tlib/scripts/create_crc_table.rb | 67 + .../bundle/snipmate-tlib/spec/tlib/arg.vim | 66 + .../bundle/snipmate-tlib/spec/tlib/date.vim | 61 + .../snipmate-tlib/spec/tlib/dictionary.vim | 28 + .../bundle/snipmate-tlib/spec/tlib/eval.vim | 27 + .../bundle/snipmate-tlib/spec/tlib/file.vim | 59 + .../bundle/snipmate-tlib/spec/tlib/hash.vim | 58 + .../bundle/snipmate-tlib/spec/tlib/input.vim | 127 + .../bundle/snipmate-tlib/spec/tlib/list.vim | 67 + .../bundle/snipmate-tlib/spec/tlib/rx.vim | 27 + .../bundle/snipmate-tlib/spec/tlib/string.vim | 29 + .../bundle/snipmate-tlib/spec/tlib/url.vim | 23 + .../bundle/snipmate-tlib/spec/tlib/var.vim | 37 + vim/.vim/bundle/snipmate/Contributors.md | 52 + vim/.vim/bundle/snipmate/README.md | 169 + vim/.vim/bundle/snipmate/addon-info.json | 12 + .../bundle/snipmate/after/plugin/snipMate.vim | 46 + .../bundle/snipmate/autoload/snipMate.vim | 613 +++ .../autoload/snipMate_python_demo.vim | 47 + .../snipmate/autoload/snipmate/jumping.vim | 228 + .../snipmate/autoload/snipmate/legacy.vim | 139 + .../snipmate/autoload/snipmate/parse.vim | 309 ++ .../snipmate/autoload/snipmate/util.vim | 30 + vim/.vim/bundle/snipmate/doc/SnipMate.txt | 652 +++ .../snipmate/ftplugin/html_snip_helper.vim | 10 + .../bundle/snipmate/ftplugin/snippets.vim | 20 + vim/.vim/bundle/snipmate/indent/snippets.vim | 32 + vim/.vim/bundle/snipmate/plugin/snipMate.vim | 137 + vim/.vim/bundle/snipmate/syntax/snippet.vim | 11 + vim/.vim/bundle/snipmate/syntax/snippets.vim | 23 + vim/.vim/bundle/snipmate/t/jumping.vim | 175 + vim/.vim/bundle/snipmate/t/parser.vim | 142 + vim/.vim/bundle/snipmate/t/tests.sh | 20 + vim/.vim/bundle/supertab/Makefile | 17 + vim/.vim/bundle/supertab/README.rst | 172 + vim/.vim/bundle/supertab/doc/supertab.txt | 473 ++ vim/.vim/bundle/supertab/ftplugin/html.vim | 61 + vim/.vim/bundle/supertab/ftplugin/xml.vim | 45 + vim/.vim/bundle/supertab/plugin/supertab.vim | 1144 +++++ vim/.vim/bundle/tagbar/.gitattributes | 4 + vim/.vim/bundle/tagbar/.info | 2 + vim/.vim/bundle/tagbar/LICENSE | 82 + vim/.vim/bundle/tagbar/README.md | 89 + vim/.vim/bundle/tagbar/autoload/tagbar.vim | 4370 +++++++++++++++++ vim/.vim/bundle/tagbar/doc/tagbar.txt | 1520 ++++++ vim/.vim/bundle/tagbar/plugin/tagbar.vim | 148 + vim/.vim/bundle/tagbar/syntax/tagbar.vim | 63 + vim/.vim/bundle/vinegar/CONTRIBUTING.markdown | 1 + vim/.vim/bundle/vinegar/README.markdown | 50 + vim/.vim/bundle/vinegar/plugin/vinegar.vim | 96 + vim/.vim/colors/halfdab.test.vim | 1116 +++++ vim/.vim/colors/halfdab.vim | 155 + vim/.vim/colors/solarized.vim | 1117 +++++ vim/.vim/colors/sourcerer.vim | 216 + vim/.vim/syntax/cabal.vim | 142 + vim/.vim/syntax/haskell.vim | 354 ++ vimrc => vim/.vimrc | 16 +- vim/bundle/commentary | 1 - vim/bundle/endwise | 1 - vim/bundle/eunuch | 1 - vim/bundle/filetype-nix | 1 - vim/bundle/fugitive | 1 - vim/bundle/pathogen | 1 - vim/bundle/pencil | 1 - vim/bundle/sleuth | 1 - vim/bundle/snipmate | 1 - vim/bundle/snipmate-addon-mw-utils | 1 - vim/bundle/snipmate-tlib | 1 - vim/bundle/supertab | 1 - vim/bundle/tagbar | 1 - vim/bundle/vinegar | 1 - 205 files changed, 36928 insertions(+), 82 deletions(-) rename aliases => bash/.aliases (100%) rename bash_profile => bash/.bash_profile (89%) rename bashrc => bash/.bashrc (100%) rename functions => bash/.functions (100%) create mode 100644 ghci/.ghci create mode 100644 ghci/.haskeline create mode 100644 kwm/.khdrc create mode 100755 kwm/.kwm/iterm create mode 100644 kwm/.kwm/kwmrc create mode 100755 kwm/.kwm/screensaver create mode 100755 kwm/.kwm/vim create mode 100644 python/.pythonrc delete mode 100644 pythonrc rename inputrc => readline/.inputrc (100%) rename profile => sh/.profile (57%) create mode 100644 vim/.vim/bundle/commentary/CONTRIBUTING.markdown create mode 100644 vim/.vim/bundle/commentary/README.markdown create mode 100644 vim/.vim/bundle/commentary/doc/commentary.txt create mode 100644 vim/.vim/bundle/commentary/plugin/commentary.vim create mode 100644 vim/.vim/bundle/endwise/CONTRIBUTING.markdown create mode 100644 vim/.vim/bundle/endwise/README.markdown create mode 100644 vim/.vim/bundle/endwise/plugin/endwise.vim create mode 100644 vim/.vim/bundle/eunuch/README.markdown create mode 100644 vim/.vim/bundle/eunuch/plugin/eunuch.vim create mode 100644 vim/.vim/bundle/filetype-nix/.travis.yml create mode 100644 vim/.vim/bundle/filetype-nix/LICENSE create mode 100644 vim/.vim/bundle/filetype-nix/README.md create mode 100644 vim/.vim/bundle/filetype-nix/default.nix create mode 100644 vim/.vim/bundle/filetype-nix/ftdetect/nix.vim create mode 100644 vim/.vim/bundle/filetype-nix/ftplugin/nix.vim create mode 100644 vim/.vim/bundle/filetype-nix/indent/nix.vim create mode 100644 vim/.vim/bundle/filetype-nix/syntax/nix.vim create mode 100644 vim/.vim/bundle/filetype-nix/test/nix.vader create mode 100755 vim/.vim/bundle/filetype-nix/test/run-tests.sh create mode 100644 vim/.vim/bundle/filetype-nix/test/vimrc create mode 100644 vim/.vim/bundle/fugitive/CONTRIBUTING.markdown create mode 100644 vim/.vim/bundle/fugitive/README.markdown create mode 100644 vim/.vim/bundle/fugitive/doc/fugitive.txt create mode 100644 vim/.vim/bundle/fugitive/plugin/fugitive.vim create mode 100644 vim/.vim/bundle/pathogen/CONTRIBUTING.markdown create mode 100644 vim/.vim/bundle/pathogen/README.markdown create mode 100644 vim/.vim/bundle/pathogen/autoload/pathogen.vim create mode 100644 vim/.vim/bundle/pencil/LICENSE create mode 100644 vim/.vim/bundle/pencil/README.markdown create mode 100644 vim/.vim/bundle/pencil/autoload/pencil.vim create mode 100644 vim/.vim/bundle/pencil/plugin/pencil.vim create mode 100644 vim/.vim/bundle/pencil/screenshots/demo.gif create mode 100644 vim/.vim/bundle/pencil/screenshots/demo.txt create mode 100644 vim/.vim/bundle/sleuth/CONTRIBUTING.markdown create mode 100644 vim/.vim/bundle/sleuth/README.markdown create mode 100644 vim/.vim/bundle/sleuth/doc/sleuth.txt create mode 100644 vim/.vim/bundle/sleuth/plugin/sleuth.vim create mode 160000 vim/.vim/bundle/slime create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/buf_utils.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/cached_file_contents.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/env_reload.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/funcref.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/glob.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/tiny_cmd.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/tovl/scratch_buffer.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/autoload/tovl/ui/filter_list.vim create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/doc/cached_file_contents.txt create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/doc/funcref.txt create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/doc/tiny_cmd.txt create mode 100644 vim/.vim/bundle/snipmate-addon-mw-utils/vim-addon-mw-utils-addon-info.txt create mode 100644 vim/.vim/bundle/snipmate-tlib/CHANGES.TXT create mode 100644 vim/.vim/bundle/snipmate-tlib/LICENSE.TXT create mode 100644 vim/.vim/bundle/snipmate-tlib/README create mode 100644 vim/.vim/bundle/snipmate-tlib/addon-info.json create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tinykeymap/map/para_move.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/Filter_cnf.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/Filter_cnfd.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/Filter_fuzzy.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/Filter_glob.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/Object.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/Test.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/TestChild.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/World.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/agent.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/arg.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/assert.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/autocmdgroup.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/balloon.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/bitwise.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/buffer.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/cache.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/char.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/cmd.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/comments.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/date.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/dictionary.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/dir.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/eval.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/file.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/fixes.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/grep.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/hash.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/hook.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/input.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/list.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/loclist.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/map.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/normal.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/notify.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/number.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/paragraph.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/persistent.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/progressbar.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/qfl.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/rx.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/scratch.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/selection.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/signs.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/string.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/syntax.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/sys.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/tab.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/tag.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/textobjects.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/time.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/trace.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/type.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/url.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/var.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/vcs.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/autoload/tlib/vim.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/autoload/tlib/win.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/doc/tlib.txt create mode 100644 vim/.vim/bundle/snipmate-tlib/etc/tpl_tlib.txt create mode 100644 vim/.vim/bundle/snipmate-tlib/macros/tlib.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/plugin/02tlib.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/samples/tlib/input/tlib_input_list.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/scripts/create_crc_table.rb create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/arg.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/spec/tlib/date.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/spec/tlib/dictionary.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/spec/tlib/eval.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/file.vim create mode 100644 vim/.vim/bundle/snipmate-tlib/spec/tlib/hash.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/input.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/list.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/rx.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/string.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/url.vim create mode 100755 vim/.vim/bundle/snipmate-tlib/spec/tlib/var.vim create mode 100644 vim/.vim/bundle/snipmate/Contributors.md create mode 100644 vim/.vim/bundle/snipmate/README.md create mode 100644 vim/.vim/bundle/snipmate/addon-info.json create mode 100644 vim/.vim/bundle/snipmate/after/plugin/snipMate.vim create mode 100644 vim/.vim/bundle/snipmate/autoload/snipMate.vim create mode 100644 vim/.vim/bundle/snipmate/autoload/snipMate_python_demo.vim create mode 100644 vim/.vim/bundle/snipmate/autoload/snipmate/jumping.vim create mode 100644 vim/.vim/bundle/snipmate/autoload/snipmate/legacy.vim create mode 100644 vim/.vim/bundle/snipmate/autoload/snipmate/parse.vim create mode 100644 vim/.vim/bundle/snipmate/autoload/snipmate/util.vim create mode 100644 vim/.vim/bundle/snipmate/doc/SnipMate.txt create mode 100644 vim/.vim/bundle/snipmate/ftplugin/html_snip_helper.vim create mode 100644 vim/.vim/bundle/snipmate/ftplugin/snippets.vim create mode 100644 vim/.vim/bundle/snipmate/indent/snippets.vim create mode 100644 vim/.vim/bundle/snipmate/plugin/snipMate.vim create mode 100644 vim/.vim/bundle/snipmate/syntax/snippet.vim create mode 100644 vim/.vim/bundle/snipmate/syntax/snippets.vim create mode 100644 vim/.vim/bundle/snipmate/t/jumping.vim create mode 100644 vim/.vim/bundle/snipmate/t/parser.vim create mode 100755 vim/.vim/bundle/snipmate/t/tests.sh create mode 100644 vim/.vim/bundle/supertab/Makefile create mode 100644 vim/.vim/bundle/supertab/README.rst create mode 100644 vim/.vim/bundle/supertab/doc/supertab.txt create mode 100644 vim/.vim/bundle/supertab/ftplugin/html.vim create mode 100644 vim/.vim/bundle/supertab/ftplugin/xml.vim create mode 100644 vim/.vim/bundle/supertab/plugin/supertab.vim create mode 100644 vim/.vim/bundle/tagbar/.gitattributes create mode 100644 vim/.vim/bundle/tagbar/.info create mode 100644 vim/.vim/bundle/tagbar/LICENSE create mode 100644 vim/.vim/bundle/tagbar/README.md create mode 100644 vim/.vim/bundle/tagbar/autoload/tagbar.vim create mode 100644 vim/.vim/bundle/tagbar/doc/tagbar.txt create mode 100644 vim/.vim/bundle/tagbar/plugin/tagbar.vim create mode 100644 vim/.vim/bundle/tagbar/syntax/tagbar.vim create mode 100644 vim/.vim/bundle/vinegar/CONTRIBUTING.markdown create mode 100644 vim/.vim/bundle/vinegar/README.markdown create mode 100644 vim/.vim/bundle/vinegar/plugin/vinegar.vim create mode 100644 vim/.vim/colors/halfdab.test.vim create mode 100644 vim/.vim/colors/halfdab.vim create mode 100644 vim/.vim/colors/solarized.vim create mode 100644 vim/.vim/colors/sourcerer.vim create mode 100644 vim/.vim/syntax/cabal.vim create mode 100644 vim/.vim/syntax/haskell.vim rename vimrc => vim/.vimrc (85%) delete mode 160000 vim/bundle/commentary delete mode 160000 vim/bundle/endwise delete mode 160000 vim/bundle/eunuch delete mode 160000 vim/bundle/filetype-nix delete mode 160000 vim/bundle/fugitive delete mode 160000 vim/bundle/pathogen delete mode 160000 vim/bundle/pencil delete mode 160000 vim/bundle/sleuth delete mode 160000 vim/bundle/snipmate delete mode 160000 vim/bundle/snipmate-addon-mw-utils delete mode 160000 vim/bundle/snipmate-tlib delete mode 160000 vim/bundle/supertab delete mode 160000 vim/bundle/tagbar delete mode 160000 vim/bundle/vinegar diff --git a/.gitmodules b/.gitmodules index ee17b37..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,42 +0,0 @@ -[submodule "vim/bundle/pathogen"] - path = vim/bundle/pathogen - url = https://github.com/tpope/vim-pathogen -[submodule "vim/bundle/fugitive"] - path = vim/bundle/fugitive - url = https://github.com/tpope/vim-fugitive -[submodule "vim/bundle/commentary"] - path = vim/bundle/commentary - url = https://github.com/tpope/vim-commentary -[submodule "vim/bundle/eunuch"] - path = vim/bundle/eunuch - url = https://github.com/tpope/vim-eunuch -[submodule "vim/bundle/vinegar"] - path = vim/bundle/vinegar - url = https://github.com/tpope/vim-vinegar -[submodule "vim/bundle/sleuth"] - path = vim/bundle/sleuth - url = https://github.com/tpope/vim-sleuth -[submodule "vim/bundle/endwise"] - path = vim/bundle/endwise - url = https://github.com/tpope/vim-endwise -[submodule "vim/bundle/tagbar"] - path = vim/bundle/tagbar - url = https://github.com/majutsushi/tagbar -[submodule "vim/bundle/pencil"] - path = vim/bundle/pencil - url = https://github.com/reedes/vim-pencil -[submodule "vim/bundle/snipmate"] - path = vim/bundle/snipmate - url = https://github.com/garbas/vim-snipmate -[submodule "vim/bundle/snipmate-tlib"] - path = vim/bundle/snipmate-tlib - url = https://github.com/tomtom/tlib_vim -[submodule "vim/bundle/snipmate-addon-mw-utils"] - path = vim/bundle/snipmate-addon-mw-utils - url = https://github.com/MarcWeber/vim-addon-mw-utils -[submodule "vim/bundle/filetype-nix"] - path = vim/bundle/filetype-nix - url = https://github.com/LnL7/vim-nix -[submodule "vim/bundle/supertab"] - path = vim/bundle/supertab - url = https://github.com/ervandew/supertab diff --git a/aliases b/bash/.aliases similarity index 100% rename from aliases rename to bash/.aliases diff --git a/bash_profile b/bash/.bash_profile similarity index 89% rename from bash_profile rename to bash/.bash_profile index 22f9020..fd7e6f8 100644 --- a/bash_profile +++ b/bash/.bash_profile @@ -10,10 +10,16 @@ export PS3='select: ' #{- ENVIRONMENT VARIABLES -}# # History preferences -export HISTSIZE=-1 -export HISTFILESIZE=-1 -export HISTFILE="$HOME/.history/bash" +if [ -w "$HOME/.history/bash" ]; then + if [ ! -d "$HOME/.history" ]; then + mkdir "$HOME/.history" + fi + touch "$HOME/.history/bash" +fi export HISTCONTROL="erasedups:ignoreboth" +export HISTFILE="$HOME/.history/bash" +export HISTFILESIZE=-1 +export HISTSIZE=-1 #{- SHELL OPTIONS -}# diff --git a/bashrc b/bash/.bashrc similarity index 100% rename from bashrc rename to bash/.bashrc diff --git a/functions b/bash/.functions similarity index 100% rename from functions rename to bash/.functions diff --git a/ghci/.ghci b/ghci/.ghci new file mode 100644 index 0000000..4972383 --- /dev/null +++ b/ghci/.ghci @@ -0,0 +1,6 @@ +-- Enable overloaded string literals +:set -XOverloadedStrings +-- Enable multiline formatting +:set +m +:set prompt "\ESC[1;35mλ\ESC[1;34m>\ESC[0m " +:set prompt2 "\ESC[1;34m|\ESC[1;35m>\ESC[0m " diff --git a/ghci/.haskeline b/ghci/.haskeline new file mode 100644 index 0000000..fa85bca --- /dev/null +++ b/ghci/.haskeline @@ -0,0 +1,8 @@ +bellStyle: NoBell +maxHistorySize: Just 100 +editMode: Vi +completionType: MenuCompletion +completionPaging: False +completionPromptLimit: Just 100 +listCompletionsImmediately: True +historyDuplicates: IgnoreAll diff --git a/kwm/.khdrc b/kwm/.khdrc new file mode 100644 index 0000000..eca9912 --- /dev/null +++ b/kwm/.khdrc @@ -0,0 +1,69 @@ +# Enable kwm compatibility khd kwm on +khd kwm on + +cmd + shift - q : kwmc quit +cmd + shift - r : kwmc config reload && khd -e "reload" + +cmd - return : "$HOME"/.kwm/iterm +cmd - escape : "$HOME"/.kwm/screensaver + +cmd + alt + ctrl - space : kwmc config focus-follows-mouse toggle + +cmd - h : kwmc window -f west +cmd - j : kwmc window -f south +cmd - k : kwmc window -f north +cmd - l : kwmc window -f east + +cmd + shift - h : kwmc window -s west +cmd + shift - j : kwmc window -s south +cmd + shift - k : kwmc window -s north +cmd + shift - l : kwmc window -s east + +cmd + ctrl - h : kwmc window -c expand 0.05 west +cmd + ctrl - j : kwmc window -c expand 0.05 south +cmd + ctrl - k : kwmc window -c expand 0.05 north +cmd + ctrl - l : kwmc window -c expand 0.05 east + +cmd + shift + ctrl - h : kwmc window -c reduce 0.05 west +cmd + shift + ctrl - j : kwmc window -c reduce 0.05 south +cmd + shift + ctrl - k : kwmc window -c reduce 0.05 north +cmd + shift + ctrl - l : kwmc window -c reduce 0.05 east + +cmd - tab : kwmc window -f next +cmd + shift - tab : kwmc window -f prev + +cmd - f : kwmc window -z fullscreen +cmd - r : kwmc tree rotate 90 + +cmd + ctrl - b : kwmc window -c type bsp +cmd + ctrl - m : kwmc window -c type monocle +cmd + ctrl - f : kwmc window -c type float + +cmd + shift - b : kwmc space -t bsp +cmd + shift - m : kwmc space -t monocle +cmd + shift - f : kwmc space -t float + +cmd - 1 : kwmc space -fExperimental 1 +cmd - 2 : kwmc space -fExperimental 2 +cmd - 3 : kwmc space -fExperimental 3 +cmd - 4 : kwmc space -fExperimental 4 +cmd - 5 : kwmc space -fExperimental 5 +cmd - 6 : kwmc space -fExperimental 6 +cmd - 7 : kwmc space -fExperimental 7 +cmd - 8 : kwmc space -fExperimental 8 +cmd - 9 : kwmc space -fExperimental 9 +cmd - 0 : kwmc space -fExperimental 10 + +cmd + shift - 1 : kwmc window -m space 1 +cmd + shift - 2 : kwmc window -m space 2 +cmd + shift - 3 : kwmc window -m space 3 +cmd + shift - 4 : kwmc window -m space 4 +cmd + shift - 5 : kwmc window -m space 5 +cmd + shift - 6 : kwmc window -m space 6 +cmd + shift - 7 : kwmc window -m space 7 +cmd + shift - 8 : kwmc window -m space 8 +cmd + shift - 9 : kwmc window -m space 9 +cmd + shift - 0 : kwmc window -m space 10 + +cmd - backspace : kwmc display -f next +cmd + shift - backspace : kwmc window -m display next diff --git a/kwm/.kwm/iterm b/kwm/.kwm/iterm new file mode 100755 index 0000000..9f21dbc --- /dev/null +++ b/kwm/.kwm/iterm @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +if [ $# -eq 0 ]; then + osascript <<< " + tell application \"iTerm2\" + create window with default profile + end tell + " +else + osascript <<< " + tell application \"iTerm2\" + create window with default profile command \"$*\" + end tell + " +fi diff --git a/kwm/.kwm/kwmrc b/kwm/.kwm/kwmrc new file mode 100644 index 0000000..b40dd7c --- /dev/null +++ b/kwm/.kwm/kwmrc @@ -0,0 +1,32 @@ +/*{-- Functional --}*/ +kwmc config tiling bsp +kwmc config spawn right + +/* Focus follows the mouse and the mouse follows focus */ +kwmc config focus-follows-mouse on +kwmc config mouse-follows-focus on + +/* Allow a window to be moved and resized by clicking with CMD held */ +kwmc config mouse-drag on +kwmc config mouse-drag mod cmd + +/* Automagically resize windows */ +kwmc config lock-to-container on + +/* Allow window focus to wrap */ +kwmc config cycle-focus on + +kwmc config float-non-resizable on +kwmc config standby-on-float on +kwmc config center-on-float on + +kwmc rule owner="iTerm2" properties={role="AXDialog"} + +/*{-- Cosmetic --}*/ +kwmc config padding 30 30 30 30 +kwmc config gap 30 30 + +kwmc config border focused on +kwmc config border focused size 3 +kwmc config border focused color 0xFFAE9DAB +kwmc config border focused radius 10 diff --git a/kwm/.kwm/screensaver b/kwm/.kwm/screensaver new file mode 100755 index 0000000..19eb10b --- /dev/null +++ b/kwm/.kwm/screensaver @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +osascript << EOF + tell application "ScreenSaverEngine" + activate + end tell +EOF diff --git a/kwm/.kwm/vim b/kwm/.kwm/vim new file mode 100755 index 0000000..2be6a76 --- /dev/null +++ b/kwm/.kwm/vim @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +osascript <<< " + tell application \"iTerm2\" + create window with default profile command \"/Users/andrew/.nix-profile/bin/vim \\\"$@\\\"\" + end tell +" diff --git a/python/.pythonrc b/python/.pythonrc new file mode 100644 index 0000000..8c57829 --- /dev/null +++ b/python/.pythonrc @@ -0,0 +1,48 @@ +#{- ~/.pythonrc -}# + +import atexit +import os +import readline +import sys + +blue = '\001\033[1;34m\002' +yellow = '\001\033[1;33m\002' + +magenta = '\001\033[1;35m\002' +red = '\001\033[1;31m\002' +reset = '\001\033[0m\002' + +# Primary prompt: (>>> ) in magenta +sys.ps1 = blue + '>' + reset + ' ' +# Secondary prompt: (... ) in red +sys.ps2 = yellow + '.' + reset + ' ' + +# Use ~/.history/python as a history file instead of ~/.python_history +def custom_readline(): + import atexit + try: + import readline + import rlcompleter + except ImportError: + return + + readline_doc = getattr(readline, '__doc__', '') + if readline_doc is not None and 'libedit' in readline_doc: + readline.parse_and_bind('bind ^I rl_complete') + else: + readline.parse_and_bind('tab: complete') + + try: + readline.read_init_file() + except OSError: + pass + + if readline.get_current_history_length() == 0: + history = os.path.join(os.path.expanduser('~'), '.history', 'python') + try: + readline.read_history_file(history) + except IOError: + pass + atexit.register(readline.write_history_file, history) + +sys.__interactivehook__ = custom_readline diff --git a/pythonrc b/pythonrc deleted file mode 100644 index 2f88b26..0000000 --- a/pythonrc +++ /dev/null @@ -1,17 +0,0 @@ -#{- ~/.pythonrc -}# - -import atexit -import os -import readline -import sys - -# Primary prompt: (>>> ) in magenta -sys.ps1 = '\033[1;35m>>>\033[0m ' -# Secondary prompt: (... ) in red -sys.ps2 = '\033[1;31m...\033[0m ' - -# Use ~/.history/python as a history file instead of ~/.python_history -history_file = os.path.join (os.environ['HOME'], '.history', 'python') -if os.path.exists(history_file): - readline.read_history_file(history_file) -atexit.register(readline.write_history_file, history_file) diff --git a/inputrc b/readline/.inputrc similarity index 100% rename from inputrc rename to readline/.inputrc diff --git a/profile b/sh/.profile similarity index 57% rename from profile rename to sh/.profile index 074005e..91ed393 100644 --- a/profile +++ b/sh/.profile @@ -2,10 +2,23 @@ #{- PROMPT -}# -# Primary prompt: ($/# ) in magenta -export PS1='\[\033[1;35m\]\$\[\033[0m\] ' -# Secondary prompt: (> ) in red -export PS2='\[\033[1;31\]m>\[\033[0m\] ' +magenta="\[\033[1;35m\]" +red="\[\033[1;31m\]" +no_color="\[\033[0m\]" + +# Primary prompt: ($/# ) +# Secondary prompt: (> ) +# Primary prompt is magenta on local machines, red on remote hosts +case $(hostname) in + pebble|stone|rock|boulder) + export PS1="${magenta}\$${no_color} " + export PS2="${red}>${no_color} " + ;; + *) + export PS1="$red\$$no_color " + export PS2="$magenta>$no_color " + ;; +esac #{- PATH -}# @@ -30,7 +43,13 @@ export LESSHISTFILE="-" export PYTHONSTARTUP="$HOME/.pythonrc" # History preferences -export HISTFILE="$HOME/.history/posh" +if [ -w "$HOME/.history/sh" ]; then + if [ ! -d "$HOME/.history" ]; then + mkdir "$HOME/.history" + fi + touch "$HOME/.history/sh" +fi +export HISTFILE="$HOME/.history/sh" export HISTSIZE=10000 #{- SOURCING -}# diff --git a/vim/.vim/bundle/commentary/CONTRIBUTING.markdown b/vim/.vim/bundle/commentary/CONTRIBUTING.markdown new file mode 100644 index 0000000..b3f0095 --- /dev/null +++ b/vim/.vim/bundle/commentary/CONTRIBUTING.markdown @@ -0,0 +1 @@ +See the [contribution guidelines for pathogen.vim](https://github.com/tpope/vim-pathogen/blob/master/CONTRIBUTING.markdown). diff --git a/vim/.vim/bundle/commentary/README.markdown b/vim/.vim/bundle/commentary/README.markdown new file mode 100644 index 0000000..5387ba6 --- /dev/null +++ b/vim/.vim/bundle/commentary/README.markdown @@ -0,0 +1,51 @@ +# commentary.vim + +Comment stuff out. Use `gcc` to comment out a line (takes a count), +`gc` to comment out the target of a motion (for example, `gcap` to +comment out a paragraph), `gc` in visual mode to comment out the selection, +and `gc` in operator pending mode to target a comment. You can also use +it as a command, either with a range like `:7,17Commentary`, or as part of a +`:global` invocation like with `:g/TODO/Commentary`. That's it. + +I wrote this because 5 years after Vim added support for mapping an +operator, I still couldn't find a commenting plugin that leveraged that +feature (I overlooked +[tcomment.vim](https://github.com/tomtom/tcomment_vim)). Striving for +minimalism, it weighs in at under 100 lines of code. + +Oh, and it uncomments, too. The above maps actually toggle, and `gcgc` +uncomments a set of adjacent commented lines. + +## Installation + +If you don't have a preferred installation method, I recommend +installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and +then simply copy and paste: + + cd ~/.vim/bundle + git clone git://github.com/tpope/vim-commentary.git + +Once help tags have been generated, you can view the manual with +`:help commentary`. + +## FAQ + +> My favorite file type isn't supported! + +Relax! You just have to adjust `'commentstring'`: + + autocmd FileType apache setlocal commentstring=#\ %s + +## Self-Promotion + +Like commentary.vim? Follow the repository on +[GitHub](https://github.com/tpope/vim-commentary) and vote for it on +[vim.org](http://www.vim.org/scripts/script.php?script_id=3695). And if +you're feeling especially charitable, follow [tpope](http://tpo.pe/) on +[Twitter](http://twitter.com/tpope) and +[GitHub](https://github.com/tpope). + +## License + +Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. +See `:help license`. diff --git a/vim/.vim/bundle/commentary/doc/commentary.txt b/vim/.vim/bundle/commentary/doc/commentary.txt new file mode 100644 index 0000000..b048569 --- /dev/null +++ b/vim/.vim/bundle/commentary/doc/commentary.txt @@ -0,0 +1,32 @@ +*commentary.txt* Comment stuff out + +Author: Tim Pope +License: Same terms as Vim itself (see |license|) + +Comment stuff out. Then uncomment it later. Relies on 'commentstring' to be +correctly set, or uses b:commentary_format if it is set. + + *gc* +gc{motion} Comment or uncomment lines that {motion} moves over. + + *gcc* +gcc Comment or uncomment [count] lines. + + *v_gc* +{Visual}gc Comment or uncomment the highlighted lines. + + *o_gc* +gc Text object for a comment (operator pending mode + only.) + + *gcgc* *gcu* +gcgc Uncomment the current and adjacent commented lines. +gcu + + *:Commentary* +:[range]Commentary Comment or uncomment [range] lines + +The |User| CommentaryPost autocommand fires after a successful operation and +can be used for advanced customization. + + vim:tw=78:et:ft=help:norl: diff --git a/vim/.vim/bundle/commentary/plugin/commentary.vim b/vim/.vim/bundle/commentary/plugin/commentary.vim new file mode 100644 index 0000000..0bef7cc --- /dev/null +++ b/vim/.vim/bundle/commentary/plugin/commentary.vim @@ -0,0 +1,103 @@ +" commentary.vim - Comment stuff out +" Maintainer: Tim Pope +" Version: 1.3 +" GetLatestVimScripts: 3695 1 :AutoInstall: commentary.vim + +if exists("g:loaded_commentary") || &cp || v:version < 700 + finish +endif +let g:loaded_commentary = 1 + +function! s:surroundings() abort + return split(get(b:, 'commentary_format', substitute(substitute( + \ &commentstring, '\S\zs%s',' %s','') ,'%s\ze\S', '%s ', '')), '%s', 1) +endfunction + +function! s:strip_white_space(l,r,line) abort + let [l, r] = [a:l, a:r] + if stridx(a:line,l) == -1 && stridx(a:line,l[0:-2]) == 0 && a:line[strlen(a:line)-strlen(r[1:]):-1] == r[1:] + return [l[0:-2], r[1:]] + endif + return [l, r] +endfunction + +function! s:go(type,...) abort + if a:0 + let [lnum1, lnum2] = [a:type, a:1] + else + let [lnum1, lnum2] = [line("'["), line("']")] + endif + + let [l_, r_] = s:surroundings() + let uncomment = 2 + for lnum in range(lnum1,lnum2) + let line = matchstr(getline(lnum),'\S.*\s\@ 2 && l.r !~# '\\' + let line = substitute(line, + \'\M'.r[0:-2].'\zs\d\*\ze'.r[-1:-1].'\|'.l[0].'\zs\d\*\ze'.l[1:-1], + \'\=substitute(submatch(0)+1-uncomment,"^0$\\|^-\\d*$","","")','g') + endif + if uncomment + let line = substitute(line,'\S.*\s\@ Commentary :call go(line("'<"),line("'>")) +nnoremap Commentary :set opfunc=gog@ +nnoremap CommentaryLine :set opfunc=goexe 'norm! 'v:count1.'g@_' +onoremap Commentary :call textobject(0) +nnoremap ChangeCommentary c:call textobject(1) +nmap CommentaryUndo CommentaryCommentary +command! -range -bar Commentary call s:go(,) + +if !hasmapto('Commentary') || maparg('gc','n') ==# '' + xmap gc Commentary + nmap gc Commentary + omap gc Commentary + nmap gcc CommentaryLine + nmap cgc ChangeCommentary + nmap gcu CommentaryCommentary +endif + +" vim:set et sw=2: diff --git a/vim/.vim/bundle/endwise/CONTRIBUTING.markdown b/vim/.vim/bundle/endwise/CONTRIBUTING.markdown new file mode 100644 index 0000000..b3f0095 --- /dev/null +++ b/vim/.vim/bundle/endwise/CONTRIBUTING.markdown @@ -0,0 +1 @@ +See the [contribution guidelines for pathogen.vim](https://github.com/tpope/vim-pathogen/blob/master/CONTRIBUTING.markdown). diff --git a/vim/.vim/bundle/endwise/README.markdown b/vim/.vim/bundle/endwise/README.markdown new file mode 100644 index 0000000..08f9d70 --- /dev/null +++ b/vim/.vim/bundle/endwise/README.markdown @@ -0,0 +1,42 @@ +# endwise.vim + +This is a simple plugin that helps to end certain structures +automatically. In Ruby, this means adding `end` after `if`, `do`, `def` +and several other keywords. In Vimscript, this amounts to appropriately +adding `endfunction`, `endif`, etc. There's also Bourne shell, VB +(don't ask), C/C++ preprocessor, and Lua support. + +A primary guiding principle in designing this plugin was that an +erroneous insertion is never acceptable. The behavior is only triggered +once pressing enter on the end of the line. When this happens, endwise +searches for a matching end structure and only adds one if none is +found. + +While the goal was to make it customizable, this turned out to be a tall +order. Every language has vastly different requirements. Nonetheless, +for those bold enough to attempt it, you can follow the model of the +autocmds in the plugin to set the three magic variables governing +endwise's behavior. + +## Installation + +If you don't have a preferred installation method, I recommend +installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and +then simply copy and paste: + + cd ~/.vim/bundle + git clone git://github.com/tpope/vim-endwise.git + +## Self-Promotion + +Like endwise.vim? Follow the repository on +[GitHub](https://github.com/tpope/vim-endwise) and vote for it on +[vim.org](http://www.vim.org/scripts/script.php?script_id=2386). And if +you're feeling especially charitable, follow [tpope](http://tpo.pe/) on +[Twitter](http://twitter.com/tpope) and +[GitHub](https://github.com/tpope). + +## License + +Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. +See `:help license`. diff --git a/vim/.vim/bundle/endwise/plugin/endwise.vim b/vim/.vim/bundle/endwise/plugin/endwise.vim new file mode 100644 index 0000000..23eb339 --- /dev/null +++ b/vim/.vim/bundle/endwise/plugin/endwise.vim @@ -0,0 +1,196 @@ +" Location: plugin/endwise.vim +" Author: Tim Pope +" Version: 1.2 +" License: Same as Vim itself. See :help license +" GetLatestVimScripts: 2386 1 :AutoInstall: endwise.vim + +if exists("g:loaded_endwise") || &cp + finish +endif +let g:loaded_endwise = 1 + +augroup endwise " {{{1 + autocmd! + autocmd FileType lua + \ let b:endwise_addition = 'end' | + \ let b:endwise_words = 'function,do,then' | + \ let b:endwise_pattern = '^\s*\zs\%(\%(local\s\+\)\=function\)\>\%(.*\\)\@!\|\<\%(then\|do\)\ze\s*$' | + \ let b:endwise_syngroups = 'luaFunction,luaStatement,luaCond' + autocmd FileType elixir + \ let b:endwise_addition = 'end' | + \ let b:endwise_words = 'do,fn' | + \ let b:endwise_pattern = '.*[^.:@$]\zs\<\%(do\(:\)\@!\|fn\)\>\ze\%(.*[^.:@$]\\)\@!' | + \ let b:endwise_syngroups = 'elixirBlockDefinition' + autocmd FileType ruby + \ let b:endwise_addition = 'end' | + \ let b:endwise_words = 'module,class,def,if,unless,case,while,until,begin,do' | + \ let b:endwise_pattern = '^\(.*=\)\?\s*\%(private\s\+\|protected\s\+\|public\s\+\|module_function\s\+\)*\zs\%(module\|class\|def\|if\|unless\|case\|while\|until\|for\|\|begin\)\>\%(.*[^.:@$]\\)\@!\|\