summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 42e2e6c..738ff3d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -193,9 +193,10 @@ let g:go_gopls_enabled = 1
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>
+noremap ge :e <cword>
" create a tag entry for current filename
" noremap gt :!echo "% % 1" >> tags; LC_ALL=C sort -o tags -u tags
noremap <leader>t :!echo "% % 1" >> tags; LC_ALL=C sort -o tags -u tags
noremap 
noremap ,, 
+autocmd BufNewFile,BufRead ~/src/notes/* set autowrite