From 6d70d699fa2ba7dc00a8d464da0d638b330a7d6f Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 24 Oct 2017 21:25:51 -0400 Subject: [PATCH] Don't delete with backspace in visual mode --- vim/config/keyboard.vim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index d5c8047..a38cdbf 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -196,7 +196,6 @@ " | (I) -> (neocomplete) undo the most recent completion " " (formatting) -" | (V) -> deletes currently selected text " J | (N) -> split document into lines of tw or 80 " J | (V) -> split selection into lines of tw or 80 " f | (N) -> format document and return to cursor @@ -721,9 +720,6 @@ "} "FORMATTING:{ - "have backspace delete the selected text - vnoremap "_x - "format width to text width (or 80 chars if text width is 0) nnoremap J ':let b:tw=&textwidth:if (b:tw == 0)set tw=80endifgg0vG$gq:if (b:tw == 0)set tw=0let b:tw=80endif:echo "Document has been formatted to a width of ".b:tw." characters"' vnoremap J ':let b:tw=&textwidth:if (b:tw == 0)set tw=80endifgvgq:if (b:tw == 0)set tw=0let b:tw=80endif:echo "Selection has been formatted to a width of ".b:tw." characters"'