" Demian L. Neidetcher - the 2nd .vimrc " Settings syntax on colorscheme elflord if (has("gui")) colorscheme elflord set guifont=Andale\ Mono\ 11 endif " Settings set autoindent " always do auto indent set autoread " if the file changed under us, update set autowriteall " do automatic backups set background=dark " assume dark bg for coloring text set backup " before over-writing a file, make a backup set backupdir=~/.vim " put backups and temp files in a ~/.vim directory set directory=~/.vim " set expandtab " never insert tab characters, just use spaces "set foldmethod=indent " automatically indent on indentation "set foldnestmax=2 " don't next folds too much set hlsearch " after a search, hilight the matches set ignorecase " ignore case for searches set incsearch " while doing a search, incrementally show matches set infercase " for code completion, don't worry about case set matchpairs+=<:> " match pairs of angle brackets also for XML & HTML set nocompatible " don't try to be like the old vi set number " show line numbers set scrolloff=5 " keep the cursor at least 5 lines inside the screen set shiftround " when >< shifting, round off to the nearest shiftwidth set shiftwidth=3 " how far to do indents set showmatch " jump to the matching pair briefly set smartcase " if you type in uppercase chars in a search, ignore ignorecase set smartindent " indent like for Java/ C programs set smarttab " handles spaces just like tabs set tabstop=3 " how many spaces equal a tab set visualbell " flash the screen instead of beeping highlight Normal ctermbg=black ctermfg=white " Java settings "autocmd BufRead *.java match Error /\%>80v./ autocmd BufRead *.java iab println System.out.println(""); autocmd BufRead *.java iab log log.debug("" + );hhi " Python settings autocmd BufRead *.py match Error /\%>80v./ " code wrangling map M :!multiply.py " code multiplication map L :!lineUp.py " line up visually selected statements map S :!a2s.py " change the name to 'schema' map A :!s2a.py " change the name to 'attribute' " navigating through tabs map H :tabp " go to the previous tab map L :tabn " to to the previous tab map S :so ~/.vimrc " re-source the .vimrc file " abbreviations iab dln Demian L. Neidetcher iab currDate =strftime("%Y.%m.%d %H:%M") iab teh the iab kko au BufRead,BufNewFile *.plan set filetype=plan au! Syntax plan source ~/.vim/syntax/plan.vim au BufRead,BufNewFile *.t2t set filetype=txt2tags au! Syntax txt2tags source ~/.vim/syntax/txt2tags.vim