Skip to content

Commit

Permalink
Indent on paste
Browse files Browse the repository at this point in the history
  • Loading branch information
philc committed Apr 3, 2013
1 parent ac4be8f commit 88dca4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vimrc
Expand Up @@ -38,6 +38,9 @@ set colorcolumn=110 " Show a margin indicator.
let &wrapmargin= &textwidth
set formatoptions=croql " Now it shouldn't hard-wrap long lines as you're typing (annoying), but you can gq
" as expected.
" Indent lines after pasting them. Important for when you paste a line inside an if block and it's not
" indented properly inside the if. If this has bad edge cases, try https://github.com/sickill/vim-pasta
nnoremap p p`[v`]=
" Tabs
set tabstop=2 "the width hard tab characters are rendered.
Expand Down

0 comments on commit 88dca4e

Please sign in to comment.