remove unused mappings
This commit is contained in:
		
							parent
							
								
									26370a0dc2
								
							
						
					
					
						commit
						04ff808e48
					
				
							
								
								
									
										26
									
								
								init.vim
								
								
								
								
							
							
						
						
									
										26
									
								
								init.vim
								
								
								
								
							| 
						 | 
				
			
			@ -318,44 +318,20 @@ nnoremap <silent> <space>rc :so $MYVIMRC<CR>
 | 
			
		|||
nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
 | 
			
		||||
" 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>
 | 
			
		||||
| 
						 | 
				
			
			@ -387,7 +363,7 @@ inoremap jjrg     <c-o>:reg<cr>
 | 
			
		|||
inoremap :w<cr>   :w<cr>
 | 
			
		||||
inoremap [:w<cr>   :w<cr>
 | 
			
		||||
inoremap {:w<cr>   :w<cr>
 | 
			
		||||
inoremap ''; '';<left><left>
 | 
			
		||||
nnoremap ''; '';<left><left>
 | 
			
		||||
 | 
			
		||||
"}}}
 | 
			
		||||
"   working_with_underscores{{{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue