(define-module (shino packages vim) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix gexp) #:use-module (guix utils) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system copy) #:use-module (gnu packages) #:use-module (gnu packages uml)) (define-public vim-plantuml-syntax (package (name "vim-plantuml-syntax") (version "0.2.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aklt/plantuml-syntax") (commit "660bbb1ece1e654b2176f76ce0689304c5a4a025"))) (file-name (git-file-name name version)) (sha256 (base32 "05xf36np8y0gdcd05nzmkawh131lp4mm5cjgjr1byr8cjyl1idr3")))) (build-system copy-build-system) (arguments '(#:install-plan '(("ftdetect" "share/vim/vimfiles/") ("ftplugin" "share/vim/vimfiles/") ("indent" "share/vim/vimfiles/") ("syntax" "share/vim/vimfiles/")))) (synopsis "Vim PlantUML Syntax/Plugin/FTDetect") (inputs (list plantuml)) (description "This is a vim syntax file for PlantUML.The filetype will be set to plantuml for @code{*.pu}, @code{*.uml}, @code{*.puml}, @code{*.iuml} or @code{*.plantuml} files or if the first line of a file contains @code{@@startuml}. Additionally the makeprg is set to plantuml assuming you have this executable in your path.") (home-page "https://github.com/aklt/plantuml-syntax") (license #f))) (define-public vim-doxygen-toolkit (package (name "vim-doxygen-toolkit") (version "0.2.13") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/vim-scripts/DoxygenToolkit.vim") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1za8li02j4nhqjjsyxg4p78638h5af4izim37zc0p1x55zr3i85r")))) (build-system copy-build-system) (arguments '(#:install-plan '(("plugin" "share/vim/vimfiles/")))) (synopsis "Simplify Doxygen documentation in C, C++, Python.") (description "Currently five purposes have been defined : @itemize @item Generates a doxygen license comment. The tag text is configurable. @item Generates a doxygen author skeleton. The tag text is configurable. @item Generates a doxygen comment skeleton for a C, C++ or Python function or class, including @code{@@brief}, @code{@@param} (for each named argument), and @code{@@return}. The tag text as well as a comment block header and footer are configurable. (Consequently, you can have brief, etc. if you wish, with little effort.) @item Ignore code fragment placed in a block defined by #ifdef ... #endif (C/C++). The block name must be given to the function. All of the corresponding blocks in all the file will be treated and placed in a new block DOX_SKIP_BLOCK (or any other name that you have configured). Then you have to update PREDEFINED value in your doxygen configuration file with correct block name. You also have to set ENABLE_PREPROCESSING to YES. @item Generate a doxygen group (beginning and ending). The tag text is configurable. @end itemize") (home-page "https://www.vim.org/scripts/script.php?script_id=987") (license #f))) (define-public vim-detectindent ;; No releases have been tagged. (let ((commit "2511f0f02fb046a09fdbdfc8f21c7a6f2d234936") (revision "1")) (package (name "vim-detectindent") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/roryokane/detectindent") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "16k3h64z4ysphchnhgj3jyms51ps0lla885yqznfbknz49pg44cb")))) (build-system copy-build-system) (arguments `(#:install-plan '(("doc" "share/vim/vimfiles/") ("plugin" "share/vim/vimfiles/")))) (home-page "https://github.com/roryokane/detectindent") (synopsis "Vim script for automatically detecting indent settings") (description "This script provides a command which will attempt to guess the correct indent settings for an open file, for use when there is no modeline available. Specifically, the command sets the following buffer-local options for you: @itemize @item 'expandtab' (tabs vs. spaces) @item 'shiftwidth' (width of indentation) @item 'tabstop' (width of a tab character) @item 'softtabstop' (number of spaces that Tab inserts) @end itemize Note that this is a pure Vim implementation, and doesn’t require any external applications or interpreters.") (license #f))))