Created
September 23, 2016 01:48
-
-
Save chaonan99/b0f660dad424675bc2eaeae27c62493c to your computer and use it in GitHub Desktop.
My .vimrc setting
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
" Color on | |
syntax on | |
" Set line number, this is convenient when using <jk> to move forward and backward | |
set number | |
set relativenumber | |
" This allows command `W` to write file with sudo privilege | |
command W w !sudo tee % >/dev/null | |
" This allows copy to system clipboard in Windows and OS X | |
set clipboard=unnamed | |
" In OS X, use `:w !pbcopy` to copy the whole file | |
" `:4,8w !pbcopy` to copy selected lines | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment