From: | James <wireless@×××××××××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | [gentoo-user] Re: Paste into vim keeping indention or original? | ||
Date: | Thu, 27 Jan 2011 22:40:24 | ||
Message-Id: | loom.20110127T233531-240@post.gmane.org | ||
In Reply to: | [gentoo-user] Paste into vim keeping indention or original? by Mark Knecht |
1 | Mark Knecht <markknecht <at> gmail.com> writes: |
2 | |
3 | |
4 | > What is the solution to begin able to paste code I find on the web |
5 | > into a file in vim and being able to keep the indentation from |
6 | > changing? |
7 | |
8 | |
9 | Well, if you want to keep it simple, here is what I do: |
10 | edit /etc/vim/vimrc |
11 | |
12 | "set ai " Always set auto-indenting on |
13 | set noai " No auto indenting (James added this |
14 | |
15 | |
16 | |
17 | now pasting into with vi does not indent deeper with each line. |
18 | |
19 | hth, |
20 | James |