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 revision Previous revision
Next revision
Previous revision
util:vim [2015/11/11 17:41]
phil [Links]
util:vim [2020/11/17 11:13]
phil [Ranges]
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 | +| . | current ​line | 
-| 2,3 | all from line 2 till inclusively ​line 3 | +| 2,3 | all from line 2 till line 3 inclusively ​
-| ^,$ | all from beginning ​of file till the end |+<​nowiki>​^,$</​nowiki> ​| all from beginning till end of file |
 | +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 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]]
 +  * [[https://​www.vim.org/​scripts/​script.php?​script_id=1697|surround.vim script]]
 +
util/vim.txt · Last modified: 2020/11/17 11:13 by phil