Merge branch 'master' of ssh://git.rayelliott.dev:3222/dots/nvim
This commit is contained in:
commit
3ea27752f0
34
init.vim
34
init.vim
|
@ -316,55 +316,22 @@ nnoremap <silent><space>cs :let @/=""<cr>
|
|||
nnoremap <space>: :setlocal number<CR>:
|
||||
nnoremap <silent> <space>rc :so $MYVIMRC<CR>
|
||||
nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
|
||||
nnoremap <silent> <space>sl :set invlist<CR>
|
||||
nnoremap <space>aa A<left>
|
||||
nnoremap <space>a2 A<left><left>
|
||||
nnoremap <space>ab A<C-o>B
|
||||
nnoremap <space>co :!clear;
|
||||
nnoremap <space>;; A;<esc>
|
||||
nnoremap <space>;j jA;<esc>
|
||||
nnoremap <space>,, A,<esc>
|
||||
nnoremap <space>,j jA,<esc>
|
||||
" Focus on current fold, close the rest
|
||||
nnoremap <silent> <space>zz zMzvzt
|
||||
" replace current word with last yanked/deleted text
|
||||
nnoremap <silent> <space>rw "_diwP
|
||||
" replace current word with last yanked text
|
||||
nnoremap <silent> <space>ry diw"0P
|
||||
" quick grep of visual selection
|
||||
vnoremap <space>gr y:grep! -R <C-r>" .
|
||||
" open quickfix window of TODOs
|
||||
" FIXME i want fixme!!!
|
||||
nnoremap <space>td :grep -RE '(TODO\\|FIXME)' .<CR>:botright cwindow<CR>:echo len(getqflist()) 'TODOs'<CR>
|
||||
" devdocs mapping
|
||||
nnoremap <space>dd :DD<CR>
|
||||
" write and delete current buffer
|
||||
nnoremap <space>bx :w\|bd<cr>
|
||||
" sync highlighting from start
|
||||
nnoremap <silent><space>ss :syntax sync fromstart<CR>
|
||||
|
||||
"}}}
|
||||
" terminal{{{
|
||||
" if has('terminal')
|
||||
" tnoremap <Esc> <C-\><C-n>
|
||||
" endif
|
||||
"}}}
|
||||
" windows{{{
|
||||
nnoremap <space>ww :resize<CR>:vertical resize<CR>
|
||||
|
||||
" }}}
|
||||
" git mappings {{{
|
||||
nnoremap <space>gD :!clear; echo 'git diff'; git diff<CR>
|
||||
nnoremap <space>ga :!clear; git add %; git status<CR>
|
||||
nnoremap <space>gg :!clear; git add %; git commit -m ''<Left>
|
||||
nnoremap <silent><space>gs :!VIMRUNTIME= st -t WM_FORCE_FLOATING -g 230x62 tig status<CR>
|
||||
|
||||
"}}}
|
||||
" movement/navigation{{{
|
||||
nnoremap <Esc>j :resize -5<CR>
|
||||
nnoremap <Esc>k :resize +5<CR>
|
||||
nnoremap <Esc>l :vertical resize +5<CR>
|
||||
nnoremap <Esc>h :vertical resize -5<CR>
|
||||
" alias for :tjump <cword>
|
||||
nnoremap <space>tj g<C-]>
|
||||
" alias for :ptjump <cword>
|
||||
|
@ -396,6 +363,7 @@ inoremap jjrg <c-o>:reg<cr>
|
|||
inoremap :w<cr> :w<cr>
|
||||
inoremap [:w<cr> :w<cr>
|
||||
inoremap {:w<cr> :w<cr>
|
||||
nnoremap ''; '';<left><left>
|
||||
|
||||
"}}}
|
||||
" working_with_underscores{{{
|
||||
|
|
Loading…
Reference in New Issue