Skip to content

Commit

Permalink
✨ copy filename, filepath, relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRichardH committed Mar 28, 2019
1 parent 80c30b7 commit a246623
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gitignore.local
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.tool-version
.tool-versions-e
.tern-port

11 changes: 10 additions & 1 deletion vimrc.local
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
" Theme

set mouse=a
" set mouse=a
set visualbell
syntax enable

Expand Down Expand Up @@ -116,3 +116,12 @@ let g:deoplete#sources#ternjs#filetypes = [
\ 'jsx',
\ 'javascript.jsx'
\ ]

" Copy filename to clipboard

" name of file ('tail')
nnoremap <silent> <Leader>cfn :let @*=expand('%:t')<CR>
" directory/name of file (relative to the current working directory of
nnoremap <silent> <Leader>crp :let @*=expand("%")<CR>
" full path
nnoremap <silent> <Leader>cfp :let @*=expand("%:p")<CR>

0 comments on commit a246623

Please sign in to comment.