diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-04-23 10:00:32 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-04-23 10:00:32 +0200 |
commit | 0b0760536f122b2aa2b2e84a821fd82603737401 (patch) | |
tree | 5364eb9d7559ea31ade630ceba814a6033efb137 | |
parent | 0d651219b5d107dc19c4e941907bfd45aea58d9d (diff) | |
download | vim-gitmodeline-0b0760536f122b2aa2b2e84a821fd82603737401.tar.gz vim-gitmodeline-0b0760536f122b2aa2b2e84a821fd82603737401.tar.xz vim-gitmodeline-0b0760536f122b2aa2b2e84a821fd82603737401.zip |
Add filetype specific modeline to README.
-rw-r--r-- | README | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -7,6 +7,16 @@ To set a modeline in the git config you can do it with the following command: git config --add vim.modeline "tabstop=8 shiftwidth=8 noexpandtab cindent" +To set a format specific modeline (you'll need the filetype plugin on), just +define a vim.modeline.<FT> git config entry. + +Example, C indented with 4 spaces, but Makefile with 8 space tabs: + + git config --add vim.modeline.c "ts=4 sw=4 et" + git config --add vim.modeline.make "ts=8 sw=8 noet" + +If no filetype specific entry can be found it will use the default modeline. + The allowed modelines are defined in a variable and can be overwritten and extended by setting the following in your .vimrc: |