You will find the slides here: talk/talk.pdf
The command :MapathonHelp
picks up the word under the cursor and uses sprintf
to format the url:
:MapathonHelp <url-for-sprintf>
:MapathonHelp www.url.com/with-%s-to-format-the-search
Assembles a shell command: g:MapathonBrowserExec + g:MapathonBrowserArgs + sprintf(url,word_under_cursor)
Call search in your browser:
:MapathonSearch <search-terms>
:MapathonSearch please google fix my bug
:MapathonSearch please stackoverflow fix my bug
Assembles a shell command: g:MapathonBrowserExec + g:MapathonBrowserArgs + g:MapathonBrowserSearchFlag + shellescape(searchterm)
Configure your browser via these variables in your .vimrc
:
let g:MapathonBrowserExec = 'firefox'
let g:MapathonBrowserArgs = '-new-window'
let g:MapathonBrowserSearchFlag = '-search'
talk/talk.pdf
: the slidesplugin/mapathon.vim
: the code examplesrc/custom.vimrc
: example maps for your.vimrc
Command-Line Completion Plug-in by KingTiger: cmdline completion
Enables CTRL+P
and CTRL+N
keyword completion on the command-line.