summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-03-29 23:38:24 -0400
committerSteph Enders <steph@senders.io>2023-03-29 23:38:24 -0400
commit76e0ffa04a972d0bfb2119b1540267c12efeb5f5 (patch)
tree9e17adcc508745ff6223dad33491682d12c82319 /.vimrc
Migrate dotfiles to new setup using stow
I've copied the preliminary list of configurations over from the old repo as well as some probably unnecessary globablly, local files (oversteer) - but I mean it REALLY cannot hurt to have a simple .ini file on a computer. But I may look into having PC branches that are rebased off of master, but it may make merging harder? so IDK. Risky. Anyway. The README.org committed has all you need to know. But for posterity the reason I am using org-mode files for the README is I am seeing how test driving emacs goes. Very easily can swap this over to a markdown file. Just figure - why not.
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc62
1 files changed, 62 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..cdee66b
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,62 @@
+set nocompatible " be iMproved, required
+filetype off " required
+filetype plugin indent on " required
+
+syntax on
+
+set number
+set tabstop=2 shiftwidth=2 expandtab
+set guifont=Monospace:h20
+
+au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta
+au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
+hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
+
+" Status line
+" default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)
+
+" Status Line Custom
+let g:currentmode={
+ \ 'n' : 'Normal',
+ \ 'no' : 'Normal·Operator Pending',
+ \ 'v' : 'Visual',
+ \ 'V' : 'V·Line',
+ \ '^V' : 'V·Block',
+ \ 's' : 'Select',
+ \ 'S' : 'S·Line',
+ \ '^S' : 'S·Block',
+ \ 'i' : 'Insert',
+ \ 'R' : 'Replace',
+ \ 'Rv' : 'V·Replace',
+ \ 'c' : 'Command',
+ \ 'cv' : 'Vim Ex',
+ \ 'ce' : 'Ex',
+ \ 'r' : 'Prompt',
+ \ 'rm' : 'More',
+ \ 'r?' : 'Confirm',
+ \ '!' : 'Shell',
+ \ 't' : 'Terminal'
+ \}
+
+set laststatus=2
+set noshowmode
+set statusline=
+set statusline+=%0*\ %n\ " Buffer number
+set statusline+=%0*\ %{toupper(g:currentmode[mode()])}\ " The current mode
+set statusline+=%3*│ " Separator
+set statusline+=%2*\ col:\ %02v\ " Colomn number
+set statusline+=%3*│ " Separator
+set statusline+=%1*\ ln:\ %02l/%L\ (%3p%%)\ " Line number / total lines, percentage of document
+set statusline+=%= " Right Side
+set statusline+=%1*\ %<%F%m%r%h%w\ " File path, modified, readonly, helpfile, preview
+set statusline+=%3*│ " Separator
+set statusline+=%2*\ %Y\ " FileType
+set statusline+=%3*│ " Separator
+
+hi User1 ctermfg=007 ctermbg=239 guibg=#4e4e4e guifg=#adadad
+hi User2 ctermfg=007 ctermbg=236 guibg=#303030 guifg=#adadad
+hi User3 ctermfg=236 ctermbg=236 guibg=#303030 guifg=#303030
+hi User4 ctermfg=239 ctermbg=239 guibg=#4e4e4e guifg=#4e4e4e
+
+highlight colorcolumn ctermbg=7
+set scrolloff=999