Hi Bram,

On Sun, Jul 24, 2016 at 03:02:56PM +0200, Bram Moolenaar <b...@moolenaar.net> 
wrote:
> Vim has always been conservative about the default option values.

And that is actually a very good thing.

As I work as a consultant, and the systems the customers use have
a wide variety of Linux distributions of varying age and thus vim
default settings, most often I end up setting a few options
anyway.  (I often go with ":se ls=2 nu nocp" and "colorscheme
koehler" for a basic "feel at home" setting, while my .vimrc at
home is rather long (~800 lines)).

I'd like to share some thoughts here.

> What we can probably always do:
> 
>   set backspace=indent,eol,start

I personally don't like that one, especially the "start" part of
it. I always considered it a feature to not be able to backspace
over the start of insert.
Actually, when I encounter a vim that is configured to add
"start" to 'backspace', I usually unset this as soon as I see it.

>   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

I often use all of those, also adding hlsearch.

>   " Don't use Ex mode, use Q for formatting
>   map Q gq

I don't like this one. But then I occassionally actually use Ex mode.

>   " In many terminal emulators the mouse works just fine, thus enable it.
>   if has('mouse')
>     set mouse=a
>   endif

Please... no.
I always hat it whenever a distribution does this by default,
moving the cursor for a simple cut&paste operation.

>   if &t_Co > 2 || has("gui_running")
>     syntax on
>     set hlsearch
>     let c_comment_strings=1
>   endif

I could live with those (usually using most of that anyway, not
the c_comment_strings however)

>   if has("autocmd")
[...]
>   endif

I'd suggest not using that.

>   if has('langmap') && exists('+langnoremap')
>     set langnoremap
>   endif

I don't actually care about this one.

> 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

Yes, please leave those out.


Ciao,
Thomas

-- 
 Thomas Köhler       Email:       jean-...@picard.franken.de
     <><             WWW:              http://gott-gehabt.de
                     IRC: tkoehler       Freenode: thkoehler
                     PGP public key available from Homepage!

-- 
-- 
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.

Raspunde prin e-mail lui