add checktime shortcuts to reload files that have been changed outside of vim/neovim

This commit is contained in:
Ivar Fatland
2025-10-10 13:26:41 +02:00
parent 921ac382bf
commit 0f570e72a8
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -42,6 +42,7 @@ vim.cmd [[
nnoremap <C-x> <Nop> nnoremap <C-x> <Nop>
nnoremap ,a <C-a> nnoremap ,a <C-a>
nnoremap ,x <C-x> nnoremap ,x <C-x>
nnoremap ,rl :checktime<CR>
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR> nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
+1
View File
@@ -23,6 +23,7 @@ nnoremap ,cu :colder<CR>
nnoremap ,h H nnoremap ,h H
nnoremap ,l L nnoremap ,l L
nnoremap ,t <c-w>v<c-w>l:terminal<CR>a nnoremap ,t <c-w>v<c-w>l:terminal<CR>a
nnoremap ,rl :checktime<CR>
nnoremap <c-d> <c-d>zz nnoremap <c-d> <c-d>zz
nnoremap <c-h> <c-w>h nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j nnoremap <c-j> <c-w>j