New answers tagged

0

I think you want to learn about insert mode abbreviations. :iabbrev :bang #!/usr/bin/python3.9 When you type :bang in INSERT mode, the text will be replaced to #!/usr/bin/python3.9 when you trigger the abbreviation. Abbreviations are triggered when you hit the space bar or return key (among other ways). For an abbreviation with multi-lines, use the <cr&...


0

nmap gy :silent execute "!google-chrome http://google.com/search?q=" . shellescape("<cWORD>") . " &"<CR> vmap gy <Esc>:silent execute "!google-chrome http://google.com/search?q=" . shellescape("<C-r>*") . " &"<CR> The first command allows you press gy to search ...


Top 50 recent answers are included