info:vi_vim

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
info:vi_vim [2014/02/19 15:17] – modification externe 127.0.0.1info:vi_vim [2021/11/11 08:11] (Version actuelle) – radeff
Ligne 1: Ligne 1:
-Vi (vim)+====== Vi (vim) ======
  
-find/replace #! /bin/csh -f ed junk.txt « 'EOF' 1,$s/705/379/g w 'EOF'+Vim, c'est THE éditeur qui correspond, dans le monde des transports, au tracteur soviétique des années '60 (la land-rover étant [[.emacs:start]]); pas toujours très convivial, mais permet de tout faire... 
 + 
 +http://www.vim.org/ 
 + 
 +===== Astuces ===== 
 +prochain mot: w 
 + 
 +mot précédent: b 
 + 
 +   find/replace #! /bin/csh -f ed junk.txt « 'EOF' 1,$s/705/379/g w 'EOF'
  
 <code> <code>
Ligne 47: Ligne 56:
 le tout, of course, à mettre dans le fichier .rc, comme ça, au startup, les keys sont déjà mappés le tout, of course, à mettre dans le fichier .rc, comme ça, au startup, les keys sont déjà mappés
  
-[[http://www.nacs.uci.edu/indiv/gdh/vi/index.html#geek_chic|http://www.nacs.uci.edu/indiv/gdh/vi/index.html#geek_chic]]+http://www.nacs.uci.edu/indiv/gdh/vi/index.html#geek_chic (dead link) 
 + 
 +==== Delete all lines containing a pattern ==== 
 + http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern 
 +<code> 
 +For example, to delete all lines containing "profile" (remove the /d to show the lines that the command will delete): 
 + 
 +:g/profile/d 
 + 
 +More complex patterns can be used, such as deleting all lines that are empty or that contain only whitespace: 
 + 
 +:g/^\s*$/d 
 + 
 +To delete all lines that do not contain a pattern, use g!, like this command to delete all lines that are not comment lines in a Vim script: 
 + 
 +:g!/^\s*"/d 
 +</code> 
 +===== Vim documentation ===== 
 +  
 + 
 +http://freeengineer.org/learnUNIXin10minutes.html#Vi 
 + 
 +http://vimdoc.sourceforge.net/htmldoc/usr_toc.html 
 + 
 +http://blog.interlinked.org/tutorials/vim_tutorial.html 
 + 
 +http://linux.dbw.org/vi_short_ref.html 
 + 
 +[[VIM AVEC STATA (en mode konsole)]] 
 + 
 + 
  • info/vi_vim.1392819443.txt.gz
  • Dernière modification : 2014/06/13 06:53
  • (modification externe)