Skip to main content
17 events
when toggle format what by license comment
May 1, 2020 at 16:05 comment added D. Ben Knoble All, I've spent some time cleaning up the comments (moved relevant info into post). Please delete any others we no longer need. Further discussion can carry into Vi and Vim Chat :)
May 1, 2020 at 16:03 history edited D. Ben Knoble CC BY-SA 4.0
Add info from comments
May 1, 2020 at 15:25 history edited Cbhihe CC BY-SA 4.0
As before: fixed deal link to my ~/.vimrc on Github repo.
May 1, 2020 at 15:12 comment added filbranden @D.BenKnoble Restoring last cursor position is also in defaults.vim
May 1, 2020 at 14:48 history edited Cbhihe CC BY-SA 4.0
fixed dead link for 'vimrc'
Apr 18, 2020 at 18:40 vote accept Cbhihe
Apr 16, 2020 at 15:29 answer added Cbhihe timeline score: 3
Apr 16, 2020 at 15:18 history edited Cbhihe CC BY-SA 4.0
Simplified post
Apr 15, 2020 at 13:09 comment added D. Ben Knoble I’m not using views and I’m able to get to the last-edited line with a similar autocommand, folds or no... github.com/benknoble/Dotfiles/blob/…
Apr 15, 2020 at 11:26 comment added filbranden Yeah I thought as much, just wanted to double check... I'm puzzled at why this doesn't work for you, I can't reproduce it really... I'm not that knowledgeable in how Vim folding works, hopefully someone who knows it better than me will pitch in with a better suggestion on how to troubleshoot this.
Apr 15, 2020 at 11:17 comment added filbranden You said "except when markers are set manually", but when you're using foldmethod=marker, you have to add the markers (manually) for folding to work... Like, you need to add a # {{{ comment to begin a fold and a # }}} to end it. (Or a # {{{1 comment at each new top-level fold, using an explicit level also works.) Do you by any chance misunderstand how foldmethod=marker is supposed to work? See :help fold-marker...
Apr 15, 2020 at 8:15 history edited Cbhihe CC BY-SA 4.0
added info to original post to generalize issue to indent -based folds and to include shell scripts
Apr 15, 2020 at 7:59 history edited Cbhihe CC BY-SA 4.0
Completed section "edit" as a response to comment.
Apr 15, 2020 at 7:47 history edited Cbhihe CC BY-SA 4.0
Added Edit section as a response to a comment
Apr 15, 2020 at 5:49 comment added filbranden With the setup you described... What does :verbose set filetype? foldmethod? foldmarker? return? Wondering if any of your settings are being overwritten elsewhere... When you say it doesn't work, what do you mean? It doesn't fold at all? It folds the incorrect blocks? What if you use a command such as zM to fold everything? Can you share a small reproducer Python file with the markers where this doesn't do what you expect it to?
Apr 14, 2020 at 20:36 history edited Cbhihe CC BY-SA 4.0
more explicit title
Apr 14, 2020 at 20:28 history asked Cbhihe CC BY-SA 4.0