File: test.vim

package info (click to toggle)
vim-vimtex 2.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (34 lines) | stat: -rw-r--r-- 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set nocompatible
set runtimepath^=../..
filetype plugin indent on
syntax 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!