aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2025-11-24 21:45:05 +0000
committerJustine Smithies <justine@smithies.me.uk>2025-11-24 21:45:05 +0000
commit29ba8618c0dae4361852ce9b2ece4c56fb9f7710 (patch)
tree1692b04e78a3411abc78e07fc2581db04d0511db
parentad02c4bea0eb3d8d65ff08f122e6bbeeee87242f (diff)
Make readonly only take up room on statusline if it's active
-rw-r--r--.vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index f366582..1a577dc 100644
--- a/.vimrc
+++ b/.vimrc
@@ -141,7 +141,7 @@ fun! StatusLineRenderer()
\ . '%{StatuslineGit()}'
\ . '%#DiffAdd#'
\ . ' %F '
- \ . ' %r '
+ \ . (&readonly ? ' r ' : '')
\ . (&modified ? ' + ' : '')
\ . '%#CursorColumn#%='
\ . ' %Y '