aboutsummaryrefslogtreecommitdiff
path: root/TABS.md
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-23 17:12:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-23 17:12:27 +1200
commit3778c6a79469b020cebf516c5753b139310deab1 (patch)
tree91489fc21855edfdb7a91936ea6fdafe3d3ff98f /TABS.md
parentMerge branch 'hotfix/v1.37.2' (diff)
parentBump VERSION (diff)
downloaddotfiles-1.38.0.tar.gz (sig)
dotfiles-1.38.0.zip
Merge branch 'release/v1.38.0'v1.38.0
* release/v1.38.0: Bump VERSION Remove now-unneeded :lwindow from \. map Add autocmds to always pop open quickfix/loclist Update TABS.md instructions Expand tabs in TABS.md Inline 'undodir' assignment Remove superfluous [t,]t maps Allow count prefixes for [,] maps Blank 'ttymouse' in Vim
Diffstat (limited to 'TABS.md')
-rw-r--r--TABS.md21
1 files changed, 10 insertions, 11 deletions
diff --git a/TABS.md b/TABS.md
index 46c4b585..e304fdb1 100644
--- a/TABS.md
+++ b/TABS.md
@@ -4,24 +4,23 @@ Spaces to tabs
If you prefer tabs to spaces, the following recipe seems to convert everything
pretty nicely:
- $ find . -name .git -prune -o -name vim -prune -o -type f \
- -exec sh -c \
- 'for f;do unexpand -t4 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \
- _ {} +
+ $ find . -name .git -prune -o -name vim -prune -o -type f \
+ -exec sh -c \
+ 'for f;do unexpand -t4 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \
+ _ {} +
- $ find vim -name bundle -prune -o -type f \
- -exec sh -c \
- 'for f;do unexpand -t2 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \
- _ {} +
+ $ find vim -name bundle -prune -o -type f \
+ -exec sh -c \
+ 'for f;do unexpand -t2 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \
+ _ {} +
If you have GNU unexpand(1) and can add `--first-only` to each of those calls,
the results seem perfect.
-You can configure Vim to accommodate this by removing the settings in
-vim/config/indent.vim for:
+You can configure Vim to accommodate this by removing the settings in vim/vimrc
+for:
* `expandtab`
-* `shiftround`
* `shiftwidth`
* `smarttab`
* `softtabstop`