Updated a bunch of files

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2024-06-15 00:03:06 +0200
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2024-06-15 00:03:06 +0200
Commit 238d3c7ebb3c11f5c5a4a87ac633d0d7db1d39cb (patch)
-rw-r--r-- alacritty.yml 2
-rwxr-xr-x shenanigans.sh 3
-rw-r--r-- tmux.conf 4
-rw-r--r-- vimrc 42
4 files changed, 36 insertions, 15 deletions
diff --git a/alacritty.yml b/alacritty.yml
...
17
  
17
  
18
colors:
18
colors:
19
  primary:
19
  primary:
20
    background: "#151515"
20
    background: "#131313"
diff --git a/shenanigans.sh b/shenanigans.sh
1
# Software list.
1
# Software list.
2
# cifs-utils tree s3cmd xclip mc gnupg ripgrep jq xmlstarlet fzf
2
# cifs-utils tree s3cmd xclip mc gnupg ripgrep jq xmlstarlet fzf htop nvtop newsboat tmux
3
# htop nvtop newsboat tmux
  
4
  
3
  
5
# Magical environment variables.
4
# Magical environment variables.
6
  
5
  
...
diff --git a/tmux.conf b/tmux.conf
...
20
set -g status-fg '#ffffff'
20
set -g status-fg '#ffffff'
21
  
21
  
22
# Set inactive/active window styles.
22
# Set inactive/active window styles.
23
set -g window-status-current-format "#[fg=#ffffff]#[bg=#151515]#[fg=#ffffff]#[bg=#151515] #I:#W #[fg=#ffffff]#[bg=#151515]"
23
set -g window-status-current-format "#[fg=#ffffff]#[bg=#131313]#[fg=#ffffff]#[bg=#131313] #I:#W #[fg=#ffffff]#[bg=#131313]"
24
set -g window-style 'bg=#222222'
24
set -g window-style 'bg=#222222'
25
set -g window-active-style 'bg=#151515'
25
set -g window-active-style 'bg=#131313'
26
  
26
  
27
# Other settings
27
# Other settings
28
set-option -sg escape-time 10
28
set-option -sg escape-time 10
...
diff --git a/vimrc b/vimrc
1
" https://vimhelp.org/options.txt.html
  
2
  
  
3
set nocompatible
1
set nocompatible
4
syntax enable
  
5
  
  
6
" Sane defaults.
  
7
set path+=**
2
set path+=**
8
set relativenumber
3
set relativenumber
9
set smartcase
4
set smartcase
...
20
set scrolloff=4
15
set scrolloff=4
21
set spelllang=en_us
16
set spelllang=en_us
22
set laststatus=2
17
set laststatus=2
  
18
set shiftwidth=4
  
19
set tabstop=4
23
  
20
  
24
" Buffer navigation remaps.
21
filetype plugin on
  
22
filetype indent on
  
23
  
  
24
syntax enable
  
25
  
25
nnoremap <C-]> :bnext<cr>
26
nnoremap <C-]> :bnext<cr>
26
nnoremap <C-[> :bprevious<cr>
27
nnoremap <C-[> :bprevious<cr>
  
28
nnoremap <C-b> :buffers<cr>:buffer 
  
29
nnoremap <C-p> :Explore<cr>
  
30
nnoremap <C-l> :Lex<cr>
27
  
31
  
28
" Language specific indentation.
32
" Commenting blocks of code.
29
filetype plugin indent on
33
augroup commenting_blocks_of_code
30
autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4
34
	autocmd!
31
autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2
35
	autocmd FileType c,cpp,go,scala   let b:comment_leader = '// '
  
36
	autocmd FileType sh,ruby,python   let b:comment_leader = '# '
  
37
	autocmd FileType conf,fstab       let b:comment_leader = '# '
  
38
	autocmd FileType lua              let b:comment_leader = '-- '
  
39
	autocmd FileType vim              let b:comment_leader = '" '
  
40
augroup END
  
41
noremap <silent> gcc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
  
42
noremap <silent> gcu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
  
43
  
  
44
" Go autoformat.
  
45
function! GoFmt()
  
46
	let file = expand('%')
  
47
	silent execute "!gofmt -w " . file
  
48
	edit!
  
49
endfunction
  
50
command! GoFmt call GoFmt()
  
51
augroup go_autocmd
  
52
	autocmd BufWritePost *.go GoFmt
  
53
augroup END
32
  
54