diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 02:49:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 02:49:08 +0100 |
commit | ad527392abb60e19954d5e8dba05af282d67d15b (patch) | |
tree | 5a8ad20c8cc49b37593e8f1089420446b731b0d0 /runtime/indent/cmake.vim | |
parent | dc9290109481e5e0d0c224fecb217ceb5a4c978d (diff) | |
parent | 20e317e22abeef20891eb70a18435559f7b09212 (diff) | |
download | rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.gz rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.bz2 rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.zip |
Merge #7499 'vim-patch: runtime'
Diffstat (limited to 'runtime/indent/cmake.vim')
-rw-r--r-- | runtime/indent/cmake.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/indent/cmake.vim b/runtime/indent/cmake.vim index 421afcb6d7..93a131b938 100644 --- a/runtime/indent/cmake.vim +++ b/runtime/indent/cmake.vim @@ -68,19 +68,19 @@ fun! CMakeGetIndent(lnum) let ind = ind else if previous_line =~? cmake_indent_begin_regex - let ind = ind + &sw + let ind = ind + shiftwidth() endif if previous_line =~? cmake_indent_open_regex - let ind = ind + &sw + let ind = ind + shiftwidth() endif endif " Subtract if this_line =~? cmake_indent_end_regex - let ind = ind - &sw + let ind = ind - shiftwidth() endif if previous_line =~? cmake_indent_close_regex - let ind = ind - &sw + let ind = ind - shiftwidth() endif return ind |