aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_smartindent.vim
blob: d00eac97981f22940a501cc670882d815f7dcfee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

" Tests for not doing smart indenting when it isn't set.
function! Test_nosmartindent()
  new
  call append(0, ["		some test text",
      	\ "		test text",
      	\ "test text",
      	\ "		test text"])
  set nocindent nosmartindent autoindent
  exe "normal! gg/some\<CR>"
  exe "normal! 2cc#test\<Esc>"
  call assert_equal("		#test", getline(1))
  enew! | close
endfunction