Difference between revisions of "D in Vim"
(Add Tagbar & Neovim section) |
|||
Line 38: | Line 38: | ||
To install Vundle see the [https://github.com/gmarik/Vundle.vim#quick-start Quick Start] section on Vundle's site. | To install Vundle see the [https://github.com/gmarik/Vundle.vim#quick-start Quick Start] section on Vundle's site. | ||
+ | =Tagbar= | ||
+ | |||
+ | It also possible to display a tagbar of all all declared functions, classes etc. | ||
+ | Please follow the instructions of [https://github.com/majutsushi/tagbar tagbar]'s [https://github.com/majutsushi/tagbar/wiki#d Wiki]. | ||
+ | |||
+ | =Neovim= | ||
+ | |||
+ | With the rise of Neovim, [https://github.com/landaire/deoplete-d deoplete-d] can be used for auto-completion. | ||
[[Category:Text editors]] | [[Category:Text editors]] |
Revision as of 04:15, 5 June 2017
Vim features and plugins useful for D coding.
UltiSnips
UltiSnips is a Vim snippet plugin with D support. It makes it possible to complete tasks such as writing a loop, wrapping code in try/catch or adding an operator in a few keystrokes.
Installing UltiSnips:
- Make sure you have a plugin manager such as Vundle installed.
- See the Quick Start section at UltiSnips site.
DSnips
DSnips is a (greatly) improved version of UltiSnips D snippets. It covers almost all D features and its snippets are designed to work together (e.g. can be used within one another or in chains). See DSnips reference
Installing DSnips:
- You need to have UltiSnips installed first.
git clone https://github.com/kiith-sa/DSnips.git
- Copy the d.snippets file to UltiSnips user snippets directory. On Linux this should be ~/.vim/UltiSnips.
If you don't know where the user snippets directory is, open a D file and type the :UltiSnipsEdit command (after UltiSnips is installed); this will open a user d.snippets file which you can replace by the DSnips version of d.snippets.
Dutyl
The Dutyl plugin integrates D tools such as DCD, DUB and DScanner to provide autocompletion, syntax checking, documentation search and more features.
Vebugger
The Vebugger plugin acts as a frontend for command line debuggers, and can be used to debug D programs with GDB. You'll need to use :VBGstartGDBForD to debug D programs.
Installing Vundle
Many Vim plugins require a plugin manager for installation. Vundle is one such plugin manager.
To install Vundle see the Quick Start section on Vundle's site.
Tagbar
It also possible to display a tagbar of all all declared functions, classes etc. Please follow the instructions of tagbar's Wiki.
Neovim
With the rise of Neovim, deoplete-d can be used for auto-completion.