get rid of vimplugins
This commit is contained in:
parent
1024d96ec2
commit
c571647330
4 changed files with 43 additions and 37 deletions
|
@ -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
|
||||||
|
|
15
pack/general/start/mousetoggle/plugin/mousetoggle.vim
Normal file
15
pack/general/start/mousetoggle/plugin/mousetoggle.vim
Normal 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>
|
10
vimplugins
10
vimplugins
|
@ -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
|
||||||
|
|
54
vimrc
54
vimrc
|
@ -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"
|
" signify options
|
||||||
set ttymouse=sgr
|
let g:signify_vcs_list = [ 'git' ]
|
||||||
|
let g:signify_sign_change = '~'
|
||||||
|
|
||||||
|
" easy-align options
|
||||||
|
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
|
||||||
if &mouse == ""
|
|
||||||
let &mouse = s:old_mouse
|
" yaaay themes
|
||||||
echo "mouse enabled (" . &mouse . ")"
|
if has('gui_running') || $TERM =~ '^\(tmux\|st\)'
|
||||||
|
let &t_8f = "\033[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b = "\033[48;2;%lu;%lu;%lum"
|
||||||
|
set termguicolors bg=light
|
||||||
|
colorscheme PaperColor
|
||||||
else
|
else
|
||||||
let s:old_mouse = &mouse
|
let g:solarized_use16 = 1
|
||||||
let &mouse=""
|
let g:solarized_term_italics = 0
|
||||||
echo "mouse disabled"
|
set bg=light
|
||||||
|
colorscheme solarized8
|
||||||
endif
|
endif
|
||||||
endfunction
|
|
||||||
noremap <Leader>m :call <SID>ToggleMouse()<CR>
|
|
||||||
|
|
||||||
" plugins
|
|
||||||
let plugins = expand("$HOME/.vimplugins")
|
|
||||||
if filereadable(plugins) && v:version >= 703
|
|
||||||
execute 'source ' . fnameescape(plugins)
|
|
||||||
else
|
|
||||||
colorscheme default
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" explicit solarized8
|
|
||||||
"let g:solarized_use16 = 1
|
|
||||||
"let g:solarized_term_italics = 0
|
|
||||||
"set bg=light
|
|
||||||
"colorscheme solarized8
|
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
Loading…
Reference in a new issue