key mappings

This commit is contained in:
ManjaroOne666 2018-02-11 21:01:24 +00:00
parent 95fbb7f552
commit 4bf339c1ab
1 changed files with 14 additions and 11 deletions

25
vimrc
View File

@ -111,6 +111,8 @@ set guioptions+=c
colorscheme customred256 colorscheme customred256
set updatetime=30000
set backupdir=~/.vimtmp set backupdir=~/.vimtmp
set directory=~/.vimtmp set directory=~/.vimtmp
@ -192,20 +194,20 @@ nnoremap <leader>td :grep! -R '// *TODO' .<CR>:botright cwindow<CR>:echo len(get
" brace/quotes completion " brace/quotes completion
inoremap {{ {}<left> inoremap {{ {}<left>
inoremap <leader>{<CR> {<CR>}<esc>O inoremap {<CR> {<CR>}<esc>O
inoremap <leader>{; {<CR>};<esc>O inoremap {; {<CR>};<esc>O
inoremap <leader>{{ {{}}<Left><Left> inoremap }} {{}}<Left><Left>
inoremap (( ()<Left> inoremap (( ()<Left>
inoremap <leader>(; ();<Left><Left> inoremap (; ();<Left><Left>
inoremap [[ []<Left> inoremap [[ []<Left>
inoremap <leader>[<CR> [<CR>]<esc>O inoremap [<CR> [<CR>]<esc>O
inoremap <leader>"" ""<Left> inoremap "" ""<Left>
inoremap <leader>"; "";<Left><Left> inoremap "; "";<Left><Left>
inoremap <leader>'' ''<Left> inoremap '' ''<Left>
inoremap <leader>'; '';<Left><Left> inoremap '; '';<Left><Left>
inoremap ;; ;<esc> inoremap ;; ;<esc>
@ -256,7 +258,7 @@ set statusline+=%= " left/right separator
set statusline+=%#StatusLineNC# set statusline+=%#StatusLineNC#
set statusline+=\ set statusline+=\
set statusline+=%* set statusline+=%*
set statusline+=\ %{v:register}\ set statusline+=\ \"%{v:register}\"\
set statusline+=%#StatusLineNC# set statusline+=%#StatusLineNC#
set statusline+=\ set statusline+=\
set statusline+=%* set statusline+=%*
@ -427,9 +429,10 @@ endfunction
" ultisnips " ultisnips
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger='<Esc><space>' let g:UltiSnipsExpandTrigger='<c-j>'
let g:UltiSnipsJumpForwardTrigger='<c-b>' let g:UltiSnipsJumpForwardTrigger='<c-b>'
let g:UltiSnipsJumpBackwardTrigger='<c-z>' let g:UltiSnipsJumpBackwardTrigger='<c-z>'
let g:UltiSnipsEditSplit='horizontal'
" NERDtree " NERDtree
nnoremap <F3> :NERDTreeFocus<CR> nnoremap <F3> :NERDTreeFocus<CR>