" Uncomment the following to have Vim jump to the last position when " reopening a file if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif " Uncomment the following to have Vim load indentation rules and plugins " according to the detected filetype. filetype plugin on filetype indent on filetype plugin indent on " The following are commented out as they cause vim to behave a lot " differently from regular Vi. They are highly recommended though. set showcmd " Show (partial) command in status line. set showmatch " Show matching brackets. set ignorecase " Do case insensitive matching set smartcase " Do smart case matching set incsearch " Incremental search set autowrite " Automatically save before commands like :next and :make "set hidden " Hide buffers when they are abandoned set mouse=a " Enable mouse usage (all modes) set hlsearch " Highlight search results autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab autocmd FileType Makefile set tabstop=8|set shiftwidth=8|set noexpandtab autocmd FileType java set tabstop=2|set shiftwidth=2|set expandtab set autoindent set smartindent set list listchars=extends:>,precedes:<,tab:.\ ,trail:* set ruler " Show the line and column number of the cursor position, separated by a comma. set backspace=indent,start,eol " allow backspacing over line breaks set history=50 set incsearch set nobackup " do not keep backup files set writebackup " but have backup files during write set noexpandtab " keep tabs (do not replace with space) set number " print line numbers set wrap lbr " wrap lines after words " determines shift for >> and << command set shiftwidth=8 set tabstop=8 syntax on set clipboard=exclude:.* set wildmode=list:longest map + :resize +1 map - :resize -1 map :vertical resize -1 map :vertical resize +1 "colorscheme phate hi LineNr ctermfg=Black if (match(&term, "^screen") >= 0) set t_ts=k set t_fs=\ set title endif if (match(&term, "^xterm") >= 0) set title endif