aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init/keymaps.vim
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-14 00:07:12 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-09-14 00:07:12 +0800
commit4ee76734de1d426df88a2a4791391909cd1a8597 (patch)
tree9ca6ab0be6adaf107eaad339ff2899f8572306c8 /vim/init/keymaps.vim
parent780d2bca89b769bc6a1b8d3dbe22a6bb4616f733 (diff)
Update
Diffstat (limited to 'vim/init/keymaps.vim')
-rw-r--r--vim/init/keymaps.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim
index c0af8c8..bf3d7ab 100644
--- a/vim/init/keymaps.vim
+++ b/vim/init/keymaps.vim
@@ -92,6 +92,11 @@ nnoremap gF :e <cfile><CR>
92xnoremap iq i" 92xnoremap iq i"
93xnoremap aq a" 93xnoremap aq a"
94 94
95nnoremap ze zszH
96
97nnoremap 0 ^
98nnoremap ^ 0
99
95 100
96" READLINE {{{ 101" READLINE {{{
97 102
@@ -495,8 +500,9 @@ function! CloseBufferSafely()
495 tabclose 500 tabclose
496 else 501 else
497 " Switch to proper buffer 502 " Switch to proper buffer
498 let next_buf = get(t:bufs, bufnr('#')) ? bufnr('#') : filter(t:bufs, 'v:val != '..bufnr)[0] 503 let next_buf = get(t:bufs, bufnr('#')) ? bufnr('#') : filter(t:bufs, 'v:val != '..bufnr)[-1]
499 exe "b "..next_buf 504 exe "b "..next_buf
505 " exe "buffer ".g:lastbuffer
500 call filter(t:bufs, 'v:val != '..bufnr) 506 call filter(t:bufs, 'v:val != '..bufnr)
501 endif 507 endif
502 508