Comments (5)
For vim-polyglot you also have the option, to disable a certain filetype plugin, e.g.
let g:polyglot_disabled = ['org']
from vim-orgmode.
After doing some debugging, I actually found the source of the problem: If someone is using a plugin, which already shortens links in orgmode-style (like org.vim or vim-polyglot, the links vanish.
My solution:
In <plugin_folder>/vim-orgmode/syntax/org.vim
introduce a new global variable at the beginning:
if !exists("g:conceal_org_hyperlinks")
let g:vim_orgmode_conceal_hyperlinks=1
endif
And then around line 276 wrap the whole highlighting code in an if clause:
" Hyperlinks: {{{1
if (g:vim_orgmode_conceal_hyperlinks == 1)
syntax match hyperlink "\[\{2}[^][]*\(\]\[[^][]*\)\?\]\{2}" contains=hyperlinkBracketsLeft,hyperlinkURL,hyperlinkBracketsRight containedin=ALL
if (s:conceal_aggressively == 1)
syntax match hyperlinkBracketsLeft contained "\[\{2}#\?" conceal
else
syntax match hyperlinkBracketsLeft contained "\[\{2}" conceal
endif
syntax match hyperlinkURL contained "[^][]*\]\[" conceal
syntax match hyperlinkBracketsRight contained "\]\{2}" conceal
hi def link hyperlink Underlined
endif
Now I am able to disable the vim-orgmode link concealing & highlighting with the following line in my .vimrc:
let g:vim_orgmode_conceal_hyperlinks=0
from vim-orgmode.
Quick work around is to disable conceal in
<plugin_folder>/vim-orgmode/ftplugin/org.vim
Comment out the following line (line 30)
setlocal conceallevel=2 concealcursor=nc
from vim-orgmode.
I can confirm this problem. The workaround expands the links completely, which is actually very noisy. Any news on this?
from vim-orgmode.
@seflue thanks for solving this. The following works!
For vim-polyglot you also have the option, to disable a certain filetype plugin, e.g.
let g:polyglot_disabled = ['org']
However, It would be great to put in a pull request for the orgmode_conceal_hyperlinks option.
from vim-orgmode.
Related Issues (20)
- Re-number lists
- Key mappings are not added after installation HOT 4
- Maintainer HOT 2
- Willing to be maintainer HOT 4
- insert timestamp with current time
- AttributeError: module 'collections' has no attribute 'Iterable' in Python 3.10.1-1 HOT 4
- how to display <leader>caa result when start vim HOT 1
- E117: Unknown function: <SNR>254_ReadTodoKeywords HOT 1
- Keybindings do not work when installing using the package feature of Vim 8
- E117: Unknown function: <SNR>69_ReadTodoKeywords
- How to disable a keybinding HOT 1
- Github project description still states "UNMAINTAINED" HOT 2
- Can be this plugin forked? HOT 1
- no fold found HOT 3
- Fold plain lists sublists HOT 1
- Cannot install into Vim 9 on Mac OS using built-in plugin manager HOT 1
- always fold when insert date
- Python 3.12 and `imp` HOT 3
- Can't find function names to call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-orgmode.