Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vim users: post your cool/useful config tips!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3327

PostPosted: Sun Jan 08, 2006 3:19 pm    Post subject: Reply with quote

sn4ip3r wrote:
Code:
echo "set insertmode" >> ~/.vimrc
will that work?
_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi

Cold is gods way to tell us to burn more Catholics
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 631

PostPosted: Sun Jan 08, 2006 3:27 pm    Post subject: Reply with quote

I don't like the default indentation behavior when pasting in vim. My solution is
Code:
set paste
set pastetoggle=<F11>
Back to top
View user's profile Send private message
sn4ip3r
Guru
Guru


Joined: 14 Dec 2002
Posts: 325
Location: Tallinn, Estonia

PostPosted: Sun Jan 08, 2006 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun Jan 08, 2006 5:21 pm    Post subject: Reply with quote

ErikM wrote:
I don't like the default indentation behavior when pasting in vim. My solution is
Code:
set paste
set pastetoggle=<F11>
Cool. 8)
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Saa
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138

PostPosted: Tue Jan 10, 2006 4:56 am    Post subject: Reply with quote

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
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Tue Jan 10, 2006 5:21 am    Post subject: Reply with quote

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
View user's profile Send private message
kiel.wells
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2004
Posts: 97

PostPosted: Tue Jan 10, 2006 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
omp
Retired Dev
Retired Dev


Joined: 10 Sep 2005
Posts: 1018
Location: Glendale, California

PostPosted: Fri Jan 13, 2006 5:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Daemonax
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 211

PostPosted: Fri Jan 13, 2006 6:19 am    Post subject: Reply with quote

Best tip for vim users ever... http://www.gnu.org/software/emacs/emacs.html :twisted:

/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
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2248

PostPosted: Tue Oct 16, 2012 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum