Răsfoiți Sursa

Add php-doc and rebase-continue mappings to vim

Weiyi Lou 10 ani în urmă
părinte
comite
472fa1c77c
3 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 2 0
      vim/plugins.vim
  2. 3 0
      vim/settings/commenting.vim
  3. 1 0
      vim/settings/version_control.vim

+ 2 - 0
vim/plugins.vim

@@ -73,6 +73,8 @@ Plug 'LnL7/vim-nix'
 Plug 'elzr/vim-json'
 Plug 'scrooloose/syntastic'
 Plug 'sheerun/vim-polyglot'
+Plug 'tobyS/pdv'
+Plug 'tobyS/vmustache'
 Plug 'vim-pandoc/vim-pandoc-syntax'
 Plug 'vim-scripts/yaml.vim'
 Plug 'nicklasos/vim-jsx-riot'

+ 3 - 0
vim/settings/commenting.vim

@@ -1,3 +1,6 @@
 " Toggle Commenting out lines with NERDCommenter
 nnoremap <silent> cc :call NERDComment("n", "toggle")<CR>
 vnoremap <silent> cc <Esc>:call NERDComment("x", "toggle")<CR>
+
+let g:pdv_template_dir = expand('~/.vim/plugged/pdv/templates')
+map <Leader>b :call pdv#DocumentCurrentLine()<CR>

+ 1 - 0
vim/settings/version_control.vim

@@ -17,3 +17,4 @@ nnoremap <silent> <Leader>gap :Git add -p<CR>
 nnoremap <silent> <Leader>gs :Gstatus<CR>
 nnoremap <silent> <Leader>gd :Gdiff<CR>
 nnoremap <silent> <Leader>gb :Gblame<CR>
+nnoremap <silent> <Leader>grbc :Git rebase --continue<CR>