switch.vim icon indicating copy to clipboard operation
switch.vim copied to clipboard

A simple Vim plugin to switch segments of text with predefined replacements

Results 7 switch.vim issues
Sort by recently updated
recently updated
newest added

This is strictly speaking not an issue but just and idea. Currently the cursor needs to be on the word, but often times there is only one relevant word in...

This adds a switch to JavaScript to switch between `something === false` and `!something` - which is a common thing I find I am refactoring.

It would be nice if I could transform an Boolean expression using De Morgan's Theorems. It's useful when you want to convert an 'if' expression into an 'else', or simply...

On this line: expect(page).|not_to have_link 'Refund' With the cursor at `|`, `gs` will toggle between `not_to` and `to`, as expected. If I subsequently `u`ndo, however, the cursor moves to the...

In python I've found that sometimes I need to change dictionary to a list of key, value pairs. So from that `{'key1: 'value1', 'key2': 'value2'}` `(('key1', 'value1), ('key2', 'value2'))` I...

How does this plugin compare to [swapit](https://github.com/mjbrownie/swapit)? The stated goal is the same See [converse question](https://github.com/mjbrownie/swapit/issues/33)

``` let g:switch_mapping = "" let g:switch_custom_definitions = \ [ \ ['!NOTE', '!TIP', '!IMPORTANT','!CAUTION', '!WARNING'], \ { \ '\': '\=toupper(submatch(1)) . submatch(2)', \ '\': "\\=tolower(substitute(submatch(0), '\\(\\l\\)\\(\\u\\)', '\\1_\\2', 'g'))", \ '\':...