From 7e29a16a96c500355bd6cf7a1281d59d8b858f6c Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 15 Apr 2021 22:57:40 -0400 Subject: [PATCH] shift j/k scrolls the page without moving the cursor, and arrows change splits --- .vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index b94d298..a624c9d 100644 --- a/.vimrc +++ b/.vimrc @@ -21,7 +21,7 @@ map k map h map l let NERDTreeShowHidden=1 -set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab +set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab colorscheme desert syntax on set splitright @@ -43,6 +43,9 @@ set showcmd map a :bn map f :bp map d :bp:bd # +"---move the whole page without moving the cursor--- +nnoremap J +nnoremap K "-----nerdtree-------------------- nmap e :NERDTreeToggle " Search as you type, highlight results @@ -51,3 +54,8 @@ set showmatch set hlsearch nnoremap \\ :noh " Clear higlighting "nnoremap :noh +" Resize windows +nnoremap 5+ +nnoremap 5- +nnoremap 10> +nnoremap 10<