Skip to main content
10 events
when toggle format what by license comment
Sep 2, 2023 at 7:26 comment added Enlico @statox, asked if you're interested.
Aug 29, 2023 at 8:32 comment added Enlico @statox, I asked in a comment first just to make sure I was not making some mistake which is obvious to you or the answerer. Now that I know that's not the case, I'll ask a question. Thanks ;)
Aug 29, 2023 at 7:19 comment added statox @Enlico I don't really have a clue no but you should definitely ask that in a new question (don't forget to include all the relevant code from your config in case it's a simple typo)
Aug 26, 2023 at 6:17 comment added Enlico @statox, in my vimrc I have let mapleader = "\<Space>" and nnoremap <leader>p :pwd<CR>; I've added the command! from your comment (or the one from the answer), and when I open Vim and try :NormLead p, I just get the effect of putting. Any clues?
May 10, 2022 at 21:38 history edited Enlico CC BY-SA 4.0
typo
May 13, 2016 at 9:21 history edited nobe4 CC BY-SA 3.0
added 245 characters in body
May 13, 2016 at 9:20 comment added nobe4 Nice, I'll add this to the answer
May 13, 2016 at 9:19 comment added statox Thanks for your solution! I made it a one-liner to avoid the use of the function: command! -nargs=1 NormLead execute "normal " . (get(g:,"mapleader","\\")==' ' ? "1" : get(g:,"mapleader","\\")) . <f-args>: it is still not perfect (doesn't work with special keys or with combinations beginning with 2 leaders) but that's something
May 13, 2016 at 8:45 history edited nobe4 CC BY-SA 3.0
added 403 characters in body
May 13, 2016 at 8:33 history answered nobe4 CC BY-SA 3.0