- Add `/.config/vim/vimrc
+ Configure basic stuff
+ Activate spell checks
+ Activate syntax highlighting and ruler
+ Show whitespace characters
+ Add various snippets for mouse handling,
toggling line numbers, and search
+ Set `vim`-related directories inside
~/.config/vim and ~/.local/state/vim
- Integrate extra settings for Python files
in ~/.config/vim/after/ftplugin/python.vim
- Add `vim` artifacts in ~/.config/git/ignore
31 lines
1 KiB
Bash
31 lines
1 KiB
Bash
#!/bin/sh
|
|
|
|
# Environment variables for all kinds of shells
|
|
|
|
|
|
# Standard XDG base directories
|
|
# See: https://wiki.archlinux.org/title/XDG_Base_Directory
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
export XDG_DATA_HOME="$HOME/.local/share" # also set in ~/.local/bin/install-dotfiles
|
|
export XDG_STATE_HOME="$HOME/.local/state"
|
|
# Make up a XDG directory for binaries (that does not exist in the standard)
|
|
export XDG_BIN_HOME="$HOME/.local/bin"
|
|
|
|
|
|
# Convenient names for various places in the system
|
|
export DOTFILES_DIR="$XDG_DATA_HOME/dotfiles" # also set in ~/.local/bin/install-dotfiles
|
|
|
|
|
|
# Generic shell configs
|
|
export EDITOR=vim
|
|
export GPG_TTY=$(tty)
|
|
export PAGER="less --chop-long-lines --ignore-case --LONG-PROMPT --no-init --status-column --quit-if-one-screen"
|
|
export TERM=xterm-256color
|
|
export TZ="Europe/Berlin"
|
|
export VISUAL=$EDITOR
|
|
|
|
|
|
# Move common tools' config and cache files into XDG directories
|
|
export LESSHISTFILE="$XDG_STATE_HOME/less/history"
|
|
export VIMINIT="source $XDG_CONFIG_HOME/vim/vimrc"
|