A Vim Tip: How to copy content of work directory
2011-06-13 22:42
447 查看
""""""""""""""""""""""""""""""""""""""""""""""""""
" Get content of work directory 10/06/13
""""""""""""""""""""""""""""""""""""""""""""""""""
imap <C-p> <ESC>:let @"=getcwd()<CR>""pa
nmap <C-p> <ESC>:let @"=getcwd()<CR>""p
" You also can do it like this in command mode:
:redir @"
:pwd
:redir END
" Get content of work directory 10/06/13
""""""""""""""""""""""""""""""""""""""""""""""""""
imap <C-p> <ESC>:let @"=getcwd()<CR>""pa
nmap <C-p> <ESC>:let @"=getcwd()<CR>""p
" You also can do it like this in command mode:
:redir @"
:pwd
:redir END
相关文章推荐
- How can I get “Copy to Output Directory” to work with Unit Tests?
- git tip: How to undo an uncommitted change/deletion for a specific file in your working directory
- [zz]How to use Fiddler and HTTP replay to have an offline copy of your site
- How to use Fiddler and HTTP replay to have an offline copy of your site
- 关于The target "GetCopyToOutputDirectoryContentProjectItems" does not exist in the project.的解决方法
- How to print the content of a Rich Edit Control
- How to copy the contents of std::vector to c-style static array,safely?
- How to Fix “HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents of this directory”
- 1. How to Inspect the Content of a Program Data...
- How to align content of a div to the bottom with css?
- How do you copy the contents of an array to a std::vector in C++ without looping? (From stack over flow)
- copy the content of a file to another file.
- How to make a Point Grey camera work with DirectShow applications/ Drivers of USB3.0 Cameras
- 如何窥探PDB的秘密?(How to Inspect the Content of a Program Database (PDB) File)
- How to copy values of an array into another array
- Siebel Symbolic URL: How to configure Displaying External Content Outside of an Applet
- (iPhone/iPad开发)how to browse the document directory of iOS Devices
- wp 不存在目标GetCopyToOutputDirectoryContentProjectItems的错误
- How to Build Your Own Blockchain Part 4.1 — Bitcoin Proof of Work Difficulty Explained
- How to effectively work with multiple files in Vim?