diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-11-16 16:40:58 -0700 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-11-16 16:40:58 -0700 |
commit | 645cfab20016bc8a443e880adfc1c5e7fea92cf6 (patch) | |
tree | 477c0823f3513ed84bd4af371f5c3534757992b9 /vim | |
parent | 9eb803b8a32c318304caac79f4dd1faff5a2f389 (diff) | |
download | dotfiles-645cfab20016bc8a443e880adfc1c5e7fea92cf6.tar dotfiles-645cfab20016bc8a443e880adfc1c5e7fea92cf6.tar.gz dotfiles-645cfab20016bc8a443e880adfc1c5e7fea92cf6.tar.bz2 |
forgot to update these in a while
Diffstat (limited to 'vim')
-rw-r--r--[l---------] | vim/.vimrc | 59 |
1 files changed, 58 insertions, 1 deletions
diff --git a/vim/.vimrc b/vim/.vimrc index 2e5c7e5..3859b42 120000..100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1 +1,58 @@ -/home/bryson/.vimrc
\ No newline at end of file +set nocompatible +colorscheme sitruuna +set mouse=a +set tabstop=4 shiftwidth=4 expandtab +set linebreak +set ttymouse=sgr +set cursorline +set backspace=indent,eol,start +set laststatus=2 +set wildmenu +set scrolloff=5 + +" stolen from https://shapeshed.com/vim-statuslines/ +"function! GitBranch() +" return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") +" let g:gitparsedbranchname = strlen(l:string) > 0?'['.l:string.']':'' +"endfunction + +"function! StatuslineGit() +" let l:branchname = GitBranch() +" return strlen(l:branchname) > 0?' '.l:branchname.' ':'' +"endfunction + +"function! InsertStatuslineColor(mode) +" if a:mode == 'i' +" hi statusline guibg=Cyan ctermfg=6 guifg=Black ctermbg=0 +" elseif a:mode == 'r' +" hi statusline guibg=Purple ctermfg=5 guifg=Black ctermbg=0 +" else +" hi statusline guibg=DarkRed ctermfg=1 guifg=Black ctermbg=0 +" endif +"endfunction + +"au InsertEnter * call InsertStatuslineColor(v:insertmode) +"au InsertLeave * hi statusline guibg=DarkGrey ctermfg=8 guifg=White ctermbg=15 + +set statusline= +"set statusline+=%#PmenuSel# +"set statusline+=%{StatuslineGit()} +"set statusline+=%#LineNr# +set statusline+=\%F +set statusline+=\ %m +set statusline+=\ %r +set statusline+=%= +set statusline+=%#CursorColumn# +set statusline+=\ %L\ lines +set statusline+=\ %y +"set statusline+=\ +set statusline+=\ %{&fileencoding?&fileencoding:&encoding} +"set statusline+=" >" +set statusline+=\[%{&fileformat}\] +"set statusline+=" >" +set statusline+=\ %p%% +"set statusline+=" >" +set statusline+=\ %l:%c + + +hi StatusLine ctermbg=black |