summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 7351794..f47b7b8 100644
--- a/.vimrc
+++ b/.vimrc
@@ -182,3 +182,11 @@ augroup END
" Git blame
command! Blame normal!:let @a=expand('%')<CR>:let @b=line('.')<CR>:new<CR>:set bt=nofile<CR>:%!git blame -wM --date=short <C-R>a<CR>:<C-R>b<CR>
+
+" edit current word as file
+noremap ge :e <cWORD>
+" create a tag entry for current filename
+noremap gt :!echo "% % 1" >> tags; sort -o tags -u tags
+
+" create a file form word and index it in tags
+map gf "ayeo"apI:!touch "bdd@b o"apA "apA 1' >> tags; sort -o tags -u tagsI:!echo '"bdd@b