1
0
Fork 0

move vim pack, stage 1

This commit is contained in:
Von Random 2018-06-23 20:18:01 +03:00
parent 5738b8d1ea
commit 754b8e3a37
13 changed files with 63 additions and 34 deletions

34
.gitmodules vendored
View file

@ -1,24 +1,27 @@
[submodule "pack/general/start/vim-easy-align"]
path = pack/general/start/vim-easy-align
[submodule "vimpack/start/vim-easy-align"]
path = vimpack/start/vim-easy-align
url = https://github.com/junegunn/vim-easy-align.git
[submodule "pack/general/start/vim-signify"]
path = pack/general/start/vim-signify
[submodule "vimpack/start/vim-signify"]
path = vimpack/start/vim-signify
url = https://github.com/mhinz/vim-signify.git
[submodule "pack/general/start/vim-commentary"]
path = pack/general/start/vim-commentary
[submodule "vimpack/start/vim-commentary"]
path = vimpack/start/vim-commentary
url = https://github.com/tpope/vim-commentary.git
[submodule "pack/general/start/vim-fugitive"]
path = pack/general/start/vim-fugitive
[submodule "vimpack/start/vim-fugitive"]
path = vimpack/start/vim-fugitive
url = https://github.com/tpope/vim-fugitive.git
[submodule "pack/general/start/vim-rsi"]
path = pack/general/start/vim-rsi
[submodule "vimpack/start/vim-rsi"]
path = vimpack/start/vim-rsi
url = https://github.com/tpope/vim-rsi.git
[submodule "pack/general/start/vim-polyglot"]
path = pack/general/start/vim-polyglot
[submodule "vimpack/start/vim-polyglot"]
path = vimpack/start/vim-polyglot
url = https://github.com/sheerun/vim-polyglot
[submodule "pack/general/start/vim-tru-typewriter"]
path = pack/general/start/vim-tru-typewriter
[submodule "vimpack/start/vim-tru-typewriter"]
path = vimpack/start/vim-tru-typewriter
url = https://git.vdrandom.org/vim-tru-typewriter
[submodule "vimpack/opt/vimwiki"]
path = vimpack/opt/vimwiki
url = https://github.com/vimwiki/vimwiki.git
[submodule "pack/colors/start/lucius"]
path = pack/colors/start/lucius
url = https://github.com/jonathanfilip/vim-lucius.git
@ -37,6 +40,3 @@
[submodule "pack/colors/start/blame"]
path = pack/colors/start/blame
url = https://github.com/hauleth/blame.vim.git
[submodule "pack/general/opt/vimwiki"]
path = pack/general/opt/vimwiki
url = https://github.com/vimwiki/vimwiki.git

View file

@ -1,15 +0,0 @@
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

@ -0,0 +1,44 @@
" plugin/mouse_toggle.vim
" <plug>mouse_toggle -> toggle 'mouse' option
" <leader>m -> <plug>mouse_toggle
" Written by Kobus Retief
if !has("mouse")
finish
endif
if exists("loaded_mouse_toggle")
finish
endif
let loaded_mouse_toggle = 1
let s:save_cpo = &cpo
set cpo&vim
let s:oldmouse = exists("mouse_default") ? mouse_default : "a"
function s:mouse_toggle()
if &mouse == ""
let &mouse = s:oldmouse
echo "mouse enabled (=" . &mouse . ")"
else
let s:oldmouse = &mouse
let &mouse = ""
echo "mouse disabled"
endif
endfunction
nnoremap <unique> <silent> <plug>mouse_toggle :call <sid>mouse_toggle()<cr>
if ! hasmapto("<plug>mouse_toggle")
map <unique> <leader>m <plug>mouse_toggle
endif
let &cpo = s:save_cpo
unlet s:save_cpo

4
vimrc
View file

@ -72,8 +72,8 @@ if v:version >= 800
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
set termguicolors bg=dark
colorscheme gruvbox8
else
let g:solarized_use16 = 1
let g:solarized_term_italics = 0