key mappings
This commit is contained in:
parent
95fbb7f552
commit
4bf339c1ab
25
vimrc
25
vimrc
|
@ -111,6 +111,8 @@ set guioptions+=c
|
|||
|
||||
colorscheme customred256
|
||||
|
||||
set updatetime=30000
|
||||
|
||||
set backupdir=~/.vimtmp
|
||||
set directory=~/.vimtmp
|
||||
|
||||
|
@ -192,20 +194,20 @@ nnoremap <leader>td :grep! -R '// *TODO' .<CR>:botright cwindow<CR>:echo len(get
|
|||
|
||||
" brace/quotes completion
|
||||
inoremap {{ {}<left>
|
||||
inoremap <leader>{<CR> {<CR>}<esc>O
|
||||
inoremap <leader>{; {<CR>};<esc>O
|
||||
inoremap <leader>{{ {{}}<Left><Left>
|
||||
inoremap {<CR> {<CR>}<esc>O
|
||||
inoremap {; {<CR>};<esc>O
|
||||
inoremap }} {{}}<Left><Left>
|
||||
|
||||
inoremap (( ()<Left>
|
||||
inoremap <leader>(; ();<Left><Left>
|
||||
inoremap (; ();<Left><Left>
|
||||
|
||||
inoremap [[ []<Left>
|
||||
inoremap <leader>[<CR> [<CR>]<esc>O
|
||||
inoremap [<CR> [<CR>]<esc>O
|
||||
|
||||
inoremap <leader>"" ""<Left>
|
||||
inoremap <leader>"; "";<Left><Left>
|
||||
inoremap <leader>'' ''<Left>
|
||||
inoremap <leader>'; '';<Left><Left>
|
||||
inoremap "" ""<Left>
|
||||
inoremap "; "";<Left><Left>
|
||||
inoremap '' ''<Left>
|
||||
inoremap '; '';<Left><Left>
|
||||
|
||||
inoremap ;; ;<esc>
|
||||
|
||||
|
@ -256,7 +258,7 @@ set statusline+=%= " left/right separator
|
|||
set statusline+=%#StatusLineNC#
|
||||
set statusline+=\
|
||||
set statusline+=%*
|
||||
set statusline+=\ %{v:register}\
|
||||
set statusline+=\ \"%{v:register}\"\
|
||||
set statusline+=%#StatusLineNC#
|
||||
set statusline+=\
|
||||
set statusline+=%*
|
||||
|
@ -427,9 +429,10 @@ endfunction
|
|||
|
||||
" ultisnips
|
||||
" 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:UltiSnipsJumpBackwardTrigger='<c-z>'
|
||||
let g:UltiSnipsEditSplit='horizontal'
|
||||
|
||||
" NERDtree
|
||||
nnoremap <F3> :NERDTreeFocus<CR>
|
||||
|
|
Loading…
Reference in New Issue