From 0120c00ff33a974ac564cffdc86bbde2cf92af44 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 12 Feb 2017 08:46:54 +0100 Subject: [PATCH] Thingies --- scripts/installPreferences.sh | 26 +++++++++++++++----------- vimrc | 2 +- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/scripts/installPreferences.sh b/scripts/installPreferences.sh index 889e3b9..43b51fc 100755 --- a/scripts/installPreferences.sh +++ b/scripts/installPreferences.sh @@ -189,14 +189,14 @@ function install-preferences { else inst make fi - inst git cmake clang llvm + inst git # Text editor if [ $TERMUX == 1 ]; then inst vim-python elif [ $DEBIAN == 1 ]; then - inst vim-youcompleteme + inst vim-nox ln -s $DEBLOC_ROOT/usr/bin/vim{.nox,} else inst vim @@ -210,16 +210,17 @@ function install-preferences { vim +PluginInstall +qall # YouCompleteMe (vim plugin) - if [ $DEBIAN != 1 ]; then - if [ $DEBIAN == 1 || $TERMUX == 1 ]; then - inst python-dev python3-dev - fi - local YCM_ARGS="" - if [ $TERMUX == 0 ]; then - YCM_ARGS="$YCM_ARGS --clang-completer --tern-completer" - fi - python $HOME/.vim/bundle/YouCompleteMe/install.py $YCM_ARGS + if [[ $DEBIAN == 1 || $TERMUX == 1 ]]; then + inst python-dev python3-dev libxml2-dev libxslt-dev fi + local YCM_ARGS="" + if [ $TERMUX != 1 ]; then + YCM_ARGS="$YCM_ARGS --clang-completer --tern-completer" + fi + if [[ $DEBIAN == 1 && $ADMIN == 0 ]]; then + export CPLUS_INCLUDE_PATH="$DEBLOC_ROOT/usr/include/python2.7/:$DEBLOC_ROOT/usr/include/x86_64-linux-gnu/python2.7/:$CPLUS_INCLUDE_PATH" + fi + python $HOME/.vim/bundle/YouCompleteMe/install.py $YCM_ARGS # Common GUI @@ -259,6 +260,9 @@ function install-preferences { fi if [ $EXTRA == 1 ]; then + # Extra dev + inst cmake clang llvm + # Extra CLI inst sl ffmpeg youtube-dl diff --git a/vimrc b/vimrc index 72b3a5c..a768c2b 100644 --- a/vimrc +++ b/vimrc @@ -33,7 +33,7 @@ Plugin 'majutsushi/tagbar' Plugin 'wellle/targets.vim' Plugin 'Chiel92/vim-autoformat' Plugin 'Valloric/YouCompleteMe' -Plugin 'Raimondi/delimitMate' +"Plugin 'Raimondi/delimitMate' call vundle#end() " required filetype plugin indent on " required