]> oss.titaniummirror.com Git - smckown/dotfiles.git/blobdiff - vim/vimrc
Use mkbuild#SelectXref as <leader>x
[smckown/dotfiles.git] / vim / vimrc
index 15e4b3c7576d056a4c0295f669edae5f6f4bdca0..e039486050e2e68813409097856a3c1021fdcd3a 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -80,6 +80,7 @@ if has("autocmd")
   autocmd filetype c,cpp,java setlocal tw=80 fo-=t fo+=j
   autocmd filetype nesc setlocal syntax=c.doxygen tw=80 fo-=t fo+=j
   autocmd filetype text setlocal tw=80 fo+=jt
+  autocmd filetype tex setlocal tw=80 fo+=jt
 
   autocmd BufReadPre README*,TODO*,INSTALL* setlocal tw=80 fo+=t
 
@@ -176,12 +177,6 @@ set tags=tags;/
 " %% on an ex command line expands to the dir path of the current buffer
 cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'
 
-" Create some edit maps for opening new files
-map <leader>ew :e %%<CR>
-map <leader>es :sp %%<CR>
-map <leader>ev :vsp %%<CR>
-map <leader>et :tabe %%<CR>
-
 " Make <C-]> and g] work like g<C-]>, which uses :tjump
 nnoremap g] g<C-]>
 nnoremap <C-]> g<C-]>
@@ -270,10 +265,10 @@ nmap <Leader>w <Plug>(easymotion-bd-w)
 nmap <Leader>b <Plug>(easymotion-bd-w)
 nmap <Leader>W <Plug>(easymotion-bd-W)
 nmap <Leader>B <Plug>(easymotion-bd-W)
-nmap <Leader>e <Plug>(easymotion-bd-e)
-nmap <Leader>E <Plug>(easymotion-bd-E)
-nmap <Leader>ge <Plug>(easymotion-bd-e)
-nmap <Leader>gE <Plug>(easymotion-bd-E)
+"nmap <Leader>e <Plug>(easymotion-bd-e)
+"nmap <Leader>E <Plug>(easymotion-bd-E)
+"nmap <Leader>ge <Plug>(easymotion-bd-e)
+"nmap <Leader>gE <Plug>(easymotion-bd-E)
 nmap <Leader>j <Plug>(easymotion-bd-jk)
 nmap <Leader>k <Plug>(easymotion-bd-jk)
 nmap <Leader>n <Plug>(easymotion-bd-n)
@@ -355,6 +350,10 @@ nnoremap cop :DelimitMateSwitch<CR>
 " Rainbow Parenthesis -- off by default but set toggle
 nnoremap co( :RainbowParenthesesToggle<CR>
 
+" mkbuild tools
+nnoremap <silent> <leader>e :call mkbuild#DmenuOpen('e')<CR>
+nnoremap <silent> <leader>x :call mkbuild#SelectXrefs()<CR>
+
 " Turn on doxygen syntax highlighting for C, C++, C# and IDL files.
 let g:load_doxygen_syntax=1
 
@@ -402,6 +401,9 @@ endfunction
 
 " Insert date and time in insert mode.  Have to use the native <Leader>, not
 " its re-mapped version <space>
-imap <leader>d <C-R>=strftime("%Y%m%d")<CR>
-imap <leader>D <C-R>=strftime("%Y-%m-%d")<CR>
-imap <leader>t <C-R>=strftime("%H:%M:%S")<CR>
+"nmap <leader>dd "=strftime('%Y%m%d')<CR>p
+"imap <leader>dd <C-R>=strftime('%Y%m%d')<CR>
+"nmap <leader>dD "=strftime('%Y-%m-%d')<CR>p
+"imap <leader>dD <C-R>=strftime('%Y-%m-%d')<CR>
+"nmap <leader>dt "=strftime('%H:%M:%S')<CR>p
+"imap <leader>dt <C-R>=strftime('%H:%M:%S')<CR>