Mercurial > vim
comparison runtime/doc/syntax.txt @ 823:9ab23f1e137f v7.0c12
updated for version 7.0c12
author | vimboss |
---|---|
date | Fri, 07 Apr 2006 21:40:07 +0000 |
parents | 23f82b5d2814 |
children | 6675076019ae |
comparison
equal
deleted
inserted
replaced
822:45fad0f590d0 | 823:9ab23f1e137f |
---|---|
1 *syntax.txt* For Vim version 7.0c. Last change: 2006 Apr 04 | 1 *syntax.txt* For Vim version 7.0c. Last change: 2006 Apr 06 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
2579 To copy a pixel with one of the colors, yank a "pixel" with "yl" and insert it | 2579 To copy a pixel with one of the colors, yank a "pixel" with "yl" and insert it |
2580 somewhere else with "P". | 2580 somewhere else with "P". |
2581 | 2581 |
2582 Do you want to draw with the mouse? Try the following: > | 2582 Do you want to draw with the mouse? Try the following: > |
2583 :function! GetPixel() | 2583 :function! GetPixel() |
2584 : let c = getline(line("."))[col(".") - 1] | 2584 : let c = getline(".")[col(".") - 1] |
2585 : echo c | 2585 : echo c |
2586 : exe "noremap <LeftMouse> <LeftMouse>r".c | 2586 : exe "noremap <LeftMouse> <LeftMouse>r".c |
2587 : exe "noremap <LeftDrag> <LeftMouse>r".c | 2587 : exe "noremap <LeftDrag> <LeftMouse>r".c |
2588 :endfunction | 2588 :endfunction |
2589 :noremap <RightMouse> <LeftMouse>:call GetPixel()<CR> | 2589 :noremap <RightMouse> <LeftMouse>:call GetPixel()<CR> |