1
0
Fork 0

get rid of vimplugins

This commit is contained in:
Von Random 2018-06-22 20:05:04 +03:00
parent 1024d96ec2
commit c571647330
4 changed files with 43 additions and 37 deletions

View file

@ -154,6 +154,7 @@ force_focus_wrapping yes
# rules # rules
# software # software
for_window [class="jetbrains-toolbox"] floating enable
for_window [class="Vpnui"] floating enable for_window [class="Vpnui"] floating enable
for_window [class="Deadbeef"] floating enable for_window [class="Deadbeef"] floating enable
for_window [class="Google-musicmanager"] floating enable for_window [class="Google-musicmanager"] floating enable

View file

@ -0,0 +1,15 @@
fun! s:ToggleMouse()
if !exists("s:old_mouse")
let s:old_mouse = "a"
set ttymouse=sgr
endif
if &mouse == ""
let &mouse = s:old_mouse
echo "mouse enabled (" . &mouse . ")"
else
let s:old_mouse = &mouse
let &mouse=""
echo "mouse disabled"
endif
endfunction
noremap <Leader>m :call <SID>ToggleMouse()<CR>

View file

@ -30,13 +30,7 @@ Plug 'lifepillar/vim-gruvbox8'
Plug 'tomasr/molokai' Plug 'tomasr/molokai'
Plug 'whatyouhide/vim-gotham' Plug 'whatyouhide/vim-gotham'
Plug 'NLKNguyen/papercolor-theme' Plug 'NLKNguyen/papercolor-theme'
" experimenting
Plug 'ajmwagar/vim-deus'
Plug 'hauleth/blame.vim' Plug 'hauleth/blame.vim'
Plug 'kaicataldo/material.vim'
Plug 'Badacadabra/vim-archery'
Plug 'chriskempson/base16-vim'
" only plug vimwiki within vimwiki dir and this file " only plug vimwiki within vimwiki dir and this file
if expand('%:p:h') =~ 'vimwiki' || expand('%') =~ 'vimplugins' if expand('%:p:h') =~ 'vimwiki' || expand('%') =~ 'vimplugins'
@ -56,8 +50,8 @@ nmap <Leader>a <Plug>(EasyAlign)
if has('gui_running') || $TERM =~ '^\(tmux\|st\)' && v:version >= 800 if has('gui_running') || $TERM =~ '^\(tmux\|st\)' && v:version >= 800
let &t_8f = "\033[38;2;%lu;%lu;%lum" let &t_8f = "\033[38;2;%lu;%lu;%lum"
let &t_8b = "\033[48;2;%lu;%lu;%lum" let &t_8b = "\033[48;2;%lu;%lu;%lum"
set termguicolors bg=dark set termguicolors bg=light
colorscheme archery colorscheme PaperColor
else else
let g:solarized_use16 = 1 let g:solarized_use16 = 1
let g:solarized_term_italics = 0 let g:solarized_term_italics = 0

56
vimrc
View file

@ -21,9 +21,6 @@ let g:sh_indent_case_labels=1
if v:version >= 703 if v:version >= 703
set colorcolumn=80 relativenumber formatoptions+=j set colorcolumn=80 relativenumber formatoptions+=j
endif endif
if v:version >= 800
set breakindent
endif
" maps " maps
"leader "leader
@ -55,36 +52,35 @@ noremap q <NOP>
nnoremap <Leader>q :q<CR> nnoremap <Leader>q :q<CR>
nnoremap <Leader>s :w<CR> nnoremap <Leader>s :w<CR>
" mouse toggle if v:version >= 800 && !has('nvim')
fun! s:ToggleMouse() set breakindent
if !exists("s:old_mouse")
let s:old_mouse = "a"
set ttymouse=sgr
endif
if &mouse == ""
let &mouse = s:old_mouse
echo "mouse enabled (" . &mouse . ")"
else
let s:old_mouse = &mouse
let &mouse=""
echo "mouse disabled"
endif
endfunction
noremap <Leader>m :call <SID>ToggleMouse()<CR>
" plugins " signify options
let plugins = expand("$HOME/.vimplugins") let g:signify_vcs_list = [ 'git' ]
if filereadable(plugins) && v:version >= 703 let g:signify_sign_change = '~'
execute 'source ' . fnameescape(plugins)
else " easy-align options
colorscheme default xmap <Leader>a <Plug>(EasyAlign)
nmap <Leader>a <Plug>(EasyAlign)
" only plug vimwiki within vimwiki dir and this file
if expand('%:p:h') =~ 'vimwiki' || expand('%') =~ 'vimplugins'
packadd vimwiki
endif endif
" explicit solarized8 " yaaay themes
"let g:solarized_use16 = 1 if has('gui_running') || $TERM =~ '^\(tmux\|st\)'
"let g:solarized_term_italics = 0 let &t_8f = "\033[38;2;%lu;%lu;%lum"
"set bg=light let &t_8b = "\033[48;2;%lu;%lu;%lum"
"colorscheme solarized8 set termguicolors bg=light
colorscheme PaperColor
else
let g:solarized_use16 = 1
let g:solarized_term_italics = 0
set bg=light
colorscheme solarized8
endif
endif
syntax on syntax on
filetype plugin on filetype plugin on