Skip to content

Commit

Permalink
Merge pull request square#161 from square/donovan/dont-copy-replaced-…
Browse files Browse the repository at this point in the history
…selections

Don't copy the contents of an overwritten selection.
  • Loading branch information
eventualbuddha committed Jun 2, 2014
2 parents e473c4a + a11cd81 commit 090bc03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ peace-loving hippies. Built for Mac OS X.
* `\\\` toggles current line comment
* `\\` toggles visual selection comment lines
* `vii`/`vai` visually select *in* or *around* the cursor's indent
* `Vp`/`vp` replaces visual selection with default register *without* yanking selected text (works with any visual selection)
* `,[space]` strips trailing whitespace
* `<C-]>` jump to definition using ctags
* `,l` begins aligning lines on a string, usually used as `,l=` to align assignments
Expand Down
3 changes: 3 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ else
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif

" Don't copy the contents of an overwritten selection.
vnoremap p "_dP
" Go crazy!
if filereadable(expand("~/.vimrc.local"))
" In your .vimrc.local, you might like:
Expand Down

0 comments on commit 090bc03

Please sign in to comment.