tomtom / autolinker_vim

Automatic hyperlinks for any filetype
http://www.vim.org/scripts/script.php?script_id=5253
GNU General Public License v3.0
3 stars 0 forks source link

How to configure hypertext links? #2

Closed sdothum closed 7 years ago

sdothum commented 7 years ago

Glancing around, I am assuming autolinker can perform hypertext links similar to viki and vimwiki for text structures

[[ link ]] [[ link | text ]]

where link may contain more than one word. I am hoping to use autolinker to replace vimwiki (as I don't need all of its functionality and plethora of keymappings) and prefer to use other markup plugins for highlighting. So.. how can one configure autolinker to provide hypertext links with markup documents (assuming it can)?

tomtom commented 7 years ago

[[ link ]] [[ link | text ]]

where link may contain more than one word.

That is, "link" could contain whitespace?

tomtom commented 7 years ago

[[ link ]] [[ link | text ]]

We'd need a filetype to make this work.

sdothum commented 7 years ago

Yes, the link may contain blanks i.e. multiple words between the square brackets. My documents containing such hypertext link structures are given filetype markdown.

tomtom commented 7 years ago

My documents containing such hypertext link structures are given filetype markdown.

That's not standard markdown syntax though, is it?

sdothum commented 7 years ago

No, it"s not. I have just been playing around with my existing vimwiki folders and seeting if there was a lighter way to manage the hypertext documents -- I really only used the hypertext feature of vimwiki for the most part.

Viki in minor mode seems to work well -- though, doesn't work with the second vimwiki link form [[ link | text ]]. I thought autolinker might be lighter plugin if it could be configured appropriately to handle both these link structures.