Add configuration for vim
- 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
and ~/.config/vim/after/syntax/python.vim
- Add `vim` artifacts in ~/.config/git/ignore
This commit is contained in:
parent
988ce4975d
commit
9b4c9fc98b
12 changed files with 610 additions and 1 deletions
|
|
@ -4,6 +4,12 @@
|
|||
|
||||
|
||||
|
||||
# Make non-interactive `bash` expand aliases as well (e.g., ":!cmd" in `vim`)
|
||||
if [ -n "${BASH_VERSION:-}" ]; then
|
||||
shopt -s expand_aliases
|
||||
fi
|
||||
|
||||
|
||||
|
||||
forget() { # the current history and restore $HISTFILE from disk
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
|
|
@ -123,3 +129,12 @@ if _command_exists pyenv; then
|
|||
alias pywhich='pyenv which'
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if _command_exists vim; then
|
||||
|
||||
alias v='vim'
|
||||
_command_exists sudoedit && alias sv='sudoedit'
|
||||
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue