Christian Brabandt wrote: > > set backspace=indent,eol,start > > +1 > > > set history=50 " keep 50 lines of command line history > > Why only 50?
Good point, the Vim default already is 50. That changed a while back. How about 200? > And while we are it, increase the undolevels setting The default already is 1000. A higher value is mainly useful in combination with 'undofile', but we don't want to set that. > > set ruler " show the cursor position all the time > > set showcmd " display incomplete commands > > set incsearch " do incremental searching > > " Don't use Ex mode, use Q for formatting > > map Q gq > > > > " In many terminal emulators the mouse works just fine, thus enable it. > > if has('mouse') > > set mouse=a > > endif > > don't care. > > > if &t_Co > 2 || has("gui_running") > > syntax on > > set hlsearch > > please no hlsearch. That is most often annoying. Well, I find it useful. But I suppose that's more a personal preference. > > if has("autocmd") > > " Enable file type detection. > > filetype plugin indent on > > +1 > > > > > augroup vimrcEx > > au! > > > > " For all text files set 'textwidth' to 78 characters. > > autocmd FileType text setlocal textwidth=78 > > Isn't text a fallback, that is used, when no other type is found? I > wouldn't set this one then. No, but it can trigger quite often. I suppose this is too arbitrary. > > > " 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 > > +1 > > > Probably not: > > > > " these two leave files behind > > set backup > > set undofile > > > > " may conflict with a user mapping > > inoremap <C-U> <C-G>u<C-U> > > > > " hard to revert > > if has('syntax') && has('eval') > > packadd matchit > > endif > > +1 for not setting those. although I would still make <c-u> in insert > mode undoable. OK. > some more I would set, the mentioned > :set display+=lastline As mentioned, I don't use it myself, I expect long time Vi/Vim users to be surprised if this changes. > :set nrformat-=octal (often does unexpected things, when the user does > not expect it) OK. > and possibly also: > :set laststatus=2 That takes an extra line from the screen. I suppose it's useful if you have a plugin for a super status line. -- The Law of VIM: For each member b of the possible behaviour space B of program P, there exists a finite time t before which at least one user u in the total user space U of program P will request b becomes a member of the allowed behaviour space B' (B' <= B). In other words: Sooner or later everyone wants everything as an option. -- Vince Negri /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.