Home Explore Blog CI



neovim

8th chunk of `runtime/doc/filetype.txt`
afe669d4bd6ed88e474619c00652744db0b2d013ef7c54920000000100000fa3
 the
			ChangeLog's pathname and the current buffers pathname.
			In the future, it will also be possible to use other
			variable contexts for this variable, for example, g:.

The Changelog entries are inserted where they add the least amount of text.
After figuring out the current date and user, the file is searched for an
entry beginning with the current date and user and if found adds another item
under it.  If not found, a new entry and item is prepended to the beginning of
the Changelog.


FORTRAN							*ft-fortran-plugin*

Options:
'expandtab'	is switched on to avoid tabs as required by the Fortran
		standards unless the user has set fortran_have_tabs in vimrc.
'textwidth'	is set to 80 for fixed source format whereas it is set to 132
		for free source format. Setting the fortran_extended_line_length
		variable increases the width to 132 for fixed source format.
'formatoptions' is set to break code and comment lines and to preserve long
		lines.  You can format comments with |gq|.
For further discussion of fortran_have_tabs and the method used for the
detection of source format see |ft-fortran-syntax|.


FREEBASIC						*ft-freebasic-plugin*

This plugin aims to treat the four FreeBASIC dialects, "fb", "qb", "fblite"
and "deprecated", as distinct languages.

The dialect will be set to the first name found in g:freebasic_forcelang, any
#lang directive or $lang metacommand in the file being edited, or finally
g:freebasic_lang.  These global variables conceptually map to the fbc options
-forcelang and -lang.  If no dialect is explicitly specified "fb" will be
used.

For example, to set the dialect to a default of "fblite" but still allow for
any #lang directive overrides, use the following command: >

	let g:freebasic_lang = "fblite"


GDSCRIPT						*ft-gdscript-plugin*

By default the following options are set, based on Godot official docs: >

	setlocal noexpandtab softtabstop=0 shiftwidth=0

To disable this behavior, set the following variable in your vimrc: >

	let g:gdscript_recommended_style = 0


GIT COMMIT						*ft-gitcommit-plugin*

One command, :DiffGitCached, is provided to show a diff of the current commit
in the preview window.  It is equivalent to calling "git diff --cached" plus
any arguments given to the command.

GIT REBASE						*ft-gitrebase-plugin*

The gitrebase filetype defines the following buffer-local commands, to help
with interactive `git rebase`: >

	:Drop   " to discard this commit
	:Edit   " to stop for editing this commit
	:Fixup  " to squash (but discard the message) into the previous one
	:Pick   " to pick this commit (the cursor is on)
	:Reword " to pick this commit, but change the commit message
	:Squash " to squash this commit into the previous one

In addition, the following command can be used to cycle between the different
possibilities: >

	:Cycle  " to cycle between the previous commands
<
The `:Cycle` command is also mapped to the CTRL-A and CTRL-X keys.
For details, see `git-rebase --help`.

GLEAM						*ft-gleam-plugin*

By default the following options are set for the recommended gleam style: >

	setlocal expandtab shiftwidth=2 softtabstop=2

To disable this behavior, set the following variable in your vimrc: >

	let g:gleam_recommended_style = 0

GO							*ft-go-plugin*

By default the following options are set, based on Golang official docs: >

	setlocal noexpandtab softtabstop=0 shiftwidth=0

To disable this behavior, set the following variable in your vimrc: >

	let g:go_recommended_style = 0


GPROF							*ft-gprof-plugin*

The gprof filetype plugin defines a mapping <C-]> to jump from a function
entry in the gprof flat profile or from a function entry in the call graph
to the details of that function in the call graph.

The mapping can be disabled with: >
	let g:no_gprof_maps = 1


HARE							*ft-hare*

Since the text for this plugin is rather long it has been put in a separate
file: |ft_hare.txt|.

HTML							*ft-html-plugin*

Tag folding poses a few difficulties.  Many elements,

Title: Filetype Plugin Details for Fortran, FreeBASIC, GDSCRIPT, Git, Gleam, Go, GPROF, Hare, and HTML
Summary
This section details various filetype plugins for Vim, including Fortran, FreeBASIC, GDSCRIPT, Git Commit/Rebase, Gleam, Go, GPROF, Hare, and HTML. It covers specific options and commands for each, such as tab settings and line length for Fortran, dialect settings for FreeBASIC, recommended styles for GDSCRIPT, Git commit diffing, Git rebase commands, Gleam styling, Go formatting, GPROF mapping, and a separate file for Hare. Tag folding in HTML is also mentioned.