From 55ba95a7c7bae9a90e6f79b07382477cfb0e3e6c Mon Sep 17 00:00:00 2001 From: Ubaldo Tiberi Date: Sat, 9 Nov 2024 14:55:22 +0100 Subject: [PATCH] Cleaned up --- lib/ftcommands_mappings.vim | 18 +++++++++--------- test/test_replica.vim | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/ftcommands_mappings.vim b/lib/ftcommands_mappings.vim index 1a55473..5df87c5 100644 --- a/lib/ftcommands_mappings.vim +++ b/lib/ftcommands_mappings.vim @@ -7,18 +7,18 @@ import autoload "../lib/repl.vim" # ------------ # TODO: make imap and tmap to work. export def FtCommandsMappings() - noremap ReplicaConsoleToggle + noremap ReplicaConsoleToggle \ repl.ConsoleToggle() - tnoremap ReplicaConsoleToggle + tnoremap ReplicaConsoleToggle \ repl.ConsoleToggle() - noremap ReplicaSendLines + noremap ReplicaSendLines \ repl.SendLines(line('.'), line('.')) - noremap ReplicaSendFile + noremap ReplicaSendFile \ repl.SendFile() - noremap ReplicaSendCell + noremap ReplicaSendCell \ repl.SendCell() if g:replica_use_default_mapping == true @@ -29,18 +29,18 @@ export def FtCommandsMappings() endif if !hasmapto('ReplicaSendLines') || empty(mapcheck("", "nx")) - nnoremap ReplicaSendLines + nnoremap ReplicaSendLines # imap ReplicaSendLines - xnoremap :ReplicaSendLinesj + xnoremap :ReplicaSendLinesj endif if !hasmapto('ReplicaSendFile') || empty(mapcheck("", "n")) - nnoremap ReplicaSendFile + nnoremap ReplicaSendFile # imap ReplicaSendFile endif if !hasmapto('ReplicaSendCell') || empty(mapcheck("", "n")) - nnoremap ReplicaSendCell + nnoremap ReplicaSendCell # imap ReplicaSendCellj endif endif diff --git a/test/test_replica.vim b/test/test_replica.vim index ab47377..ff829c5 100644 --- a/test/test_replica.vim +++ b/test/test_replica.vim @@ -43,7 +43,7 @@ def g:Test_replica_basic() WaitForAssert(() => assert_equal(2, winnr('$'))) # TODO: Check how to remove the sleep # It must be very generous otherwise the CI tests won't pass. - sleep 4 + sleep 6 redraw! var bufnr = term_list()[0]