vim: ZoomWindow, make, quickfix list, etc.

Add ,m for Make
Add ,gp ,gl and ,gr for git push/pull/review
Add bindings for moving around quickfix list
etc.
This commit is contained in:
Paul Walker
2021-02-25 09:53:03 +00:00
parent f6cced996e
commit 8638616b36

22
vimrc
View File

@@ -4,6 +4,13 @@ if empty(glob('~/.vim/autoload/plug.vim'))
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif endif
let g:startify_custom_header = [
\ ' _ __ _ __ ___ __ ___ ',
\ ' / |/ / __(_)_ _ / |/ /__ _____/ / |_ |',
\ ' / / |/ / / ` \ / /|_/ / _ `/ __/ _ \ / __/ ',
\ '/_/|_/|___/_/_/_/_/ /_/ /_/\_,_/\__/_//_/ /____/ ',
\]
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align/' Plug 'junegunn/vim-easy-align/'
@@ -56,6 +63,8 @@ call plug#begin('~/.vim/plugged')
Plug 'elzr/vim-json' Plug 'elzr/vim-json'
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
Plug 'delphinus/vim-firestore' Plug 'delphinus/vim-firestore'
Plug 'regedarek/ZoomWin'
call plug#end() call plug#end()
if has('macunix') if has('macunix')
@@ -75,7 +84,7 @@ else
endif endif
map <leader>ww 0v$gq map <leader>ww 0v$gq
map =j :%!jq<CR> map =j :%!jq .<CR>
set backupdir=/tmp//,. set backupdir=/tmp//,.
set directory=/tmp//,. set directory=/tmp//,.
@@ -102,6 +111,7 @@ nnoremap <leader>bl :set background=light<CR>
nnoremap <c-s-up> dd2kp nnoremap <c-s-up> dd2kp
nnoremap <c-s-down> ddp nnoremap <c-s-down> ddp
nnoremap ,m :Make<CR>
nnoremap <leader>q :Bdelete<CR> nnoremap <leader>q :Bdelete<CR>
" Repeat the last macro " Repeat the last macro
@@ -118,6 +128,13 @@ inoremap jk <esc>
" Use 'p' to mean 'inside parantheses' in commands. " Use 'p' to mean 'inside parantheses' in commands.
onoremap p i( onoremap p i(
let g:magit_discard_untracked_do_delete=1
nnoremap ,gr :!git review<CR>
nnoremap ,gp :!git push<CR>
nnoremap ,gl :!git pull<CR>
nnoremap ,m :Make<CR>
colorscheme PaperColor colorscheme PaperColor
set background=dark set background=dark
" colorscheme dracula " colorscheme dracula
@@ -636,3 +653,6 @@ syntax on
filetype on filetype on
filetype plugin on filetype plugin on
filetype plugin indent on filetype plugin indent on
nnoremap <C-S-Right> :cn<CR>
nnoremap <C-S-Left> :cp<CR>