Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disappearing closing character on new line #36

Closed
MTBorg opened this issue Nov 3, 2019 · 1 comment
Closed

Disappearing closing character on new line #36

MTBorg opened this issue Nov 3, 2019 · 1 comment

Comments

@MTBorg
Copy link

MTBorg commented Nov 3, 2019

After a pair has been inserted and nothing but a newline is entered, pushing the closing character down a line, the closing character disappears until insert mode is exited. The issue does not seem to happen when anything is entered between the pair. I've tried disabling all other plugins and settings but the issue still remains.
pear_tree_bug

My .vimrc:

set omnifunc=syntaxcomplete#Complete
set completeopt+=menuone,noselect,noinsert
set nocompatible
set autoindent
" set cursorline " This is nice but makes vim slow in some case
set synmaxcol=90 " Limit syntax highlighting to amount of columns (you might want to disable this if you're on a fast system
set colorcolumn=90
set nofoldenable
set foldmethod=syntax
set history=100
set hlsearch
set incsearch
set ignorecase
set laststatus=2
set nospell
set noerrorbells
set noswapfile
set number relativenumber
set numberwidth=1
set tabstop=2
set showmatch
set shiftwidth=2
set timeoutlen=1000 ttimeoutlen=0 "This makes visual blocks fast
set updatetime=100
set viminfo+=n~/.vim/.viminfo "Different folder for viminfo file (disable if not on linux)

let mapleader="§"
" Latex support
let g:tex_flavor="latex"

" Keybindings
"""""""""""""""""""""""""""""""
" Resource .vimrc
nnoremap <silent> <Leader>up :source ~/.vimrc<CR>

" NERDTree
nnoremap <silent> <Leader>e :NERDTreeToggle<CR>

" ALE
nnoremap <silent> <Leader>al :ALELint<CR>
nnoremap <silent> <Leader>af :ALEFix<CR>

" Next marker
nnoremap <silent> <Leader>n /<+++><CR>cf>
inoremap <silent> <Leader>n <Esc>/<+++><CR>cf>
" Previous marker
nnoremap <silent> <Leader>N ?<+++><CR>cf>
inoremap <silent> <Leader>N <Esc>?<+++><CR>cf>
" Place marker
inoremap <silent> <Leader>m <+++>
nnoremap <silent> <Leader>m i<+++>
" Used to finish tab completion when enter is pressed
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
" Bind popup navigation to ctrl-j and ctrl-k
inoremap <expr> <C-j> ((pumvisible())?("\<C-n>"):("j"))
inoremap <expr> <C-k> ((pumvisible())?("\<C-p>"):("k"))
" Cancel search
nnoremap <CR> :noh<CR><CR>
" Tags
nnoremap <Leader>tp :ptag<CR>
nnoremap <Leader>tc :pclose<CR>
"""""""""""""""""""""""""""""
"
" Colors
colorscheme onedark

call plug#begin('~/.vim/plugged')

Plug 'ctrlpvim/ctrlp.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'w0rp/ale'
Plug 'tpope/vim-fugitive'
Plug 'sheerun/vim-polyglot'
Plug 'ap/vim-css-color'
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle' }
Plug 'vim-scripts/AutoComplPop'
Plug 'tpope/vim-surround'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-commentary'
Plug 'wincent/terminus'
Plug 'mattn/emmet-vim'
Plug 'rust-lang/rust.vim'
Plug 'janko/vim-test'
Plug 'christoomey/vim-tmux-runner'
Plug 'qnighy/lalrpop.vim'
Plug 'christoomey/vim-tmux-navigator'
Plug 'tpope/vim-repeat'
Plug 'mileszs/ack.vim'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'Yggdroot/indentLine'

call plug#end()

command! Conf :sp ~/.vimrc

autocmd BufEnter * syntax on
autocmd BufEnter *.tsx set filetype=typescript.vim
filetype plugin on
@tmsvg
Copy link
Owner

tmsvg commented Nov 3, 2019

Not a bug. Check out :h <Plug>(PearTreeExpand)

@tmsvg tmsvg closed this as completed Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants