aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xdeploy.sh11
-rw-r--r--home/vimrc3
-rw-r--r--vim/airline/themes/tempus_dawn.vim27
4 files changed, 39 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 693fcde..c865a9e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-vim/
dotfiles-backup
config/zsh/00-local.zsh
config/git/config-local
diff --git a/deploy.sh b/deploy.sh
index f3d5e15..9387d19 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -67,14 +67,23 @@ do
done
cd ..
+autoload="$HOME/.vim/autoload"
+mkdir -p "$autoload"
# install vim-plug
if [ ! -e "$HOME/.vim/autoload/plug.vim" ]; then
- mkdir -p "$HOME/.vim/autoload"
$DLCMD "$HOME/.vim/autoload/plug.vim" \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
$VIMCMD +PlugInstall +qall
fi
+# deploy custom scripts to vim autoload
+cd vim
+for f in *
+do
+ link "$(pwd)/$f" "$autoload/$f"
+done
+cd ..
+
# create local files
if [ ! -e "$HOME/.config/zsh/00-local.zsh" ]; then
cp local/local.zsh config/zsh/00-local.zsh
diff --git a/home/vimrc b/home/vimrc
index fad60b4..e05e503 100644
--- a/home/vimrc
+++ b/home/vimrc
@@ -142,7 +142,7 @@ endif
set background=light
silent! colo tempus_dawn
-let g:airline_theme='papercolor'
+let g:airline_theme='tempus_dawn'
set hlsearch
syntax enable
@@ -164,6 +164,7 @@ hi link SpecialKey Error
let g:airline_powerline_fonts = 1
let g:airline_left_sep="\uE0B4"
let g:airline_right_sep = "\uE0B6"
+let g:airline_skip_empty_sections = 1
" set a font for gvim/macvim
set guifont=SauceCodeProNerdFontComplete-Medium:h14
diff --git a/vim/airline/themes/tempus_dawn.vim b/vim/airline/themes/tempus_dawn.vim
new file mode 100644
index 0000000..57e668b
--- /dev/null
+++ b/vim/airline/themes/tempus_dawn.vim
@@ -0,0 +1,27 @@
+let g:airline#themes#tempus_dawn#palette = {}
+
+let g:airline#themes#tempus_dawn#palette.accents = {
+ \ 'red': [ '#a64822' , '' , 9 , '' ],
+ \ }
+
+" Normal Mode:
+let s:N1 = [ '#4a4b4e' , '#e2e4e1' , 0 , 255 ] " Mode
+let s:N2 = [ '#4a4b4e' , '#CED3D0' , 0 , 254 ] " Info
+let s:N3 = [ '#4a4b4e' , '#BDC4C0' , 0 , 253 ] " StatusLine
+let g:airline#themes#tempus_dawn#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+" Insert Mode:
+let g:airline#themes#tempus_dawn#palette.insert = copy(g:airline#themes#tempus_dawn#palette.normal)
+let g:airline#themes#tempus_dawn#palette.insert.airline_a = [ '#745300' , '' , 3 , '' ]
+
+" Replace Mode:
+let g:airline#themes#tempus_dawn#palette.replace = copy(g:airline#themes#tempus_dawn#palette.normal)
+let g:airline#themes#tempus_dawn#palette.replace.airline_a = [ '#a32a3a' , '' , 1 , '' ]
+
+" Visual Mode:
+let g:airline#themes#tempus_dawn#palette.visual = copy(g:airline#themes#tempus_dawn#palette.normal)
+let g:airline#themes#tempus_dawn#palette.visual.airline_a = [ '#4b529a' , '' , 4 , '' ]
+
+" Inactive:
+let s:IA = [ '#676364' , '#e2e4e1' , 8 , 255 ]
+let g:airline#themes#tempus_dawn#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)