All Projects → robertbasic → vim-hugo-helper

robertbasic / vim-hugo-helper

Licence: MIT License
A small Vim plugin with a set of helpers for Hugo https://gohugo.io

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-hugo-helper

Nerdtree
A tree explorer plugin for vim.
Stars: ✭ 16,380 (+19875.61%)
Mutual labels:  vim-plugin, vim-plugins
swifty-vim
⌨️ A Vim plugin for Swift which provides file detection, syntax highlighting, support for compiling and running tests, and optional support for formatting and linting tools.
Stars: ✭ 18 (-78.05%)
Mutual labels:  vim-plugin, vim-plugins
vim-sass-colors
sass/scss/less/css color literal and color variable highlighting (works with imports)
Stars: ✭ 24 (-70.73%)
Mutual labels:  vim-plugin, vim-plugins
Exit Vim
Vim plugin that exits Vim on startup
Stars: ✭ 176 (+114.63%)
Mutual labels:  vim-plugin, vim-plugins
vim-bettergrep
A better way to grep in vim.
Stars: ✭ 15 (-81.71%)
Mutual labels:  vim-plugin, vim-plugins
Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (+131.71%)
Mutual labels:  vim-plugin, vim-plugins
vim-jsonc
⚠️Deprecated⚠️: Vim syntax highlighting plugin for JSON with C-style line (//) and block (/* */) comments.
Stars: ✭ 52 (-36.59%)
Mutual labels:  vim-plugin, vim-plugins
Ale
Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
Stars: ✭ 11,380 (+13778.05%)
Mutual labels:  vim-plugin, vim-plugins
VimConfig
Configuration files for Vi-IMproved.
Stars: ✭ 23 (-71.95%)
Mutual labels:  vim-plugin, vim-plugins
vim-inccomplete
Vim plugin for #include directive completion.
Stars: ✭ 14 (-82.93%)
Mutual labels:  vim-plugin, vim-plugins
Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (+98.78%)
Mutual labels:  vim-plugin, vim-plugins
vim-js-file-import
Import/require files in javascript and typescript with single button!
Stars: ✭ 130 (+58.54%)
Mutual labels:  vim-plugin, vim-plugins
Targets.vim
Vim plugin that provides additional text objects
Stars: ✭ 2,114 (+2478.05%)
Mutual labels:  vim-plugin, vim-plugins
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (+140.24%)
Mutual labels:  vim-plugin, vim-plugins
Vimux
easily interact with tmux from vim
Stars: ✭ 1,980 (+2314.63%)
Mutual labels:  vim-plugin, vim-plugins
vim-phpstan
A Vim plugin for PHPStan - https://github.com/phpstan/phpstan. It calls `phpstan` to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
Stars: ✭ 26 (-68.29%)
Mutual labels:  vim-plugin, vim-plugins
Vimpanel
A modern side panel for Vim
Stars: ✭ 97 (+18.29%)
Mutual labels:  vim-plugin, vim-plugins
Vim Todo Lists
Vim plugin for TODO lists
Stars: ✭ 126 (+53.66%)
Mutual labels:  vim-plugin, vim-plugins
filestyle
filestyle is a Vim plugin that highlights unwanted whitespace and characters.
Stars: ✭ 30 (-63.41%)
Mutual labels:  vim-plugin, vim-plugins
vim-tmuxlike
A vim plugin that mimics the actions of tmux. 像操作Tmux一样操作Vim
Stars: ✭ 20 (-75.61%)
Mutual labels:  vim-plugin, vim-plugins

vim-hugo-helper

A small Vim plugin to help me with writing posts with Hugo.

Helpers

The following helpers are available:

Draft

:HugoHelperDraft drafts the current post.

Undraft

:HugoHelperUndraft undrafts the current post.

Date is now

:HugoHelperDateIsNow sets the date and time of the current post to current date and time.

Highlight

:HugoHelperHighlight language inserts the highlight block for "language" in to the current post.

Link

:HugoHelperLink helps with adding links to a document. Visually select the word(s) you want to be a link, enter :HugoHelperLink https://gohugo.io and it will turn the selected word(s) to [selected words](https://gohugo.io).

link helper in action

Probably works only for markdown documents.

Spell check

:HugoHelperSpellCheck toggles the spell check for the current language. Running it once, turns the spell check on. Running it again, turns it off.

You can set the language by setting the following in your .vimrc file:

let g:hugohelper_spell_check_lang = 'en_us'

By default it is set to en_us.

Title to slug

:HugoHelperTitleToSlug turns the title of the Hugo post to the slug. It assumes the following two lines are present in the frontmatter:

+++
// frontmatter
title = "Title of the post"
// frontmatter
slug = ""
// frontmatter
+++

It will turn it into:

+++
// frontmatter
title = "Title of the post"
// frontmatter
slug = "title-of-the-post"
// frontmatter
+++

Installation

vim-plug

Plug 'robertbasic/vim-hugo-helper'

Vundle

PluginInstall 'robertbasic/vim-hugo-helper'

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].