| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim filetype plugin file | 
					
						
							|  |  |  | " Language:	C++ | 
					
						
							| 
									
										
										
										
											2023-08-13 10:33:05 +02:00
										 |  |  | " Maintainer:	The Vim Project <https://github.com/vim/vim> | 
					
						
							| 
									
										
										
										
											2024-06-06 18:44:30 +02:00
										 |  |  | " Last Change:	2024 Jun 06 | 
					
						
							| 
									
										
										
										
											2023-08-13 10:33:05 +02:00
										 |  |  | " Former Maintainer:	Bram Moolenaar <Bram@vim.org> | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Only do this when not done yet for this buffer | 
					
						
							|  |  |  | if exists("b:did_ftplugin") | 
					
						
							|  |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-26 17:00:44 +02:00
										 |  |  | " Behaves mostly just like C | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim | 
					
						
							| 
									
										
										
										
											2020-07-26 17:00:44 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-06 18:44:30 +02:00
										 |  |  | " Change 'commentstring' to "C++ style"/"mono-line" comments | 
					
						
							|  |  |  | setlocal commentstring=//\ %s | 
					
						
							|  |  |  | let b:undo_ftplugin ..= ' | setl commentstring<' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-26 17:00:44 +02:00
										 |  |  | " C++ uses templates with <things> | 
					
						
							|  |  |  | " Disabled, because it gives an error for typing an unmatched ">". | 
					
						
							|  |  |  | " set matchpairs+=<:> | 
					
						
							|  |  |  | " let b:undo_ftplugin ..= ' | setl matchpairs<' |