3,4c3,4 < " Maintainer: Bram Moolenaar < " Last change: 2015 Mar 24 --- > " Maintainer: Bram Moolenaar > " Last change: 2017 Sep 20 8c8 < " for Amiga: s:.vimrc --- > " for Amiga: s:.vimrc 10c10 < " for OpenVMS: sys$login:.vimrc --- > " for OpenVMS: sys$login:.vimrc 17,46d16 < " Use Vim settings, rather than Vi settings (much better!). < " This must be first, because it changes other options as a side effect. < set nocompatible < < " allow backspacing over everything in insert mode < set backspace=indent,eol,start < < if has("vms") < set nobackup " do not keep a backup file, use versions instead < else < set backup " keep a backup file (restore to previous version) < set undofile " keep an undo file (undo changes after closing) < endif < set history=50 " keep 50 lines of command line history < set ruler " show the cursor position all the time < set showcmd " display incomplete commands < set incsearch " do incremental searching < < " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries < " let &guioptions = substitute(&guioptions, "t", "", "g") < < " Don't use Ex mode, use Q for formatting < map Q gq < < " CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, < " so that you can undo CTRL-U after inserting a line break. < inoremap u < < " Switch syntax highlighting on, when the terminal has colors < " Also switch on highlighting the last used search pattern. 48c18 < syntax on --- > " Switch on highlighting the last used search pattern. 55,60d24 < " Enable file type detection. < " Use the default filetype settings, so that mail gets 'tw' set to 72, < " 'cindent' is on in C files, etc. < " Also load indent files, to automatically do language-dependent indenting. < filetype plugin indent on < 68,75d31 < " When editing a file, always jump to the last known cursor position. < " Don't do it when the position is invalid or when inside an event handler < " (happens when dropping a file on gvim). < autocmd BufReadPost * < \ if line("'\"") >= 1 && line("'\"") <= line("$") | < \ exe "normal! g`\"" | < \ endif < 80c36 < set autoindent " always set autoindenting on --- > set autoindent " always set autoindenting on 84,97c40,46 < " Convenient command to see the difference between the current buffer and the < " file it was loaded from, thus the changes you made. < " Only define it when not defined already. < if !exists(":DiffOrig") < command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis < \ | wincmd p | diffthis < endif < < if has('langmap') && exists('+langnoremap') < " Prevent that the langmap option applies to characters that result from a < " mapping. If unset (default), this may break plugins (but it's backward < " compatible). < set langnoremap < endif --- > set nocp " OPTO22 > set nobackup " OPTO22 > set nowritebackup " OPTO22 > set noundofile " OPTO22 > set tabstop=4 " OPTO22 > set shiftwidth=4 " OPTO22 > set expandtab " OPTO22