dot

packages and services management
Log | Files | Refs | README

commit 3b8ff537961c94d804b865b83be7a22b4a2db5dc
parent f504e48a7ad63df3a04ff3abf9dcdf85c132fc7e
Author: josuah <mail@josuah.net>
Date:   Fri, 26 Aug 2016 17:26:27 +0200

Added vim back

Diffstat:
MREADME | 12++++++------
Mbin/src | 9+++++----
Mbin/updd | 8+++++---
Minstall.sh | 2+-
Mshell/.profile | 2+-
Avim/.vimrc | 42++++++++++++++++++++++++++++++++++++++++++
Avim/build.sh | 16++++++++++++++++
Mvis/.config/vis/themes/coal-16.lua | 30+++++++++++++++---------------
8 files changed, 91 insertions(+), 30 deletions(-)

diff --git a/README b/README @@ -1,9 +1,9 @@ http://josuah.net mail@josuah.net - __ /\ - \/ ____ ____ __ /\ _____ / /_ - /\ / __ \ / __// / / /.'__ // __ \ - //////_///__\\\ ///_//////_////// //// - _,-' / \____/ \___/ \____/ \____/ \/ \/ 's dotfiles + __ /\ + \/ ____ ____ __ /\ _____ / /_ + /\ / __ \ / __// / / /.'__ // __ \ + //////_///_\\\ ///_//////_////// //// + _,-' / \____/\___/ \____/ \____/ \/ \/ 's dotfiles =\_,-'========================================================================== @@ -87,4 +87,4 @@ PROJECTS notes Biology notes http://github.com/josuah/notes website Website source http://github.com/josuah/website barkdown Not a text markup http://github.com/josuah/barkdown - editor Draft for an editor http://github.com/josuah/editor + vir Draft for an editor http://github.com/josuah/vir diff --git a/bin/src b/bin/src @@ -99,11 +99,12 @@ download() *) error 'not a known tar extension' ;; esac - tmpdir="$(mktemp -d)" - wget -O - "$tar" | tar -xv"$taroption" -f - -C "$tmpdir" + tmp="$(mktemp -d)" + wget -O - "$tar" | tar -xv"$taroption" -f - -C "$tmp" 2>&1 | : + mkdir -p "$PROGRAMS/$name" - mv "$tmpdir/"* "$PROGRAMS/$name/src" - rm -r "$tmpdir" + mv "$tmp/"* "$PROGRAMS/$name/src" + rm -r "$tmp" fi } diff --git a/bin/updd b/bin/updd @@ -1,11 +1,13 @@ -# /\ /\ +# /\ 2016-08-25 # __ /\ ____ ___/ / ___/ / # / / / // __ \ .'__ /.'__ / # / /_/ // /_/ // /_/ // /_/ / # \____// ____/ \____/ \____/ - UPDate Date #=======\/====================================================================== +IFS=' +' -read line; -line="${line%% *}" +read -r line; +line="${line% *}" printf "%s%$((80 - ${#line}))s\n" "$line" "$(date +"${1-%Y-%m-%d}")" \ No newline at end of file diff --git a/install.sh b/install.sh @@ -15,7 +15,7 @@ case "$1" in cd "$git" sed '/^[ \t-]*$/ d; 1,/^PROJECTS$/ d' "$pwd/README" | while read line - do git clone "${line##* }" "${line%% *}" + do git clone --recursive "${line##* }" "${line%% *}" done ;; -m) diff --git a/shell/.profile b/shell/.profile @@ -27,7 +27,7 @@ export TERMCAP="vt102|$TERM|dec vt102:"'\ # COMMANDS -for editor in vi vis ex-vi +for editor in vi vis vim do command -v "$editor" > /dev/null && EDITOR="$editor" done export EDITOR diff --git a/vim/.vimrc b/vim/.vimrc @@ -0,0 +1,42 @@ +" __ +" __ /\ \/ ________ _____ ____ +" / / / / /\ / __ __ \ / ____\/ ___\ +" \ \/ / / // / / / / // / / /__ +" \_,' \/ \/ \/ \/ \/ \____\ - Config file for vim in tiny mode +"============================================================================== + + +" OPTIONS +"------------------------------------------------------------------------------- + +set autoindent copyindent +set ruler number list listchars=tab:\|\ ,eol:$ + + +" MAPPINGS +"------------------------------------------------------------------------------- + +map <Space> : +map <Space><Space> : +map <Space>s :set +map <Space>w :w<CR> + +map col :set list! <CR>:set list? <CR> +map con :set number!<CR>:set number?<CR> + +map ]<Space> mzo<Esc>k`z +map [<Space> mzO<Esc>k`z<C-e> + + +" ABBREVIATIONS +"------------------------------------------------------------------------------- + +iabbrev -_ <Esc>v0x80a-<esc>gvpA +iabbrev =_ <Esc>v0x80a=<esc>gvpA + + +" HIGHLIGHTS +"------------------------------------------------------------------------------- + +highlight NonText cterm=bold ctermfg=0 +highlight SpecialKey cterm=bold ctermfg=0 diff --git a/vim/build.sh b/vim/build.sh @@ -0,0 +1,15 @@ +# The vim. + +tar=https://github.com/vim/vim/archive/master.tar.gz + +build() +{ + ./configure \ + --with-features=tiny \ + --disable-gui \ + --without-x \ + --without-gnome \ + --prefix="$PREFIX" + + make install +}+ \ No newline at end of file diff --git a/vis/.config/vis/themes/coal-16.lua b/vis/.config/vis/themes/coal-16.lua @@ -4,27 +4,27 @@ local lexers = vis.lexers -- dark lexers.STYLE_DEFAULT = "back:black,fore:white" lexers.STYLE_NOTHING = "back:black" -lexers.STYLE_CLASS = "fore:red,bold" +lexers.STYLE_CLASS = "fore:white,bold" lexers.STYLE_COMMENT = "fore:black,bold" -lexers.STYLE_CONSTANT = "fore:cyan,bold" -lexers.STYLE_DEFINITION = "fore:blue,bold" +lexers.STYLE_CONSTANT = "fore:white,bold" +lexers.STYLE_DEFINITION = "fore:white,bold" lexers.STYLE_ERROR = "back:red,fore:white" -lexers.STYLE_FUNCTION = "fore:cyan,bold" -lexers.STYLE_KEYWORD = "fore:red,bold" -lexers.STYLE_LABEL = "fore:green,bold" -lexers.STYLE_OPERATOR = "fore:cyan,bold" -lexers.STYLE_REGEX = "fore:green,bold" +lexers.STYLE_FUNCTION = "fore:white,bold" +lexers.STYLE_KEYWORD = "fore:yellow,bold" +lexers.STYLE_LABEL = "fore:white,bold" +lexers.STYLE_OPERATOR = "fore:white,bold" +lexers.STYLE_REGEX = "fore:white,bold" lexers.STYLE_STRING = "fore:yellow" -lexers.STYLE_NUMBER = "fore:green,bold" -lexers.STYLE_PREPROCESSOR = "fore:magenta,bold" -lexers.STYLE_TAG = "fore:red,bold" -lexers.STYLE_TYPE = "fore:green,bold" -lexers.STYLE_VARIABLE = "fore:cyan,bold" +lexers.STYLE_NUMBER = "fore:yellow,bold" +lexers.STYLE_PREPROCESSOR = "fore:white,bold" +lexers.STYLE_TAG = "fore:white,bold" +lexers.STYLE_TYPE = "fore:white,bold" +lexers.STYLE_VARIABLE = "fore:white,bold" lexers.STYLE_WHITESPACE = "fore:black,bold" -lexers.STYLE_EMBEDDED = "back:blue,bold" +lexers.STYLE_EMBEDDED = "back:white,bold" lexers.STYLE_IDENTIFIER = "fore:white" -lexers.STYLE_LINENUMBER = "fore:black,bold" +lexers.STYLE_LINENUMBER = "fore:white" lexers.STYLE_CURSOR = "back:black,fore:yellow,reverse,bold" lexers.STYLE_CURSOR_PRIMARY = "back:black,fore:red,reverse,bold" lexers.STYLE_CURSOR_LINE = "back:black,fore:magenta,reverse"