shift j/k scrolls the page without moving the cursor, and arrows change splits

This commit is contained in:
Paul Trowbridge 2021-04-15 22:57:40 -04:00
parent 5c6ddd41cb
commit 7e29a16a96

10
.vimrc
View File

@ -21,7 +21,7 @@ map <C-k> <C-W>k
map <C-h> <C-W>h map <C-h> <C-W>h
map <C-l> <C-W>l map <C-l> <C-W>l
let NERDTreeShowHidden=1 let NERDTreeShowHidden=1
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
colorscheme desert colorscheme desert
syntax on syntax on
set splitright set splitright
@ -43,6 +43,9 @@ set showcmd
map <Leader>a :bn<cr> map <Leader>a :bn<cr>
map <Leader>f :bp<cr> map <Leader>f :bp<cr>
map <Leader>d :bp<cr>:bd #<cr> map <Leader>d :bp<cr>:bd #<cr>
"---move the whole page without moving the cursor---
nnoremap J <C-E>
nnoremap K <C-Y>
"-----nerdtree-------------------- "-----nerdtree--------------------
nmap <Leader>e :NERDTreeToggle<CR> nmap <Leader>e :NERDTreeToggle<CR>
" Search as you type, highlight results " Search as you type, highlight results
@ -51,3 +54,8 @@ set showmatch
set hlsearch set hlsearch
nnoremap \\ :noh<cr> " Clear higlighting nnoremap \\ :noh<cr> " Clear higlighting
"nnoremap <esc> :noh<return><esc> "nnoremap <esc> :noh<return><esc>
" Resize windows
nnoremap <silent> <Up> 5<C-W>+
nnoremap <silent> <Down> 5<C-W>-
nnoremap <silent> <Right> 10<C-W>>
nnoremap <silent> <Left> 10<C-W><