diff --git a/vimrc b/vimrc index 2848ec8..df841e3 100644 --- a/vimrc +++ b/vimrc @@ -18,10 +18,10 @@ set nocompatible " Don't emulate vi's limitations set encoding=utf-8 " Default encoding should always be UTF-8 set tabstop=4 " 4 spaces for tabs set shiftwidth=4 " 4 spaces for indents -"set smarttab " Tab next line based on current line +set smarttab " Tab next line based on current line "set expandtab " Spaces for indentation -"set autoindent " Automatically indent next line -"set smartindent " Indent next line based on current line +set autoindent " Automatically indent next line +set smartindent " Indent next line based on current line "set linebreak " Display long lines wrapped at word boundaries set incsearch " Enable incremental searching set hlsearch " Highlight search matches @@ -280,12 +280,15 @@ imap :silent set number! " Don't force column 0 for # inoremap # X# -" Fix broken shit backspace on csil machines -" in tcsh with badly compiled vims +" Force to be backspace except when in interix mode +" because interix uses that for forward delete... +" and always accept as a backspace key map -map map! -map! +if (&term =~ "interix") + map + map! +endif " Python specific stuff if has('eval')