Results 1 to 4 of 4

Thread: Behavior of the buffers in Vim

  1. #1
    Join Date
    Jul 2009
    Posts
    188

    Behavior of the buffers in Vim

    Hello,
    I have a small problem with (g) Vim. I use this one for programming in C + + and I travel a lot between different files (buffers) in the same tab. For example, to browse the tags with Ctrl-] or to quickly switch between. H and. Cpp. The problem is that when it displays another buffer on the screen, Vim compels us that the precedent be preserved and saved it also deletes all historical changes. Exist there a way to change this behavior? Make sure that the buffers can remain unregistered (and keep all their change history) even if it is not displayed in any tab? Thank you for your help.

  2. #2
    Join Date
    May 2008
    Posts
    4,345

    Re: Behavior of the buffers in Vim

    Hello
    The problem is that when it displays another buffer on the screen, Vim compels us that the precedent be preserved and saved it also deletes all historical changes.
    You said that you have an option in your vim, this sounds weird because I did not. I think it autowrite. Otherwise, you can spliter your windows for all your open buffers simultaneously.

  3. #3
    Join Date
    Jul 2009
    Posts
    188

    Re: Behavior of the buffers in Vim

    Hi
    No I do not have that option enabled in my vimrc. And even if I delete my vimrc to get the default configurations, AC is the same behavior as "^ /"
    I am posting an example, please have a look.
    Code:
    vim example.txt tata.txt
    b example.txt
    b tata.txt
    "E37: Changes not saved (add to override)
    I can not pass a buffer tata.txt without making saves on storage example.txt
    For the solution of the split is not always respected following especially when it sailed into the source code of a program with CTRL-]
    Would you have alternative solution?

  4. #4
    Join Date
    May 2008
    Posts
    4,345

    Re: Behavior of the buffers in Vim

    Hello
    Code:
    For the solution of the split is not always respected following especially when it sailed into the source code of a program with CTRL-]
    This can come from any / etc / vimrc or equivalent. It is best that you look at the options that you have to enabled with a "set". From there you can make "h" on the options that you do not know.

Similar Threads

  1. NBA league buffers on apple TV via internet.
    By Shiraj in forum Monitor & Video Cards
    Replies: 4
    Last Post: 06-01-2012, 10:25 PM
  2. strange cursor behavior
    By selif in forum Operating Systems
    Replies: 5
    Last Post: 08-03-2011, 08:48 PM
  3. ORDER BY behavior in 9i and 10g databases
    By garfield1 in forum Software Development
    Replies: 4
    Last Post: 25-02-2010, 10:13 PM
  4. what are the behavior of virus
    By Bindusar in forum Networking & Security
    Replies: 5
    Last Post: 18-12-2009, 06:13 AM
  5. Replies: 3
    Last Post: 30-07-2009, 03:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,537,695.50527 seconds with 16 queries