remove old fzf config

This commit is contained in:
Ray Elliott 2020-03-22 21:03:59 +00:00
parent d87a377ccf
commit eda6c4eccb
2 changed files with 24 additions and 183 deletions

View File

@ -328,7 +328,7 @@ let g:mta_filetypes = {
let g:netrw_liststyle=3 let g:netrw_liststyle=3
let g:netrw_list_hide=netrw_gitignore#Hide() let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_preview = 1 let g:netrw_preview = 1
let g:netrw_winsize = 66 let g:netrw_winsize = 33
let g:netrw_altv = 1 let g:netrw_altv = 1
let g:netrw_altfile = 1 let g:netrw_altfile = 1
let g:netrw_mousemaps = 0 let g:netrw_mousemaps = 0
@ -351,7 +351,7 @@ let g:mta_filetypes = {
"}}} "}}}
" #vim-fzf {{{ " #vim-fzf {{{
" https://github.com/junegunn/fzf.vim " https://github.com/junegunn/fzf.vim
if executable('fzf') && v:version >= 704 Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
nnoremap <space>fg :GFiles<CR> nnoremap <space>fg :GFiles<CR>
@ -360,28 +360,8 @@ if executable('fzf') && v:version >= 704
nnoremap <space>ft :Tags<CR> nnoremap <space>ft :Tags<CR>
nnoremap <space>fb :Buffers<CR> nnoremap <space>fb :Buffers<CR>
nnoremap <space>fh :Helptags<CR> nnoremap <space>fh :Helptags<CR>
" nnoremap <space>fa :Ag<CR>
" nnoremap <space>fA :Ag!<CR>
" Ag! gives fullscreen with preview
" command! -bang -nargs=* Ag
" \ call fzf#vim#ag(<q-args>,
" \ <bang>0 ? fzf#vim#with_preview('up:60%')
" \ : fzf#vim#with_preview('right:50%:hidden', '?'),
" \ <bang>0)
"
" Similarly, we can apply it to fzf#vim#grep. To use ripgrep instead of ag:
command! -bang -nargs=* Rg
\ call fzf#vim#grep(
\ 'rg --column --line-number --no-heading --color=always --smart-case '.shellescape(<q-args>), 1,
\ <bang>0 ? fzf#vim#with_preview('up:60%')
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
\ <bang>0)
" Files command with preview window
command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
let g:fzf_preview_window = 'right:60%'
let g:fzf_colors = let g:fzf_colors =
\ { 'fg': ['fg', 'Normal'], \ { 'fg': ['fg', 'Normal'],
\ 'bg': ['bg', 'Normal'], \ 'bg': ['bg', 'Normal'],
@ -396,7 +376,6 @@ if executable('fzf') && v:version >= 704
\ 'marker': ['fg', 'Keyword'], \ 'marker': ['fg', 'Keyword'],
\ 'spinner': ['fg', 'Label'], \ 'spinner': ['fg', 'Label'],
\ 'header': ['fg', 'Comment'] } \ 'header': ['fg', 'Comment'] }
endif
"}}} "}}}
" #polyglot{{{ " #polyglot{{{

View File

@ -1,138 +0,0 @@
" #Netrw {{{
let g:netrw_liststyle=3
let g:netrw_list_hide='^\..*'
let g:netrw_preview = 1
let g:netrw_winsize = 40
" let g:netrw_browse_split = 4
let g:netrw_altfile = 1
let g:netrw_mousemaps = 0
nnoremap <space>nn :call OpenNetrw()<CR>
" nnoremap <space>ee :e .<CR>
" nnoremap <space>eq :Rex<CR>
function! OpenNetrw() abort "{{{
Texplore
" setl rnu nu
endfunction
"}}}
function! CloseNetrw(keep_buffer) abort "{{{
if a:keep_buffer == 1
let l:current_buffer = bufnr("%")
tabclose
tabprevious
if bufexists(l:current_buffer) > 0
execute "buffer" l:current_buffer
endif
else
tabclose
tabprevious
endif
endfunction
"}}}
"}}}
" #Obsession{{{
" fork of tpope/vim-obsession
Plug 'studio-vx/vim-obsession'
"}}}
" #undotree {{{
Plug 'mbbill/undotree'
nnoremap <space>ut :UndotreeToggle<cr>
"}}}
" #tcomment_vim{{{
" https://github.com/tomtom/tcomment_vim
Plug 'tomtom/tcomment_vim'
"}}}
" #vim-fzf {{{
" https://github.com/junegunn/fzf.vim
if executable('fzf') && v:version >= 704
Plug 'junegunn/fzf.vim'
nnoremap <space>fg :GFiles<CR>
nnoremap <space>ff :Files<CR>
nnoremap <space>fH :History<CR>
nnoremap <space>ft :Tags<CR>
nnoremap <space>fb :Buffers<CR>
nnoremap <space>fh :Helptags<CR>
" nnoremap <space>fa :Ag<CR>
" nnoremap <space>fA :Ag!<CR>
" Ag! gives fullscreen with preview
" command! -bang -nargs=* Ag
" \ call fzf#vim#ag(<q-args>,
" \ <bang>0 ? fzf#vim#with_preview('up:60%')
" \ : fzf#vim#with_preview('right:50%:hidden', '?'),
" \ <bang>0)
"
" Similarly, we can apply it to fzf#vim#grep. To use ripgrep instead of ag:
command! -bang -nargs=* Rg
\ call fzf#vim#grep(
\ 'rg --column --line-number --no-heading --color=always --smart-case '.shellescape(<q-args>), 1,
\ <bang>0 ? fzf#vim#with_preview('up:60%')
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
\ <bang>0)
" Files command with preview window
command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
let g:fzf_colors =
\ { 'fg': ['fg', 'Normal'],
\ 'bg': ['bg', 'Normal'],
\ 'hl': ['fg', 'Label'],
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
\ 'hl+': ['fg', 'WildMenu'],
\ 'info': ['fg', 'Comment'],
\ 'border': ['fg', 'Ignore'],
\ 'prompt': ['fg', 'Constant'],
\ 'pointer': ['fg', 'Special'],
\ 'marker': ['fg', 'Keyword'],
\ 'spinner': ['fg', 'Label'],
\ 'header': ['fg', 'Comment'] }
endif
"}}}
" #polyglot{{{
" https://github.com/sheerun/vim-polyglot
Plug 'sheerun/vim-polyglot'
" vue options
let g:vue_disable_pre_processors=0
" set custom syntax highlighting
augroup fixhighlighting
autocmd!
autocmd BufNewFile,BufRead *.vue syntax sync fromstart
augroup END
"}}}
" #vim-markdown{{{
" https://github.com/plasticboy/vim-markdown
Plug 'plasticboy/vim-markdown'
let g:vim_markdown_toc_autofit = 1
let g:vim_markdown_fenced_languages = ['bash=sh']
"}}}
" #vim-repeat{{{
" https://github.com/tpope/vim-repeat
Plug 'tpope/vim-repeat'
"}}}
" #vim-rsi{{{
"https://github.com/tpope/vim-rsi
Plug 'tpope/vim-rsi'
"}}}
" #vim-surround{{{
Plug 'tpope/vim-surround'
"}}}
" #wakatime{{{
" https://wakatime.com/vim
Plug 'wakatime/vim-wakatime'
"}}}