Add Goyo and Limelight

ada
blallo 2022-09-27 18:05:19 +02:00
parent 76b7c9e988
commit a7b2eb2d40
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
5 changed files with 28 additions and 3 deletions

6
.gitmodules vendored
View File

@ -101,3 +101,9 @@
[submodule "pack/vendor/start/vim-powershell.git"]
path = pack/vendor/start/vim-powershell.git
url = https://github.com/corbob/vim-powershell.git
[submodule "pack/vendor/start/goyo.vim.git"]
path = pack/vendor/start/goyo.vim.git
url = https://github.com/junegunn/goyo.vim.git
[submodule "pack/vendor/start/limelight.vim.git"]
path = pack/vendor/start/limelight.vim.git
url = https://github.com/junegunn/limelight.vim.git

View File

@ -8,15 +8,24 @@ endif
" source $VIMHOME/config/themes/melange.vim
source $VIMHOME/config/themes/miramare.vim
function! s:colorscheme_gitgo()
hi Search guibg=Green
endfunction
function! s:colorscheme_miramare()
hi Search guibg=Purple
endfunction
autocmd! ColorScheme gitgo call s:colorscheme_gitgo()
autocmd! ColorScheme miramare call s:colorscheme_miramare()
function! LightOrDarkness()
if &background==?"dark"
set background=light
colorscheme gitgo
hi Search guibg=Green
elseif &background==?"light"
set background=dark
execute 'colorscheme ' . g:colorscheme
hi Search guibg=Purple
endif
endfunction

1
pack/vendor/start/goyo.vim.git vendored 160000

@ -0,0 +1 @@
Subproject commit 7f5d35a65510083ea5c2d0941797244b9963d4a9

@ -0,0 +1 @@
Subproject commit 86aaec1700b27618d33d6182f44691d84d2cb6e5

10
vimrc
View File

@ -175,7 +175,15 @@ nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '
nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p
nnoremap <Leader>u :UndotreeShow<CR>:UndotreeFocus<CR>
" highlight the current line
nnoremap l :call matchadd('LineHighlight', '\%'.line('.').'l')<CR>
"nnoremap l :call matchadd('LineHighlight', '\%'.line('.').'l')<CR>
" Limelight and Goyo
nnoremap <Leader>l :Limelight!!<CR>
xnoremap <Leader>l :Limelight!!<CR>
nnoremap <Leader>G :Goyo<CR>
xnoremap <Leader>G :Goyo<CR>
" Move lines
nnoremap <silent> <C-Down> :m .+1<CR>==
nnoremap <silent> <C-Up> :m .-2<CR>==
inoremap <silent> <C-Down> <Esc>:m .+1<CR>==gi