Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
You may want to try detectindent or vim-sleuth to automatically set your indent to match the file -- vim has a lot of indent settings and these plugins should set them consistently. However, if your files often contain a lot of weird/inconsistent whitespace, they won't work very well.
I added filetype indent off so that indent plugins for the various languages would not automatically execute, and then I set smartindent so that regardless of what kind of file I'm editing it (very!) simply just re-uses the same indent from the previous line. For everything else I just manually ctrl-t/ctrl-d as I type.
Related posts
- whiteinge/dotfiles: dotfiles for vim, git, zsh, cwm, xinit, and many others. Install with: lndir -silent /path/to/dotfiles $HOME
- gotz: CLI tool for cross timezone teams
- Units CLI Question
- To people who have tons of shell scripts and aliases, how do you organize/categorize them?
- Is there any shortcoming on having a seamless navigation between vim and tmux?