From 6929debb898a06723870c17813df0501893bf887 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 26 Mar 2014 00:44:02 -0400 Subject: [PATCH] unmapped from help and set the three toggles to f1-f3 --- vim/config/keyboard.vim | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 941f738..74892e1 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -23,9 +23,9 @@ " ~ | (N) -> toggle the tagbar sidebar " p | (V) -> paste and replace the selection " | (N) -> paste and replace the current word -" | (A) -> toggle line numbers -" | (N) -> toggle line wrapping -" | (A) -> toggle row/column highlighting +" | (A) -> toggle line numbers +" | (N) -> toggle line wrapping +" | (A) -> toggle row/column highlighting " | (A) -> toggle collapsed/folded rows " | (N) -> format document and return to current line " | (N) -> remove whitespace @@ -87,18 +87,19 @@ vnoremap p "_d"0P nnoremap "_diwP - "toggle the display of line numbers - nnoremap ':set number!' + "unmap F1 from help then map it to toggle the display of line numbers + nmap + nnoremap ':set number!' "toggle line wrapping (and bottom bar if using the gui) if !has("gui_running") - nnoremap ':set wrap!' + nnoremap ':set wrap!' else - nnoremap ':set wrap! go'.'-+'[&wrap]."=b\r" + nnoremap ':set wrap! go'.'-+'[&wrap]."=b\r" endif "toggle the cursor line and column - nnoremap ':set cursorline! cursorcolumn!' + nnoremap ':set cursorline! cursorcolumn!' "toggle folded code at foldpoints inoremap za