Mercurial > vim
comparison runtime/doc/filetype.txt @ 35717:99d97826842a
runtime(go): add recommended indent options to ftplugin
Commit: https://github.com/vim/vim/commit/3e07d5aef19ac34a61b9d58c2e0698351d392f52
Author: markmacode <code@mamo.aleeas.com>
Date: Tue Jul 16 21:20:34 2024 +0200
runtime(go): add recommended indent options to ftplugin
related: https://github.com/vim/vim/issues/15264
Signed-off-by: markmacode <code@mamo.aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 17 Jul 2024 08:14:01 +0200 |
parents | 8195572b0b15 |
children | d30ad7f335cb |
comparison
equal
deleted
inserted
replaced
35716:8195572b0b15 | 35717:99d97826842a |
---|---|
1 *filetype.txt* For Vim version 9.1. Last change: 2024 Jul 15 | 1 *filetype.txt* For Vim version 9.1. Last change: 2024 Jul 16 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
639 One command, :DiffGitCached, is provided to show a diff of the current commit | 639 One command, :DiffGitCached, is provided to show a diff of the current commit |
640 in the preview window. It is equivalent to calling "git diff --cached" plus | 640 in the preview window. It is equivalent to calling "git diff --cached" plus |
641 any arguments given to the command. | 641 any arguments given to the command. |
642 | 642 |
643 | 643 |
644 GO *ft-go-plugin* | |
645 | |
646 By default the following options are set, based on Golang official docs: > | |
647 | |
648 setlocal noexpandtab softtabstop=0 shiftwidth=0 | |
649 | |
650 To disable this behavior, set the following variable in your vimrc: > | |
651 | |
652 let g:go_recommended_style = 0 | |
653 | |
654 | |
644 GPROF *ft-gprof-plugin* | 655 GPROF *ft-gprof-plugin* |
645 | 656 |
646 The gprof filetype plugin defines a mapping <C-]> to jump from a function | 657 The gprof filetype plugin defines a mapping <C-]> to jump from a function |
647 entry in the gprof flat profile or from a function entry in the call graph | 658 entry in the gprof flat profile or from a function entry in the call graph |
648 to the details of that function in the call graph. | 659 to the details of that function in the call graph. |