User Tools

Site Tools


util:vim

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
util:vim [2015/11/11 17:41] – [Links] philutil:vim [2020/11/16 13:21] – Add info about system clipboards 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 |
Line 242: Line 245:
   * [[http://vim.wikia.com/wiki/Accessing_the_system_clipboard|Accessing the System Clipboard]]   * [[http://vim.wikia.com/wiki/Accessing_the_system_clipboard|Accessing the System Clipboard]]
   * [[http://vim.wikia.com/wiki/VimTip188|Search Patterns]]   * [[http://vim.wikia.com/wiki/VimTip188|Search Patterns]]
 +
util/vim.txt · Last modified: 2021/07/14 18:50 by phil