Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Mar 28, 2011, 10:29:35 PM (13 years ago)
- Author:
-
John Bailey
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
19 | 19 | |
20 | 20 | Make sure this hook runs after your normal setup hook, if your normal hook sets a style. The or is included just to show how to match multiple paths. You may perform the selection however you like, path snippets just happen to be useful given my filesystem organization. -- [wiki:elb] |
| 21 | |
| 22 | == VIM == |
| 23 | |
| 24 | Regardless of what the indentation style and tab width convention is in the rest of the tree, the !ChangeLog and NEWS files should always use a tab width of 8. This may not be the right or best .vimrc snippet to do this, but it works. Insert this snippet into .vimrc (.gvimrc for you GUI addicts) ''after'' your existing tab configuration: |
| 25 | |
| 26 | {{{ |
| 27 | autocmd! BufReadPost,BufNewFile */ChangeLog call <SID>ChangeLogNewsOptions() |
| 28 | autocmd! BufReadPost,BufNewFile */NEWS call <SID>ChangeLogNewsOptions() |
| 29 | |
| 30 | function! <SID>ChangeLogNewsOptions() |
| 31 | " These settings affect ChangeLog and NEWS files only |
| 32 | setlocal sw=8 |
| 33 | setlocal tabstop=8 |
| 34 | endfunction |
| 35 | }}} |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!