summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-29 14:20:21 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-29 14:20:21 -0400
commit342f1dcf115f998cbb5d27c5593e215b01e5b7a4 (patch)
tree0cf3b25183d4e0e0081dae237f0d9b7a17f8e5d6 /files
parent544da1ba50d9cbf51a18ca0abf1db66b3baa7460 (diff)
downloaddotfiles-342f1dcf115f998cbb5d27c5593e215b01e5b7a4.tar.gz
dotfiles-342f1dcf115f998cbb5d27c5593e215b01e5b7a4.tar.bz2
dotfiles-342f1dcf115f998cbb5d27c5593e215b01e5b7a4.zip
Finish adding files from new moyo, misc updates
Diffstat (limited to 'files')
-rw-r--r--files/audio/asoundrc24
-rw-r--r--files/email/muttrc4
-rw-r--r--files/vim/autoload/Juliana.vim2
-rw-r--r--files/vim/vimrc10
4 files changed, 21 insertions, 19 deletions
diff --git a/files/audio/asoundrc b/files/audio/asoundrc
index 051a420..8f93680 100644
--- a/files/audio/asoundrc
+++ b/files/audio/asoundrc
@@ -1,12 +1,12 @@
-#pcm.!spdif {
-# type hw
-# card 1
-# device 1
-#}
-#
-#pcm.!default {
-# type plug
-# slave {
-# pcm "spdif"
-# }
-#}
+pcm.!spdif {
+ type hw
+ card 1
+ device 1
+}
+
+pcm.!default {
+ type plug
+ slave {
+ pcm "spdif"
+ }
+}
diff --git a/files/email/muttrc b/files/email/muttrc
index 2f2efea..02bbe61 100644
--- a/files/email/muttrc
+++ b/files/email/muttrc
@@ -83,10 +83,8 @@ bind editor <Tab> complete-query
bind browser l select-entry
bind browser gg top-page
bind browser G bottom-page
-#bind index,pager H "view-raw-message"
-# https://superuser.com/a/695154
-macro index,pager \cB ": unset wait_key; set pipe_decode\n|w3m\n: set wait_key; unset pipe_decode\n" "call w3m to extract URLs out of a message"
+macro pager n "<enter-command>unset pipe_decode<enter><pipe-message>extract_url<enter>" "extract URLs from a message"
color normal white black
color attachment brightyellow black
diff --git a/files/vim/autoload/Juliana.vim b/files/vim/autoload/Juliana.vim
index 4dd86db..9af02d7 100644
--- a/files/vim/autoload/Juliana.vim
+++ b/files/vim/autoload/Juliana.vim
@@ -6,6 +6,8 @@ function! Juliana#Init()
autocmd ModeChanged [V\x16]*:i let g:Juliana#has_selection = 1
autocmd InsertLeave * let g:Juliana#has_selection = 0
augroup END
+ " This won't trigger autocomplete until 2 characters are typed.
+ autocmd ModeChanged *:i set noac | augroup JulianaSkipAutocomplete | autocmd TextChangedI * set ac | autocmd! JulianaSkipAutocomplete | augroup END
endfunction
function! Juliana#CompleteTab(type)
diff --git a/files/vim/vimrc b/files/vim/vimrc
index 41e30fb..c40eeec 100644
--- a/files/vim/vimrc
+++ b/files/vim/vimrc
@@ -1,5 +1,3 @@
-" @TODO: Map 'd' to delete no yank
-
" Basic settings.
set nocompatible
set number
@@ -130,8 +128,9 @@ if isdirectory(expand("~/c"))
endif
set autocomplete
-set complete=.^5,w^5,b^5,u^5
-set completeopt=popup
+"set complete=.^6,w^6,b^6,u^6,i^6,d^6
+set complete=.^6,w^6,b^6,u^6
+set completeopt+=menu,popup
" Plugins.
let g:fugitive_no_maps = 1
@@ -182,6 +181,8 @@ nnoremap <S-l> <nop>
nmap <Tab> <nop>
" ctrl + c no-op.
nnoremap <C-c> <nop>
+" shift + x delete no yank.
+vnoremap X "_x
" Disable F1 for help.
nmap <F1> <nop>
" Disable q: for histroy.
@@ -266,6 +267,7 @@ nnoremap <silent> <expr> <Tab> Juliana#CompleteNTab("FOLD")
command Tabify set noexpandtab | %retab! | set expandtab
command Untabify set expandtab | %retab!
+" @TODO: noeol, nofixeol, binary
command Hex :%!xxd
command Unhex :%!xxd -r