From 93b0a2274dbcadfa0a24fd23dab7c6dac0996624 Mon Sep 17 00:00:00 2001 From: Jannik Zander Date: Sun, 1 May 2016 09:44:21 +0200 Subject: [PATCH] Add vim files --- .vimrc | 23 +++++++++++++++++++++++ bin/build-luajit.sh | 3 +++ bin/build-vim.sh | 18 ++++++++++++++++++ bin/install-vundle.sh | 9 +++++++++ 4 files changed, 53 insertions(+) create mode 100644 .vimrc create mode 100755 bin/build-luajit.sh create mode 100755 bin/build-vim.sh create mode 100755 bin/install-vundle.sh diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..2987589 --- /dev/null +++ b/.vimrc @@ -0,0 +1,23 @@ +" set the runtime path to include Vundle and initialize +set rtp+=$HOME/.vim/bundle/Vundle.vim +call vundle#begin('$HOME/.vim/bundle/') + +Plugin 'VundleVim/Vundle.vim' +Bundle 'thanthese/Tortoise-Typing' + +call vundle#end() " required +filetype plugin indent on " required + + +set backspace=2 " backspace in insert mode works like normal editor +syntax on " syntax highlighting +filetype indent on " activates indenting for files +set autoindent " auto indenting +set number " line numbers +colorscheme desert " colorscheme desert +set nobackup " get rid of anoying ~file + +let $LOCALFILE=expand("~/.vimrc_local") +if filereadable($LOCALFILE) +source $LOCALFILE +endif diff --git a/bin/build-luajit.sh b/bin/build-luajit.sh new file mode 100755 index 0000000..5d635d9 --- /dev/null +++ b/bin/build-luajit.sh @@ -0,0 +1,3 @@ +#!/bin/sh +make PREFIX=$PREFIX MULTILIB=lib +make install PREFIX=$PREFIX/apps/luajit MULTILIB=lib diff --git a/bin/build-vim.sh b/bin/build-vim.sh new file mode 100755 index 0000000..09274d0 --- /dev/null +++ b/bin/build-vim.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +./configure \ +--prefix=$PREFIX \ +--with-features=huge \ +--with-compiledby="ejannza" \ +--enable-multibyte \ +--enable-gui=gtk2 \ +--enable-luainterp \ +--with-lua-prefix=$PREFIX --with-luajit \ +--enable-gpm \ +--enable-cscope \ +--enable-fontset \ +--enable-fail-if-missing + + +make +make install prefix=$PREFIX/apps/vim diff --git a/bin/install-vundle.sh b/bin/install-vundle.sh new file mode 100755 index 0000000..e079d26 --- /dev/null +++ b/bin/install-vundle.sh @@ -0,0 +1,9 @@ +## Create bundle folder + +mkdir -p .vim/bundle + +## Clone Vundle +git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim + +## Install bundles +vim +BundleInstall +qall -- 2.43.0