Reorder vimrc slightly.

main
Felix Martin 2022-06-18 15:44:37 -04:00
parent 2f6099ce7c
commit 698a1587f5
1 changed files with 13 additions and 12 deletions

View File

@ -16,8 +16,8 @@ set t_Co=256
set number
set relativenumber
set tabstop=2
" colorscheme grb256
colorscheme Atelier_EstuaryLight
colorscheme grb256
"colorscheme Atelier_EstuaryLight
" To better see search results
set hlsearch
set incsearch
@ -143,7 +143,8 @@ endfunc
augroup filetype_python
autocmd!
" autocmd FileType python packadd custom-python
" autocmd FileType python inoremap <buffer> <c-r> <esc>:w<CR>:!python3 "%:p"<CR>
autocmd FileType python inoremap <buffer> F5 <esc>:w<CR>:!python3 "%:p"<CR>
autocmd FileType python nnoremap <buffer> F5 :w<CR>:!python3 "%:p"<CR>
augroup END
" }}}
" Filetype javascript {{{
@ -290,7 +291,7 @@ function! s:SplitOrMove(direction)
endif
endfunction
" }}}
" fzf {{{
" votion {{{
nnoremap <leader>vo :RgVotion<CR>
nnoremap <leader>vt :RgVotionTitle<CR>
nnoremap <leader>va :RgVotionTags<CR>
@ -301,14 +302,6 @@ nnoremap <leader>vj :VotionJournal<CR>
command! VotionNote :py3file ~/.vim/scripts/votion-note.py
nnoremap <leader>vn :VotionNote<CR>
noremap <leader>ob :Buffers<CR>
noremap <leader>of :Files<CR>
noremap <leader>gf :GFiles<CR>
noremap <leader>rg :Rg<CR>
command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, {'options': ['--layout=reverse', '--info=inline', '--preview', 'bat --style=numbers --color==always --line-range :100 {}']}, <bang>0)
command! -bang -nargs=* RgVotion
\ call fzf#vim#grep(
\ 'rg --column --line-number --no-heading --color=always --smart-case -- '.shellescape(<q-args>).' ~/owc', 1,
@ -323,7 +316,15 @@ command! -bang -nargs=* RgVotionTags
\ call fzf#vim#grep(
\ 'rg -i --column --line-number --no-heading --color=always --smart-case -- tag [ '.shellescape(<q-args>).' ~/owc', 1,
\ fzf#vim#with_preview(), <bang>0)
" }}}
" fzf {{{
noremap <leader>ob :Buffers<CR>
noremap <leader>of :Files<CR>
noremap <leader>gf :GFiles<CR>
noremap <leader>rg :Rg<CR>
command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, {'options': ['--layout=reverse', '--info=inline', '--preview', 'bat --style=numbers --color==always --line-range :100 {}']}, <bang>0)
" }}}
" {{{ buffer handling
" buffer close