https://github.com/mtth/cursorcross.vim
Sane cursorcolumn and cursorline handling
https://github.com/mtth/cursorcross.vim
Last synced: 4 months ago
JSON representation
Sane cursorcolumn and cursorline handling
- Host: GitHub
- URL: https://github.com/mtth/cursorcross.vim
- Owner: mtth
- Created: 2013-07-17T15:04:31.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-29T20:56:24.000Z (about 9 years ago)
- Last Synced: 2025-08-20T06:30:42.458Z (10 months ago)
- Language: Vim script
- Homepage:
- Size: 18.6 KB
- Stars: 33
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Cursorcross.vim
===============
Refreshingly sane ``cursorcolumn`` and ``cursorline`` handling.
Configuration
-------------
Four options are available:
* ``g:cursorcross_dynamic = 'clw'``, which features to dynamically handle:
* :code:`'c'` triggers :code:`cursorcolumn` in insert mode when the cursor
is at the beginning of the line.
* :code:`'l'` activates :code:`cursorline` in normal mode and turns it off
when entering insert mode.
* :code:`'w'` automatically disables :code:`cursorcolumn` and
:code:`cursorline` in non-focused windows. When entering a window, both
variables are restored to their previous state.
* ``g:cursorcross_exceptions = []``, list of filetypes where dynamic mode will
be disabled.
* ``g:cursorcross_disable = 0``, disable the plugin.
* ``g:cursorcross_mappings = 1``, create the following mappings:
* ``-`` to toggle ``cursorline``.
* ``|`` to toggle ``cursorcolumn``.
Additionally, the `CursorcrossToggle` command can be used to disable all
dynamic modes globally.