diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-10 17:35:54 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-10 17:35:54 +0000 |
commit | 7263a77b998151fa95666d9a379fcc2dd8725ba3 (patch) | |
tree | ef44aa3904439a0766f47b71e30f3c2a61d97c89 /runtime/doc/indent.txt | |
parent | 2bb8df23dc2065304d9fab28be07ba6a7362be6d (diff) | |
download | vim-git-7263a77b998151fa95666d9a379fcc2dd8725ba3.tar.gz |
updated for version 7.1b
Diffstat (limited to 'runtime/doc/indent.txt')
-rw-r--r-- | runtime/doc/indent.txt | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt index fd8aea5b7..f9d1d5644 100644 --- a/runtime/doc/indent.txt +++ b/runtime/doc/indent.txt @@ -1,4 +1,4 @@ -*indent.txt* For Vim version 7.1a. Last change: 2007 Mar 17 +*indent.txt* For Vim version 7.1b. Last change: 2007 May 10 VIM REFERENCE MANUAL by Bram Moolenaar @@ -113,7 +113,7 @@ If you really want to reindent when you type 'o', 'O', 'e', '0', '<', '>', "<!>", respectively, for those keys. For an emacs-style indent mode where lines aren't indented every time you -press Enter but only if you press Tab, I suggest: +press <Enter> but only if you press Tab, I suggest: :set cinkeys=0{,0},:,0#,!<Tab>,!^F You might also want to switch off 'autoindent' then. @@ -515,6 +515,28 @@ Indent for a continuation line: > let g:pyindent_continue = '&sw * 2' +SHELL *ft-sh-indent* + +The amount of indent applied under various circumstances in a shell file can +be configured by setting the following keys in the |Dictionary| +b:sh_indent_defaults to a specific amount or to a |Funcref| that references a +function that will return the amount desired: + +b:sh_indent_options['default'] Default amount of indent. + +b:sh_indent_options['continuation-line'] + Amount of indent to add to a continued line. + +b:sh_indent_options['case-labels'] + Amount of indent to add for case labels. + +b:sh_indent_options['case-statement'] + Amount of indent to add for case statements. + +b:sh_indent_options['case-breaks'] + Amount of indent to add (or more likely + remove) for case breaks. + VERILOG *ft-verilog-indent* General block statements such as if, for, case, always, initial, function, |