mirror of
				https://github.com/mhinz/vim-galore.git
				synced 2025-11-04 20:05:36 +08:00 
			
		
		
		
	Usage: add section for true colors
This commit is contained in:
		
							
								
								
									
										17
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								README.md
									
									
									
									
									
								
							@@ -75,6 +75,7 @@
 | 
			
		||||
- [Running external programs and using filters](#running-external-programs-and-using-filters)
 | 
			
		||||
- [Cscope](#cscope)
 | 
			
		||||
- [MatchIt](#matchit)
 | 
			
		||||
- [True colors](#true-colors)
 | 
			
		||||
 | 
			
		||||
### [Tips](#tips-1)
 | 
			
		||||
 | 
			
		||||
@@ -1938,6 +1939,22 @@ Help:
 | 
			
		||||
:h b:match_words
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## True colors
 | 
			
		||||
 | 
			
		||||
Using true colors in a terminal emulator means being able to use 24 bits for RGB
 | 
			
		||||
colors. That makes 16777216 (2^24) colors instead of the usual 256.
 | 
			
		||||
 | 
			
		||||
As explained [here](#colorschemes), colorschemes can actually be _two_
 | 
			
		||||
colorschemes by having definitions for terminals (xterm) and for GUIs (gvim).
 | 
			
		||||
This made sense before terminal emulators learned about true colors.
 | 
			
		||||
 | 
			
		||||
After `:set termguicolors`, Vim starts emitting escape sequences only understood
 | 
			
		||||
by a terminal emulator that supports true colors. When your colors look weird,
 | 
			
		||||
chances are your terminal emulator doesn't support true colors or your
 | 
			
		||||
colorcheme has no GUI colors defined.
 | 
			
		||||
 | 
			
		||||
Help: `:h 'termguicolors'`
 | 
			
		||||
 | 
			
		||||
# Tips
 | 
			
		||||
 | 
			
		||||
## Saner behavior of n and N
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user