Created
June 25, 2014 22:56
-
-
Save brandonpittman/b3575c324c0c2c9d8d26 to your computer and use it in GitHub Desktop.
Upated autolink.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" autolink.vim: find and insert URLs for links in Markdown and ReST | |
function! AutoLinkDefaultBindings() | |
nnoremap <Leader>ac :call autolink#DefComplete()<CR> | |
nnoremap <Leader>am :call autolink#DefCreate()<CR> | |
nnoremap <Leader>al :call autolink#Combined()<CR> | |
nnoremap <Leader>aB :call autolink#AppendBrowserURL()<CR> | |
nnoremap <Leader>ab :call autolink#CombinedBrowser()<CR> | |
endfunction | |
augroup AutoLink | |
autocmd! | |
autocmd FileType markdown,rst :call AutoLinkDefaultBindings() | |
autocmd BufRead,BufNewFile *jrnl :call AutoLinkDefaultBindings() | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment