Tuesday, June 13, 2023

Re: How to disable and replace Vim's standard formatting of Pascal

On 2023-06-13 21:18, Steve Litt wrote:
> Using grep, I found there are no files whose names contain the string
> "pascal" in any case in the ~/.vim directory (I'm using Void Linux).

I suspect your frustration is being caused by something in
$VIMRUNTIME/indent/pascal.vim

As such, you should be able to do something like (optionally putting
your settings in there, too)

$ mkdir -p ~/.vim/indent
$ cat >> ~/.vim/indent/pascal.vim <EOF
let b:did_indent = 1
set ai
set expandtab
set tabstop 3
set shiftwidth 3
EOF

or possibly adding something like

autocmd FileType pascal let b:did_indent=1

to your ~/.vimrc might at least prevent the stock indentation
settings.

-tim





--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZIkZxmPxaJTMJ%2BPt%40thechases.com.

No comments:

Post a Comment