remove unused mappings
This commit is contained in:
parent
f7cee27291
commit
17cdb1b4b5
39
init.vim
39
init.vim
|
@ -329,23 +329,11 @@ set conceallevel=0
|
|||
"----------------------------------------------------------------------------}}}
|
||||
" #mappings {{{
|
||||
let g:mapleader = ' '
|
||||
" image capable file browser
|
||||
nnoremap <silent><space>rs :!VIMRUNTIME= st -t WM_FORCE_FULLSCREEN ranger<CR>
|
||||
" search and replace {{{
|
||||
nnoremap <space>rr :%s/\<<Ckr>=expand('<cword>')<CR>\>//g<left><left>
|
||||
"}}}
|
||||
" #syntax
|
||||
nnoremap <silent> <cr>s :syntax on<cr>
|
||||
nnoremap <silent> <cr>S :syntax off<cr>
|
||||
" miscallaneous {{{
|
||||
nnoremap <cr>fc :set foldcolumn=
|
||||
nnoremap <cr>l :colorscheme paper-custom<cr>
|
||||
nnoremap <silent> <cr>c :call ToggleHighlights()<cr>
|
||||
nnoremap <cr>d :colorscheme monotonous-dark<cr>
|
||||
nnoremap 0 ^
|
||||
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"
|
||||
" Focus on current fold, close the rest
|
||||
nnoremap <silent> <space>zz zMzvzt
|
||||
|
@ -354,20 +342,6 @@ tnoremap <Esc> <C-\><C-n>
|
|||
" open quickfix window of TODOs
|
||||
nnoremap <space>td :grep -RE '(TODO\\|FIXME)' .<CR>:botright cwindow<CR>:echo len(getqflist()) 'TODOs'<CR>
|
||||
" sync highlighting from start
|
||||
nnoremap <silent><space>ss :syntax sync fromstart<CR>
|
||||
|
||||
"}}}
|
||||
" git mappings {{{
|
||||
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{{{
|
||||
" alias for :tjump <cword>
|
||||
nnoremap <space>tj g<C-]>
|
||||
" alias for :ptjump <cword>
|
||||
nnoremap <space>tp <C-w>g}
|
||||
|
||||
"}}}
|
||||
" location list and quickfix mappings {{{
|
||||
|
@ -389,21 +363,8 @@ nnoremap <space>qn :cnewer<CR>
|
|||
|
||||
"}}}
|
||||
" insert mode mappings {{{
|
||||
inoremap jj; <Esc>A;<Esc>
|
||||
inoremap jj, <Esc>A,<Esc>
|
||||
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{{{
|
||||
nnoremap <space>w f_l
|
||||
nnoremap <space>b hT_
|
||||
nnoremap <space>e lt_
|
||||
onoremap u t_
|
||||
onoremap U f_
|
||||
"}}}
|
||||
"----------------------------------------------------------------------------}}}
|
||||
" #abbreviations {{{
|
||||
|
|
Loading…
Reference in New Issue