diff options
Diffstat (limited to '')
-rw-r--r-- | home/.config/git/config | 21 | ||||
-rw-r--r-- | home/.config/git/ignore | 2 | ||||
-rw-r--r-- | home/.config/htop/htoprc | 29 | ||||
-rw-r--r-- | home/.config/nvim/colors/trivial.vim | 65 | ||||
-rw-r--r-- | home/.config/nvim/ftdetect/mdoc.vim | 1 | ||||
-rw-r--r-- | home/.config/nvim/init.vim | 37 | ||||
-rw-r--r-- | home/.config/nvim/syntax/mdoc.vim | 12 |
7 files changed, 167 insertions, 0 deletions
diff --git a/home/.config/git/config b/home/.config/git/config new file mode 100644 index 00000000..71799784 --- /dev/null +++ b/home/.config/git/config @@ -0,0 +1,21 @@ +[user] + name = C. McEnroe + email = june@causal.agency + +[commit] + verbose = true + +[merge] + conflictStyle = diff3 + +[pull] + rebase = true + +[rebase] + autosquash = true + +[pretty] + log = %Cred%h %Creset%s%C(yellow)%d %Cgreen(%ar) %Cblue<%aN> + +[include] + path = ./private diff --git a/home/.config/git/ignore b/home/.config/git/ignore new file mode 100644 index 00000000..fea54519 --- /dev/null +++ b/home/.config/git/ignore @@ -0,0 +1,2 @@ +*.DS_store +*.dSYM/ diff --git a/home/.config/htop/htoprc b/home/.config/htop/htoprc new file mode 100644 index 00000000..cdda268d --- /dev/null +++ b/home/.config/htop/htoprc @@ -0,0 +1,29 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +fields=0 48 39 2 46 49 1 +sort_key=47 +sort_direction=1 +hide_threads=0 +hide_kernel_threads=1 +hide_userland_threads=1 +shadow_other_users=0 +show_thread_names=0 +show_program_path=1 +highlight_base_name=1 +highlight_megabytes=1 +highlight_threads=1 +tree_view=1 +header_margin=0 +detailed_cpu_time=0 +cpu_count_from_zero=0 +show_cpu_usage=1 +show_cpu_frequency=0 +update_process_names=0 +account_guest_in_cpu_meter=0 +color_scheme=0 +enable_mouse=0 +delay=15 +left_meters=AllCPUs2 +left_meter_modes=1 +right_meters=Memory Swap +right_meter_modes=1 1 diff --git a/home/.config/nvim/colors/trivial.vim b/home/.config/nvim/colors/trivial.vim new file mode 100644 index 00000000..3ebe8d97 --- /dev/null +++ b/home/.config/nvim/colors/trivial.vim @@ -0,0 +1,65 @@ +hi clear +syntax reset +let colors_name = 'trivial' + +hi Normal ctermbg=NONE ctermfg=NONE + +hi ColorColumn ctermbg=0 +hi EndOfBuffer ctermfg=8 +hi VertSplit cterm=NONE ctermbg=NONE ctermfg=8 +hi LineNr ctermfg=8 +hi MatchParen ctermbg=NONE ctermfg=3 +hi ModeMsg ctermfg=8 +hi MoreMsg ctermfg=2 +hi! link Question MoreMsg +hi WarningMsg ctermfg=1 +hi NonText ctermfg=8 +hi Search ctermbg=NONE ctermfg=11 +hi StatusLine cterm=NONE ctermbg=0 ctermfg=7 +hi StatusLineNC cterm=NONE ctermbg=0 ctermfg=8 +hi Folded ctermbg=0 ctermfg=8 +hi Visual cterm=inverse ctermbg=NONE +hi Title ctermfg=5 +hi Directory ctermfg=4 + +hi Comment ctermfg=4 + +hi! link Constant Normal +hi String ctermfg=6 +hi link Character String + +hi! link Identifier Normal + +hi Statement ctermfg=7 +hi link Operator Normal + +hi PreProc ctermfg=2 + +hi! link Type Normal +hi link StorageClass Statement +hi link Structure StorageClass +hi link Typedef Structure + +hi! link Special Normal +hi SpecialComment ctermfg=12 +hi SpecialKey ctermfg=5 + +hi Underlined ctermfg=NONE +hi Error ctermbg=NONE ctermfg=9 +hi SpellBad ctermbg=NONE ctermfg=1 +hi! link Todo SpecialComment + +hi cFormat ctermfg=14 + +hi diffAdded ctermfg=10 +hi diffRemoved ctermfg=9 + +hi manUnderline cterm=italic + +hi link pythonInclude Statement + +hi link rubyDefine Structure +hi link rubyStringDelimiter String +hi link rubySymbol String + +hi link rustModPath Identifier diff --git a/home/.config/nvim/ftdetect/mdoc.vim b/home/.config/nvim/ftdetect/mdoc.vim new file mode 100644 index 00000000..b845fee6 --- /dev/null +++ b/home/.config/nvim/ftdetect/mdoc.vim @@ -0,0 +1 @@ +autocmd BufRead,BufNewFile *.[1-9] set filetype=mdoc diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim new file mode 100644 index 00000000..9245ccf4 --- /dev/null +++ b/home/.config/nvim/init.vim @@ -0,0 +1,37 @@ +set hidden +set undofile +set shortmess=atI +set wildmode=list:longest wildignore=*.o +set splitbelow splitright +command! W w +command! Q q + +set tabstop=4 shiftwidth=4 shiftround +set smartindent cinoptions=l1(sU1m1 +set ignorecase smartcase inccommand=nosplit +nmap <leader><leader> :nohlsearch<CR> +set foldmethod=syntax foldlevel=99 foldopen-=block +let asmsyntax = "nasm" +let c_syntax_for_h = 1 +let is_posix = 1 +let man_hardwrap = 1 + +set title laststatus=1 +set scrolloff=1 +set noruler colorcolumn=80 +set list listchars=tab:\ \ ,trail:ยท +colorscheme trivial + +autocmd TermOpen * setlocal statusline=%{b:term_title} +autocmd BufEnter term://* startinsert +tmap <C-w> <C-\><C-n><C-w> + +let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}} +nmap gp `[v`] + +nmap <leader>s vip:sort<CR> +nmap <leader>S $vi{:sort<CR> +nmap <leader>a m':0/^#include <<CR>:nohlsearch<CR>O#include < +nmap <leader>l :0read ~/src/etc/agpl.c<CR>'' +nmap <leader>L :0read ~/src/etc/gpl.c<CR>'' +nmap <leader>d :0delete<CR>:0read !date +'.Dd \%B \%e, \%Y'<CR> diff --git a/home/.config/nvim/syntax/mdoc.vim b/home/.config/nvim/syntax/mdoc.vim new file mode 100644 index 00000000..d9d587f5 --- /dev/null +++ b/home/.config/nvim/syntax/mdoc.vim @@ -0,0 +1,12 @@ +if exists("b:current_syntax") + finish +endif + +runtime! syntax/nroff.vim +unlet! b:current_syntax + +setlocal sections+=ShSs +syntax match mdocBlank /^\.$/ conceal +setlocal conceallevel=2 + +let b:current_syntax = "mdoc" |