I broke up with neovim....vim is my best friend now
This commit is contained in:
25
dot_vim/plugged/vimtex/test/test-formatting/test.vim
Normal file
25
dot_vim/plugged/vimtex/test/test-formatting/test.vim
Normal file
@@ -0,0 +1,25 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
set nomore
|
||||
set textwidth=79
|
||||
set nojoinspaces
|
||||
set shiftwidth=2
|
||||
|
||||
let g:vimtex_format_enabled = 1
|
||||
|
||||
let s:file = empty($FILE) ? 'test-01' : $FILE
|
||||
|
||||
|
||||
execute 'silent edit' s:file . '.tex'
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
silent normal! gggqG
|
||||
|
||||
execute 'silent write!' s:file . '.out'
|
||||
quit!
|
||||
Reference in New Issue
Block a user