Sourcing.vimrc breaks all of these iabbrev

40 views
Skip to first unread message

stosss

unread,
Jan 14, 2013, 8:24:40 PM1/14/13
to Vim Users
I just started creating :iabbrev for all sorts of simple things. They
all work just fine when Vim starts but they all break when .vimrc is
sourced.

I don't understand.

sc

unread,
Jan 14, 2013, 9:57:20 PM1/14/13
to vim...@googlegroups.com
I don't either -- when vim starts is not .vimrc sourced automatically?
And isn't .vimrc where you've defined them?

sc

Chris Schneider

unread,
Jan 14, 2013, 10:53:54 PM1/14/13
to vim...@googlegroups.com
I just tried to reproduce this and couldn't. 

I setup a vimrc iabbrev, launched and it worked. Then did :source ~/.vimrc and the ibbrev still worked.  So presumably there's something else weird going on in your vimrc?  Maybe a plugin is clearing them?



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

stosss

unread,
Jan 14, 2013, 11:19:37 PM1/14/13
to vim...@googlegroups.com
Yes to both questions

stosss

unread,
Jan 14, 2013, 11:21:54 PM1/14/13
to vim...@googlegroups.com
On Mon, Jan 14, 2013 at 10:53 PM, Chris Schneider
<ch...@christopher-schneider.com> wrote:
> I just tried to reproduce this and couldn't.
>
> I setup a vimrc iabbrev, launched and it worked. Then did :source ~/.vimrc
> and the ibbrev still worked. So presumably there's something else weird
> going on in your vimrc? Maybe a plugin is clearing them?
>
>
> On Mon, Jan 14, 2013 at 6:24 PM, stosss <sto...@gmail.com> wrote:
>>
>> I just started creating :iabbrev for all sorts of simple things. They
>> all work just fine when Vim starts but they all break when .vimrc is
>> sourced.
>>
>> I don't understand.
>>

No plugins accept DrChips align plugin

Christian Brabandt

unread,
Jan 15, 2013, 1:47:38 AM1/15/13
to vim...@googlegroups.com
Please be more specific. How do you start Vim, such that no
.vimrc is sourced? What makes you think, that after sourcing your
.vimrc it breaks your abbreviations? Do you get an error message
and if so which one? Where do you create your iabbrev without
the .vimrc? What does your .vimrc look like? Is there a simple way to
reproduce your issue?

Those are just the couple of questions I can think of.

regards,
Christian

sc

unread,
Jan 15, 2013, 4:43:47 AM1/15/13
to vim...@googlegroups.com
then you are contradicting yourself -- if they work when vim starts,
they work when vim is sourced, since that includes sourcing .vimrc --
how else could they work

sc

stosss

unread,
Jan 15, 2013, 6:06:11 AM1/15/13
to vim...@googlegroups.com
Starting gvim from shell or from GUI icon the :iabbrev commands work
:source $MYVIMRC they stop working.

Starting vim from the shell they don't work period not even new ones
typed at the command line.

These are simple ones like this
:iabbrev od do
:iabbrev adn and

Christian Brabandt

unread,
Jan 15, 2013, 6:28:14 AM1/15/13
to vim...@googlegroups.com
Do you have somehow 'paste' set? Again, please answer all questions
given above (e.g. show your $MYVIMRC).

regards,
Christian

stosss

unread,
Jan 15, 2013, 6:47:40 AM1/15/13
to vim...@googlegroups.com
SOLVED
Thanks Christian, set paste was the problem. When I saw your question
I looked up :help paste and there was the answer. set paste disables a
lot of things. I removed set paste from .vimrc so maybe some other
things that I just avoided will work properly now.
Reply all
Reply to author
Forward
0 new messages