aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty.yml2
-rwxr-xr-xshenanigans.sh3
-rw-r--r--tmux.conf4
-rw-r--r--vimrc42
4 files changed, 36 insertions, 15 deletions
diff --git a/alacritty.yml b/alacritty.yml
index 5340f2d..4100a4a 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -17,4 +17,4 @@ font:
17 17
18colors: 18colors:
19 primary: 19 primary:
20 background: "#151515" 20 background: "#131313"
diff --git a/shenanigans.sh b/shenanigans.sh
index 34b8ea7..32bec7a 100755
--- a/shenanigans.sh
+++ b/shenanigans.sh
@@ -1,6 +1,5 @@
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
index 23c8d9b..56d0cb3 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -20,9 +20,9 @@ set -g status-bg '#480b8e'
20set -g status-fg '#ffffff' 20set -g status-fg '#ffffff'
21 21
22# Set inactive/active window styles. 22# Set inactive/active window styles.
23set -g window-status-current-format "#[fg=#ffffff]#[bg=#151515]#[fg=#ffffff]#[bg=#151515] #I:#W #[fg=#ffffff]#[bg=#151515]" 23set -g window-status-current-format "#[fg=#ffffff]#[bg=#131313]#[fg=#ffffff]#[bg=#131313] #I:#W #[fg=#ffffff]#[bg=#131313]"
24set -g window-style 'bg=#222222' 24set -g window-style 'bg=#222222'
25set -g window-active-style 'bg=#151515' 25set -g window-active-style 'bg=#131313'
26 26
27# Other settings 27# Other settings
28set-option -sg escape-time 10 28set-option -sg escape-time 10
diff --git a/vimrc b/vimrc
index c9b8838..6e593ca 100644
--- a/vimrc
+++ b/vimrc
@@ -1,9 +1,4 @@
1" https://vimhelp.org/options.txt.html
2
3set nocompatible 1set nocompatible
4syntax enable
5
6" Sane defaults.
7set path+=** 2set path+=**
8set relativenumber 3set relativenumber
9set smartcase 4set smartcase
@@ -20,13 +15,40 @@ set backspace=2
20set scrolloff=4 15set scrolloff=4
21set spelllang=en_us 16set spelllang=en_us
22set laststatus=2 17set laststatus=2
18set shiftwidth=4
19set tabstop=4
20
21filetype plugin on
22filetype indent on
23
24syntax enable
23 25
24" Buffer navigation remaps.
25nnoremap <C-]> :bnext<cr> 26nnoremap <C-]> :bnext<cr>
26nnoremap <C-[> :bprevious<cr> 27nnoremap <C-[> :bprevious<cr>
28nnoremap <C-b> :buffers<cr>:buffer
29nnoremap <C-p> :Explore<cr>
30nnoremap <C-l> :Lex<cr>
31
32" Commenting blocks of code.
33augroup commenting_blocks_of_code
34 autocmd!
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 = '" '
40augroup END
41noremap <silent> gcc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
42noremap <silent> gcu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
27 43
28" Language specific indentation. 44" Go autoformat.
29filetype plugin indent on 45function! GoFmt()
30autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 46 let file = expand('%')
31autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2 47 silent execute "!gofmt -w " . file
48 edit!
49endfunction
50command! GoFmt call GoFmt()
51augroup go_autocmd
52 autocmd BufWritePost *.go GoFmt
53augroup END
32 54