1
0
Fork 0

bash: archive .bashrc; vim: simplify and archive old vim configs

This commit is contained in:
Von Random 2025-03-14 16:25:14 +02:00
parent 5e30fd7146
commit 4f811f48dc
6 changed files with 2414 additions and 17 deletions

View file

@ -1 +1,2 @@
README.md
_archive/

View file

@ -10,7 +10,6 @@ export LESS='i M R'
export PAGER=less
export EDITOR=vim
export TIME_STYLE=long-iso
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
PS1='\[\e[0m\][ \u@\h \[\e[34m\]\w\[\e[0m\] ]\n\$ '
@ -38,10 +37,6 @@ gsi() { command tig status; }
tmux() { command tmux -2 "$@"; }
atmux() { tmux attach; }
# bash-completion
completion_path='/usr/share/bash-completion/bash_completion'
[[ -r "$completion_path" ]] && source "$completion_path"
# we want to see exit code on error (it also has to be the last entry here)
trap_msg='\e[31m>>\e[0m exit \e[31m%s\e[0m\n'
trap 'printf "$trap_msg" "$?" >&2' ERR

38
_archive/dot_vimrc Normal file
View file

@ -0,0 +1,38 @@
vim9script
set nobackup nomodeline backspace=indent,eol,start foldmethod=marker cursorline
set list listchars=tab:-->,nbsp:x,trail:*
set hlsearch incsearch ignorecase smartcase
set scrolloff=3 sidescrolloff=15 sidescroll=1
set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab autoindent
set wildmenu showcmd ruler laststatus=2 mouse= t_ut= guicursor= t_Co=256
set belloff=all colorcolumn=80 formatoptions+=j relativenumber breakindent
set keymap=russian-jcukenwintype iminsert=0 imsearch=0
&statusline = "[%F] %R%H%W%M %=[%{&fenc}/%{&ff}] %y [%4l/%L:%3v]"
g:sh_indent_case_labels = 1
g:mapleader = "\<Space>"
# mappings
map <Space> <NOP>
noremap <F1> <Esc>
noremap <Leader>/ :noh<CR>
noremap <Leader>y "+y
noremap <Leader>d "+d
noremap <Leader>p "+p
noremap <Leader>P "+P
noremap q <NOP>
noremap! <F1> <Esc>
noremap! <C-@> <C-^>
noremap! <C-Space> <C-^>
nnoremap <Leader>l :setlocal list!<CR>
nnoremap <Leader>c :setlocal cursorline!<CR>
nnoremap <Leader>w :setlocal wrap!<CR>
g:plugrc = expand('$HOME/.vimplugrc')
g:plugdir = expand('$HOME/.vim/plugged')
g:plug = g:plugdir .. '/vim-plug/plug.vim'
if filereadable(g:plugrc) && filereadable(g:plug) && v:version >= 703
execute 'source' fnameescape(g:plugrc)
endif
syntax on
filetype plugin on

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,3 @@
vim9script
set nobackup nomodeline backspace=indent,eol,start foldmethod=marker cursorline
set list listchars=tab:-->,nbsp:x,trail:*
set hlsearch incsearch ignorecase smartcase
@ -6,12 +5,12 @@ set scrolloff=3 sidescrolloff=15 sidescroll=1
set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab autoindent
set wildmenu showcmd ruler laststatus=2 mouse= t_ut= guicursor= t_Co=256
set belloff=all colorcolumn=80 formatoptions+=j relativenumber breakindent
set keymap=russian-jcukenwintype iminsert=0 imsearch=0
&statusline = "[%F] %R%H%W%M %=[%{&fenc}/%{&ff}] %y [%4l/%L:%3v]"
g:sh_indent_case_labels = 1
g:mapleader = "\<Space>"
set keymap=russian-jcukenwintype iminsert=0 imsearch=0 bg=dark
let &statusline = "[%F] %R%H%W%M %=[%{&fenc}/%{&ff}] %y [%4l/%L:%3v]"
let g:sh_indent_case_labels = 1
let g:mapleader = "\<Space>"
let g:PaperColor_Theme_Options = {'theme': {'default': {'allow_italic': 1}}}
# mappings
map <Space> <NOP>
noremap <F1> <Esc>
noremap <Leader>/ :noh<CR>
@ -27,12 +26,9 @@ nnoremap <Leader>l :setlocal list!<CR>
nnoremap <Leader>c :setlocal cursorline!<CR>
nnoremap <Leader>w :setlocal wrap!<CR>
g:plugrc = expand('$HOME/.vimplugrc')
g:plugdir = expand('$HOME/.vim/plugged')
g:plug = g:plugdir .. '/vim-plug/plug.vim'
if filereadable(g:plugrc) && filereadable(g:plug) && v:version >= 703
execute 'source' fnameescape(g:plugrc)
endif
set guicursor=a:blinkon0 guifont=Cascadia\ Mono\ PL:h14
set guiheadroom=0 guioptions=aei mouse=a
colorscheme PaperColor
syntax on
filetype plugin on