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
fa3f39b0
Commit
fa3f39b0
authored
2 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Add shortcut for changing conceallevel
parent
29c6f8c2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.vimrc
+10
-0
10 additions, 0 deletions
.vimrc
with
10 additions
and
0 deletions
.vimrc
+
10
−
0
View file @
fa3f39b0
...
@@ -1259,8 +1259,18 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
...
@@ -1259,8 +1259,18 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
if
has
(
'conceal'
)
if
has
(
'conceal'
)
set
conceallevel
=
2
concealcursor
=
niv
set
conceallevel
=
2
concealcursor
=
niv
endif
endif
" Allows for toggling conceal level easily
" https://alok.github.io/2018/04/26/using-vim-s-conceal-to-make-languages-more-tolerable/
function
!
ToggleConcealLevel
()
if
&
conceallevel
==
0
setlocal
conceallevel
=
2
else
setlocal
conceallevel
=
0
endif
endfunction
endfunction
nnoremap
<
silent
>
<
Leader
>
tc
:
call
ToggleConcealLevel
()<
CR
>
" For more convenient vimdiffing
" For more convenient vimdiffing
if
&
diff
if
&
diff
...
...
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