Results 1 to 3 of 3

Thread: Vim config question....

  1. #1
    Join Date
    Sep 2007
    Beans
    102
    Distro
    Ubuntu

    Vim config question....

    I have the following code that I found in my vim config to enable the saving of manual folds:

    Code:
    au BufWinLeave * mkview 1
    au BufWinEnter * silent loadview 1
    and every time I open a new window split or any other empty document, it comes up with
    Code:
    Error detected while processing BufWinEnter Auto commands for "*":
    E32: No file name
    which is a non issue really cause it's just saying that theres no saved folds for a nonexistent document, but I'd like to get rid of that banner if I could, it's kind of annoying. Anyone got any ideas?

  2. #2
    Join Date
    Jul 2009
    Location
    London
    Beans
    1,480
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Vim config question....

    Code:
    au BufWinLeave ?* mkview 1
    au BufWinEnter ?* silent loadview 1
    to prevent matching empty filenames?

  3. #3
    Join Date
    Sep 2007
    Beans
    102
    Distro
    Ubuntu

    Re: Vim config question....

    Quote Originally Posted by DaithiF View Post
    Code:
    au BufWinLeave ?* mkview 1
    au BufWinEnter ?* silent loadview 1
    to prevent matching empty filenames?
    so simple! It worked, thanks!

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
  •