Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trapd00r/cccp.vim

A Vim plugin that toggles cursorcolumn at cursor position
https://github.com/trapd00r/cccp.vim

colorcolumn vim vim-plugin

Last synced: 18 days ago
JSON representation

A Vim plugin that toggles cursorcolumn at cursor position

Awesome Lists containing this project

README

        

## cccp.vim - ColorColumn, Cursor Position

A Vim plugin which enables toggling of a `colorcolumn` at the cursor position.

This does **not** do the same thing as `cursorcolumn`. The latter follows the
cursor around, while this stays put where you've placed it, until toggled.

Use cases:

* Quickly get a grip of alignment issues
* Impressing your friends

Subsequent calls will toggle the highlight.

### Installation

Throw the plugin into your `$VIMRUNTIME/plugin` directory, i.e `~/.vim/plugin/`.

### Configuration

#### Mappings

No mappings defined by default; play nice.

Here's how you can add a mapping that will toggle like described above:

```vim
nnoremap cc :call CCCP()
```