mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 07:39:36 +01:00
Add a new remaps to .vimrc
This commit is contained in:
parent
7ac432d302
commit
6f8e44ff3a
20
.vimrc
20
.vimrc
@ -47,16 +47,33 @@ nmap <leader>yr :YcmCompleter RefactorRename <C-r>=expand('<cword>')<CR><C-f>
|
|||||||
|
|
||||||
nnoremap <leader>ghw :h <C-R>=expand("<cword>")<CR><CR>
|
nnoremap <leader>ghw :h <C-R>=expand("<cword>")<CR><CR>
|
||||||
|
|
||||||
inoremap kj <esc>
|
" exit from insert mode without cursor movement
|
||||||
|
inoremap kj <esc>`^
|
||||||
nmap <C-m> :MaximizerToggle<CR>
|
nmap <C-m> :MaximizerToggle<CR>
|
||||||
let g:maximizer_set_default_mapping = 0
|
let g:maximizer_set_default_mapping = 0
|
||||||
" Make Y consistent with C and D. See :help Y.
|
" Make Y consistent with C and D. See :help Y.
|
||||||
nnoremap Y y$
|
nnoremap Y y$
|
||||||
|
|
||||||
|
" by default, 'a jumps to line marked with ma
|
||||||
|
" while `a jumps to line AND column marked with ma
|
||||||
|
" swap ' and `
|
||||||
|
nnoremap ' `
|
||||||
|
nnoremap ` '
|
||||||
|
|
||||||
|
" <leader>q quits the current window
|
||||||
|
nnoremap <silent> <leader>q :q<CR>
|
||||||
|
inoremap <silent> <leader>q <ESC>:q<CR>
|
||||||
|
|
||||||
|
" indent with tab in visual mode
|
||||||
|
vmap <Tab> >
|
||||||
|
vmap <S-Tab> <
|
||||||
|
|
||||||
" Disable quote concealing in JSON files
|
" Disable quote concealing in JSON files
|
||||||
let g:vim_json_conceal=0
|
let g:vim_json_conceal=0
|
||||||
|
|
||||||
|
" scroll by visual lines, useful when wrapping is enabled
|
||||||
|
nnoremap j gj
|
||||||
|
nnoremap k gk
|
||||||
|
|
||||||
let g:sneak#label = 1
|
let g:sneak#label = 1
|
||||||
let g:loaded_matchparen=1
|
let g:loaded_matchparen=1
|
||||||
@ -235,6 +252,7 @@ if has('syntax') && has('eval')
|
|||||||
packadd! matchit
|
packadd! matchit
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
"automatically start nerdtree when vim is opened
|
"automatically start nerdtree when vim is opened
|
||||||
"autocmd vimenter * NERDTree
|
"autocmd vimenter * NERDTree
|
||||||
"ignore some files and dirs in nerdtree
|
"ignore some files and dirs in nerdtree
|
||||||
|
Loading…
Reference in New Issue
Block a user