GithubHelp home page GithubHelp logo

vim-jplus's Introduction

jplus.vim

結合時に区切り文字を入力したり、行継続のキーワード(\ 等)などを削除して行結合を行うプラグインです。

Screencapture

任意の文字を挿入して結合する

jplus1

先頭の \ を取り除いて結合する

jplus2

Example

" J の挙動を jplus.vim で行う
nmap J <Plug>(jplus)
vmap J <Plug>(jplus)

" getchar() を使用して挿入文字を入力します
nmap <Leader>J <Plug>(jplus-getchar)
vmap <Leader>J <Plug>(jplus-getchar)

" input() を使用したい場合はこちらを使用して下さい
" nmap <Leader>J <Plug>(jplus-input)
" vmap <Leader>J <Plug>(jplus-input)

" <Plug>(jplus-getchar) 時に左右に空白文字を入れたい場合
" %d は入力した結合文字に置き換えられる
let g:jplus#config = {
\	"_" : {
\		"delimiter_format" : ' %d '
\	}
\}

vim-jplus's People

Contributors

osyo-manga avatar nigorojr avatar haya14busa avatar tsuyoshicho avatar

Stargazers

Kohei Yamada avatar  avatar Muhammed Zakir avatar Andrew Lee avatar Takayuki Kasai avatar blinkjum avatar aiya000 avatar David O'Trakoun avatar hrsh7th avatar Shuji Mihara avatar Kinkalow avatar  avatar Yuta Katayama avatar Takahito Nakano avatar rapan931 avatar Rene Tianco avatar hokorobi avatar  avatar Rafael Bodill avatar hujo avatar Raidou avatar  avatar Jonathan Barratt avatar Manpreet Singh avatar Joseph Irwin avatar

Watchers

 avatar James Cloos avatar Muhammed Zakir avatar  avatar

vim-jplus's Issues

missing documentation

doc/jplus.jaxはあるもののdoc/jplus.txtがありません

行を結合する際に挿入する文字を入力して行の結合を行う。

|jplus.vim| concatenates lines by asking which character to insert between them when it concatenates lines.

任意のキーにマッピングして使用します。

Map them to keys that you prefer.

マクロでのJの動作がおかしくなる

nmap J <Plug>(jplus)を指定した状態で、

let @a='Jj'のマクロを記録し実行したところ、jJしたような動作になってしまういます 😢
qで記録しているときはうまく動作するのですが、実行すると動作が変わってしまいます。。。

v_<Plug>(jplus-input) doesn't concatenate the last line selected

1
2
3
4
5

の1から4までをvisual modeでlinewiseに選択した状態(つまりVで選択した状態)で<Plug>(jplus-input)したとき、たとえば", "と入力した場合、

1, 2, 3, 4
5

ではなく、

1, 2, 3
4
5

となってしまうようです。

formatoptions+=j でコメントリーダーが削除されない

set formatoptions+=jでコメント行を結合したときにコメントリーダーが削除されるようにした場合でも、jplus.vimを有効にしているとリーダーが削除されません。s:join(config)を見た感じjplus.vim側で結合したものを現在の行と置換している?みたいなので、仕方ないのでしょうか?

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.