Git Product home page Git Product logo

vim-camelsnek's Introduction

GitHub Workflow Status

vim-camelsnek

Convert between camel and snek case

Usage

Installation

Use your favorite plugin manager of choice, ex. vim-plug.

Usage

:Snek     " converts to snake_case               ('foo bar' -> 'foo_bar')
:Camel    " converts to CamelCase                ('foo bar' -> 'FooBar')
:CamelB   " converts to camelbackCase            ('foo bar' -> 'fooBar')
:Kebab    " converts to kebab-case               ('foo bar' -> 'foo-bar')
:Screm    " converts to SCREAMING_SNAKE_CASE     ('foo bar' -> 'FOO_BAR')

These commands will function from both normal and visual mode. When in normal mode the commands will attempt to operate on the word object under cursor, when in visual mode it will operate on the selection.

Settings

" Some organisations use the terms Camel and Pascal to differentiate between
" the two variants of camel case. This setting changes the commands:
" :Camel  -> :Pascal
" :CamelB -> :Camel
let g:camelsnek_alternative_camel_commands = 1

" This setting also changes the name of two commands:
" :Snek  -> :Snake
" :Screm -> :Snakecaps
let g:camelsnek_i_am_an_old_fart_with_no_sense_of_humour_or_internet_culture = 0
let g:camelsnek_no_fun_allowed = 0 " Shorter alias for the above.

Tests

To run the tests pull the themis test suite (you don't have to install it but you can if you want).

git clone [email protected]:thinca/vim-themis.git
./vim-themis/bin/themis --reporter dot test

Alternatively you can use the Makefile in the root dir, which will clone the dependencies and run the tests and linter.

make init
make test
make lint

vim-camelsnek's People

Contributors

nicwest avatar zatchheems avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vim-camelsnek's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.