]> git.zndr.dk Git - dotfiles.git/commitdiff
Add vim files
authorJannik Zander <jannikz@Janniks-MBP.opasia.dk>
Sun, 1 May 2016 07:44:21 +0000 (09:44 +0200)
committerJannik Zander <jannikz@Janniks-MBP.opasia.dk>
Mon, 2 May 2016 19:34:27 +0000 (21:34 +0200)
.vimrc [new file with mode: 0644]
bin/build-luajit.sh [new file with mode: 0755]
bin/build-vim.sh [new file with mode: 0755]
bin/install-vundle.sh [new file with mode: 0755]

diff --git a/.vimrc b/.vimrc
new file mode 100644 (file)
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 (executable)
index 0000000..5d635d9
--- /dev/null
@@ -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 (executable)
index 0000000..09274d0
--- /dev/null
@@ -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 (executable)
index 0000000..e079d26
--- /dev/null
@@ -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