question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remap `gt` and `gT` doesn't work on markdown files

See original GitHub issue

hi, currently i’m using <tab> and <s-tab> instead of gt and gT to switch between tabs. however these rebinding keys have no effect on markdown files

" use <tab> and <s-tab> to switch between tabs
nmap <tab> gt
nmap <s-tab> gT

pls note that gt and gT work as expected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
asvetliakovcommented, Aug 24, 2020

@Shatur95 nice catch

filetype is safe to use and can be useful to set per-type specific options/keys. Probably the markdown one, or some vim plugin overrides <tab>/<s-tab> bindings. Should be fixable by putting something like without disabling it:

autocmd FileType markdown nmap <tab> gt

See #115

Also few vim plugins require filetype to work, see #114

1reaction
Shaturcommented, Aug 24, 2020

This option disables settings for specific file extensions. Most likely some plugin or your markdown settings were conflicting with this plugin. It is recommended to disable such stuff in VSCode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Encoding issue with GT object in markdown
The problem only occurs when I generate a markdown file. I read all kinds of similar issues, but I couldn't find anything that...
Read more >
user snippets don't work on markdown files #88129 - GitHub
I set the global user snippets to use for automatic completion of custom code. The test with CPP / CSS / JS file...
Read more >
gtsummary + R Markdown
Here's a summary of the various R Markdown output types and the print engines that support them. Print Engine, Function, HTML, PDF, RTF,...
Read more >
Sacha Chua's Emacs configuration
My old code for refiling to an Org heading in the current buffer didn't work any more, but helm-org-in-buffer-headings seems to be promising....
Read more >
Vim Commands
Bibliography also works with R markdown documents, see rmarkdown ... gt. Move to the previous tab gT. Open the file under the cursor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found