Mercurial > vim
comparison src/normal.c @ 24866:f1121eb17e14 v8.2.2971
patch 8.2.2971: cannot yank a block without trailing spaces
Commit: https://github.com/vim/vim/commit/544a38e44db0f25ec4fa7a2a4666cf28a2336f33
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Jun 10 19:39:11 2021 +0200
patch 8.2.2971: cannot yank a block without trailing spaces
Problem: Cannot yank a block without trailing spaces.
Solution: Add the "zy" command. (Christian Brabandt, closes https://github.com/vim/vim/issues/8292)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Jun 2021 19:45:02 +0200 |
parents | b032da736676 |
children | 8f2262c72178 |
comparison
equal
deleted
inserted
replaced
24865:8dfff43cdcb8 | 24866:f1121eb17e14 |
---|---|
2983 | 2983 |
2984 // "zp", "zP" in block mode put without addind trailing spaces | 2984 // "zp", "zP" in block mode put without addind trailing spaces |
2985 case 'P': | 2985 case 'P': |
2986 case 'p': nv_put(cap); | 2986 case 'p': nv_put(cap); |
2987 break; | 2987 break; |
2988 // "zy" Yank without trailing spaces | |
2989 case 'y': nv_operator(cap); | |
2990 break; | |
2988 #ifdef FEAT_FOLDING | 2991 #ifdef FEAT_FOLDING |
2989 // "zF": create fold command | 2992 // "zF": create fold command |
2990 // "zf": create fold operator | 2993 // "zf": create fold operator |
2991 case 'F': | 2994 case 'F': |
2992 case 'f': if (foldManualAllowed(TRUE)) | 2995 case 'f': if (foldManualAllowed(TRUE)) |