Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dotfiles
vim
Commits
fba8acbc
Commit
fba8acbc
authored
May 26, 2020
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Add vim folding documentation
parent
4130dce7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.vimrc
+19
-0
19 additions, 0 deletions
.vimrc
with
19 additions
and
0 deletions
.vimrc
+
19
−
0
View file @
fba8acbc
...
@@ -459,6 +459,25 @@ let g:syntastic_quiet_messages = { 'regex': [
...
@@ -459,6 +459,25 @@ let g:syntastic_quiet_messages = { 'regex': [
" Maintain folds and cursor placement
" Maintain folds and cursor placement
set
viewoptions
=
cursor
,
folds
,
slash
,
unix
set
viewoptions
=
cursor
,
folds
,
slash
,
unix
" Vim folding commands
" ---------------------------------
" zf#j creates a fold from the cursor down # lines.
" zf/ string creates a fold from the cursor to string .
" zj moves the cursor to the next fold.
" zk moves the cursor to the previous fold.
" za toggle a fold at the cursor.
" zo opens a fold at the cursor.
" zO opens all folds at the cursor.
" zc closes a fold under cursor.
" zm increases the foldlevel by one.
" zM closes all open folds.
" zr decreases the foldlevel by one.
" zR decreases the foldlevel to zero -- all folds will be open.
" zd deletes the fold at the cursor.
" zE deletes all folds.
" [z move to start of open fold.
" ]z move to end of open fold.
" FastFold by Enno settings
" FastFold by Enno settings
nmap zuz
<
Plug
>(
FastFoldUpdate
)
nmap zuz
<
Plug
>(
FastFoldUpdate
)
let
g:fastfold_savehook
=
1
let
g:fastfold_savehook
=
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment