Mercurial > vim
comparison src/main.c @ 28942:6cdf55afaae9 v8.2.4993
patch 8.2.4993: smart/C/lisp indenting is optional
Commit: https://github.com/vim/vim/commit/8e145b82464a21ee4fdf7948f04e2a1d505f8bfa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 21 20:17:31 2022 +0100
patch 8.2.4993: smart/C/lisp indenting is optional
Problem: smart/C/lisp indenting is optional, which makes the code more
complex, while it only reduces the executable size a bit.
Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 21 May 2022 21:30:04 +0200 |
parents | d770568e6c98 |
children | be6c32395444 |
comparison
equal
deleted
inserted
replaced
28941:f17de8647585 | 28942:6cdf55afaae9 |
---|---|
2178 mch_exit(2); | 2178 mch_exit(2); |
2179 #endif | 2179 #endif |
2180 break; | 2180 break; |
2181 | 2181 |
2182 case 'l': // "-l" lisp mode, 'lisp' and 'showmatch' on | 2182 case 'l': // "-l" lisp mode, 'lisp' and 'showmatch' on |
2183 #ifdef FEAT_LISP | |
2184 set_option_value_give_err((char_u *)"lisp", 1L, NULL, 0); | 2183 set_option_value_give_err((char_u *)"lisp", 1L, NULL, 0); |
2185 p_sm = TRUE; | 2184 p_sm = TRUE; |
2186 #endif | |
2187 break; | 2185 break; |
2188 | 2186 |
2189 case 'M': // "-M" no changes or writing of files | 2187 case 'M': // "-M" no changes or writing of files |
2190 reset_modifiable(); | 2188 reset_modifiable(); |
2191 // FALLTHROUGH | 2189 // FALLTHROUGH |
3492 main_msg(_("-R\t\t\tReadonly mode (like \"view\")")); | 3490 main_msg(_("-R\t\t\tReadonly mode (like \"view\")")); |
3493 main_msg(_("-Z\t\t\tRestricted mode (like \"rvim\")")); | 3491 main_msg(_("-Z\t\t\tRestricted mode (like \"rvim\")")); |
3494 main_msg(_("-m\t\t\tModifications (writing files) not allowed")); | 3492 main_msg(_("-m\t\t\tModifications (writing files) not allowed")); |
3495 main_msg(_("-M\t\t\tModifications in text not allowed")); | 3493 main_msg(_("-M\t\t\tModifications in text not allowed")); |
3496 main_msg(_("-b\t\t\tBinary mode")); | 3494 main_msg(_("-b\t\t\tBinary mode")); |
3497 #ifdef FEAT_LISP | |
3498 main_msg(_("-l\t\t\tLisp mode")); | 3495 main_msg(_("-l\t\t\tLisp mode")); |
3499 #endif | |
3500 main_msg(_("-C\t\t\tCompatible with Vi: 'compatible'")); | 3496 main_msg(_("-C\t\t\tCompatible with Vi: 'compatible'")); |
3501 main_msg(_("-N\t\t\tNot fully Vi compatible: 'nocompatible'")); | 3497 main_msg(_("-N\t\t\tNot fully Vi compatible: 'nocompatible'")); |
3502 main_msg(_("-V[N][fname]\t\tBe verbose [level N] [log messages to fname]")); | 3498 main_msg(_("-V[N][fname]\t\tBe verbose [level N] [log messages to fname]")); |
3503 #ifdef FEAT_EVAL | 3499 #ifdef FEAT_EVAL |
3504 main_msg(_("-D\t\t\tDebugging mode")); | 3500 main_msg(_("-D\t\t\tDebugging mode")); |