• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision0458a35a6b154f9a516eca39b4b1077099469ef2 (tree)
Time2023-04-13 16:10:59
Authorbadcoff33
Commiterbadcoff33

Log Message

use closeoff in diffopt

Change Summary

Incremental Difference

diff -r ca6251fd283c -r 0458a35a6b15 vimrc
--- a/vimrc Thu Apr 13 09:07:36 2023 +0200
+++ b/vimrc Thu Apr 13 09:10:59 2023 +0200
@@ -84,15 +84,14 @@
8484 set magic
8585 set wrapscan
8686
87-set backup
88-execute mkdir(getenv('LOCALAPPDATA') .. g:slash .. join(["vim", "backup"], g:slash) , "p")
89-execute 'set backupdir=' .. getenv('LOCALAPPDATA') .. '\vim\backup'
90-set wildignore+=*/backup/*
87+set writebackup
88+set nobackup
89+"execute mkdir(getenv('LOCALAPPDATA') .. g:slash .. join(["vim", "backup"], g:slash) , "p")
90+"execute 'set backupdir=' .. getenv('LOCALAPPDATA') .. '\vim\backup'
9191
9292 set undofile
9393 execute mkdir(getenv('LOCALAPPDATA') .. g:slash .. join(["vim", "undo"], g:slash) , "p")
9494 execute 'set undodir=' .. getenv('LOCALAPPDATA') .. '\vim\undo'
95-set wildignore+=*/undo/*
9695
9796 " Insert mode completion
9897 set complete=.,w
@@ -111,7 +110,7 @@
111110 set tagcase=match
112111
113112 " Tune the diff feature for my needs.
114-set diffopt=internal,algorithm:minimal,context:8,vertical,iwhite,filler
113+set diffopt=internal,algorithm:minimal,context:8,vertical,iwhite,filler,closeoff
115114 " When starting in 'diff' mode, go full screen.
116115 if &diff
117116 set columns=999 lines=999
@@ -263,8 +262,8 @@
263262 vnoremap <Leader>s :s///gI<Left><Left><Left><Left>
264263
265264 " commands
266-nnoremap <Leader>f :find<Space>
267-nnoremap <Leader><Tab> :buffer<Space>
265+nnoremap <Leader>f :find<Space>*
266+nnoremap <Leader>b :buffer<Space>
268267 nnoremap <Leader>d <cmd>bdelete<CR>
269268
270269 " Leader-t space
@@ -298,7 +297,8 @@
298297 endif
299298 endif
300299 endfunction
301-nnoremap <BS> <cmd>call <SID>ToggleQuickfix()<CR>
300+nnoremap <A-Space> <cmd>call <SID>ToggleQuickfix()<CR>
301+imap <A-Space> <Esc><A-Space>
302302 nnoremap <Leader>G <cmd>clast<CR>
303303
304304 let g:ft2glob = { 'c':'*.[ch]$', 'vim':'*.vim', 'py':'*.py$', 'cmake':'*cmake*' }
@@ -316,7 +316,7 @@
316316 autocmd InsertEnter * checktime
317317 autocmd BufWinEnter * checktime
318318 autocmd VimEnter * execute "colorscheme" ( (&term == "builtin_gui") ? "twotone" : "apollo" )
319- autocmd FocusLost * try | silent wall | catch /.*/ | endtry
319+ "autocmd FocusLost * try | silent wall | catch /.*/ | endtry
320320 autocmd BufNewFile .vimrc execute "0read" g:vim_home.."\\templates\\local_vimrc"
321321 augroup END " }}}
322322