I have never run into this directly in vim for my uses, but it appears to me to be a syntactical coding plugin to condense related code blocks such as functions like GVim does. I think this is called code folding. Try the following link.
Thank you, it appears the folding is the term I should have used in my search.
Putting
set foldlevelstart=1
in the ~/.vimrc didn’t seem to do anything, bit zR in the editor did. Now that I know what it is called I can probably search and figure out how to just turn it off, I don’t like it.
set nofoldenable
That in .vimrc works in the version of vim in CentOS 7 but allegedly it still will fold in some contexts
Gah – that seems to work but now when doing a git commit I get a warning that the option is recognized.
I do NOT get that warning when editing a file.
What the hell ever happened to KISS ?
git config –global core.editor vim
seemed to fix issue, seems by default git uses vi in some mode that doesn’t understand that option.
6 thoughts on - Stupid Vim Question
http://superuser.com/questions/278442/how-to-make-vim-not-fold-everything-automatically
I have never run into this directly in vim for my uses, but it appears to me to be a syntactical coding plugin to condense related code blocks such as functions like GVim does. I think this is called code folding. Try the following link.
http://stackoverflow.com/questions/1744440/collapse-comments-and-all-functions-in-vim-gvim
Thank you, it appears the folding is the term I should have used in my search.
Putting
set foldlevelstart=1
in the ~/.vimrc didn’t seem to do anything, bit zR in the editor did. Now that I know what it is called I can probably search and figure out how to just turn it off, I don’t like it.
set nofoldenable
That in .vimrc works in the version of vim in CentOS 7 but allegedly it still will fold in some contexts
Gah – that seems to work but now when doing a git commit I get a warning that the option is recognized.
I do NOT get that warning when editing a file.
What the hell ever happened to KISS ?
git config –global core.editor vim
seemed to fix issue, seems by default git uses vi in some mode that doesn’t understand that option.