LucHermitte / lh-brackets

LH's bracketing system for vim
Other
51 stars 2 forks source link

After setting g:cb_no_default_brackets to 1, backspace goes to start of line #21

Closed joegnis closed 5 years ago

joegnis commented 5 years ago

Describe the bug After setting g:cb_no_default_brackets to 1, backspace in insert mode moves the cursor to start of line.

To Reproduce Steps to reproduce the behavior:

  1. Put "let g:cb_no_default_brackets = 1" in vimrc, and reload
  2. Open any text file and move cursor to any text
  3. Press "i" to go to insert mode
  4. Press "Backspace"
  5. See error: the cursor goes to start of the line

Expected behavior Backspace should remove a character.

Context

Additional context vimrc:

if has('nvim')
    set runtimepath^=~/.vim runtimepath+=~/.vim/after
    let &packpath = &runtimepath
endif

set nocompatible
filetype off
syntax on
filetype plugin indent on
set modelines=0
set number
set ruler
set backspace=eol,start,indent

call plug#begin('~/.vim/plugged')
Plug 'LucHermitte/lh-vim-lib' | Plug 'LucHermitte/lh-brackets'
call plug#end()

let g:cb_no_default_brackets = 1