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

ycm and autoindent: whitespace sometimes not removed #16

Closed
mklinik opened this issue Feb 5, 2013 · 1 comment
Closed

ycm and autoindent: whitespace sometimes not removed #16

mklinik opened this issue Feb 5, 2013 · 1 comment

Comments

@mklinik
Copy link

mklinik commented Feb 5, 2013

Vim with autoindent on adds whitespace when starting a new line. When pressing <esc> without typing anything, the whitespace is removed again. When ycm is activated, sometimes this whitespace is not removed. Sometimes it is.

How to reproduce:

  1. Edit some file, e.g. vim foo.hs
  2. Have autoindent on, smartindent and cindent off. I'm not sure if other settings are relevant, the output of :set is added below.
  3. Type the following: i<space>``<space>hello<esc>o<esc>

Result: The first line consists of two spaces, followed by the word "hello". The second line consists of two spaces.
Expected: The second line is empty.

ycm version b7eded1

:version                                                                                                                              
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb  5 2013 08:59:41)
Included patches: 1-798
:set
--- Options ---
  autoindent          cscopeverbose       incsearch           shiftwidth=2        tabstop=2           ttyfast
  backspace=2         filetype=haskell    laststatus=2        showcmd             tags=tags           ttymouse=xterm2
  colorcolumn=+1      helplang=en         ruler               showmatch         notimeout             updatetime=2000
  cscopetag           hidden              scroll=15           spelllang=de        title               t_Co=255
  cscopetagorder=1    hlsearch            scrolloff=10        syntax=haskell      ttimeout
  comments=s1fl:{-,mb:-,ex:-},:--
  commentstring=-- %s
  completefunc=youcompleteme#Complete
  completeopt=menuone
  fileencoding=utf-8
  fileencodings=ucs-bom,utf-8,default,latin1
  formatoptions=croql
  include=^import\s*\(qualified\)\?\s*
  includeexpr=substitute(v:fname,'\.','/','g').'.'
  printoptions=paper:letter
  runtimepath=~/.vim,~/.vim/bundle/YouCompleteMe,~/.vim/bundle/notmuch,~/.vim/bundle/potwiki,~/.vim/bundle/vim-fugitive,/var/lib/vim/addons,/usr/
share/vim/vimfiles,/usr/share/vim/vim73,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
  statusline=%t:%l,%v %L%m
  suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
  suffixesadd=hs,lhs,hsc
  wildmode=longest,list
@Valloric
Copy link
Member

Valloric commented Feb 6, 2013

Duplicate of #15

@Valloric Valloric closed this as completed Feb 6, 2013
@hardboydu hardboydu mentioned this issue Jul 4, 2016
limbolily pushed a commit to limbolily/YouCompleteMe that referenced this issue Aug 9, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants