How do I configure vim so that I can delete a tab one space at a time rather than the entire tab? I often want to do this when I'm trying to align multiple tests for an if statement. In the below example, condition3 is aligned as I want and condition2 is off by one space due to the tab.
if condition1 or \
condition2 or \
condition3:
do something
I'm using vim 7.2.108 on OSX 10.6.7 and have the following mode line in my code file:
# ex: tabstop=4 softtabstop=1 shiftwidth=4 expandtab:
FWIW, this mode line does allow me to use the arrow keys to navigate through a tab one space at a time.
Update: Here's the changes I've made to the example vimrc file from Bram Mooleanar:
map z :w<cr>
map q :q!<cr>
map m :make<cr>
set expandtab
set shiftwidth=4
set tabstop=4
set bs=2 " backspace over anything in insert mode
set showmatch " display the matching bracket of the pair
set nowrap " don't wrap line to fit window
set showmatch " show matching paren, bracket, or brace
set ruler " show current cursor position at bottom
set incsearch " show next match as you type in search pattern
set ignorecase
set smartcase
syntax on " enable syntax highlighting