+++ /dev/null
-" Make a backup (i. e. 'file~') and save it.
-set backup
-" create ~/tmp/ if it doesn't exist and use ~/tmp to save the
-" backups into
-if has("unix")
- if !isdirectory(expand("~/tmp/vimbak/."))
- !mkdir -p ~/tmp/vimbak
- endif
-endif
-set backupdir=~/tmp/vimbak
" If wordwrap is on, don't split words across lines
set linebreak
-" Don't wrap my lines at 78 chars please!
-set textwidth=0
-
" String to put at the start of lines that have been wrapped
"set showbreak=+
set showbreak=
" Always keep one line of context around the cursor
set scrolloff=1
+" Match search results as you type
+set incsearch
+
+" Ignore case when searching
+set ignorecase
+
+" Ignore the ignorecase character if search contains uppercase chars
+set smartcase
+
+" Highlight search terms
+set hlsearch
+
+" Mouse options
+set mouse=a
+set mousehide
+
--- /dev/null
+" Make vim aware of filetypes
+filetype plugin on
+filetype plugin indent on
+
+" Pick up some filetypes from their extensions
+autocmd BufNewFile,BufRead *.txt setlocal ft=text
+autocmd BufNewFile,BufRead mutt* setlocal ft=mail
+
+" Set options based on filetypes
+autocmd FileType text setlocal textwidth=78 nosmartindent
+autocmd FileType mail setlocal textwidth=78 nosmartindent
+autocmd FileType tex setlocal textwidth=78 nosmartindent
+
set copyindent
" Automatically indent new lines after specific keywords or braces
set smartindent
-" Indent if the line starts with these words
-set cinwords+=def,class,except,try
" Don't jump to the start of a line when typing #
inoremap # X<c-h>#
set softtabstop=4
set shiftwidth=4
-" set [no]expandtab to [not] use spaces
-"function SetTabs(n)
-" exec "set tabstop=" . a:n
-" exec "set softtabstop=" . a:n
-" exec "set shiftwidth=" . a:n
-"endfunction
-
" Use :retab to change the file to entirely space indents
" Use :retab! to change the file to entirely tab indents
+++ /dev/null
-" Mouse options
-set mouse=a
-set mousehide
-
+++ /dev/null
-" Match search results as you type
-set incsearch
-
-" Ignore case when searching
-set ignorecase
-
-" Ignore the ignorecase character if search contains uppercase chars
-set smartcase
-
-" Highlight search terms
-set hlsearch
-
-
" Keep history
set history=100
+" Make a backup (i. e. 'file~') and save it.
+set backup
+" create ~/tmp/ if it doesn't exist and use ~/tmp to save the
+" backups into
+if has("unix")
+ if !isdirectory(expand("~/tmp/vimbak/."))
+ !mkdir -p ~/tmp/vimbak
+ endif
+endif
+set backupdir=~/tmp/vimbak
+
" Backspace should work across lines
set bs=2
-" Make vim aware of filetypes
-filetype plugin on
-
-
" Read files from ~/.vim
-source ~/.vim/backup.vim
source ~/.vim/state.vim
source ~/.vim/display.vim
-source ~/.vim/mouse.vim
source ~/.vim/indent.vim
-source ~/.vim/search.vim
-source ~/.vim/commands.vim
+source ~/.vim/macros.vim
source ~/.vim/commenter.vim
+source ~/.vim/filetypes.vim
if !filereadable(expand("~/.vim/abbrsout.vim"))
!python ~/.vim/abbrs2vim.py
endif