Skip to content
Browse files

vim: print current filename without save for F10

  • Loading branch information...
1 parent b23df16 commit 45c17e504aaad137e322c727e6e068bb9dfa9b25 Miklos Vajna committed Mar 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 .vimrc-macros
View
3 .vimrc-macros
@@ -52,7 +52,8 @@ command Todo call AddTodo()
fun AddTrace()
execute "normal a \<BS>". "\nOSL_TRACE(\"TODO: %s\", __PRETTY_FUNCTION__);"
endfun
-map <F10> :call AddTrace()<CR>
+"map <F10> :call AddTrace()<CR>
+map <F10> :echo @%<CR>
au BufReadCmd *.docx,*.dotx,*.xlsx,*.pptx call zip#Browse(expand("<amatch>"))
au BufReadCmd *.odt,*.ott,*.ods,*.ots,*.odp,*.otp,*.odg,*.otg,*.oxt call zip#Browse(expand("<amatch>"))

0 comments on commit 45c17e5

Please sign in to comment.
Something went wrong with that request. Please try again.