when I tried to paste code
for(int i = 1; i <= N; i++) if(ord[i] == -1) dfs(i, 0, i);
from clipboard in vim(of course in insert mode), it became
for(int i = 1); i <= N; i++) if(ord[i] == -1) dfs(i, 0, i);
Is it because I'm using some plugins about brackets?
my .vimrc is
colorscheme solarflare
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'Auto-Pairs'
Plugin 'octol/vim-cpp-enhanced-highlight'
Plugin 'vim-multiple-cursors'
Plugin 'surround.vim'
Plugin 'LucHermitte/lh-vim-lib'
Plugin 'LucHermitte/lh-brackets'
call vundle#end()
filetype plugin indent on " Put your non-Plugin stuff after this line
syntax enable
set nu
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
let g:syntastic_cpp_compiler_options = ' -std=c++11'
set t_ut=
set clipboard=unnamedplus
let c_no_curly_error=1
Is there any problem? Please tell me why and then what should i do? Thank you.
help paste
)"+p
or<C-r>+
in insert mode.