misc.vim


Ⅰ. 插件描述

collection of Vim functions / commands

Ⅱ. 基本信息

创建日期:  2017-12-16
使用用户:  1
Github星:  1
插件作者:  lxhillwind

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'lxhillwind/misc-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'lxhillwind/misc-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'lxhillwind/misc-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/lxhillwind/misc.vim

Ⅳ. 文档说明

# misc.vim

Introduction

This plugin contains vim functions / commands which is not proper to be in an
individual plugin repo, but also not proper to be in dotfiles ($MYVIMRC).

If you have installed this plugin, input :EditMisc<CR> to edit this script.

Note: directory UltiSnips is intentionally ignored.

Usage

There are mainly two ways to use this plugin:

  • install it (using a plugin manager is recommended),
  • or copy the snippet you are interested in to your $MYVIMRC.

Content

  • [X] add checklist shortcut to markdown file. (<LocalLeader><Space>)
  • [X] dump vim command output to a buffer. (:VimRun command...)
  • [X] dump shell command output to a buffer. (:Run command...)
  • [X] color long line exceeding given number. (:AlertColumn number)
  • [X] *filter* (visual mode: char level selection). (<Leader><Tab>)
  • [X] write code snippet without saving. (:Snippet filetype)
  • [X] open a new tmux window and cd to current directory. (:TmuxOpen [shell])
  • [X] insert shebang line. (:ShebangInsert [interpreter...])

License

Some snippets come from other person, which are pointed out in related
comments.

Others: MIT

添加新评论