diff --git a/after/plugin/redir.vim b/after/plugin/redir.vim deleted file mode 100644 index 1aac8b4a..00000000 --- a/after/plugin/redir.vim +++ /dev/null @@ -1,36 +0,0 @@ -function! Redir(cmd, rng, start, end) - for win in range(1, winnr('$')) - if getwinvar(win, 'scratch') - execute win . 'windo close' - endif - endfor - if a:cmd =~ '^!' - let cmd = a:cmd =~' %' - \ ? matchstr(substitute(a:cmd, ' %', ' ' . shellescape(escape(expand('%:p'), '\')), ''), '^!\zs.*') - \ : matchstr(a:cmd, '^!\zs.*') - if a:rng == 0 - let output = systemlist(cmd) - else - let joined_lines = join(getline(a:start, a:end), '\n') - let cleaned_lines = substitute(shellescape(joined_lines), "'\\\\''", "\\\\'", 'g') - let output = systemlist(cmd . " <<< $" . cleaned_lines) - endif - else - redir => output - execute a:cmd - redir END - let output = split(output, "\n") - endif - vnew - let w:scratch = 1 - setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile - call setline(1, output) -endfunction - -" This command definition includes -bar, so that it is possible to "chain" Vim commands. -" Side effect: double quotes can't be used in external commands -command! -nargs=1 -complete=command -bar -range Redir silent call Redir(, , , ) - -" This command definition doesn't include -bar, so that it is possible to use double quotes in external commands. -" Side effect: Vim commands can't be "chained". -command! -nargs=1 -complete=command -range Redir silent call Redir(, , , ) diff --git a/init.lua b/init.lua index f8b8e6c8..5113dddb 100644 --- a/init.lua +++ b/init.lua @@ -129,7 +129,7 @@ require('lazy').setup({ { 'folke/tokyonight.nvim', -- Theme config = function() - vim.cmd [[colorscheme tokyonight-night]] + vim.cmd [[colorscheme tokyonight-storm]] end }, {