Compare commits
No commits in common. "2024-update" and "master" have entirely different histories.
2024-updat
...
master
31 changed files with 1761 additions and 4460 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#Local Gitignore for Repo#
|
||||
##########################
|
||||
|
||||
# Ignore undo files
|
||||
*.un~
|
12
.gitmodules
vendored
Normal file
12
.gitmodules
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
[submodule "vim/vim/pack/plugins/start/vim-fugitive"]
|
||||
path = vim/vim/pack/plugins/start/vim-fugitive
|
||||
url = https://github.com/tpope/vim-fugitive.git
|
||||
[submodule "vim/vim/pack/plugins/start/vim-unimpaired"]
|
||||
path = vim/vim/pack/plugins/start/vim-unimpaired
|
||||
url = https://github.com/tpope/vim-unimpaired.git
|
||||
[submodule "vim/vim/pack/plugins/start/vim-commentary"]
|
||||
path = vim/vim/pack/plugins/start/vim-commentary
|
||||
url = https://github.com/tpope/vim-commentary.git
|
||||
[submodule "vim/vim/pack/plugins/start/vim-polyglot"]
|
||||
path = vim/vim/pack/plugins/start/vim-polyglot
|
||||
url = https://github.com/sheerun/vim-polyglot.git
|
66
README.md
66
README.md
|
@ -1,11 +1,65 @@
|
|||
# Dot Files
|
||||
|
||||
Configuration files (often called dot-files because they start with a ".") for
|
||||
the applications I use on a regular basis. The configuration files are fully
|
||||
commented and self-descriptive.
|
||||
the applications I use on a regular basis.
|
||||
|
||||
## Usage
|
||||
Update the system from repo: `cp -rut ~/.config <dir>`
|
||||
Update the repo from system: `cp -rut . ~/.config/<dir>`
|
||||
### Requirements
|
||||
|
||||
Alternatively, `make` to automate some of it.
|
||||
You'll need `make` for the automated linking of the dotfiles. Obviously you'll
|
||||
need the related program for each config file to be applicable.
|
||||
|
||||
## Installation
|
||||
> 1. git clone git@github.com:VagabondAzulien/dotfiles.git
|
||||
>
|
||||
> 2. cd dotfiles
|
||||
>
|
||||
> 3. Type `make` to see your options
|
||||
|
||||
## Applications Configured
|
||||
|
||||
### Vim
|
||||
My vim configuration is relatively straight forward and thoroughly commented.
|
||||
|
||||
#### Plugin File
|
||||
The vimrc-plugins file stores the plugin information for
|
||||
[Vim-Plug](https://github.com/junegunn/vim-plug). Included in the file is a
|
||||
command to check for and pull-down the vim-plug files, if not previously
|
||||
installed. All configurations related to plugins goes into this file also, so if
|
||||
I want a plugin-free install, I can ignore this file and still run fine.
|
||||
|
||||
### Tmux
|
||||
My tmux configuration is very straight forward and fully commented. Of note, I
|
||||
enable mouse mode, have custom colors, and have a custom clock script for the
|
||||
status bar (`clocks.sh`).
|
||||
|
||||
### Git
|
||||
My git configuration is a skeleton `gitconfig` file, and an always-growing
|
||||
`gitignore` file.
|
||||
|
||||
### Bash
|
||||
My `bashrc` includes a custom prompt, several PATH additions, and
|
||||
several custom functions.
|
||||
|
||||
The `bashrc-remote` file I use for any remote environments I'm in. The prompt is
|
||||
different, and some of the functions aren't included.
|
||||
|
||||
## To-Do
|
||||
* [ ] Improve makefile
|
||||
|
||||
## License
|
||||
All files are licensed under the [WTFPL](http://www.wtfpl.net/), the full
|
||||
license text of which can be found below.
|
||||
|
||||
> **DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE**
|
||||
>
|
||||
> _Version 2, December 2004_ ||
|
||||
> _Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>_
|
||||
>
|
||||
> Everyone is permitted to copy and distribute verbatim or modified
|
||||
> copies of this license document, and changing it is allowed as long
|
||||
> as the name is changed.
|
||||
>
|
||||
> DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
>
|
||||
> 0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
# man alacritty for program details
|
||||
# man 5 alacritty for config details
|
||||
|
||||
general.import = [
|
||||
# uncomment the flavour you want below:
|
||||
# "~/.config/alacritty/catppuccin-latte.toml"
|
||||
"~/.config/alacritty/catppuccin-frappe.toml"
|
||||
# "~/.config/alacritty/catppuccin-macchiato.toml"
|
||||
# "~/.config/alacritty/catppuccin-mocha.toml"
|
||||
]
|
||||
|
||||
[env]
|
||||
TERM = "xterm-256color" # Makes Alacritty work well with TMUX
|
||||
|
||||
[window]
|
||||
decorations = "none" # Removes title bar on Linux
|
||||
padding = { x = 10, y = 10 } # Adds padding around window
|
||||
startup_mode = "Maximized" # Starts maximized
|
|
@ -1,65 +0,0 @@
|
|||
[colors.primary]
|
||||
background = "#303446"
|
||||
foreground = "#c6d0f5"
|
||||
dim_foreground = "#838ba7"
|
||||
bright_foreground = "#c6d0f5"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#303446"
|
||||
cursor = "#f2d5cf"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#303446"
|
||||
cursor = "#babbf1"
|
||||
|
||||
[colors.search.matches]
|
||||
foreground = "#303446"
|
||||
background = "#a5adce"
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = "#303446"
|
||||
background = "#a6d189"
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = "#303446"
|
||||
background = "#a5adce"
|
||||
|
||||
[colors.hints.start]
|
||||
foreground = "#303446"
|
||||
background = "#e5c890"
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = "#303446"
|
||||
background = "#a5adce"
|
||||
|
||||
[colors.selection]
|
||||
text = "#303446"
|
||||
background = "#f2d5cf"
|
||||
|
||||
[colors.normal]
|
||||
black = "#51576d"
|
||||
red = "#e78284"
|
||||
green = "#a6d189"
|
||||
yellow = "#e5c890"
|
||||
blue = "#8caaee"
|
||||
magenta = "#f4b8e4"
|
||||
cyan = "#81c8be"
|
||||
white = "#b5bfe2"
|
||||
|
||||
[colors.bright]
|
||||
black = "#626880"
|
||||
red = "#e78284"
|
||||
green = "#a6d189"
|
||||
yellow = "#e5c890"
|
||||
blue = "#8caaee"
|
||||
magenta = "#f4b8e4"
|
||||
cyan = "#81c8be"
|
||||
white = "#a5adce"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = "#ef9f76"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = "#f2d5cf"
|
|
@ -1,65 +0,0 @@
|
|||
[colors.primary]
|
||||
background = "#eff1f5"
|
||||
foreground = "#4c4f69"
|
||||
dim_foreground = "#8c8fa1"
|
||||
bright_foreground = "#4c4f69"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#eff1f5"
|
||||
cursor = "#dc8a78"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#eff1f5"
|
||||
cursor = "#7287fd"
|
||||
|
||||
[colors.search.matches]
|
||||
foreground = "#eff1f5"
|
||||
background = "#6c6f85"
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = "#eff1f5"
|
||||
background = "#40a02b"
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = "#eff1f5"
|
||||
background = "#6c6f85"
|
||||
|
||||
[colors.hints.start]
|
||||
foreground = "#eff1f5"
|
||||
background = "#df8e1d"
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = "#eff1f5"
|
||||
background = "#6c6f85"
|
||||
|
||||
[colors.selection]
|
||||
text = "#eff1f5"
|
||||
background = "#dc8a78"
|
||||
|
||||
[colors.normal]
|
||||
black = "#bcc0cc"
|
||||
red = "#d20f39"
|
||||
green = "#40a02b"
|
||||
yellow = "#df8e1d"
|
||||
blue = "#1e66f5"
|
||||
magenta = "#ea76cb"
|
||||
cyan = "#179299"
|
||||
white = "#5c5f77"
|
||||
|
||||
[colors.bright]
|
||||
black = "#acb0be"
|
||||
red = "#d20f39"
|
||||
green = "#40a02b"
|
||||
yellow = "#df8e1d"
|
||||
blue = "#1e66f5"
|
||||
magenta = "#ea76cb"
|
||||
cyan = "#179299"
|
||||
white = "#6c6f85"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = "#fe640b"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = "#dc8a78"
|
|
@ -1,65 +0,0 @@
|
|||
[colors.primary]
|
||||
background = "#24273a"
|
||||
foreground = "#cad3f5"
|
||||
dim_foreground = "#8087a2"
|
||||
bright_foreground = "#cad3f5"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#24273a"
|
||||
cursor = "#f4dbd6"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#24273a"
|
||||
cursor = "#b7bdf8"
|
||||
|
||||
[colors.search.matches]
|
||||
foreground = "#24273a"
|
||||
background = "#a5adcb"
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = "#24273a"
|
||||
background = "#a6da95"
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = "#24273a"
|
||||
background = "#a5adcb"
|
||||
|
||||
[colors.hints.start]
|
||||
foreground = "#24273a"
|
||||
background = "#eed49f"
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = "#24273a"
|
||||
background = "#a5adcb"
|
||||
|
||||
[colors.selection]
|
||||
text = "#24273a"
|
||||
background = "#f4dbd6"
|
||||
|
||||
[colors.normal]
|
||||
black = "#494d64"
|
||||
red = "#ed8796"
|
||||
green = "#a6da95"
|
||||
yellow = "#eed49f"
|
||||
blue = "#8aadf4"
|
||||
magenta = "#f5bde6"
|
||||
cyan = "#8bd5ca"
|
||||
white = "#b8c0e0"
|
||||
|
||||
[colors.bright]
|
||||
black = "#5b6078"
|
||||
red = "#ed8796"
|
||||
green = "#a6da95"
|
||||
yellow = "#eed49f"
|
||||
blue = "#8aadf4"
|
||||
magenta = "#f5bde6"
|
||||
cyan = "#8bd5ca"
|
||||
white = "#a5adcb"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = "#f5a97f"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = "#f4dbd6"
|
|
@ -1,65 +0,0 @@
|
|||
[colors.primary]
|
||||
background = "#1e1e2e"
|
||||
foreground = "#cdd6f4"
|
||||
dim_foreground = "#7f849c"
|
||||
bright_foreground = "#cdd6f4"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#1e1e2e"
|
||||
cursor = "#f5e0dc"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#1e1e2e"
|
||||
cursor = "#b4befe"
|
||||
|
||||
[colors.search.matches]
|
||||
foreground = "#1e1e2e"
|
||||
background = "#a6adc8"
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = "#1e1e2e"
|
||||
background = "#a6e3a1"
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = "#1e1e2e"
|
||||
background = "#a6adc8"
|
||||
|
||||
[colors.hints.start]
|
||||
foreground = "#1e1e2e"
|
||||
background = "#f9e2af"
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = "#1e1e2e"
|
||||
background = "#a6adc8"
|
||||
|
||||
[colors.selection]
|
||||
text = "#1e1e2e"
|
||||
background = "#f5e0dc"
|
||||
|
||||
[colors.normal]
|
||||
black = "#45475a"
|
||||
red = "#f38ba8"
|
||||
green = "#a6e3a1"
|
||||
yellow = "#f9e2af"
|
||||
blue = "#89b4fa"
|
||||
magenta = "#f5c2e7"
|
||||
cyan = "#94e2d5"
|
||||
white = "#bac2de"
|
||||
|
||||
[colors.bright]
|
||||
black = "#585b70"
|
||||
red = "#f38ba8"
|
||||
green = "#a6e3a1"
|
||||
yellow = "#f9e2af"
|
||||
blue = "#89b4fa"
|
||||
magenta = "#f5c2e7"
|
||||
cyan = "#94e2d5"
|
||||
white = "#a6adc8"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = "#fab387"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = "#f5e0dc"
|
16
git/config
16
git/config
|
@ -1,16 +0,0 @@
|
|||
#==============================================================================#
|
||||
#= Global Git Configuration =#
|
||||
#==============================================================================#
|
||||
[config]
|
||||
relativePaths=false # Show relative paths with status outputs
|
||||
[init]
|
||||
defaultBranch=main # Default branch is 'main' not 'master'
|
||||
[diff]
|
||||
algorithm=histogram # Better-sorted output of diffs
|
||||
[merge]
|
||||
conflictstyle=diff3 # Use the diff3 merge output
|
||||
[user] # Default credentials:
|
||||
name="Bill Niblock" # My name
|
||||
email="bill@theinternetvagabond.com" # My email address
|
||||
[includeIf "gitdir:~/Code/nibtech/"] # Over-ride with NibTech credentials
|
||||
path="~/.config/git/nibtech.conf" # Path to NibTech config file
|
12
git/gitconfig
Normal file
12
git/gitconfig
Normal file
|
@ -0,0 +1,12 @@
|
|||
#============================#
|
||||
# gitconfig file for niblock #
|
||||
#============================#
|
||||
|
||||
# General Settings:
|
||||
# Show me absolute paths, not relative paths
|
||||
# Link to a global excludes file
|
||||
[status]
|
||||
relativePaths = false
|
||||
|
||||
[core]
|
||||
excludesFile = ~/.gitignore
|
40
git/gitignore
Normal file
40
git/gitignore
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Global gitignore file
|
||||
# Stolen from octocat: https://gist.github.com/octocat/9257657
|
||||
|
||||
# Compiled source #
|
||||
*.com
|
||||
*.class
|
||||
*.dll
|
||||
*.exe
|
||||
*.o
|
||||
*.so
|
||||
|
||||
# Packages #
|
||||
*.7z
|
||||
*.dmg
|
||||
*.gz
|
||||
*.iso
|
||||
*.jar
|
||||
*.rar
|
||||
*.tar
|
||||
*.zip
|
||||
|
||||
# Logs and databases #
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
# OS generated files #
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
# Vim Related #
|
||||
*.swp
|
||||
.netrwhist
|
||||
*.un~
|
||||
tags
|
|
@ -1,7 +0,0 @@
|
|||
#===========================#
|
||||
# NibTech Git Configuration #
|
||||
#===========================#
|
||||
[user] # NibTech Credentials:
|
||||
name="Bill Niblock" # My name
|
||||
email="bill@niblock.tech" # My email address
|
||||
|
120
makefile
120
makefile
|
@ -1,26 +1,98 @@
|
|||
#=====================================================#
|
||||
# Makefile for niblock dotfiles || $ make for options #
|
||||
#=====================================================#
|
||||
help: ## Default target shows options
|
||||
@echo "=== Make Targets ==="
|
||||
@echo " update-system: Update system from repository."
|
||||
@echo " update-repo: Update repository from system."
|
||||
@echo "=== Manually ==="
|
||||
@echo " Update System: cp -rut ~/.config <application>/"
|
||||
@echo " Update Repo: cp -rut . ~/.config/<application>/"
|
||||
#===============================================================================
|
||||
# Makefile for niblock dotfiles || $ make for options
|
||||
#===============================================================================
|
||||
.PHONY: help \
|
||||
link-dotfiles \
|
||||
build-default \
|
||||
build-simple \
|
||||
clean-all \
|
||||
install-vim-config \
|
||||
install-vim-plugins \
|
||||
install-git \
|
||||
install-tmux \
|
||||
install-bash-config \
|
||||
install-bash-profile \
|
||||
|
||||
update-system: ## Update system from repository
|
||||
@cp -rut "$(HOME)"/.config "$(CURDIR)"/alacritty/
|
||||
@cp -rut "$(HOME)"/.config "$(CURDIR)"/git/
|
||||
@cp -rut "$(HOME)"/.config "$(CURDIR)"/nvim/
|
||||
@cp -rut "$(HOME)"/.config "$(CURDIR)"/tmux/
|
||||
@cp -rut "$(HOME)"/.config "$(CURDIR)"/vim/
|
||||
@cp -u "$(CURDIR)"/bash/rc "$(HOME)"/.bashrc
|
||||
.DEFAULT-GOAL := help
|
||||
#===============================================================================
|
||||
# Utility
|
||||
#===============================================================================
|
||||
help: ## Display this menu
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
|
||||
awk 'BEGIN {FS = ":.*?## "}; {printf "%-25s %s\n", $$1, $$2}'
|
||||
|
||||
update-repo: ## Update repository from system
|
||||
@cp -rut "$(CURDIR)" "$(HOME)"/.config/alacritty/
|
||||
@cp -rut "$(CURDIR)" "$(HOME)"/.config/git/
|
||||
@cp -rut "$(CURDIR)" "$(HOME)"/.config/nvim/
|
||||
@cp -rut "$(CURDIR)" "$(HOME)"/.config/tmux/
|
||||
@cp -rut "$(CURDIR)" "$(HOME)"/.config/vim/
|
||||
@cp -u "$(HOME)"/.bashrc "$(CURDIR)"/bash/rc
|
||||
link-dotfiles: ## Create dotfiles link in Home directory
|
||||
ln -s -- "$(CURDIR)" "$(HOME)"/.dotfiles
|
||||
#===============================================================================
|
||||
# Bundles
|
||||
#===============================================================================
|
||||
build-default: ## Create default environment, using all dotfiles
|
||||
build-default: link-dotfiles \
|
||||
install-vim-config \
|
||||
install-vim-plugins \
|
||||
install-git \
|
||||
install-tmux \
|
||||
install-bash-config
|
||||
|
||||
build-simple: ## Create minimal environment, for remote or single-use
|
||||
build-simple: install-vim-config \
|
||||
install-bash-remote
|
||||
|
||||
clean-all: ## Remove all dotfiles linked via this makefile
|
||||
|
||||
#===============================================================================
|
||||
# Dotfiles
|
||||
#===============================================================================
|
||||
install-vim-config: ## Create vimrc file and vim directory in Home directory
|
||||
@if [ -L "$(HOME)"/.vimrc ] ; then \
|
||||
echo "File vimrc already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking vimrc to ~/.vimrc" ; \
|
||||
ln -s -- "$(CURDIR)"/vim/vimrc "$(HOME)"/.vimrc ; \
|
||||
fi
|
||||
@if [ ! -d "$(HOME)"/.vim ] ; then \
|
||||
mkdir "$(HOME)"/.vim ; \
|
||||
fi
|
||||
@echo "Copying Vim directory into ~/.vim"
|
||||
@cp -uir -- "$(CURDIR)"/vim/vim/* "$(HOME)"/.vim/
|
||||
|
||||
install-vim-plugins: ## Install configure Vim plugin submodules
|
||||
install-vim-plugins: install-vim-config
|
||||
@echo "Updating all submodules"
|
||||
@git submodule foreach git pull origin master
|
||||
@echo "Updating Vim helptags"
|
||||
@vim -u NONE -c "helptags ALL" -c q
|
||||
|
||||
install-git: ## Create git config and ignore files in Home directory
|
||||
@cp -i -- "$(CURDIR)"/git/gitconfig "$(HOME)"/.gitconfig
|
||||
@if [ -L "$(HOME)"/.gitignore ] ; then \
|
||||
echo "File gitignore already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking gitignore to ~/.gitignore" ; \
|
||||
ln -s -- "$(CURDIR)"/git/gitignore "$(HOME)"/.gitignore ; \
|
||||
fi
|
||||
|
||||
install-tmux: ## Create tmux config file in Home directory
|
||||
install-tmux: link-dotfiles
|
||||
@if [ -L "$(HOME)"/.tmux.conf ] ; then \
|
||||
echo "File tmux.conf already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking tmux.conf to ~/.tmux.conf" ; \
|
||||
ln -s -- "$(CURDIR)"/tmux/tmux.conf "$(HOME)"/.tmux.conf ; \
|
||||
fi
|
||||
|
||||
install-bash-config: ## Create bash config file in Home directory
|
||||
@if [ -L "$(HOME)"/.bashrc ] ; then \
|
||||
echo "File .bashrc already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking bashrc to ~/.bashrc" ; \
|
||||
ln -s -- "$(CURDIR)"/bash/bashrc "$(HOME)"/.bashrc ; \
|
||||
fi
|
||||
|
||||
install-bash-remote: ## Create remote bash config file in Home directory
|
||||
@if [ -L "$(HOME)"/.bashrc ] ; then \
|
||||
echo "File .bashrc already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking bashrc-remote to ~/.bashrc" ; \
|
||||
ln -s -- "$(CURDIR)"/bash/bashrc-remote "$(HOME)"/.bashrc ; \
|
||||
fi
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,34 +0,0 @@
|
|||
# vim:set ft=tmux:
|
||||
|
||||
# --> Catppuccin (Frappe)
|
||||
set -ogq @thm_bg "#303446"
|
||||
set -ogq @thm_fg "#c6d0f5"
|
||||
|
||||
# Colors
|
||||
set -ogq @thm_rosewater "#f2d5cf"
|
||||
set -ogq @thm_flamingo "#eebebe"
|
||||
set -ogq @thm_rosewater "#f2d5cf"
|
||||
set -ogq @thm_pink "#f4b8e4"
|
||||
set -ogq @thm_mauve "#ca9ee6"
|
||||
set -ogq @thm_red "#e78284"
|
||||
set -ogq @thm_maroon "#ea999c"
|
||||
set -ogq @thm_peach "#ef9f76"
|
||||
set -ogq @thm_yellow "#e5c890"
|
||||
set -ogq @thm_green "#a6d189"
|
||||
set -ogq @thm_teal "#81c8be"
|
||||
set -ogq @thm_sky "#99d1db"
|
||||
set -ogq @thm_sapphire "#85c1dc"
|
||||
set -ogq @thm_blue "#8caaee"
|
||||
set -ogq @thm_lavender "#babbf1"
|
||||
|
||||
# Surfaces and overlays
|
||||
set -ogq @thm_subtext_1 "#a5adce"
|
||||
set -ogq @thm_subtext_0 "#b5bfe2"
|
||||
set -ogq @thm_overlay_2 "#949cbb"
|
||||
set -ogq @thm_overlay_1 "#838ba7"
|
||||
set -ogq @thm_overlay_0 "#737994"
|
||||
set -ogq @thm_surface_2 "#626880"
|
||||
set -ogq @thm_surface_1 "#51576d"
|
||||
set -ogq @thm_surface_0 "#414559"
|
||||
set -ogq @thm_mantle "#292c3c"
|
||||
set -ogq @thm_crust "#232634"
|
|
@ -1,34 +0,0 @@
|
|||
# vim:set ft=tmux:
|
||||
|
||||
# --> Catppuccin (Latte)
|
||||
set -ogq @thm_bg "#eff1f5"
|
||||
set -ogq @thm_fg "#4c4f69"
|
||||
|
||||
# Colors
|
||||
set -ogq @thm_rosewater "#dc8a78"
|
||||
set -ogq @thm_flamingo "#dd7878"
|
||||
set -ogq @thm_rosewater "#dc8a78"
|
||||
set -ogq @thm_pink "#ea76cb"
|
||||
set -ogq @thm_mauve "#8839ef"
|
||||
set -ogq @thm_red "#d20f39"
|
||||
set -ogq @thm_maroon "#e64553"
|
||||
set -ogq @thm_peach "#fe640b"
|
||||
set -ogq @thm_yellow "#df8e1d"
|
||||
set -ogq @thm_green "#40a02b"
|
||||
set -ogq @thm_teal "#179299"
|
||||
set -ogq @thm_sky "#04a5e5"
|
||||
set -ogq @thm_sapphire "#209fb5"
|
||||
set -ogq @thm_blue "#1e66f5"
|
||||
set -ogq @thm_lavender "#7287fd"
|
||||
|
||||
# Surfaces and overlays
|
||||
set -ogq @thm_subtext_1 "#6c6f85"
|
||||
set -ogq @thm_subtext_0 "#5c5f77"
|
||||
set -ogq @thm_overlay_2 "#7c7f93"
|
||||
set -ogq @thm_overlay_1 "#8c8fa1"
|
||||
set -ogq @thm_overlay_0 "#9ca0b0"
|
||||
set -ogq @thm_surface_2 "#acb0be"
|
||||
set -ogq @thm_surface_1 "#bcc0cc"
|
||||
set -ogq @thm_surface_0 "#ccd0da"
|
||||
set -ogq @thm_mantle "#e6e9ef"
|
||||
set -ogq @thm_crust "#dce0e8"
|
|
@ -1,34 +0,0 @@
|
|||
# vim:set ft=tmux:
|
||||
|
||||
# --> Catppuccin (Macchiato)
|
||||
set -ogq @thm_bg "#24273a"
|
||||
set -ogq @thm_fg "#cad3f5"
|
||||
|
||||
# Colors
|
||||
set -ogq @thm_rosewater "#f4dbd6"
|
||||
set -ogq @thm_flamingo "#f0c6c6"
|
||||
set -ogq @thm_rosewater "#f4dbd6"
|
||||
set -ogq @thm_pink "#f5bde6"
|
||||
set -ogq @thm_mauve "#c6a0f6"
|
||||
set -ogq @thm_red "#ed8796"
|
||||
set -ogq @thm_maroon "#ee99a0"
|
||||
set -ogq @thm_peach "#f5a97f"
|
||||
set -ogq @thm_yellow "#eed49f"
|
||||
set -ogq @thm_green "#a6da95"
|
||||
set -ogq @thm_teal "#8bd5ca"
|
||||
set -ogq @thm_sky "#91d7e3"
|
||||
set -ogq @thm_sapphire "#7dc4e4"
|
||||
set -ogq @thm_blue "#8aadf4"
|
||||
set -ogq @thm_lavender "#b7bdf8"
|
||||
|
||||
# Surfaces and overlays
|
||||
set -ogq @thm_subtext_1 "#a5adcb"
|
||||
set -ogq @thm_subtext_0 "#b8c0e0"
|
||||
set -ogq @thm_overlay_2 "#939ab7"
|
||||
set -ogq @thm_overlay_1 "#8087a2"
|
||||
set -ogq @thm_overlay_0 "#6e738d"
|
||||
set -ogq @thm_surface_2 "#5b6078"
|
||||
set -ogq @thm_surface_1 "#494d64"
|
||||
set -ogq @thm_surface_0 "#363a4f"
|
||||
set -ogq @thm_mantle "#1e2030"
|
||||
set -ogq @thm_crust "#181926"
|
|
@ -1,34 +0,0 @@
|
|||
# vim:set ft=tmux:
|
||||
|
||||
# --> Catppuccin (Mocha)
|
||||
set -ogq @thm_bg "#1e1e2e"
|
||||
set -ogq @thm_fg "#cdd6f4"
|
||||
|
||||
# Colors
|
||||
set -ogq @thm_rosewater "#f5e0dc"
|
||||
set -ogq @thm_flamingo "#f2cdcd"
|
||||
set -ogq @thm_rosewater "#f5e0dc"
|
||||
set -ogq @thm_pink "#f5c2e7"
|
||||
set -ogq @thm_mauve "#cba6f7"
|
||||
set -ogq @thm_red "#f38ba8"
|
||||
set -ogq @thm_maroon "#eba0ac"
|
||||
set -ogq @thm_peach "#fab387"
|
||||
set -ogq @thm_yellow "#f9e2af"
|
||||
set -ogq @thm_green "#a6e3a1"
|
||||
set -ogq @thm_teal "#94e2d5"
|
||||
set -ogq @thm_sky "#89dceb"
|
||||
set -ogq @thm_sapphire "#74c7ec"
|
||||
set -ogq @thm_blue "#89b4fa"
|
||||
set -ogq @thm_lavender "#b4befe"
|
||||
|
||||
# Surfaces and overlays
|
||||
set -ogq @thm_subtext_1 "#a6adc8"
|
||||
set -ogq @thm_subtext_0 "#bac2de"
|
||||
set -ogq @thm_overlay_2 "#9399b2"
|
||||
set -ogq @thm_overlay_1 "#7f849c"
|
||||
set -ogq @thm_overlay_0 "#6c7086"
|
||||
set -ogq @thm_surface_2 "#585b70"
|
||||
set -ogq @thm_surface_1 "#45475a"
|
||||
set -ogq @thm_surface_0 "#313244"
|
||||
set -ogq @thm_mantle "#181825"
|
||||
set -ogq @thm_crust "#11111b"
|
|
@ -1,76 +1,71 @@
|
|||
#===============================================================================
|
||||
# tmux.conf for niblock || source with <C-b>r
|
||||
#===============================================================================
|
||||
|
||||
#===============================================================================
|
||||
# General Settings
|
||||
#===============================================================================
|
||||
set -g prefix C-b # Remap prefix key
|
||||
set -g default-terminal "tmux-256color" # Set terminal
|
||||
set -ga terminal-features ",xterm-256color:RGB" # Enable additional features
|
||||
set-option -g prefix C-b # Remap prefix key
|
||||
set -g default-terminal "screen-256color" # Set terminal
|
||||
set -g mouse on # Enable mouse
|
||||
set -sg escape-time 0 # Delay time
|
||||
set -g display-time 2000 # Message display time
|
||||
set -g base-index 1 # Start windows at 1
|
||||
set -g pane-base-index 1 # Start panes at 1
|
||||
setw -g pane-base-index 1 # Start panes at 1
|
||||
set -g renumber-windows on # Renumber dynamically
|
||||
#===============================================================================
|
||||
# Colors & Styling
|
||||
# Colors
|
||||
#===============================================================================
|
||||
# Theme Colors - More found in themes/ directory
|
||||
source -F "#{d:current_file}/themes/catppuccin-frappe.tmux"
|
||||
# Status Bar
|
||||
set -g status-style "fg=#{@thm_lavender} bg=#{@thm_bg}"
|
||||
# Window List
|
||||
set -g window-status-style "bg=#{@thm_surface_0} fg=#{@thm_lavender}"
|
||||
set -g window-status-current-style "fg=#{@thm_surface_0} bg=#{@thm_lavender}"
|
||||
# Panes
|
||||
set -g pane-border-style "fg=#{@thm_bg} bg=terminal"
|
||||
set -g pane-active-border-style "fg=#{@thm_lavender} bg=terminal"
|
||||
set -g pane-border-lines "double"
|
||||
set -g pane-border-indicators "arrows"
|
||||
set -g pane-border-status "top"
|
||||
# Command Line
|
||||
set -g message-style "fg=#{@thm_red} bg=#{@thm_bg} bright"
|
||||
# Menus
|
||||
set -g menu-style "fg=#{@thm_fg}"
|
||||
set -g menu-selected-style "fg=#{@thm_lavender} bg=#{@thm_bg}"
|
||||
# Modes
|
||||
set -g mode-style "fg=#{@thm_lavender} bg=terminal"
|
||||
set -g status-fg cyan # Status bar foreground
|
||||
set -g status-bg black # Status bar background
|
||||
|
||||
setw -g window-status-fg cyan # Window list foreground
|
||||
setw -g window-status-bg black # Window list background
|
||||
|
||||
set -g pane-border-fg black # Pane divider foreground
|
||||
set -g pane-border-bg black # Pane divider background
|
||||
set -g pane-active-border-fg cyan # Active pane foreground
|
||||
set -g pane-active-border-bg black # Active pane background
|
||||
|
||||
set -g message-fg red # Command line foreground
|
||||
set -g message-bg black # Command line background
|
||||
set -g message-attr bright # Bold
|
||||
#===============================================================================
|
||||
# Status Lines
|
||||
# Status Line
|
||||
#===============================================================================
|
||||
set -wg monitor-activity on # Monitor window activity
|
||||
setw -g monitor-activity on # Monitor window activity
|
||||
set -g visual-activity off # No status line message
|
||||
set -g allow-rename on # Disallow program renaming
|
||||
set -g allow-set-title on
|
||||
# TMUX Status Line
|
||||
set -g status-interval 600
|
||||
set -g allow-rename off # Disallow program renaming
|
||||
|
||||
set -g status-left-length 40 # Left-side char length
|
||||
set -g status-left "#[bright][ #h ] " # Left-side format
|
||||
set -g window-status-format " #I " # Window-list format
|
||||
set -g window-status-current-format " #I: #{pane_current_command} "
|
||||
set -g status-left "#[bright][ #S ] " # Left-side format
|
||||
set -g status-right-length 80 # Right-side char length
|
||||
WERR='#(echo -n "Error Fetching Weather Info")'
|
||||
WEATHER='#(curl -s wttr.in/Buffalo?format="%%C+%%t+%%h+%%P%%20%%m" || $WERR)'
|
||||
DATEISH='#(date +"%%A, %%B %d")'
|
||||
set -g status-right "$WEATHER #[bright]// $DATEISH"
|
||||
# Border Status Lines
|
||||
set -g pane-border-format " [#{pane_current_path}] #{pane_current_command} "
|
||||
# Right-side format: Custom clock script, in dotfile location
|
||||
set -g status-right "#[bright]#(sh ~/.dotfiles/tmux/clocks.sh)"
|
||||
# Window list format, and selected format
|
||||
set -g window-status-format '#[bg=black,fg=cyan] #I #[bg=default]'
|
||||
set -g window-status-current-format '#[fg=black,bg=cyan]#[fg=bright] #I '
|
||||
#===============================================================================
|
||||
# Key Bindings
|
||||
#===============================================================================
|
||||
set -g mode-keys vi # Vi-like key bindings
|
||||
setw -g mode-keys vi # Vi-like key bindings
|
||||
|
||||
bind h select-pane -L # Pane movement: left
|
||||
bind j select-pane -D # Pane movement: down
|
||||
bind k select-pane -U # Pane movement: up
|
||||
bind l select-pane -R # Pane movement: right
|
||||
|
||||
bind-key -r C-h select-window -t :- # Window movement: left
|
||||
bind-key -r C-l select-window -t :+ # Window movement: right
|
||||
|
||||
bind -r H resize-pane -L 5 # Pane resize: +5 left
|
||||
bind -r J resize-pane -D 5 # Pane resize: +5 down
|
||||
bind -r K resize-pane -U 5 # Pane resize: +5 up
|
||||
bind -r L resize-pane -R 5 # Pane resize: +5 right
|
||||
|
||||
bind | split-window -h -c "#{pane_current_path}" # Horizontal split
|
||||
bind - split-window -v -c "#{pane_current_path}" # Vertical split
|
||||
# Reload config file
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "!! Config Reloaded !!"
|
||||
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
|
||||
# Captur selection, create a gist from it
|
||||
bind-key -tvi-copy u copy-pipe "ruby ~/Lab/gist_gem.rb -"
|
||||
|
|
|
@ -1,163 +0,0 @@
|
|||
" Name: catppuccin_frappe.vim
|
||||
|
||||
set background=dark
|
||||
hi clear
|
||||
|
||||
if exists('syntax on')
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let g:colors_name='catppuccin_frappe'
|
||||
set t_Co=256
|
||||
|
||||
let s:rosewater = "#F2D5CF"
|
||||
let s:flamingo = "#EEBEBE"
|
||||
let s:pink = "#F4B8E4"
|
||||
let s:mauve = "#CA9EE6"
|
||||
let s:red = "#E78284"
|
||||
let s:maroon = "#EA999C"
|
||||
let s:peach = "#EF9F76"
|
||||
let s:yellow = "#E5C890"
|
||||
let s:green = "#A6D189"
|
||||
let s:teal = "#81C8BE"
|
||||
let s:sky = "#99D1DB"
|
||||
let s:sapphire = "#85C1DC"
|
||||
let s:blue = "#8CAAEE"
|
||||
let s:lavender = "#BABBF1"
|
||||
|
||||
let s:text = "#C6D0F5"
|
||||
let s:subtext1 = "#B5BFE2"
|
||||
let s:subtext0 = "#A5ADCE"
|
||||
let s:overlay2 = "#949CBB"
|
||||
let s:overlay1 = "#838BA7"
|
||||
let s:overlay0 = "#737994"
|
||||
let s:surface2 = "#626880"
|
||||
let s:surface1 = "#51576D"
|
||||
let s:surface0 = "#414559"
|
||||
|
||||
let s:base = "#303446"
|
||||
let s:mantle = "#292C3C"
|
||||
let s:crust = "#232634"
|
||||
|
||||
function! s:hi(group, guisp, guifg, guibg, gui, cterm)
|
||||
let cmd = ""
|
||||
if a:guisp != ""
|
||||
let cmd = cmd . " guisp=" . a:guisp
|
||||
endif
|
||||
if a:guifg != ""
|
||||
let cmd = cmd . " guifg=" . a:guifg
|
||||
endif
|
||||
if a:guibg != ""
|
||||
let cmd = cmd . " guibg=" . a:guibg
|
||||
endif
|
||||
if a:gui != ""
|
||||
let cmd = cmd . " gui=" . a:gui
|
||||
endif
|
||||
if a:cterm != ""
|
||||
let cmd = cmd . " cterm=" . a:cterm
|
||||
endif
|
||||
if cmd != ""
|
||||
exec "hi " . a:group . cmd
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
call s:hi("Normal", "NONE", s:text, s:base, "NONE", "NONE")
|
||||
call s:hi("Visual", "NONE", "NONE", s:surface1,"bold", "bold")
|
||||
call s:hi("Conceal", "NONE", s:overlay1, "NONE", "NONE", "NONE")
|
||||
call s:hi("ColorColumn", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Cursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("lCursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorIM", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorColumn", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("CursorLine", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Directory", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("DiffAdd", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("DiffChange", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("DiffDelete", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("DiffText", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("EndOfBuffer", "NONE", "NONE", "NONE", "NONE", "NONE")
|
||||
call s:hi("ErrorMsg", "NONE", s:red, "NONE", "bolditalic" , "bold,italic")
|
||||
call s:hi("VertSplit", "NONE", s:crust, "NONE", "NONE", "NONE")
|
||||
call s:hi("Folded", "NONE", s:blue, s:surface1, "NONE", "NONE")
|
||||
call s:hi("FoldColumn", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
call s:hi("SignColumn", "NONE", s:surface1, s:base, "NONE", "NONE")
|
||||
call s:hi("IncSearch", "NONE", s:surface1, s:pink, "NONE", "NONE")
|
||||
call s:hi("CursorLineNR", "NONE", s:lavender, "NONE", "NONE", "NONE")
|
||||
call s:hi("LineNr", "NONE", s:surface1, "NONE", "NONE", "NONE")
|
||||
call s:hi("MatchParen", "NONE", s:peach, "NONE", "bold", "bold")
|
||||
call s:hi("ModeMsg", "NONE", s:text, "NONE", "bold", "bold")
|
||||
call s:hi("MoreMsg", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("NonText", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Pmenu", "NONE", s:overlay2, s:surface0, "NONE", "NONE")
|
||||
call s:hi("PmenuSel", "NONE", s:text, s:surface1, "bold", "bold")
|
||||
call s:hi("PmenuSbar", "NONE", "NONE", s:surface1, "NONE", "NONE")
|
||||
call s:hi("PmenuThumb", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Question", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("QuickFixLine", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("Search", "NONE", s:pink, s:surface1, "bold", "bold")
|
||||
call s:hi("SpecialKey", "NONE", s:subtext0, "NONE", "NONE", "NONE")
|
||||
call s:hi("SpellBad", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("SpellCap", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("SpellLocal", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("SpellRare", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("StatusLine", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTerm", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTermNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLine", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineFill", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineSel", "NONE", s:green, s:surface1, "NONE", "NONE")
|
||||
call s:hi("Title", "NONE", s:blue, "NONE", "bold", "bold")
|
||||
call s:hi("VisualNOS", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("WarningMsg", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("WildMenu", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Comment", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Constant", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Identifier", "NONE", s:flamingo, "NONE", "NONE", "NONE")
|
||||
call s:hi("Statement", "NONE", s:mauve, "NONE", "NONE", "NONE")
|
||||
call s:hi("PreProc", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Type", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Special", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Underlined", "NONE", s:text, s:base, "underline", "underline")
|
||||
call s:hi("Error", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Todo", "NONE", s:base, s:flamingo, "bold", "bold")
|
||||
|
||||
call s:hi("String", "NONE", s:green, "NONE", "NONE", "NONE")
|
||||
call s:hi("Character", "NONE", s:teal, "NONE", "NONE", "NONE")
|
||||
call s:hi("Number", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Boolean", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Float", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Function", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Conditional", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Repeat", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Label", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Operator", "NONE", s:sky, "NONE", "NONE", "NONE")
|
||||
call s:hi("Keyword", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Include", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("StorageClass", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Structure", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Typedef", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("debugPC", "NONE", "NONE", s:crust, "NONE", "NONE")
|
||||
call s:hi("debugBreakpoint", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
|
||||
hi link Define PreProc
|
||||
hi link Macro PreProc
|
||||
hi link PreCondit PreProc
|
||||
hi link SpecialChar Special
|
||||
hi link Tag Special
|
||||
hi link Delimiter Special
|
||||
hi link SpecialComment Special
|
||||
hi link Debug Special
|
||||
hi link Exception Error
|
||||
hi link StatusLineTerm StatusLine
|
||||
hi link StatusLineTermNC StatusLineNC
|
||||
hi link Terminal Normal
|
||||
hi link Ignore Comment
|
||||
|
||||
" Set terminal colors for playing well with plugins like fzf
|
||||
let g:terminal_ansi_colors = [
|
||||
\ s:surface1, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:subtext1,
|
||||
\ s:surface2, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:subtext0
|
||||
\ ]
|
|
@ -1,163 +0,0 @@
|
|||
" Name: catppuccin_latte.vim
|
||||
|
||||
set background=dark
|
||||
hi clear
|
||||
|
||||
if exists('syntax on')
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let g:colors_name='catppuccin_latte'
|
||||
set t_Co=256
|
||||
|
||||
let s:rosewater = "#DC8A78"
|
||||
let s:flamingo = "#DD7878"
|
||||
let s:pink = "#EA76CB"
|
||||
let s:mauve = "#8839EF"
|
||||
let s:red = "#D20F39"
|
||||
let s:maroon = "#E64553"
|
||||
let s:peach = "#FE640B"
|
||||
let s:yellow = "#DF8E1D"
|
||||
let s:green = "#40A02B"
|
||||
let s:teal = "#179299"
|
||||
let s:sky = "#04A5E5"
|
||||
let s:sapphire = "#209FB5"
|
||||
let s:blue = "#1E66F5"
|
||||
let s:lavender = "#7287FD"
|
||||
|
||||
let s:text = "#4C4F69"
|
||||
let s:subtext1 = "#5C5F77"
|
||||
let s:subtext0 = "#6C6F85"
|
||||
let s:overlay2 = "#7C7F93"
|
||||
let s:overlay1 = "#8C8FA1"
|
||||
let s:overlay0 = "#9CA0B0"
|
||||
let s:surface2 = "#ACB0BE"
|
||||
let s:surface1 = "#BCC0CC"
|
||||
let s:surface0 = "#CCD0DA"
|
||||
|
||||
let s:base = "#EFF1F5"
|
||||
let s:mantle = "#E6E9EF"
|
||||
let s:crust = "#DCE0E8"
|
||||
|
||||
function! s:hi(group, guisp, guifg, guibg, gui, cterm)
|
||||
let cmd = ""
|
||||
if a:guisp != ""
|
||||
let cmd = cmd . " guisp=" . a:guisp
|
||||
endif
|
||||
if a:guifg != ""
|
||||
let cmd = cmd . " guifg=" . a:guifg
|
||||
endif
|
||||
if a:guibg != ""
|
||||
let cmd = cmd . " guibg=" . a:guibg
|
||||
endif
|
||||
if a:gui != ""
|
||||
let cmd = cmd . " gui=" . a:gui
|
||||
endif
|
||||
if a:cterm != ""
|
||||
let cmd = cmd . " cterm=" . a:cterm
|
||||
endif
|
||||
if cmd != ""
|
||||
exec "hi " . a:group . cmd
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
call s:hi("Normal", "NONE", s:text, s:base, "NONE", "NONE")
|
||||
call s:hi("Visual", "NONE", "NONE", s:surface1,"bold", "bold")
|
||||
call s:hi("Conceal", "NONE", s:overlay1, "NONE", "NONE", "NONE")
|
||||
call s:hi("ColorColumn", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Cursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("lCursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorIM", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorColumn", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("CursorLine", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Directory", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("DiffAdd", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("DiffChange", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("DiffDelete", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("DiffText", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("EndOfBuffer", "NONE", "NONE", "NONE", "NONE", "NONE")
|
||||
call s:hi("ErrorMsg", "NONE", s:red, "NONE", "bolditalic" , "bold,italic")
|
||||
call s:hi("VertSplit", "NONE", s:crust, "NONE", "NONE", "NONE")
|
||||
call s:hi("Folded", "NONE", s:blue, s:surface1, "NONE", "NONE")
|
||||
call s:hi("FoldColumn", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
call s:hi("SignColumn", "NONE", s:surface1, s:base, "NONE", "NONE")
|
||||
call s:hi("IncSearch", "NONE", s:surface1, s:pink, "NONE", "NONE")
|
||||
call s:hi("CursorLineNR", "NONE", s:lavender, "NONE", "NONE", "NONE")
|
||||
call s:hi("LineNr", "NONE", s:surface1, "NONE", "NONE", "NONE")
|
||||
call s:hi("MatchParen", "NONE", s:peach, "NONE", "bold", "bold")
|
||||
call s:hi("ModeMsg", "NONE", s:text, "NONE", "bold", "bold")
|
||||
call s:hi("MoreMsg", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("NonText", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Pmenu", "NONE", s:overlay2, s:surface0, "NONE", "NONE")
|
||||
call s:hi("PmenuSel", "NONE", s:text, s:surface1, "bold", "bold")
|
||||
call s:hi("PmenuSbar", "NONE", "NONE", s:surface1, "NONE", "NONE")
|
||||
call s:hi("PmenuThumb", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Question", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("QuickFixLine", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("Search", "NONE", s:pink, s:surface1, "bold", "bold")
|
||||
call s:hi("SpecialKey", "NONE", s:subtext0, "NONE", "NONE", "NONE")
|
||||
call s:hi("SpellBad", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("SpellCap", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("SpellLocal", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("SpellRare", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("StatusLine", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTerm", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTermNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLine", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineFill", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineSel", "NONE", s:green, s:surface1, "NONE", "NONE")
|
||||
call s:hi("Title", "NONE", s:blue, "NONE", "bold", "bold")
|
||||
call s:hi("VisualNOS", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("WarningMsg", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("WildMenu", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Comment", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Constant", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Identifier", "NONE", s:flamingo, "NONE", "NONE", "NONE")
|
||||
call s:hi("Statement", "NONE", s:mauve, "NONE", "NONE", "NONE")
|
||||
call s:hi("PreProc", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Type", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Special", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Underlined", "NONE", s:text, s:base, "underline", "underline")
|
||||
call s:hi("Error", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Todo", "NONE", s:base, s:flamingo, "bold", "bold")
|
||||
|
||||
call s:hi("String", "NONE", s:green, "NONE", "NONE", "NONE")
|
||||
call s:hi("Character", "NONE", s:teal, "NONE", "NONE", "NONE")
|
||||
call s:hi("Number", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Boolean", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Float", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Function", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Conditional", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Repeat", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Label", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Operator", "NONE", s:sky, "NONE", "NONE", "NONE")
|
||||
call s:hi("Keyword", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Include", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("StorageClass", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Structure", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Typedef", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("debugPC", "NONE", "NONE", s:crust, "NONE", "NONE")
|
||||
call s:hi("debugBreakpoint", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
|
||||
hi link Define PreProc
|
||||
hi link Macro PreProc
|
||||
hi link PreCondit PreProc
|
||||
hi link SpecialChar Special
|
||||
hi link Tag Special
|
||||
hi link Delimiter Special
|
||||
hi link SpecialComment Special
|
||||
hi link Debug Special
|
||||
hi link Exception Error
|
||||
hi link StatusLineTerm StatusLine
|
||||
hi link StatusLineTermNC StatusLineNC
|
||||
hi link Terminal Normal
|
||||
hi link Ignore Comment
|
||||
|
||||
" Set terminal colors for playing well with plugins like fzf
|
||||
let g:terminal_ansi_colors = [
|
||||
\ s:subtext1, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:surface2,
|
||||
\ s:subtext0, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:surface1
|
||||
\ ]
|
|
@ -1,163 +0,0 @@
|
|||
" Name: catppuccin_macchiato.vim
|
||||
|
||||
set background=dark
|
||||
hi clear
|
||||
|
||||
if exists('syntax on')
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let g:colors_name='catppuccin_macchiato'
|
||||
set t_Co=256
|
||||
|
||||
let s:rosewater = "#F4DBD6"
|
||||
let s:flamingo = "#F0C6C6"
|
||||
let s:pink = "#F5BDE6"
|
||||
let s:mauve = "#C6A0F6"
|
||||
let s:red = "#ED8796"
|
||||
let s:maroon = "#EE99A0"
|
||||
let s:peach = "#F5A97F"
|
||||
let s:yellow = "#EED49F"
|
||||
let s:green = "#A6DA95"
|
||||
let s:teal = "#8BD5CA"
|
||||
let s:sky = "#91D7E3"
|
||||
let s:sapphire = "#7DC4E4"
|
||||
let s:blue = "#8AADF4"
|
||||
let s:lavender = "#B7BDF8"
|
||||
|
||||
let s:text = "#CAD3F5"
|
||||
let s:subtext1 = "#B8C0E0"
|
||||
let s:subtext0 = "#A5ADCB"
|
||||
let s:overlay2 = "#939AB7"
|
||||
let s:overlay1 = "#8087A2"
|
||||
let s:overlay0 = "#6E738D"
|
||||
let s:surface2 = "#5B6078"
|
||||
let s:surface1 = "#494D64"
|
||||
let s:surface0 = "#363A4F"
|
||||
|
||||
let s:base = "#24273A"
|
||||
let s:mantle = "#1E2030"
|
||||
let s:crust = "#181926"
|
||||
|
||||
function! s:hi(group, guisp, guifg, guibg, gui, cterm)
|
||||
let cmd = ""
|
||||
if a:guisp != ""
|
||||
let cmd = cmd . " guisp=" . a:guisp
|
||||
endif
|
||||
if a:guifg != ""
|
||||
let cmd = cmd . " guifg=" . a:guifg
|
||||
endif
|
||||
if a:guibg != ""
|
||||
let cmd = cmd . " guibg=" . a:guibg
|
||||
endif
|
||||
if a:gui != ""
|
||||
let cmd = cmd . " gui=" . a:gui
|
||||
endif
|
||||
if a:cterm != ""
|
||||
let cmd = cmd . " cterm=" . a:cterm
|
||||
endif
|
||||
if cmd != ""
|
||||
exec "hi " . a:group . cmd
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
call s:hi("Normal", "NONE", s:text, s:base, "NONE", "NONE")
|
||||
call s:hi("Visual", "NONE", "NONE", s:surface1,"bold", "bold")
|
||||
call s:hi("Conceal", "NONE", s:overlay1, "NONE", "NONE", "NONE")
|
||||
call s:hi("ColorColumn", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Cursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("lCursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorIM", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorColumn", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("CursorLine", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Directory", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("DiffAdd", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("DiffChange", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("DiffDelete", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("DiffText", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("EndOfBuffer", "NONE", "NONE", "NONE", "NONE", "NONE")
|
||||
call s:hi("ErrorMsg", "NONE", s:red, "NONE", "bolditalic" , "bold,italic")
|
||||
call s:hi("VertSplit", "NONE", s:crust, "NONE", "NONE", "NONE")
|
||||
call s:hi("Folded", "NONE", s:blue, s:surface1, "NONE", "NONE")
|
||||
call s:hi("FoldColumn", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
call s:hi("SignColumn", "NONE", s:surface1, s:base, "NONE", "NONE")
|
||||
call s:hi("IncSearch", "NONE", s:surface1, s:pink, "NONE", "NONE")
|
||||
call s:hi("CursorLineNR", "NONE", s:lavender, "NONE", "NONE", "NONE")
|
||||
call s:hi("LineNr", "NONE", s:surface1, "NONE", "NONE", "NONE")
|
||||
call s:hi("MatchParen", "NONE", s:peach, "NONE", "bold", "bold")
|
||||
call s:hi("ModeMsg", "NONE", s:text, "NONE", "bold", "bold")
|
||||
call s:hi("MoreMsg", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("NonText", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Pmenu", "NONE", s:overlay2, s:surface0, "NONE", "NONE")
|
||||
call s:hi("PmenuSel", "NONE", s:text, s:surface1, "bold", "bold")
|
||||
call s:hi("PmenuSbar", "NONE", "NONE", s:surface1, "NONE", "NONE")
|
||||
call s:hi("PmenuThumb", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Question", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("QuickFixLine", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("Search", "NONE", s:pink, s:surface1, "bold", "bold")
|
||||
call s:hi("SpecialKey", "NONE", s:subtext0, "NONE", "NONE", "NONE")
|
||||
call s:hi("SpellBad", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("SpellCap", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("SpellLocal", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("SpellRare", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("StatusLine", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTerm", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTermNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLine", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineFill", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineSel", "NONE", s:green, s:surface1, "NONE", "NONE")
|
||||
call s:hi("Title", "NONE", s:blue, "NONE", "bold", "bold")
|
||||
call s:hi("VisualNOS", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("WarningMsg", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("WildMenu", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Comment", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Constant", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Identifier", "NONE", s:flamingo, "NONE", "NONE", "NONE")
|
||||
call s:hi("Statement", "NONE", s:mauve, "NONE", "NONE", "NONE")
|
||||
call s:hi("PreProc", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Type", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Special", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Underlined", "NONE", s:text, s:base, "underline", "underline")
|
||||
call s:hi("Error", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Todo", "NONE", s:base, s:flamingo, "bold", "bold")
|
||||
|
||||
call s:hi("String", "NONE", s:green, "NONE", "NONE", "NONE")
|
||||
call s:hi("Character", "NONE", s:teal, "NONE", "NONE", "NONE")
|
||||
call s:hi("Number", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Boolean", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Float", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Function", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Conditional", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Repeat", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Label", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Operator", "NONE", s:sky, "NONE", "NONE", "NONE")
|
||||
call s:hi("Keyword", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Include", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("StorageClass", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Structure", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Typedef", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("debugPC", "NONE", "NONE", s:crust, "NONE", "NONE")
|
||||
call s:hi("debugBreakpoint", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
|
||||
hi link Define PreProc
|
||||
hi link Macro PreProc
|
||||
hi link PreCondit PreProc
|
||||
hi link SpecialChar Special
|
||||
hi link Tag Special
|
||||
hi link Delimiter Special
|
||||
hi link SpecialComment Special
|
||||
hi link Debug Special
|
||||
hi link Exception Error
|
||||
hi link StatusLineTerm StatusLine
|
||||
hi link StatusLineTermNC StatusLineNC
|
||||
hi link Terminal Normal
|
||||
hi link Ignore Comment
|
||||
|
||||
" Set terminal colors for playing well with plugins like fzf
|
||||
let g:terminal_ansi_colors = [
|
||||
\ s:surface1, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:subtext1,
|
||||
\ s:surface2, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:subtext0
|
||||
\ ]
|
|
@ -1,163 +0,0 @@
|
|||
" Name: catppuccin_mocha.vim
|
||||
|
||||
set background=dark
|
||||
hi clear
|
||||
|
||||
if exists('syntax on')
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let g:colors_name='catppuccin_mocha'
|
||||
set t_Co=256
|
||||
|
||||
let s:rosewater = "#F5E0DC"
|
||||
let s:flamingo = "#F2CDCD"
|
||||
let s:pink = "#F5C2E7"
|
||||
let s:mauve = "#CBA6F7"
|
||||
let s:red = "#F38BA8"
|
||||
let s:maroon = "#EBA0AC"
|
||||
let s:peach = "#FAB387"
|
||||
let s:yellow = "#F9E2AF"
|
||||
let s:green = "#A6E3A1"
|
||||
let s:teal = "#94E2D5"
|
||||
let s:sky = "#89DCEB"
|
||||
let s:sapphire = "#74C7EC"
|
||||
let s:blue = "#89B4FA"
|
||||
let s:lavender = "#B4BEFE"
|
||||
|
||||
let s:text = "#CDD6F4"
|
||||
let s:subtext1 = "#BAC2DE"
|
||||
let s:subtext0 = "#A6ADC8"
|
||||
let s:overlay2 = "#9399B2"
|
||||
let s:overlay1 = "#7F849C"
|
||||
let s:overlay0 = "#6C7086"
|
||||
let s:surface2 = "#585B70"
|
||||
let s:surface1 = "#45475A"
|
||||
let s:surface0 = "#313244"
|
||||
|
||||
let s:base = "#1E1E2E"
|
||||
let s:mantle = "#181825"
|
||||
let s:crust = "#11111B"
|
||||
|
||||
function! s:hi(group, guisp, guifg, guibg, gui, cterm)
|
||||
let cmd = ""
|
||||
if a:guisp != ""
|
||||
let cmd = cmd . " guisp=" . a:guisp
|
||||
endif
|
||||
if a:guifg != ""
|
||||
let cmd = cmd . " guifg=" . a:guifg
|
||||
endif
|
||||
if a:guibg != ""
|
||||
let cmd = cmd . " guibg=" . a:guibg
|
||||
endif
|
||||
if a:gui != ""
|
||||
let cmd = cmd . " gui=" . a:gui
|
||||
endif
|
||||
if a:cterm != ""
|
||||
let cmd = cmd . " cterm=" . a:cterm
|
||||
endif
|
||||
if cmd != ""
|
||||
exec "hi " . a:group . cmd
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
call s:hi("Normal", "NONE", s:text, s:base, "NONE", "NONE")
|
||||
call s:hi("Visual", "NONE", "NONE", s:surface1,"bold", "bold")
|
||||
call s:hi("Conceal", "NONE", s:overlay1, "NONE", "NONE", "NONE")
|
||||
call s:hi("ColorColumn", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Cursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("lCursor", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorIM", "NONE", s:base, s:text, "NONE", "NONE")
|
||||
call s:hi("CursorColumn", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("CursorLine", "NONE", "NONE", s:surface0, "NONE", "NONE")
|
||||
call s:hi("Directory", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("DiffAdd", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("DiffChange", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("DiffDelete", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("DiffText", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("EndOfBuffer", "NONE", "NONE", "NONE", "NONE", "NONE")
|
||||
call s:hi("ErrorMsg", "NONE", s:red, "NONE", "bolditalic" , "bold,italic")
|
||||
call s:hi("VertSplit", "NONE", s:crust, "NONE", "NONE", "NONE")
|
||||
call s:hi("Folded", "NONE", s:blue, s:surface1, "NONE", "NONE")
|
||||
call s:hi("FoldColumn", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
call s:hi("SignColumn", "NONE", s:surface1, s:base, "NONE", "NONE")
|
||||
call s:hi("IncSearch", "NONE", s:surface1, s:pink, "NONE", "NONE")
|
||||
call s:hi("CursorLineNR", "NONE", s:lavender, "NONE", "NONE", "NONE")
|
||||
call s:hi("LineNr", "NONE", s:surface1, "NONE", "NONE", "NONE")
|
||||
call s:hi("MatchParen", "NONE", s:peach, "NONE", "bold", "bold")
|
||||
call s:hi("ModeMsg", "NONE", s:text, "NONE", "bold", "bold")
|
||||
call s:hi("MoreMsg", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("NonText", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Pmenu", "NONE", s:overlay2, s:surface0, "NONE", "NONE")
|
||||
call s:hi("PmenuSel", "NONE", s:text, s:surface1, "bold", "bold")
|
||||
call s:hi("PmenuSbar", "NONE", "NONE", s:surface1, "NONE", "NONE")
|
||||
call s:hi("PmenuThumb", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Question", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("QuickFixLine", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("Search", "NONE", s:pink, s:surface1, "bold", "bold")
|
||||
call s:hi("SpecialKey", "NONE", s:subtext0, "NONE", "NONE", "NONE")
|
||||
call s:hi("SpellBad", "NONE", s:base, s:red, "NONE", "NONE")
|
||||
call s:hi("SpellCap", "NONE", s:base, s:yellow, "NONE", "NONE")
|
||||
call s:hi("SpellLocal", "NONE", s:base, s:blue, "NONE", "NONE")
|
||||
call s:hi("SpellRare", "NONE", s:base, s:green, "NONE", "NONE")
|
||||
call s:hi("StatusLine", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTerm", "NONE", s:text, s:mantle, "NONE", "NONE")
|
||||
call s:hi("StatusLineTermNC", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLine", "NONE", s:surface1, s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineFill", "NONE", "NONE", s:mantle, "NONE", "NONE")
|
||||
call s:hi("TabLineSel", "NONE", s:green, s:surface1, "NONE", "NONE")
|
||||
call s:hi("Title", "NONE", s:blue, "NONE", "bold", "bold")
|
||||
call s:hi("VisualNOS", "NONE", "NONE", s:surface1, "bold", "bold")
|
||||
call s:hi("WarningMsg", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("WildMenu", "NONE", "NONE", s:overlay0, "NONE", "NONE")
|
||||
call s:hi("Comment", "NONE", s:overlay0, "NONE", "NONE", "NONE")
|
||||
call s:hi("Constant", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Identifier", "NONE", s:flamingo, "NONE", "NONE", "NONE")
|
||||
call s:hi("Statement", "NONE", s:mauve, "NONE", "NONE", "NONE")
|
||||
call s:hi("PreProc", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Type", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Special", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Underlined", "NONE", s:text, s:base, "underline", "underline")
|
||||
call s:hi("Error", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Todo", "NONE", s:base, s:flamingo, "bold", "bold")
|
||||
|
||||
call s:hi("String", "NONE", s:green, "NONE", "NONE", "NONE")
|
||||
call s:hi("Character", "NONE", s:teal, "NONE", "NONE", "NONE")
|
||||
call s:hi("Number", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Boolean", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Float", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Function", "NONE", s:blue, "NONE", "NONE", "NONE")
|
||||
call s:hi("Conditional", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Repeat", "NONE", s:red, "NONE", "NONE", "NONE")
|
||||
call s:hi("Label", "NONE", s:peach, "NONE", "NONE", "NONE")
|
||||
call s:hi("Operator", "NONE", s:sky, "NONE", "NONE", "NONE")
|
||||
call s:hi("Keyword", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("Include", "NONE", s:pink, "NONE", "NONE", "NONE")
|
||||
call s:hi("StorageClass", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Structure", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("Typedef", "NONE", s:yellow, "NONE", "NONE", "NONE")
|
||||
call s:hi("debugPC", "NONE", "NONE", s:crust, "NONE", "NONE")
|
||||
call s:hi("debugBreakpoint", "NONE", s:overlay0, s:base, "NONE", "NONE")
|
||||
|
||||
hi link Define PreProc
|
||||
hi link Macro PreProc
|
||||
hi link PreCondit PreProc
|
||||
hi link SpecialChar Special
|
||||
hi link Tag Special
|
||||
hi link Delimiter Special
|
||||
hi link SpecialComment Special
|
||||
hi link Debug Special
|
||||
hi link Exception Error
|
||||
hi link StatusLineTerm StatusLine
|
||||
hi link StatusLineTermNC StatusLineNC
|
||||
hi link Terminal Normal
|
||||
hi link Ignore Comment
|
||||
|
||||
" Set terminal colors for playing well with plugins like fzf
|
||||
let g:terminal_ansi_colors = [
|
||||
\ s:surface1, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:subtext1,
|
||||
\ s:surface2, s:red, s:green, s:yellow, s:blue, s:pink, s:teal, s:subtext0
|
||||
\ ]
|
227
vim/vim/pack/colors/start/minimalist.vim
Normal file
227
vim/vim/pack/colors/start/minimalist.vim
Normal file
|
@ -0,0 +1,227 @@
|
|||
" Minimalist - A Material Colorscheme Darker
|
||||
"
|
||||
" Author: Diki Ananta <diki1aap@gmail.com>
|
||||
" Repository: https://github.com/dikiaap/minimalist
|
||||
" Version: 1.4
|
||||
" License: MIT
|
||||
|
||||
set background=dark
|
||||
if version > 580
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
endif
|
||||
set t_Co=256
|
||||
let g:colors_name = "minimalist"
|
||||
|
||||
"""""""""""""""""""""""
|
||||
" General
|
||||
"""""""""""""""""""""""
|
||||
hi ColorColumn ctermfg=NONE ctermbg=233 cterm=NONE guifg=NONE guibg=#121212 gui=NONE
|
||||
hi Cursor ctermfg=234 ctermbg=255 cterm=NONE guifg=#1C1C1C guibg=#EEEEEE gui=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=233 cterm=NONE guifg=NONE guibg=#121212 gui=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=233 cterm=NONE guifg=NONE guibg=#121212 gui=NONE
|
||||
hi CursorLineNr ctermfg=59 ctermbg=233 cterm=NONE guifg=#5F5F5F guibg=#121212 gui=NONE
|
||||
hi DiffAdd ctermfg=255 ctermbg=64 cterm=bold guifg=#EEEEEE guibg=#5F8700 gui=bold
|
||||
hi DiffChange ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
||||
hi DiffDelete ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi DiffText ctermfg=255 ctermbg=24 cterm=bold guifg=#EEEEEE guibg=#005F87 gui=bold
|
||||
hi Directory ctermfg=179 ctermbg=NONE cterm=NONE guifg=#D7AF5F guibg=NONE gui=NONE
|
||||
hi ErrorMsg ctermfg=255 ctermbg=167 cterm=NONE guifg=#EEEEEE guibg=#D75F5F gui=NONE
|
||||
hi FoldColumn ctermfg=117 ctermbg=239 cterm=NONE guifg=#87D7FF guibg=#4E4E4E gui=NONE
|
||||
hi Folded ctermfg=242 ctermbg=234 cterm=NONE guifg=#666666 guibg=#1C1C1C gui=NONE
|
||||
hi IncSearch ctermfg=234 ctermbg=75 cterm=NONE guifg=#1C1C1C guibg=#5FAFFF gui=NONE
|
||||
hi LineNr ctermfg=59 ctermbg=234 cterm=NONE guifg=#5F5F5F guibg=#1C1C1C gui=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
|
||||
hi MoreMsg ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi NonText ctermfg=234 ctermbg=234 cterm=NONE guifg=#1C1C1C guibg=#1C1C1C gui=NONE
|
||||
hi Normal ctermfg=255 ctermbg=234 cterm=NONE guifg=#EEEEEE guibg=#1C1C1C gui=NONE
|
||||
hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
||||
hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#5F5F5F gui=NONE
|
||||
hi Question ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=bold
|
||||
hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
|
||||
hi SignColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3A3A3A gui=NONE
|
||||
hi StatusLine ctermfg=255 ctermbg=239 cterm=bold guifg=#EEEEEE guibg=#4E4E4E gui=bold
|
||||
hi StatusLineNC ctermfg=255 ctermbg=239 cterm=NONE guifg=#EEEEEE guibg=#4E4E4E gui=NONE
|
||||
hi Title ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi Underlined ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
||||
hi VertSplit ctermfg=239 ctermbg=239 cterm=NONE guifg=#4E4E4E guibg=#4E4E4E gui=NONE
|
||||
hi Visual ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#303030 gui=NONE
|
||||
hi WarningMsg ctermfg=255 ctermbg=167 cterm=NONE guifg=#EEEEEE guibg=#D75F5F gui=NONE
|
||||
hi WildMenu ctermfg=234 ctermbg=215 cterm=NONE guifg=#1C1C1C guibg=#FFAF5F gui=NONE
|
||||
hi NERDTreeUp ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi NERDTreeDir ctermfg=251 ctermbg=NONE cterm=bold guifg=#C6C6C6 guibg=NONE gui=bold
|
||||
hi NERDTreeDirSlash ctermfg=251 ctermbg=NONE cterm=NONE guifg=#C6C6C6 guibg=NONE gui=NONE
|
||||
hi NERDTreeFile ctermfg=241 ctermbg=NONE cterm=NONE guifg=#606060 guibg=NONE gui=NONE
|
||||
hi NERDTreeCWD ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi NERDTreeOpenable ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi NERDTreeClosable ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
|
||||
"""""""""""""""""""""""
|
||||
" Syntax Highlighting
|
||||
"""""""""""""""""""""""
|
||||
hi Boolean ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi Character ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Comment ctermfg=238 ctermbg=NONE cterm=NONE guifg=#444444 guibg=NONE gui=NONE
|
||||
hi Conditional ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Constant ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Define ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Error ctermfg=255 ctermbg=167 cterm=NONE guifg=#EEEEEE guibg=#D75F5F gui=NONE
|
||||
hi Float ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Function ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi Identifier ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=italic
|
||||
hi Keyword ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Label ctermfg=186 ctermbg=NONE cterm=NONE guifg=#D7D787 guibg=NONE gui=NONE
|
||||
hi Number ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi Operator ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi PreCondit ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi PreProc ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Repeat ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Special ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi SpecialComment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#666666 guibg=NONE gui=NONE
|
||||
hi SpecialKey ctermfg=59 ctermbg=237 cterm=NONE guifg=#5F5F5F guibg=#3A3A3A gui=NONE
|
||||
hi SpellBad ctermfg=255 ctermbg=167 cterm=NONE guifg=#EEEEEE guibg=#D75F5F gui=undercurl
|
||||
hi SpellCap ctermfg=255 ctermbg=74 cterm=NONE guifg=#EEEEEE guibg=#5FAFD7 gui=undercurl
|
||||
hi SpellRare ctermfg=255 ctermbg=140 cterm=NONE guifg=#EEEEEE guibg=#AF87D7 gui=undercurl
|
||||
hi SpellLocal ctermfg=255 ctermbg=14 cterm=NONE guifg=#EEEEEE guibg=#5FB3B3 gui=undercurl
|
||||
hi Statement ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi StorageClass ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=italic
|
||||
hi String ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi Structure ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE
|
||||
hi Tag ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi Todo ctermfg=74 ctermbg=234 cterm=inverse guifg=#5FAFD7 guibg=#1C1C1C gui=inverse,bold
|
||||
hi Type ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
|
||||
"""""""""""""""""""""""
|
||||
" Supports
|
||||
"""""""""""""""""""""""
|
||||
hi cInclude ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE " C++
|
||||
hi cOperator ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi cppStatement ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi cssAttr ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE " CSS/CSS3
|
||||
hi cssAttrComma ctermfg=231 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi cssBoxProp ctermfg=152 ctermbg=NONE cterm=NONE guifg=#AFD7D7 guibg=NONE gui=NONE
|
||||
hi cssBraces ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi cssClassName ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE
|
||||
hi cssColor ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi cssCommonAttr ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi cssFontAttr ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi cssFunctionName ctermfg=75 ctermbg=NONE cterm=NONE guifg=#5FAFFF guibg=NONE gui=NONE
|
||||
hi cssNoise ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi cssProp ctermfg=152 ctermbg=NONE cterm=NONE guifg=#AFD7D7 guibg=NONE gui=NONE
|
||||
hi cssPseudoClass ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi cssPseudoClassId ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi cssTagName ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi cssUIAttr ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi cssUnitDecorators ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi cssURL ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=italic
|
||||
hi cssValueLength ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi cssValueNumber ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi cssVendor ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi htmlArg ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE " HTML/HTML5
|
||||
hi htmlEndTag ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi htmlScriptTag ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi htmlSpecialChar ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE
|
||||
hi htmlSpecialTagName ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi htmlTag ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi htmlTagName ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi javaScriptBoolean ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE " JavaScript
|
||||
hi javaScriptBraces ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi javaScriptConditional ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi javaScriptException ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi javaScriptFunction ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=italic
|
||||
hi javaScriptGlobal ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi javaScriptIdentifier ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi javaScriptLabel ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi javaScriptMessage ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi javaScriptNull ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi javaScriptNumber ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi javaScriptOperator ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi javaScriptParens ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi javaScriptRegexpString ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi javaScriptRepeat ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi javaScriptSpecial ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi javaScriptStatement ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi markdownCode ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE " Markdown
|
||||
hi markdownCodeBlock ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi markdownCodeDelimiter ctermfg=247 ctermbg=NONE cterm=NONE guifg=#9E9E9E guibg=NONE gui=NONE
|
||||
hi markdownError ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi markdownHeadingDelimiter ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi markdownUrl ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi phpBoolean ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE " PHP
|
||||
hi phpClass ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE
|
||||
hi phpClassDelimiter ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi phpClassExtends ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi phpClassImplements ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi phpCommentStar ctermfg=238 ctermbg=NONE cterm=NONE guifg=#444444 guibg=NONE gui=NONE
|
||||
hi phpCommentTitle ctermfg=238 ctermbg=NONE cterm=NONE guifg=#444444 guibg=NONE gui=NONE
|
||||
hi phpDocComment ctermfg=238 ctermbg=NONE cterm=NONE guifg=#444444 guibg=NONE gui=NONE
|
||||
hi phpDocIdentifier ctermfg=238 ctermbg=NONE cterm=NONE guifg=#444444 guibg=NONE gui=NONE
|
||||
hi phpDocParam ctermfg=238 ctermbg=NONE cterm=NONE guifg=#444444 guibg=NONE gui=NONE
|
||||
hi phpDocTags ctermfg=242 ctermbg=NONE cterm=NONE guifg=#666666 guibg=NONE gui=NONE
|
||||
hi phpFunction ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi phpFunctions ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi phpIdentifier ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi phpInclude ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi phpKeyword ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi phpMethod ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi phpNumber ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi phpOperator ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi phpParent ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi phpMemberSelector ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi phpMethodsVar ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi phpStaticClasses ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE
|
||||
hi phpStringDouble ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi phpStringDelimiter ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi phpStringSingle ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi phpSuperglobals ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi phpType ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi phpUseClass ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE
|
||||
hi phpVarSelector ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi pythonConditional ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE " Python
|
||||
hi pythonDecorator ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi pythonException ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi pythonFunction ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi pythonInclude ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi pythonNumber ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi pythonOperator ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi pythonRepeat ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi pythonStatement ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi pythonTodo ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi rubyBlockParameter ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE " Ruby
|
||||
hi rubyClass ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi rubyClassVariable ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi rubyConstant ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=italic
|
||||
hi rubyControl ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi rubyException ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi rubyFunction ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi rubyInclude ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi rubyInstanceVariable ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi rubyInterpolationDelimiter ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi rubyOperator ctermfg=140 ctermbg=NONE cterm=NONE guifg=#AF87D7 guibg=NONE gui=NONE
|
||||
hi rubyPseudoVariable ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi rubyRegexp ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi rubyRegexpDelimiter ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi rubyStringDelimiter ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi rubySymbol ctermfg=150 ctermbg=NONE cterm=NONE guifg=#AFD787 guibg=NONE gui=NONE
|
||||
hi sassClass ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE " Sass
|
||||
hi sassClassChar ctermfg=215 ctermbg=NONE cterm=NONE guifg=#FFAF5F guibg=NONE gui=NONE
|
||||
hi sassFunction ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi sassInclude ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi sassVariable ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi shFunction ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE " Shell
|
||||
hi shOperator ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi shStatement ctermfg=74 ctermbg=NONE cterm=NONE guifg=#5FAFD7 guibg=NONE gui=NONE
|
||||
hi shTestOpr ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi shVariable ctermfg=255 ctermbg=NONE cterm=NONE guifg=#EEEEEE guibg=NONE gui=NONE
|
||||
hi xmlAttrib ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE " XML
|
||||
hi xmlCdataStart ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi xmlCdataCdata ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi xmlEndTag ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
||||
hi xmlEntity ctermfg=173 ctermbg=NONE cterm=NONE guifg=#D7875F guibg=NONE gui=NONE
|
||||
hi xmlEntityPunct ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi xmlEqual ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi xmlProcessingDelim ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi xmlTag ctermfg=117 ctermbg=NONE cterm=NONE guifg=#87D7FF guibg=NONE gui=NONE
|
||||
hi xmlTagName ctermfg=167 ctermbg=NONE cterm=NONE guifg=#D75F5F guibg=NONE gui=NONE
|
1117
vim/vim/pack/colors/start/solarized.vim
Normal file
1117
vim/vim/pack/colors/start/solarized.vim
Normal file
File diff suppressed because it is too large
Load diff
1
vim/vim/pack/plugins/start/vim-commentary
Submodule
1
vim/vim/pack/plugins/start/vim-commentary
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 141d9d32a9fb58fe474fcc89cd7221eb2dd57b3a
|
1
vim/vim/pack/plugins/start/vim-fugitive
Submodule
1
vim/vim/pack/plugins/start/vim-fugitive
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 7df9f07e1fd53d560f2e352d5faa3eba92cd1582
|
1
vim/vim/pack/plugins/start/vim-polyglot
Submodule
1
vim/vim/pack/plugins/start/vim-polyglot
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 3ddca5da461ebfaa82104f82e3cbf19d1c326ade
|
1
vim/vim/pack/plugins/start/vim-unimpaired
Submodule
1
vim/vim/pack/plugins/start/vim-unimpaired
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a49c4f2bf05f18a6e4f6572a19763ba7abba52b1
|
7
vim/vim/templates/journal
Normal file
7
vim/vim/templates/journal
Normal file
|
@ -0,0 +1,7 @@
|
|||
= Date =
|
||||
|
||||
== Quote ==
|
||||
|
||||
== Recap ==
|
||||
|
||||
== Notes ==
|
175
vim/vimrc
175
vim/vimrc
|
@ -1,6 +1,7 @@
|
|||
" ==============================================================================
|
||||
" vimrc file for niblock :: Use `:so %` to re-source after changes
|
||||
" ==============================================================================
|
||||
|
||||
" ==============================================================================
|
||||
" General Settings
|
||||
" ==============================================================================
|
||||
|
@ -44,43 +45,95 @@ set nohlsearch " Disable search highlighting
|
|||
|
||||
let g:netrw_liststyle=3 " Netrw Tree list style
|
||||
let g:netrw_banner=0 " Disable the netrw banner
|
||||
" ==============================================================================
|
||||
" Colors [VIM Only]
|
||||
" ==============================================================================
|
||||
if !has('nvim')
|
||||
set termguicolors " Enable fancy colors
|
||||
|
||||
if filereadable(expand('~/.config/vim/colors/catppuccin_frappe.vim'))
|
||||
colorscheme catppuccin_frappe " Set colorscheme, if available
|
||||
endif
|
||||
augroup ruby_settings " Custom settings: Ruby{-like}
|
||||
autocmd!
|
||||
autocmd FileType ruby,eruby,yaml
|
||||
\ setlocal makeprg=rubocop
|
||||
augroup END
|
||||
|
||||
hi link User1 Directory " Set User statusline colors
|
||||
hi link User2 Title " Used as '%n*', n = 1..6
|
||||
hi link User3 SpellBad " See :hi for colors
|
||||
hi link User4 Added
|
||||
hi link User5 Changed
|
||||
hi link User6 Removed
|
||||
augroup python_settings " Custom settings: Python-like
|
||||
autocmd!
|
||||
autocmd FileType py
|
||||
\ setlocal shiftwidth=4
|
||||
\ softtabstop=4
|
||||
augroup END
|
||||
|
||||
augroup shell_settings " Custom settings: Shell-like
|
||||
autocmd!
|
||||
autocmd FileType sh
|
||||
\ setlocal makeprg=shellcheck
|
||||
augroup END
|
||||
|
||||
augroup spellcheckr " Spelling, for some files...
|
||||
autocmd!
|
||||
autocmd BufNewFile,BufRead *.md,*.rdoc,*.txt,*.wiki
|
||||
\ setlocal spell
|
||||
augroup END
|
||||
|
||||
augroup lintr " Linting, based on :make!
|
||||
autocmd!
|
||||
autocmd BufWritePost *.rb,*.sh
|
||||
\ silent make! <afile> | silent redraw!
|
||||
autocmd QuickFixCmdPost [^l]* cwindow
|
||||
augroup END
|
||||
" ==============================================================================
|
||||
" Colors
|
||||
" ==============================================================================
|
||||
augroup user_stl_colors " Custom status-line colors
|
||||
autocmd!
|
||||
autocmd ColorScheme *
|
||||
\ hi User1 term=bold cterm=bold ctermfg=Red ctermbg=DarkGrey |
|
||||
\ hi User2 term=bold cterm=bold ctermfg=Cyan ctermbg=DarkGrey |
|
||||
\ hi User3 term=bold cterm=bold ctermfg=White ctermbg=DarkGrey |
|
||||
\ hi User4 ctermfg=White ctermbg=Black |
|
||||
\ hi User5 ctermfg=150 ctermbg=Black |
|
||||
\ hi User6 ctermfg=Grey ctermbg=Black
|
||||
augroup END
|
||||
|
||||
if filereadable(expand('~/.vim/colors/minimalist.vim'))
|
||||
colorscheme minimalist " Set colorscheme
|
||||
endif
|
||||
" ==============================================================================
|
||||
" Status Line [VIM Only]
|
||||
" Status Line
|
||||
" ==============================================================================
|
||||
if !has('nvim')
|
||||
set laststatus=2 " Enable the statusline
|
||||
set statusline=%!SLine() " Style it
|
||||
set laststatus=2 " Enable the statusline
|
||||
set statusline=%!ActiveStatus() " Style it
|
||||
|
||||
function! SLine() abort
|
||||
let sline="" " Initialize it
|
||||
let sline.="%3*%m" " Modified flag
|
||||
let sline.="%1*%{expand('%:p:h')}/" " Full-path to current buffer
|
||||
let sline.="%2*%t" " File name
|
||||
let sline.="%=" " Switch to right-side
|
||||
let sline.="%4*%y\ " " Filetype
|
||||
let sline.="%5*%{&spell?'[SPELL]':''}" " Spell flag
|
||||
let sline.="%6*%r" " Read-only flag
|
||||
let sline.="%1*\|%4l\:%2c\|" " Line and column
|
||||
return sline
|
||||
endfunction
|
||||
endif
|
||||
function! ActiveStatus() abort " When in the active window
|
||||
let statusline="" " Initialize it
|
||||
let statusline.="%3*%m" " Modified flag
|
||||
let statusline.="%6*%{expand('%:p:h')}/" " Full-path to current buffer
|
||||
let statusline.="%4*%t" " File name
|
||||
let statusline.="%5*%{GitBranch()}" " Show Git branch, if applicable
|
||||
let statusline.="%=" " Switch to right-side
|
||||
let statusline.="%4*%y\ " " Filetype
|
||||
let statusline.="%3*" " Color change (see :hi)
|
||||
let statusline.="\|%4l\:%2c\|" " Line and column
|
||||
let statusline.="%2*%{&spell?'[SPELL]':''}" " Spell flag
|
||||
let statusline.="%1*%r%0*" " Read-only flag
|
||||
return statusline
|
||||
endfunction
|
||||
|
||||
function! PassiveStatus() abort " When in a non-active window
|
||||
let statusline="" " Initialize it
|
||||
let statusline.="%6*%m" " Modified flag
|
||||
let statusline.="%{expand('%:p:h')}/" " Full-path to current buffer
|
||||
let statusline.="%t" " File name
|
||||
let statusline.="%{GitBranch()}" " Show Git branch, if applicable
|
||||
let statusline.="%=" " Switch to right-side
|
||||
let statusline.="%y\ " " Filetype
|
||||
let statusline.="\|%4l\:%2c\|" " Line and column
|
||||
let statusline.="%{&spell?'[SPELL]':''}" " Spell flag
|
||||
let statusline.="%r%0*" " Read-only flag
|
||||
return statusline
|
||||
endfunction
|
||||
|
||||
augroup user_statusline " Change based on active window
|
||||
autocmd!
|
||||
autocmd WinEnter * setlocal statusline=%!ActiveStatus()
|
||||
autocmd WinLeave * setlocal statusline=%!PassiveStatus()
|
||||
augroup END
|
||||
" ==============================================================================
|
||||
" Mappings
|
||||
" ==============================================================================
|
||||
|
@ -90,10 +143,70 @@ nnoremap <silent> j gj
|
|||
nnoremap <silent> k gk
|
||||
nnoremap <silent> ^ g^
|
||||
nnoremap <silent> $ g$
|
||||
" Toggle fold with space if we're in a fold, otherwise just space
|
||||
nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
|
||||
vnoremap <Space> zf
|
||||
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
||||
cmap w!! w !sudo tee > /dev/null %
|
||||
" Remove Trailing Whitespaace
|
||||
nnoremap <silent> <leader>rtw :<C-u>%s/\s\+$//e<CR>
|
||||
" Open help topic in a full new tab
|
||||
command! -nargs=1 -complete=help H :tabnew | :set buftype=help | :h <args>
|
||||
" Simple mapping to dotfiles directory (f = current tab; F = new tab)
|
||||
nnoremap <silent> <leader>f :<C-u>edit ~/.dotfiles/<CR>
|
||||
nnoremap <silent> <leader>F :<C-u>tabnew ~/.dotfiles/<CR>
|
||||
" Emulate vim-vinegar
|
||||
nnoremap <silent> - :silent edit <C-R>=empty(expand('%')) ? '.' :
|
||||
\ expand('%:p:h')<CR><CR>
|
||||
" Send the select range to the specified pane
|
||||
command! -nargs=? -range Twrite execute TmuxWrite(<q-args>, <line1>, <line2>)
|
||||
" Some notes/wiki shortcuts
|
||||
nnoremap <silent> <leader>ww :<C-u>edit ~/Documents/Wiki/index.md<CR>
|
||||
nnoremap <silent> <leader>ws :<C-u>vsplit ~/Documents/Wiki/scratchpad.md<CR>
|
||||
nnoremap <silent> <leader>wt :<C-u>vsplit ~/Documents/Wiki/to-do.md<CR>
|
||||
nnoremap <silent> <leader>wd :<C-u>edit ~/Documents/Wiki/diary/diary.wiki<CR>
|
||||
nnoremap <silent> <leader>tj :call NewJournal()<CR>
|
||||
nnoremap <silent> <leader><Space> :<C-u>execute "normal! f(gf"<CR>
|
||||
" ==============================================================================
|
||||
" Functions
|
||||
" ==============================================================================
|
||||
" Read from the journal template, and replace 'Date' with today's date
|
||||
function! NewJournal() abort
|
||||
.-1read ~/.vim/templates/journal
|
||||
s/Date/\=strftime("%A, %B %d")/
|
||||
endfunction
|
||||
" Fetch the git branch of the current file, if applicable
|
||||
function! GitBranch() abort
|
||||
let l:branchname = system("git rev-parse --abbrev-ref HEAD 2>/dev/null
|
||||
\ | tr -d '\n'")
|
||||
return strlen(l:branchname) > 0 ? '#'.l:branchname : ''
|
||||
endfunction
|
||||
" Simple tmux send-keys functionality
|
||||
function! TmuxWrite(pane, line1, line2) abort
|
||||
let l:val = join(filter(map(getline(a:line1, a:line2),
|
||||
\ 'substitute(v:val, "^\\s*", "", "")'),
|
||||
\ "!empty(v:val)"),
|
||||
\ "\r")
|
||||
try
|
||||
if empty(a:pane)
|
||||
throw 'Twrite Failed: No pane provided'
|
||||
endif
|
||||
let l:panes = systemlist('tmux list-panes -t '.a:pane.' -F "#D
|
||||
\ #{pane_active}"')
|
||||
let l:target = substitute(
|
||||
\join(filter(l:panes, 'match(v:val, ''%\d 1'') == 0'), ""),
|
||||
\'\(%\d\) 1', '\1', "")
|
||||
if l:target ==# $TMUX_PANE
|
||||
throw 'Twrite Failed: Not writing self'
|
||||
endif
|
||||
let l:out = system('tmux send-keys -t'.l:target.' "" '
|
||||
\.shellescape(l:val))
|
||||
if v:shell_error
|
||||
throw 'Twrite Failed: '.l:out[0:-2]
|
||||
endif
|
||||
echo len(l:val).' keys sent to '.a:pane
|
||||
return ''
|
||||
catch /.*/
|
||||
return 'echoerr '.string(v:exception)
|
||||
endtry
|
||||
endfunction
|
||||
|
|
Loading…
Reference in a new issue