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