]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
vimrc: update for newest vim-mkbuild plugin
authorR. Steve McKown <rsmckown@gmail.com>
Mon, 18 Jan 2016 23:39:15 +0000 (16:39 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Mon, 18 Jan 2016 23:39:15 +0000 (16:39 -0700)
The vim-mkbuild plugin has been improved.  It supports two diferent file
search sources for Unite!

* <leader>E maps to unite using the mkbuild/file source, which provides
  all files in the project, including other projects referenced
  externally in the optional extrefs file.

* <leader>e maps to unite using the mkbuild/file_xref source, which
  provides that subset of files used in a specific mkbuild build.  This
  version requires the use of <leader>x first to set a build.  If no
  build is available, mkbuild/file_xref instead works just like
  mkbuild/file.

vim/bundle/vim-mkbuild
vim/vimrc

index 99302119376c0fef814a6ac7bd011e1ba924e828..1530d2f239ec1d862ad87a2437927f6b2add0f6f 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 99302119376c0fef814a6ac7bd011e1ba924e828
+Subproject commit 1530d2f239ec1d862ad87a2437927f6b2add0f6f
index 3d23deb6cc45f0d1c6adf1bda97183b100a445e0..6ad73bf8d7f73f8b5ab263310f181819ebcc8a35 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -342,9 +342,10 @@ nnoremap cop :DelimitMateSwitch<CR>
 " Toggle git gutter
 nnoremap cog :GitGutterToggle<CR>
 
-" mkbuild tools
-nnoremap <leader>e :<C-u>Unite -start-insert -buffer-name=files mkbfiles<CR>
-nnoremap <leader>x :<C-u>Unite -buffer-name=xrefs xrefs<cr>
+" mkbuild code search tools
+nnoremap <leader>e :<C-u>Unite -start-insert -buffer-name=files mkbuild/file_xref<CR>
+nnoremap <leader>E :<C-u>Unite -start-insert -buffer-name=files mkbuild/file<CR>
+nnoremap <leader>x :<C-u>Unite -buffer-name=xrefs mkbuild/xref<cr>
 
 " Turn on doxygen syntax highlighting for C, C++, C# and IDL files.
 let g:load_doxygen_syntax=1