Last active
April 13, 2019 09:41
-
-
Save YanhaoYang/ee2c71b7a851efbfff2c87f31db5f7e8 to your computer and use it in GitHub Desktop.
Some notes for vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Copy from Vim to clipboard | |
vmap <leader>x :w! ~/.vbuf<cr>:!cat ~/.vbuf \| xclip -in -sel clip<cr><cr> | |
" Strip rspec outputs | |
:%s/rspec \(.\{-}\) #.\+/\1 \\/gc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment