User Tools

Site Tools


util:vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
util:vim [2011/12/24 14:48] – external edit 127.0.0.1util:vim [2020/11/17 11:11] phil
Line 44: Line 44:
  
 ===== Helpful Settings ===== ===== Helpful Settings =====
-^ Variable ^ Abbrev ^ Type ^ Meaning ^+^ Variable ^ Abbrev ^ Type ^ Effect ^
 | filetype | ft | String | defines the filetype, used for syntax highlighting | | filetype | ft | String | defines the filetype, used for syntax highlighting |
 | modeline | ? | Boolean | activates the interpretation of ''modelines'' | | modeline | ? | Boolean | activates the interpretation of ''modelines'' |
Line 57: Line 57:
  
 ===== Commands To Know By Heart ===== ===== Commands To Know By Heart =====
-^ Command ^ Meaning ^+^ Command ^ Effect ^
 | <nowiki>^g</nowiki> | show file status information | | <nowiki>^g</nowiki> | show file status information |
 | ZZ | like '':wq'', but vim-specific | | ZZ | like '':wq'', but vim-specific |
 +^ copy'n'paste ^|
 | yy | copy actual line to clipboard | | yy | copy actual line to clipboard |
-| p | paste clipboard **after** the cursor | +| p | paste **after** the cursor | 
-| P | paste clipboard **before** the cursor |+| P | paste **before** the cursor 
 +| "*p | Paste from "selection" clipboard (i.e., the regular clipboard) | 
 +| "+p | Paste from "desktop" clipboard (i.e., what applications use to copy into or paste from) |
 ^ Changing Modes^| ^ Changing Modes^|
 | I | insert at beginning of line | | I | insert at beginning of line |
Line 113: Line 116:
  
 ===== Ranges ===== ===== Ranges =====
-^ Example ^ Meaning ^+^ Example ^ Effect ^
 | . | actual line | | . | actual line |
 | 2,3 | all from line 2 till inclusively line 3 | | 2,3 | all from line 2 till inclusively line 3 |
-| ^,$ | all from beginning of file till the end |+<nowiki>^,$</nowiki> | all from beginning of file till the end |
 | +2,+3 | all from two lines after cursor till three lines after cursor | | +2,+3 | all from two lines after cursor till three lines after cursor |
  
Line 240: Line 243:
   * [[http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html|Graphical Cheat Sheet and tutorial]]   * [[http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html|Graphical Cheat Sheet and tutorial]]
   * [[http://www.vim.org/scripts/script.php?script_id=610|ctags.vim script]]   * [[http://www.vim.org/scripts/script.php?script_id=610|ctags.vim script]]
 +  * [[http://vim.wikia.com/wiki/Accessing_the_system_clipboard|Accessing the System Clipboard]]
 +  * [[http://vim.wikia.com/wiki/VimTip188|Search Patterns]]
 +  * [[https://www.vim.org/scripts/script.php?script_id=1697|surround.vim script]]
  
util/vim.txt · Last modified: 2021/07/14 18:50 by phil