[vim] Remove Selecta and Command-T stuff from the old vimrc

This commit is contained in:
Eryn Wells 2023-07-11 16:13:35 -07:00
parent 5ce57ee011
commit 7af40112cc

View file

@ -185,20 +185,6 @@ function! <SID>strip_trailing_whitespace()
endfunction
function! SelectaCommand(choice_command, selecta_args, vim_command)
try
silent let selection = system(a:choice_command . " | selecta " . a:selecta_args)
catch /Vim:Interrupt/
" Swallow ^C so the redraw below happens; otherwise there will be
" leftovers of selecta on screen.
redraw!
return
endtry
redraw!
exec a:vim_command . " " . selection
endfunction
" Key Mappings {{{
let mapleader=','
@ -225,8 +211,6 @@ nnoremap <silent> <leader><space> :setlocal invhlsearch<CR>
" find all
nnoremap <leader>fa :%s/\v
nnoremap <leader>f :call SelectaCommand("find * -type f", "", ":e")<cr>
" Text bubbling (these depend on tpope's unimpaired plugin)
nnoremap <C-Up> [e
nnoremap <C-Down> ]e
@ -238,12 +222,6 @@ nnoremap gV `[v`]
" }}}
" Command-T should open files in tabs when I hit <CR>; move opening files in
" buffers to <C-b>
"let g:CommandTAcceptSelectionMap='<C-b>'
"let g:CommandTAcceptSelectionTabMap='<CR>'
" GitGutter shows changed lines in files.
"let g:gitgutter_enabled = 0
"highlight clear SignColumn