Simplify snippet in Readme.

This commit is contained in:
Lifepillar
2016-05-22 00:15:02 +02:00
parent a2132f8e7d
commit 9c1c6057ae

View File

@@ -72,7 +72,7 @@ If you want to quickly toggle between dark and light background, you may define
a mapping like the following:
```
nnoremap <leader>B :<c-u>exe "colors" (get(g:, "colors_name", "") =~# "dark"
nnoremap <leader>B :<c-u>exe "colors" (g:colors_name =~# "dark"
\ ? substitute(g:colors_name, 'dark', 'light', '')
\ : substitute(g:colors_name, 'light', 'dark', '')
\ )<cr>