Skip to content
Snippets Groups Projects
  • Patrick Palka's avatar
    914966e4
    contrib/vimrc: detect more C-like files · 914966e4
    Patrick Palka authored
    Currently this script doesn't set the indentation style for the standard
    library headers under libstdc++/ because they lack a file extension.
    But they do have a modeline, so the file type is still set appropriately
    by Vim.  So by inspecting &filetype, we can also detect these standard
    library headers as C-like files.
    
    contrib/ChangeLog:
    
    	* vimrc (SetStyle): Also inspect &filetype to determine whether
    	a file is C-like.
    914966e4
    History
    contrib/vimrc: detect more C-like files
    Patrick Palka authored
    Currently this script doesn't set the indentation style for the standard
    library headers under libstdc++/ because they lack a file extension.
    But they do have a modeline, so the file type is still set appropriately
    by Vim.  So by inspecting &filetype, we can also detect these standard
    library headers as C-like files.
    
    contrib/ChangeLog:
    
    	* vimrc (SetStyle): Also inspect &filetype to determine whether
    	a file is C-like.