All Projects → nishigori → increment-activator

nishigori / increment-activator

Licence: MIT license
Vim Plugin for enhance to increment candidates U have defined.

Programming Languages

Vim Script
2826 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to increment-activator

cobra-policytool
Manage Apache Atlas and Ranger configuration for your Hadoop environment.
Stars: ✭ 16 (-55.56%)
Mutual labels:  utility
fastnumbers
Super-fast and clean conversions to numbers.
Stars: ✭ 85 (+136.11%)
Mutual labels:  utility
isometric-renders
Creates high-resolution isometric screenshots of Minecraft's game objects
Stars: ✭ 42 (+16.67%)
Mutual labels:  utility
RawDiskLib
A C# Library to read from raw sectors of a disk
Stars: ✭ 38 (+5.56%)
Mutual labels:  utility
webfont-kit-generator
Create @ font-face kits easily
Stars: ✭ 52 (+44.44%)
Mutual labels:  utility
pymailq
Simple mails queue management
Stars: ✭ 32 (-11.11%)
Mutual labels:  utility
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+288.89%)
Mutual labels:  utility
n2d
An easy to use ESP8266 flash tool with built-in support for the Deauther Project.
Stars: ✭ 136 (+277.78%)
Mutual labels:  utility
TycotBot
TycotBot
Stars: ✭ 24 (-33.33%)
Mutual labels:  utility
Infinite-File-Curtailer
Curtail is a utility program that reads stdin and writes to a file bound by size.
Stars: ✭ 23 (-36.11%)
Mutual labels:  utility
shorted-theme
Shorted theme references for Styled Components.
Stars: ✭ 13 (-63.89%)
Mutual labels:  utility
Countdown
A friendly disk usage counter for macOS
Stars: ✭ 28 (-22.22%)
Mutual labels:  utility
vmutils
cross platform library to manipulate and extract information of memory regions
Stars: ✭ 22 (-38.89%)
Mutual labels:  utility
iterative
Functions for working with iterators in JavaScript and TypeScript
Stars: ✭ 16 (-55.56%)
Mutual labels:  utility
LogoRRR
A log viewer which visualises log events such that it is easy to identify problems or events of interest. This app was implemented using Scala and JavaFX, GluonHQ toolchain and GraalVM as platform.
Stars: ✭ 40 (+11.11%)
Mutual labels:  utility
actlist-plugin
🔧 Actlist Plugin library to development and debugging.
Stars: ✭ 14 (-61.11%)
Mutual labels:  utility
yamlfmt
A simple opionated yaml formatter that keeps your comments!
Stars: ✭ 27 (-25%)
Mutual labels:  utility
pate
Modern and light-fast CLI app that scans all the desired files of a certain folder and returns a list with the name of the files which contain a certain RegEx pattern
Stars: ✭ 23 (-36.11%)
Mutual labels:  utility
rudash
Rudash - Lodash for Ruby Apps
Stars: ✭ 27 (-25%)
Mutual labels:  utility
gee
🏵 Gee is tool of stdin to each files and stdout. It is similar to the tee command, but there are more functions for convenience. In addition, it was written as go
Stars: ✭ 65 (+80.56%)
Mutual labels:  utility

IncrementActivator.vim

Build Status MIT Licensed

v:version >= 702 nvim --version >= 0.1.7 Script Type: Utility

The Vim powerful increment plugin

The behavior is like <C-a>, <C-x> increment or decrement number by the default Vim

It has been enhanced to allow increment the list that you have defined

SnapShot - IncrementActivator.vim

Installation

Using dein.vim

call dein#add('nishigori/increment-activator')

If you hope to do other approach, Please read more Documentation

Usage

Kay map

On Normal-mode, This plugin defines the following key mapping automatically <C-a> & <C-x>

If you don't want there key mappings, please write on vimrc

let g:increment_activator_no_default_key_mappings = 1

" e.g) Original key mappings
nmap ab <Plug>(increment-activator-increment)
nmap az <Plug>(increment-activator-decrement)

If you want to be enabled to other mode(), please define map like this.

" Be enabled on insert-mode
imap <silent> <C-a> <Plug>(increment-activator-increment)
imap <silent> <C-x> <Plug>(increment-activator-decrement)

Case of candidates for increment

The list will be generated in candidates patterns automatically

  • no changes
  • lower
  • UPPER
  • Capitalize

Default list defined by plugin

  • yes/no
  • on/off
  • true/false
  • weekday (sunday <-> monday <-> wednesday <- ... -> saturday <-> sunday)
  • weekday-shorten (sun <-> mon <- ... -> sat <-> sun)
  • month (january <-> february <- ... -> december <-> january)
  • month-shorten (jan <-> feb <- ... -> dec <-> jan)

If you want to disable default candidates, puts on vimrc

let g:increment_activator_no_default_candidates = 1

Customization

You can define original list for increment / decrement :)

Type of g:increment_activator_filetype_candidates is dict. each key is Vim's filetype.

The candidates for priority is -

  1. Current filetype (&filetype)
  2. _ key (_ is special as apply to all filetypes)
  3. number by default Vim

Example $MYVIMRC:

let g:increment_activator_filetype_candidates = {
  \   '_' : [
  \     ['Pythonista', 'PHPer', 'Gopher'],
  \     ['ぬるぽ', 'ガッ'],
  \     ['info', 'warning', 'notice', 'error'],
  \   ],
  \   'cucumber': [
  \     ['Given', 'And', 'When', 'Then'],
  \   ],
  \   'erlang': [
  \     ['module', 'export'],
  \     [
  \       'is_alive', 'is_atom', 'is_binary', 'is_bitstring',
  \       'is_boolean', 'is_float', 'is_function',
  \       'is_integer', 'is_list', 'is_number',
  \       'is_pid', 'is_port', 'is_process_alive',
  \       'is_record', 'is_reference', 'is_tuple',
  \     ],
  \   ],
  \   'git-rebase-todo': [
  \     ['pick', 'reword', 'edit', 'squash', 'fixup', 'exec'],
  \   ],
  \   'go': [
  \     ['true', 'false', 'iota', 'nil'],
  \     ['byte', 'complex64', 'complex128'],
  \     ['int', 'int8', 'int16', 'int32', 'int64'],
  \     ['uint', 'uint8', 'uint16', 'uint32', 'uint64'],
  \     ['float32', 'float64'],
  \     ['interface', 'struct'],
  \   ],
  \ }

More than, Please read Documentation

Author

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].