Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
faq:vim_copy_paste [2018/01/24 11:09] – créée ltaulellfaq:vim_copy_paste [2020/08/25 15:58] (Version actuelle) – modification externe 127.0.0.1
Ligne 5: Ligne 5:
 <code bash> <code bash>
 touch ~/.vimrc touch ~/.vimrc
 +</code>
 +
 +Vous pouvez aussi y mettre des options utiles, par exemple :
 +
 +<code vim .vimrc>
 +" colors in vim
 +syntax on
 +colorscheme desert
 +
 +" lignes à 80 caracteres
 +"set textwidth=80
 +
 +" usefull
 +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
 +
 +" python and tab fixed dev:
 +set tabstop=4       " The width of a TAB is set to 4.
 +                    " Still it is a \t. It is just that
 +                    " Vim will interpret it to be having
 +                    " a width of 4.
 +set shiftwidth=4    " Indents will have a width of 4
 +set softtabstop=4   " Sets the number of columns for a TAB
 +set expandtab       " Expand TABs to spaces
 </code> </code>
  
  
 {{tag> faq:vim faq:copier_coller faq:copy_paste faq:error}} {{tag> faq:vim faq:copier_coller faq:copy_paste faq:error}}
faq/vim_copy_paste.1516792191.txt.gz · Dernière modification : 2020/08/25 15:58 (modification externe)