Skip to content

Commit

Permalink
Vim: easily copy path to current file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabebw committed May 10, 2018
1 parent bc9050b commit 8c94f87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vimrc
Expand Up @@ -472,7 +472,7 @@ set expandtab
" }}}

" ============================================================================
" FUNCTIONS {{{
" FUNCTIONS and COMMANDS {{{
" ===========================================================================
function! s:EnsureNothingConflictsWithGrep()
" I type `<Leader>g` to pop up `:Grep ` then quickly start typing my search
Expand All @@ -488,6 +488,8 @@ function! s:EnsureNothingConflictsWithGrep()
endif
endfor
endfunction

command! CopyPath :let @+ = expand('%:p')
" }}}

" ============================================================================
Expand Down

0 comments on commit 8c94f87

Please sign in to comment.