scroll the whole page without moving the cursor, and remap arrows to re-size splits

This commit is contained in:
Paul Trowbridge 2021-04-07 10:34:13 -04:00
parent ef8a6d4906
commit 337119fa02

10
.vimrc
View File

@ -36,7 +36,7 @@ let g:netrw_altv = 1
let g:netrw_winsize = 25 let g:netrw_winsize = 25
"----airline tabs for buffers------- "----airline tabs for buffers-------
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
let g:airline_theme = 'dark' let g:airline_theme = 'light'
let g:tmuxline_powerline_separators = 1 let g:tmuxline_powerline_separators = 1
let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
let mapleader = ";" let mapleader = ";"
@ -44,6 +44,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
@ -52,3 +55,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><