| View previous topic :: View next topic |
| Author |
Message |
cokehabit Advocate


Joined: 23 Apr 2004 Posts: 3302
|
Posted: Sun Jan 08, 2006 3:19 pm Post subject: |
|
|
| sn4ip3r wrote: | | Code: | | echo "set insertmode" >> ~/.vimrc |
| will that work? |
|
| Back to top |
|
 |
erikm l33t

Joined: 08 Feb 2005 Posts: 622
|
Posted: Sun Jan 08, 2006 3:27 pm Post subject: |
|
|
I don't like the default indentation behavior when pasting in vim. My solution is | Code: | set paste
set pastetoggle=<F11> |
|
|
| Back to top |
|
 |
sn4ip3r Guru


Joined: 14 Dec 2002 Posts: 325 Location: Tallinn, Estonia
|
Posted: Sun Jan 08, 2006 4:22 pm Post subject: |
|
|
| cokehabit wrote: | | sn4ip3r wrote: | | Code: | | echo "set insertmode" >> ~/.vimrc |
| will that work? |
It will work, it makes insertion mode the default mode which can't be turned of by just pressing escape. Might seem strange if you are very used to using normal mode, it basically cripples vim  |
|
| Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun Jan 08, 2006 5:21 pm Post subject: |
|
|
| ErikM wrote: | I don't like the default indentation behavior when pasting in vim. My solution is | Code: | set paste
set pastetoggle=<F11> |
| Cool.  _________________ ~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF |
|
| Back to top |
|
 |
Saa Tux's lil' helper


Joined: 03 Jul 2004 Posts: 138
|
Posted: Tue Jan 10, 2006 4:56 am Post subject: |
|
|
| At first I really didn't like vim's exec/normal mode in my wee years as a complete newb. Now I know better and loves it. |
|
| Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Tue Jan 10, 2006 5:21 am Post subject: |
|
|
omp just reminded me about nowrap. Thanks omp! _________________ ~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF |
|
| Back to top |
|
 |
kiel.wells Tux's lil' helper


Joined: 10 Sep 2004 Posts: 97
|
Posted: Tue Jan 10, 2006 5:31 am Post subject: |
|
|
I wish I still had a flavor of linux installed so that I could use vim in it's true environment.
Currently I have gvim installed on windows, but I rarely have anything to use it for, as I'm not much of a programmer. _________________ AMD Athlon64 3000+ Winchester Core @ 1.813 GHz
Asus A8N5X
2GB RAM (4x512) PC3200 400MHz
1 200 GB HDD (SATA), 1 250GB HDD (SATA)
1 NEC DVD-RW, 1 DVD-R/CD-RW
420W Enermax ATX 2.0 |
|
| Back to top |
|
 |
omp Retired Dev


Joined: 10 Sep 2005 Posts: 1018 Location: Glendale, California
|
Posted: Fri Jan 13, 2006 5:42 am Post subject: |
|
|
| codergeek42 wrote: | | omp just reminded me about nowrap. Thanks omp! | Heh.
| Code: | colorscheme delek
set autoindent
set history=1000
set ignorecase
set incsearch
set nobackup
set nocompatible
set nohlsearch
set nowrap
set number
set ruler
set showcmd
set tabstop=4
set title
set ttyfast
syntax on |
I'm wondering whether or not I should remove the set number. _________________ meow. |
|
| Back to top |
|
 |
Daemonax Apprentice


Joined: 30 Apr 2004 Posts: 211
|
Posted: Fri Jan 13, 2006 6:19 am Post subject: |
|
|
Best tip for vim users ever... http://www.gnu.org/software/emacs/emacs.html
/me runs away.
PS: Version 22 coming out very soon. _________________ The God idea is growing more impersonal and nebulous in proportion as the human mind is learning to understand natural phenomena and in the degree that science progressively correlates human and social events. -- Emma Goldman |
|
| Back to top |
|
 |
khayyam Veteran


Joined: 07 Jun 2012 Posts: 1307
|
Posted: Tue Oct 16, 2012 3:52 pm Post subject: |
|
|
| erikm wrote: | I don't like the default indentation behavior when pasting in vim. My solution is
| Code: | set paste
set pastetoggle=<F11> |
|
erikm ... if vim is compiled with +clipboard (USE="X") then you can use the "* or "+ registers eg: "*p
Using a register is much faster, and is more like :r and avoids the 'thrashing' (typical of paste). Compare the following:
| Code: | # xclip -i bigfile.txt
# vim
:set paste
(paste x11 clipboard) |
... and
| Code: | # xclip -i bigfile.txt
# vim
"*p |
The later will 'paste' almost instantaniously, while the former will 'thrash' as each char/line is copied from the X11 clipboard into the file. See :help x11-selection and :help registers
Hopefully the above justifies the necromancy :)
best ... khay |
|
| Back to top |
|
 |
|