" 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
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
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