Skip to content

Instantly share code, notes, and snippets.

@bootleq
Created September 14, 2011 02:00
Show Gist options
  • Save bootleq/1215683 to your computer and use it in GitHub Desktop.
Save bootleq/1215683 to your computer and use it in GitHub Desktop.
Test example for indent adjustment when leaving insert mode.
def
# vim: ft=ruby expandtab sts=2 sw=2
set all&
set nocompatible
set modeline
filetype indent on
set rtp-=~/.vim
set rtp+=~/.vim/bundle/neocomplcache
@bootleq
Copy link
Author

bootleq commented Sep 14, 2011

vim -u ~/test-neocomplcache.vimrc indent.rb -c NeoComplCacheEnable

  1. Move to line 1
  2. o (open a new line and start insert)
  3. Type something
  4. <Esc> (leave insert)
  5. u (undo, discard line 2)
  6. o
  7. <Esc>
  8. See what text is in line 2

Should be empty line.
However, with my environment, it's 2 white spaces, this happens after commit:
Shougo/neocomplcache.vim@a5a612b

@bootleq
Copy link
Author

bootleq commented Sep 14, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment