user1685095
  • Member for 5 years, 11 months
  • Last seen more than a month ago
In vimrc, how can I chain multiple instructions in one Leader command
Accepted answer
3 votes

One way to do that is map <leader>c :execute 'GitGutterToggle \| set invnumber'<cr> I don't have gitgutter so I've tested it with nnoremap <leader>c :exe 'echom "some" \| echom "...

View answer
Regexp for beginning of word?
0 votes

Although ugly this does what you need. At least in your example. I think it could be simplified, but wouldn't bother to do so. \(\<\|\([a-z0-9]\?\(\( \|_\)\zs\|\zs\u\)\)\) With very magic \v(<|(...

View answer