I broke up with neovim....vim is my best friend now
This commit is contained in:
33
dot_vim/plugged/vimtex/test/test-indentation/test.vim
Normal file
33
dot_vim/plugged/vimtex/test/test-indentation/test.vim
Normal file
@@ -0,0 +1,33 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin indent on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
set nomore
|
||||
set shiftwidth=2
|
||||
set expandtab
|
||||
|
||||
if !empty($FLAGS)
|
||||
if $FLAGS == 1
|
||||
let g:vimtex_indent_on_ampersands = 0
|
||||
elseif $FLAGS == 2
|
||||
let g:vimtex_indent_ignored_envs = ['proof']
|
||||
elseif $FLAGS == 3
|
||||
let g:vimtex_indent_delims = {'close_indented': 1}
|
||||
elseif $FLAGS == 4
|
||||
let g:vimtex_indent_delims = {
|
||||
\ 'open': ['{', '\['],
|
||||
\ 'close': ['}', '\]'],
|
||||
\ }
|
||||
endif
|
||||
endif
|
||||
|
||||
execute 'silent edit' $FILEIN
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
silent normal! gg=G
|
||||
execute 'silent write!' $FILEOUT
|
||||
|
||||
quit!
|
||||
Reference in New Issue
Block a user