From 9c1c6057aeb49ff5303495855f906da03888445d Mon Sep 17 00:00:00 2001 From: Lifepillar Date: Sun, 22 May 2016 00:15:02 +0200 Subject: [PATCH] Simplify snippet in Readme. --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 075338a..95a3c53 100644 --- a/Readme.md +++ b/Readme.md @@ -72,7 +72,7 @@ If you want to quickly toggle between dark and light background, you may define a mapping like the following: ``` -nnoremap B :exe "colors" (get(g:, "colors_name", "") =~# "dark" +nnoremap B :exe "colors" (g:colors_name =~# "dark" \ ? substitute(g:colors_name, 'dark', 'light', '') \ : substitute(g:colors_name, 'light', 'dark', '') \ )