Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8228753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:34:04+00:00 2026-06-07T16:34:04+00:00

I`m using following VIM settings for folding: highlight Folded guibg=black guifg=#524A4D set foldmethod=syntax I`m

  • 0

I`m using following VIM settings for folding:

highlight Folded guibg=black guifg=#524A4D
set foldmethod=syntax

I`m also using Powerline plugin:

Bundle 'Lokaltog/vim-powerline'

I would like to save my foldings, so i found this two lines of code:

au BufWinLeave * silent! mkview
au BufWinEnter * silent! loadview

But after that my powerline status vanish after saving.
How to compare this three things.

I created screencast to show exactly whats going on:
http://screencast.com/t/ZnXTxdAVUZse

I think it is conflict between Powerline and mkview. So is then a chance to save foldings in other way??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:34:06+00:00Added an answer on June 7, 2026 at 4:34 pm

    I found a answer:

    set viewoptions-=options
    augroup vimrc
        autocmd BufWritePost *
        \   if expand('%') != '' && &buftype !~ 'nofile'
        \|      mkview
        \|  endif
        autocmd BufRead *
        \   if expand('%') != '' && &buftype !~ 'nofile'
        \|      silent loadview
        \|  endif
    augroup END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to fold function definitions in python code using Vim syntax based folding.
I’m using the following statusline setting in Vim: set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P It produces
I'm using the Tabularize plugin in Vim and have the following text: reg [321:123]
I'm using terminal Vim 7.3 on Mac OS X Lion and have the following
I'm using gvim and rails.vim and getting the following error when attempting to run
I'm using Vim to read man and I'm trying to set up a script
I want to do the following for multiple files using Vim: Copy all text
C.Vim works, as evidenced by the commands I've been using, syntax highlighting, and template.
I'm new to vim and I find that I am using the following command
I'm using vim 7.0. I want the following code be indented in the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.