diff options
Diffstat (limited to 'shino/packages')
-rw-r--r-- | shino/packages/vim.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/shino/packages/vim.scm b/shino/packages/vim.scm index 328b544..a1f9c7e 100644 --- a/shino/packages/vim.scm +++ b/shino/packages/vim.scm @@ -78,3 +78,41 @@ 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)))) |