User Tools

Site Tools


vim:leader

Differences

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

Link to this comparison view

Next revision
Previous revision
vim:leader [2021/02/15 22:27] – created petervim:leader [2021/02/15 23:21] (current) peter
Line 13: Line 13:
  
 In this example,it would delete the current line. In this example,it would delete the current line.
 +
 +  * **:nnoremap**:   denotes normal mode.
  
 Why not just map **d** to **dd**.  Surely this would save typing a keystroke. Why not just map **d** to **dd**.  Surely this would save typing a keystroke.
  
-This could be dangerous, as just typing a single character could delete data. +  * This could be dangerous, as just typing a single character could delete data. 
- +  As a safety precaution it is best to have to type this extra character. 
-As a safety precaution it is best to have to type this extra character. +  But what if in future you want to change this prefix character? 
- +  One way is to manually modify each alias.  Alternatively, use a leader.
-But what if in future you want to change this prefix character? +
- +
-One way is to manually modify each alias.  Alternatively, use a leader.+
 </WRAP> </WRAP>
  
Line 62: Line 61:
 **NOTE:**   **NOTE:**  
  
-  * **<nowiki>\\</nowiki>** is used, and not just **<nowiki>\</nowiki>**  because <nowiki>\</nowiki> is the escape character in Vimscript strings.+  * **<nowiki>\\</nowiki>** is used, and not just **<nowiki>\</nowiki>**  because <nowiki>\</nowiki> is the escape character.
  
 The <localleader> can be used just like <leader>. The <localleader> can be used just like <leader>.
Line 82: Line 81:
  
 https://learnvimscriptthehardway.stevelosh.com/chapters/06.html https://learnvimscriptthehardway.stevelosh.com/chapters/06.html
 +
 +https://vim.fandom.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_1)
 +
 +https://vimhelp.org/syntax.txt.html
vim/leader.1613428058.txt.gz · Last modified: 2021/02/15 22:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki