{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/2333","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/2333/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/2333/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/2333/events","html_url":"https://github.com/neovim/neovim/issues/2333","id":65935557,"number":2333,"title":"paste mode is not working correctly","user":{"login":"timfeirg","id":4319104,"avatar_url":"https://avatars.githubusercontent.com/u/4319104?v=3","gravatar_id":"","url":"https://api.github.com/users/timfeirg","html_url":"https://github.com/timfeirg","followers_url":"https://api.github.com/users/timfeirg/followers","following_url":"https://api.github.com/users/timfeirg/following{/other_user}","gists_url":"https://api.github.com/users/timfeirg/gists{/gist_id}","starred_url":"https://api.github.com/users/timfeirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timfeirg/subscriptions","organizations_url":"https://api.github.com/users/timfeirg/orgs","repos_url":"https://api.github.com/users/timfeirg/repos","events_url":"https://api.github.com/users/timfeirg/events{/privacy}","received_events_url":"https://api.github.com/users/timfeirg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2015-04-02T14:10:55Z","updated_at":"2016-07-18T18:56:45Z","closed_at":"2015-04-03T04:50:12Z","body":"I'm using neovim 119a3f2485e057b05ca46fc40e59f1434913d488, I've `set paste` and `command + v` to paste some python code with indentation into buffer, and here's how it looked:\r\n\r\n![screenshot_4_2_15__21_33](https://cloud.githubusercontent.com/assets/4319104/6965020/0077b17c-d981-11e4-9205-a1d42db9b9b4.png)\r\n\r\npaste mode is on as shown in the airline status bar, and here's the code that I'm trying to paste:\r\n\r\n```python\r\nclass DeploymentType:\r\n    PRODUCTION = \"PRODUCTION\"\r\n    DEV = \"DEV\"\r\n    SOLO = \"SOLO\"\r\n    STAGING = \"STAGING\"\r\n    dict = {\r\n        SOLO: 1,\r\n        PRODUCTION: 2,\r\n        DEV: 3,\r\n        STAGING: 4\r\n    }\r\n```\r\n\r\nI can't reproduce the issue using `nvim -u NONE` so that it must be coming from my `.vimrc`, I'm still trying to decide which line or plugin that's causing this, but if I open `vim` using the same `.vimrc`, paste mode works just fine.\r\n\r\nThis is my [`.vimrc`](https://github.com/timfeirg/workspace-setup/blob/master/.vimrc) if anyone wants to have a look.\r\n\r\nAnd here's `nvim --version`:\r\n\r\n```\r\nNVIM 0.0.0-alpha+201504011356 (compiled Apr  2 2015 12:33:58)\r\nCommit: 119a3f2485e057b05ca46fc40e59f1434913d488\r\nBuild type: RelWithDebInfo\r\nCompilation: /usr/local/Library/ENV/4.3/clang -Wconversion -O2 -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim20150402-44011-1o3qgxt/build/config -I/tmp/neovim20150402-44011-1o3qgxt/src -I/tmp/neovim20150402-44011-1o3qgxt/.deps/usr/include -I/tmp/neovim20150402-44011-1o3qgxt/.deps/usr/include -I/tmp/neovim20150402-44011-1o3qgxt/.deps/usr/include/luajit-2.0 -I/tmp/neovim20150402-44011-1o3qgxt/.deps/usr/include -I/tmp/neovim20150402-44011-1o3qgxt/.deps/usr/include -I/tmp/neovim20150402-44011-1o3qgxt/.deps/usr/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include -I/tmp/neovim20150402-44011-1o3qgxt/build/src/nvim/auto -I/tmp/neovim20150402-44011-1o3qgxt/build/include\r\nCompiled by timfeirg@timfeirg-mba-2.local\r\n\r\nOptional features included (+) or not (-): +acl  +iconv\r\nFor differences from Vim, see :help vim-differences\r\n\r\n   system vimrc file: \"$VIM/nvimrc\"\r\n     user vimrc file: \"~/.nvimrc\"\r\n 2nd user vimrc file: \"~/.nvim/nvimrc\"\r\n      user exrc file: \"~/.exrc\"\r\n  fall-back for $VIM: \"/usr/local/Cellar/neovim/HEAD/share/nvim\"\r\n```"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/233424014","html_url":"https://github.com/neovim/neovim/issues/2333#issuecomment-233424014","issue_url":"https://api.github.com/repos/neovim/neovim/issues/2333","id":233424014,"user":{"login":"pawelropa","id":634593,"avatar_url":"https://avatars.githubusercontent.com/u/634593?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelropa","html_url":"https://github.com/pawelropa","followers_url":"https://api.github.com/users/pawelropa/followers","following_url":"https://api.github.com/users/pawelropa/following{/other_user}","gists_url":"https://api.github.com/users/pawelropa/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelropa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelropa/subscriptions","organizations_url":"https://api.github.com/users/pawelropa/orgs","repos_url":"https://api.github.com/users/pawelropa/repos","events_url":"https://api.github.com/users/pawelropa/events{/privacy}","received_events_url":"https://api.github.com/users/pawelropa/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T18:56:45Z","updated_at":"2016-07-18T18:56:45Z","body":"I have recently switch from `vim` to `nvim` and the problem still exists for me. Installed `nvim` via `brew`. Just to confirm the issue, I have used the same config with `vim` and paste mode works great @bigfish @tarruda \r\n\r\n```\r\nNVIM 0.1.4\r\nBuild type: RelWithDebInfo\r\nCompilation: /usr/local/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/build/config -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/src -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/deps-build/usr/include/luajit-2.0 -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/deps-build/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/build/src/nvim/auto -I/tmp/neovim-20160716-53126-11u5u0x/neovim-0.1.4/build/include\r\nCompiled by pawel@Pawels-MacBook-Air.local\r\n\r\nOptional features included (+) or not (-): +acl   +iconv    +jemalloc\r\nFor differences from Vim, see :help vim-differences\r\n\r\n   system vimrc file: \"$VIM/sysinit.vim\"\r\n  fall-back for $VIM: \"/usr/local/Cellar/neovim/0.1.4/share/nvim\"\r\n```\r\n\r\n```\r\n\"\"\"\"\"\"\" Plugin management stuff \"\"\"\"\"\"\"\r\nset nocompatible\r\nfiletype off\r\n\r\nset rtp+=~/.config/nvim/bundle/Vundle.vim\r\ncall vundle#begin('~/.config/nvim/bundle')\r\n\r\nPlugin 'VundleVim/Vundle.vim'\r\n\r\n\" EasyMotion - Allows <leader><leader>(b|e) to jump to (b)eginning or (end) of words.\r\nPlugin 'easymotion/vim-easymotion'\r\n\r\n\" Ctrl-P - Fuzzy file search\r\nPlugin 'kien/ctrlp.vim'\r\n\r\n\" Neomake build tool (mapped below to <c-b>)\r\nPlugin 'benekastah/neomake'\r\n\r\n\" Autocomplete for python\r\nPlugin 'davidhalter/jedi-vim'\r\n\" Remove extraneous whitespace when edit mode is exited\r\nPlugin 'thirtythreeforty/lessspace.vim'\r\n\r\nPlugin 'altercation/vim-colors-solarized'\r\nPlugin 'fatih/vim-go'\r\nPlugin 'majutsushi/tagbar'\r\n\r\nPlugin 'Shougo/neocomplete'\r\nPlugin 'Shougo/neosnippet'\r\nPlugin 'Shougo/neosnippet-snippets'\r\nPlugin 'fatih/molokai'\r\nPlugin 'garyburd/go-explorer'\r\nPlugin 'scrooloose/nerdtree'\r\n\r\n\" Status bar mods\r\nPlugin 'bling/vim-airline'\r\nPlugin 'airblade/vim-gitgutter'\r\n\r\n\" Tab completion\r\nPlugin 'ervandew/supertab'\r\n\r\n\" After all plugins...\r\ncall vundle#end()\r\nfiletype plugin indent on\r\n\r\n\"\"\"\"\"\"\" Jedi-VIM \"\"\"\"\"\"\"\r\n\" Don't mess up undo history\r\nlet g:jedi#show_call_signatures = \"0\"\r\n\r\n\"\"\"\"\"\"\" SuperTab configuration \"\"\"\"\"\"\"\r\n\"let g:SuperTabDefaultCompletionType = \"<c-x><c-u>\"\r\nfunction! Completefunc(findstart, base)\r\n    return \"\\<c-x>\\<c-p>\"\r\nendfunction\r\n\r\n\"call SuperTabChain(Completefunc, '<c-n>')\r\n\r\n\"let g:SuperTabCompletionContexts = ['g:ContextText2']\r\n\r\n\r\n\"\"\"\"\"\"\" General coding stuff \"\"\"\"\"\"\"\r\n\" Highlight 80th column\r\nset colorcolumn=79\r\n\" Always show status bar\r\nset laststatus=1\r\n\" Let plugins show effects after 500ms, not 4s\r\nset updatetime=500\r\n\" Disable mouse click to go to position\r\nset mouse-=a\r\n\" Don't let autocomplete affect usual typing habits\r\nset completeopt=menuone,preview,noinsert\r\n\" Let vim-gitgutter do its thing on large files\r\nlet g:gitgutter_max_signs=10000\r\n\r\n\" If your terminal's background is white (light theme), uncomment the following\r\n\" to make EasyMotion's cues much easier to read.\r\n\" hi link EasyMotionTarget String\r\n\" hi link EasyMotionShade Comment\r\n\" hi link EasyMotionTarget2First String\r\n\" hi link EasyMotionTarget2Second Statement\r\n\r\n\r\n\"\"\"\"\"\"\" Python stuff \"\"\"\"\"\"\"\r\nsyntax enable\r\nset number showmatch\r\nset shiftwidth=4 tabstop=4 softtabstop=4 expandtab autoindent\r\nlet python_highlight_all = 1\r\n\r\n\" Neomake and other build commands (ctrl-b)\r\nnnoremap <C-b> :w<cr>:Neomake<cr>\r\n\r\nsyntax on        \" syntax highlighting\r\nset encoding=utf-8 \" setting encoding to UTF-8\r\nset showcmd        \" display incomplete commands\r\n\r\nset expandtab\r\nset tabstop=2 shiftwidth=2 softtabstop=2\r\nset smartindent\r\nset autoindent\r\n\r\nfiletype on \" load file type plugins + indentation\r\nfiletype indent on\r\nfiletype plugin on\r\n\r\nau FileType * setlocal formatoptions-=cro\r\n\r\nset number \" show lines numbers\r\nset nowrap \" no wrapping\r\nset guifont=Inconsolata:h15 \" which font do we want use\r\n\" color scheme setup for Terminal\r\nset background=dark\r\n\r\nif has('gui_running')\r\nelse\r\n    let g:solarized_termcolors=256\r\nendif\r\n\r\nset wildignore+=*/vendor/**\r\nset wildignore+=*/tmp/*,*.so,*.swp,*.zip     \" MacOSX/Linux\r\n\r\nlet mapleader=\",\"\r\n\r\n\"noremap <leader>s :w<kEnter>\r\n\"inoremap <leader>s <Esc>:w<kEnter>i\r\n\r\nnoremap <leader>s :w<CR>\r\nvnoremap <leader>s <Esc>:wgv<CR>\r\ninoremap <leader>s <Esc>:w<CR>\r\n\r\nnoremap <leader>q :q<CR>\r\nvnoremap <leader>q <Esc>:q<CR>\r\ninoremap <leader>q <Esc>:q<CR>\r\n\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\" ARROW KEYS ARE UNACCEPTABLE\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\nmap <Left> :echo \"no!\"<CR>\r\nmap <Right> :echo \"no!\"<CR>\r\nmap <Up> :echo \"no!\" <CR>\r\nmap <Down> :echo \"no!\" <CR>\r\n\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\"\" MULTIPURPOSE TAB KEY\r\n\"\" Indent if we're at the beginning of a line. Else, do completion.\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\"function! InsertTabWrapper()\r\n\"  let col = col('.') - 1\r\n\"  if !col || getline('.')[col - 1] !~ '\\k'\r\n\"    return \"\\<tab>\"\r\n\"  else\r\n\"    return \"\\<c-p>\"\r\n\"  endif\r\n\"endfunction\r\n\"\r\n\"inoremap <tab> <c-r>=InsertTabWrapper()<cr>\r\n\"inoremap <s-tab> <c-n>\r\n\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\" RENAME CURRENT FILE\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\r\nfunction! RenameFile()\r\n  let old_name = expand('%')\r\n  let new_name = input('New file name: ', expand('%'), 'file')\r\n  if new_name != '' && new_name != old_name\r\n    exec ':saveas ' . new_name\r\n    exec ':silent !rm ' . old_name\r\n    redraw!\r\n  endif\r\nendfunction\r\nmap <leader>n :call RenameFile()<cr>\r\n\r\nautocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1\r\nautocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1\r\nautocmd FileType ruby,eruby let g:rubycomplete_rails = 1\r\n\r\nautocmd FileType ruby nmap <F5> :!ruby %<cr>\r\n\r\nsilent! nmap <C-p> :NERDTreeToggle<CR>\r\nsilent! map <F3> :NERDTreeFind<CR>\r\n\r\nlet g:NERDTreeMapActivateNode=\"<F3>\"\r\nlet g:NERDTreeMapPreview=\"<F4>\"\r\n\r\nnmap <F8> :TagbarToggle<CR>\r\n\"map <D-}> <C-w><Right>\r\n\"map <D-{> <C-w><Left>\r\n\r\nfunction! AirlineOverride(...)\r\n  let g:airline_section_a = airline#section#create(['mode'])\r\n  let g:airline_section_b = airline#section#create_left(['branch'])\r\n  let g:airline_section_c = airline#section#create_left(['%f'])\r\n  let g:airline_section_y = airline#section#create([])\r\nendfunction\r\nautocmd VimEnter * call AirlineOverride()\r\n\r\nset laststatus=2\r\n\r\n\" Extra info on the bottom\r\nset ruler\r\n\r\n\" Highlight current line\r\nset cursorline\r\n\r\n\" ##Search tweaks {{{\r\nset hlsearch\r\nset incsearch\r\n\" Kill current search\r\nnnoremap <silent> <Leader>/ :nohlsearch<CR>\r\n\"}}}\r\n\r\n\" Tweak ESC to be 'jk' typed fast\r\nimap jk <ESC>\r\n\r\n\" RSpec.vim mappings\r\nmap <Leader>t :call RunCurrentSpecFile()<CR>\r\n\"map <Leader>s :call RunNearestSpec()<CR>\r\n\"map <Leader>l :call RunLastSpec()<CR>\r\nmap <Leader>a :call RunAllSpecs()<CR>\r\n\r\nset background=light\r\n\" solarized options\r\nlet g:solarized_visibility = \"high\"\r\nlet g:solarized_contrast = \"high\"\r\ncolorscheme solarized\r\n\r\n\" NerdTree\r\nmap <C-n> :NERDTreeToggle<CR>\r\n\r\n\"Ctrl-p\r\nlet g:ctrlp_map = '<c-p>'\r\nlet g:ctrlp_split_window = 0\r\n\r\n\" Splits tweaks {{{\r\n\"map <C-h> <C-w>h\r\nmap <BS> <C-w>h\r\nmap <C-j> <C-w>j\r\nmap <C-k> <C-w>k\r\nmap <C-l> <C-w>l\r\n```"}}
{"actor":{"display_login":"pawelropa"}}