Skip to content

Commit 7cd5126

Browse files
author
Aaron Baker and Christopher Nguyen
committed
stop auto indenting when pressing certain keys in haml
1 parent 93ed845 commit 7cd5126

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.vim/common_config/general_config.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ au BufNewFile,BufRead *.json set ai filetype=javascript
111111
" md, markdown, and mk are markdown and define buffer-local preview
112112
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} set spell
113113

114+
" Remove strange characters that trigger auto indent for haml
115+
au BufNewFile,BufRead *.haml set indentkeys=o,O,*<Return>,=else,=elsif,=rescue,=ensure,=when
116+
114117
" nghaml is haml
115-
au BufNewFile,BufRead *.nghaml set ai filetype=haml
118+
au BufNewFile,BufRead *.nghaml set filetype=haml indentkeys=o,O,*<Return>,=else,=elsif,=rescue,=ensure,=when
116119

117120
" Set encoding
118121
set encoding=utf-8

0 commit comments

Comments
 (0)