|
|
@ -90,7 +90,7 @@ set foldmethod=syntax " Fold on the syntax
|
|
|
|
|
|
|
|
|
|
|
|
" Editing {{{
|
|
|
|
" Editing {{{
|
|
|
|
|
|
|
|
|
|
|
|
" set hidden
|
|
|
|
set hidden
|
|
|
|
if !has("nvim")
|
|
|
|
if !has("nvim")
|
|
|
|
set noesckeys
|
|
|
|
set noesckeys
|
|
|
|
endif
|
|
|
|
endif
|
|
|
@ -111,16 +111,6 @@ augroup RestoreCursor
|
|
|
|
autocmd BufWinEnter * call RestoreCursor()
|
|
|
|
autocmd BufWinEnter * call RestoreCursor()
|
|
|
|
augroup end
|
|
|
|
augroup end
|
|
|
|
|
|
|
|
|
|
|
|
" augroup netrw_buf_hidden_fix
|
|
|
|
|
|
|
|
" autocmd!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" " Set all non-netrw buffers to bufhidden=hide
|
|
|
|
|
|
|
|
" autocmd BufWinEnter *
|
|
|
|
|
|
|
|
" \ if &ft != 'netrw'
|
|
|
|
|
|
|
|
" \| set bufhidden=hide
|
|
|
|
|
|
|
|
" \| endif
|
|
|
|
|
|
|
|
" augroup end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
augroup DisableAutoComment
|
|
|
|
augroup DisableAutoComment
|
|
|
|
autocmd BufEnter * setlocal formatoptions-=o
|
|
|
|
autocmd BufEnter * setlocal formatoptions-=o
|
|
|
|
augroup END
|
|
|
|
augroup END
|
|
|
@ -170,7 +160,8 @@ set smartcase
|
|
|
|
|
|
|
|
|
|
|
|
" netrw
|
|
|
|
" netrw
|
|
|
|
|
|
|
|
|
|
|
|
let g:netrw_fastbrowse=0
|
|
|
|
" https://github.com/tpope/vim-vinegar/issues/13
|
|
|
|
|
|
|
|
let g:netrw_liststyle=0
|
|
|
|
|
|
|
|
|
|
|
|
" ripgrep
|
|
|
|
" ripgrep
|
|
|
|
if executable('rg')
|
|
|
|
if executable('rg')
|
|
|
|