]> oss.titaniummirror.com Git - smckown/dotfiles.git/blobdiff - vim/vimrc
Have all coX commands report actual command used
[smckown/dotfiles.git] / vim / vimrc
index 3d23deb6cc45f0d1c6adf1bda97183b100a445e0..ab4b160229d06d0d29f1244438cd0bfdaf3aa039 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
@@ -371,10 +372,10 @@ function! ToggleFormatOptionT()
   let tmp = substitute(&formatoptions, 't', '', '')
   if &formatoptions == tmp
     set fo+=t
-    :echo "Enable text wrap"
+    :echo ":set fo+=t"
   else
     set fo-=t
-    :echo "Disable text wrap"
+    :echo ":set fo-=t"
   endif
 endfunction
 
@@ -384,10 +385,10 @@ function! ToggleFormatOptionA()
   let tmp = substitute(&formatoptions, 'a', '', '')
   if &formatoptions == tmp
     set fo+=a
-    :echo "Enable auto-wrap paragraphs"
+    :echo ":set fo+=a"
   else
     set fo-=a
-    :echo "Disable auto-wrap paragraphs"
+    :echo ":set fo-=a"
   endif
 endfunction