Git Product home page Git Product logo

fix-vim-pasting's Introduction

Well hello there.

I like beverages.

Buy me drinks

Stats

fix-vim-pasting's People

Contributors

bkbncn avatar ryanpcmcquen avatar

Stargazers

 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  avatar

fix-vim-pasting's Issues

Not working in tmux

Hi, thanks for this. I got to your repo from your coderwall comment which said this works in tmux. I'm seeing it work fine in vim, but not vim inside of tmux. I'm using tmux 2.2

autoindent, smartindent, cindent all make pasting work as if nopaste was turned on

For this plugin to work, it appears that all types of automatic indenting must be off, i.e.,

 set noautoindent
 set nosmartindent
 set nocindent

must be in your .vimrc. (Not sure if any type of automatic indenting affects the other.)1 Checked both in and out of tmux.

I realize this was addressed in #2, but I'm hoping it's possible to add an "automatic indentation toggle" to the plugin. I like some automatic indenting, and it doesn't really save any time if I have to call set noautoindent and set autoindent every time I paste.


1. I did a bit of experimentation with set paste and noted that set paste followed by set autoindent (or either of the other two automatic indenting settings) still broke pasting, with or without this plugin, even though I was still in paste insert mode. So it seems that set paste may just do the above disabling of automatic indenting (among other things) and we can break it be re-enabling them.

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.