vim plugin to append random names from a list to all markdown titles
without plugin manager
- In the terminal,
mkdir -p ~/.vim/bundle/ git clone https://github.com/roymanigley/append-random-name-to-markdown-title-vim-plugin.git ~/.vim/bundle/append-random-name-to-markdown-title-vim-plugin mkdir -p ~/.vim/plugin/ ln -s ~/.vim/bundle/append-random-name-to-markdown-title-vim-plugin/plugin/simple_template.vim ~/.vim/plugin/simple_template.vim
- Restart Vim
Pathogen
Pathogen is more of a runtime path manager than a plugin manager. You must clone the plugins' repositories yourself to a specific location, and Pathogen makes sure they are available in Vim.- In the terminal,
git clone https://github.com/roymanigley/append-random-name-to-markdown-title-vim-plugin.git ~/.vim/bundle/.append-random-name-to-markdown-title-vim-plugin
- In your
vimrc
,call pathogen#infect() syntax on filetype plugin indent on
- Restart Vim
Vundle
- Install Vundle, according to its instructions.
- Add the following text to your
vimrc
.call vundle#begin() Plugin 'roymanigley/append-random-name-to-markdown-title-vim-plugin' call vundle#end()
- Restart Vim, and run the
:PluginInstall
statement to install your plugins.
Vim-Plug
- Install Vim-Plug, according to its instructions.
- Add the following text to your
vimrc
.
call plug#begin()
Plug 'roymanigley/append-random-name-to-markdown-title-vim-plugin'
call plug#end()
- Restart Vim, and run the
:PlugInstall
statement to install your plugins.
Dein
- Install Dein, according to its instructions.
- Add the following text to your
vimrc
.call dein#begin() call dein#add('roymanigley/append-random-name-to-markdown-title-vim-plugin') call dein#end()
- Restart Vim, and run the
:call dein#install()
statement to install your plugins.
add this to your
.vimrc
file to define the names
let g:RandomMarkdownAppender#names=["Alpha", "Beta", "Gamma", "Delta"]
add this to your
.vimrc
file to use it as a shortcut
nnoremap <C-t> :call RandomMarkdownAppender#randomizeSimple()<CR>
" API_KEY_REQUIRED for RandomMarkdownAppender#randomizeRandomDotOrg
" export RANDOM_DOT_ORG_API_KEY=***************************
nnoremap <C-P> :call RandomMarkdownAppender#randomizeRandomDotOrg()<CR>