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