vimrc: add plugins

This commit is contained in:
Augusto Gunsch 2021-08-10 16:34:22 -03:00
parent 0a699a79e4
commit 11ac81fdb8
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 16 additions and 59 deletions

57
vimrc
View File

@ -46,57 +46,14 @@ augroup python
autocmd FileType python set ts=4 autocmd FileType python set ts=4
augroup END augroup END
" status line call plug#begin()
set laststatus=2
set statusline=
set statusline+=%1*
set statusline+=\
set statusline+=%{StatuslineMode()}
set statusline+=\
set statusline+=%2*
set statusline+=%=
set statusline+=%1*
set statusline+=\
set statusline+=%3l
set statusline+=:
set statusline+=%c
set statusline+=/
set statusline+=%L
set statusline+=\
hi User1 ctermbg=27 ctermfg=white
hi User2 ctermbg=234 ctermfg=white
function! StatuslineMode() Plug 'valloric/youcompleteme'
let l:mode=mode()
if l:mode==#"n"
hi User1 ctermbg=27 ctermfg=white
return "NORMAL"
elseif l:mode==?"v"
hi User1 ctermbg=yellow ctermfg=black
return "VISUAL"
elseif l:mode==#"i"
hi User1 ctermbg=darkgreen ctermfg=black
return "INSERT"
elseif l:mode==#"R"
hi User1 ctermbg=darkred ctermfg=white
return "REPLACE"
endif
endfunction
" TabLine colors Plug 'vim-airline/vim-airline'
hi clear TabLine Plug 'vim-airline/vim-airline-themes
hi clear TabLineFill
hi clear TabLineSel
hi TabLineFill ctermfg=white ctermbg=234
hi TabLine ctermfg=white ctermbg=237
hi TabLineSel ctermfg=white ctermbg=27
" Disable -- INSERT --, etc Plug 'scrooloose/nerdtree'
set noshowmode Plug 'scrooloose/nerdcommenter'
set noshowcmd
" Omni completion call plug#end()
filetype plugin on
set omnifunc=syntaxcomplete#Complete
" Ctags
nnoremap <C-F12> :!ctags -R --c++-kinds=+p --fields=+ias --extras=+q .<CR>

18
xinitrc
View File

@ -1,13 +1,13 @@
xset s off -dpms xset s off -dpms
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap
unclutter &
picom &
dunst &
feh --bg-fill ~/.wallpaper.png
lxpolkit &
dwm_bar &
exec dwm
xdg-mime default mupdf.desktop application/pdf xdg-mime default mupdf.desktop application/pdf
xdg-mime default feh.desktop image/png xdg-mime default feh.desktop image/png
xdg-mime default feh.desktop image/jpg xdg-mime default feh.desktop image/jpg
feh --bg-fill ~/.wallpaper.png
unclutter &
picom &
dunst &
lxpolkit &
dwm_bar &
exec dwm