aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2018-02-20 16:16:19 -0500
committerTucker Evans <tuckerevans24@gmail.com>2018-02-20 16:16:19 -0500
commit9d524a3b8918eae9c8e9ed89d3300b00aaacbecf (patch)
tree35121d23cf27846460ae8e4f5b151a2740750f30
parent46899d5b12f1d51ff3b851a627704dd2ccd0bfad (diff)
Removed vimPlugin scripts.
Theses scripts have moved to their own repo at <github.com/tuckerevans/vimPlug>
-rw-r--r--README.rst61
-rwxr-xr-xvimPlugins/PlugInstall.sh62
-rwxr-xr-xvimPlugins/PlugRemove.sh60
-rwxr-xr-xvimPlugins/PlugUpdate.sh44
4 files changed, 6 insertions, 221 deletions
diff --git a/README.rst b/README.rst
index 4500ec4..5ec3bd3 100644
--- a/README.rst
+++ b/README.rst
@@ -4,20 +4,12 @@ Tucker's Dotfiles
These dotfiles are here mostly to move them between my computers and
as a backup, but feel free to use them yourself.
-vimPlugins
-----------
-These shell scrips are my solution to vim plugins, they use
-git-submodules and vim 8's third party package loading.
-I recomend reading `Vim: So long Pathogen, hello native package
-loading <https://shapeshed.com/vim-packages/>`_,
-as it was my reference when creating the scripts.
-These will probably be move to their own repo someday, but I'm too
-tired to do that now.
+vim plugins
+-----------
+I keep my vim plugins as submodules in this repo, I use
+`github.com/tuckerevans/plugVim <https://www.github.com/tuckerevans/plugvim>`_
+to manage them.
-.. warning ::
- I just threw these scripts together one night, I do not trust them to be
- completely stable, you should read through them and make sure you
- understand what they are doing.
Installation
------------
@@ -35,50 +27,9 @@ I recomend using `stow <https://www.gnu.org/software/stow/>`_ to
manage these files. This can be done with the following commands.
1. :code:`cd ~`
-2. :code:`git clone https://github/tuckerevans/dotfiles`
+2. :code:`git clone https://github.com/tuckerevans/dotfiles`
3. :code:`cd dotfiles`
4. Run :code:`stow [program]` for each program's dotfiles you want to use
*Example:* :code:`stow vim` or :code:`stow mutt`
-vimPlugins
-**********
-
-I just run the vimPlugins scripts from my `dotfiles/vimPlugins` directory with
-:code:`./PlugInstall`, you could link to them in `/usr/local/bin` by
-running the following command as root (or with sudo).
-
-- :code:`stow -t /usr/local/bin vimPlugins`
-
-
-Usage (vimPlugins)
-------------------
-
-.. note ::
- These scripts must be run in `/home/$user/dotfiles`. You can change
- this by editing the first few lines of the scripts.
-
-PlugInstall
-***********
-
-PlugInstall.sh takes in the link to a git repository the same as git
-clone, the optional flag `-o` with place the plugin in the opt folder
-(this means you will have to tell vim to start this plugin)
-
- *Example:* :code:`./PlugInstall.sh [-o] git@github.com/exampleAccount/exampl_repository`
-
-PlugUpdate
-***********
-
-PlugUpdate.sh takes in no arguments and will update the submodules.
-
- *Example:* :code:`./PlugUpdate.sh`
-
-PlugRemove
-***********
-
-PlugUpdate.sh takes in the name of the submodule (plugin) that you
-would like to remove, the optional flag `-o` should be used if used in
-the install.
-
- *Example:* :code:`./PlugRemove.sh [-o] example_repository`
diff --git a/vimPlugins/PlugInstall.sh b/vimPlugins/PlugInstall.sh
deleted file mode 100755
index 15caa0a..0000000
--- a/vimPlugins/PlugInstall.sh
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/bash
-
-#This script installs vim plugins using git submodules.
-#
-#
-#MIT License
-#
-#Copyright (c) 2018 Tucker Evans
-#
-#Permission is hereby granted, free of charge, to any person obtaining a copy
-#of this software and associated documentation files (the "Software"), to deal
-#in the Software without restriction, including without limitation the rights
-#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-#copies of the Software, and to permit persons to whom the Software is
-#furnished to do so, subject to the following conditions:
-#
-#The above copyright notice and this permission notice shall be included in all
-#copies or substantial portions of the Software.
-#
-#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-#SOFTWARE.
-
-if [ "$PWD" != "$HOME/dotfiles" ]
-then
- echo "Must be run in $HOME/dotfiles"
- exit 1
-fi
-
-
-PLUG_PATH="vim/.vim/pack/$USER/start/"
-ARGS=0
-while getopts o opt; do
- ((ARGS++))
-
- if [ "$opt" == "o" ]
- then
- PLUG_PATH="vim/.vim/pack/$USER/opt/"
- fi
- if [ "$opt" == "h" ]
- then
- nroff .PlugHelp.tr
- exit 0
- fi
-done
-((ARGS++))
-LINK="${!ARGS}"
-PLUG_NAME=${LINK##*/}
-FILENAME=${FILENAME%.git}
-FILENAME="$PLUG_PATH$FILENAME"
-
-echo "Installing \"$PLUG_NAME\" into directory $PLUG_PATH"
-
-
-
-git submodule add $LINK $FILENAME && \
-git add .gitmodules $FILENAME && \
-git commit -m"Added vim plugin: $PLUG_NAME." && echo "Success"
diff --git a/vimPlugins/PlugRemove.sh b/vimPlugins/PlugRemove.sh
deleted file mode 100755
index f2d9b6e..0000000
--- a/vimPlugins/PlugRemove.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash
-
-#This script removes vim plugins installed with PlugInstall.sh.
-#
-#
-#MIT License
-#
-#Copyright (c) 2018 Tucker Evans
-#
-#Permission is hereby granted, free of charge, to any person obtaining a copy
-#of this software and associated documentation files (the "Software"), to deal
-#in the Software without restriction, including without limitation the rights
-#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-#copies of the Software, and to permit persons to whom the Software is
-#furnished to do so, subject to the following conditions:
-#
-#The above copyright notice and this permission notice shall be included in all
-#copies or substantial portions of the Software.
-#
-#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-#SOFTWARE.
-
-if [ "$PWD" != "$HOME/dotfiles" ]
-then
- echo "Must be run in $HOME/dotfiles"
- exit 1
-fi
-
-
-PLUG_PATH="vim/.vim/pack/$USER/start/"
-ARGS=0
-while getopts o opt; do
- ((ARGS++))
-
- if [ "$opt" == "o" ]
- then
- PLUG_PATH="vim/.vim/pack/$USER/opt/"
- fi
- if [ "$opt" == "h" ]
- then
- nroff .PlugHelp.tr
- exit 0
- fi
-done
-((ARGS++))
-NAME="${!ARGS}"
-FILENAME="$PLUG_PATH$NAME"
-
-git submodule deinit -f $FILENAME
-echo
-git rm -f $FILENAME
-echo
-rm -rfv ".git/modules/$FILENAME"
-
-git commit -m"Removed vim plugin: $NAME"
diff --git a/vimPlugins/PlugUpdate.sh b/vimPlugins/PlugUpdate.sh
deleted file mode 100755
index ad48183..0000000
--- a/vimPlugins/PlugUpdate.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-#This script updates vim plugins using git submodules.
-#
-#
-#MIT License
-#
-#Copyright (c) 2018 Tucker Evans
-#
-#Permission is hereby granted, free of charge, to any person obtaining a copy
-#of this software and associated documentation files (the "Software"), to deal
-#in the Software without restriction, including without limitation the rights
-#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-#copies of the Software, and to permit persons to whom the Software is
-#furnished to do so, subject to the following conditions:
-#
-#The above copyright notice and this permission notice shall be included in all
-#copies or substantial portions of the Software.
-#
-#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-#SOFTWARE.
-
-if [ "$PWD" != "$HOME/dotfiles" ]
-then
- echo "Must be run in $HOME/dotfiles"
- exit 1
-fi
-
-
-while getopts o opt; do
- if [ "$opt" == "h" ]
- then
- nroff .PlugHelp.tr
- exit 0
- fi
-done
-
-git submodule update --remote --merge && \
-git commit -m"Updated vim plugins." && echo "Success"