Comments (20)
Do you mind pasting the raw text from the search window in here. Only what's visible in the screenshot would suffice. This could be a syntax highlighting bug.
from vim-ags.
Actually when I try to do that it copies the text correctly (without any highlight markers).
Interestingly when I select a line that has correctly highlighted line number using V
the highlighting markers appear. Also when I move the cursor on the line with broken highlighting it fixes it (only on some lines). Its hard to describe the issue in letters but it definitely looks like a highlighting bug.
from vim-ags.
The nocolor option works for me when I pass it from the command line Ags --nocolor current
but that's not a solution as that removes all highlighting. So, are the results the same for you with or without that option? Also, do you have a recent version of the plugin?
from vim-ags.
Seems to work fine for me otherwise.
from vim-ags.
I think I have the latest version (installed yesterday).
When I run with --nocolor
on command it works but has no color obviously.
If it works for you maybe some other plugin is messing with it. Will try in clean vim installation.
from vim-ags.
One more thing, the highlight markers are used for coloring the syntax. If you want to see the raw text you can do :syntax off
. But, on copy those markers are removed. You can still paste the text with the markers if you use the 0 register "0p
from vim-ags.
I also wonder if this could be a vim version discrepancy. My version is
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 13 2015 23:48:18)
MacOS X (unix) version
Included patches: 1-622
from vim-ags.
I'm closing this as there seems to be no new input.
from vim-ags.
I was seeing the same issue, both with Vim (patch 692) and NeoVim (recent version).
It looked like this:
[1;31mdocs/conf.py[0m[K
[1;30m125 [0m[K-# of the sidebar.
[1;30m126 [0m[K-#html_logo = None
[1;30m127 [0m[K-
[1;30m128 [0m[K:64:# The name of an image file (within the static path) to use as [32;40mfavicon[0m[K of the
[1;30m129 [0m[K-# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
[1;30m130 [0m[K-# pixels large.
[1;30m131 [0m[K:7:#html_[32;40mfavicon[0m[K = None
[1;30m132 [0m[K-
[1;30m133 [0m[K-# Add any paths that contain custom static files (such as style sheets) here,
[1;30m134 [0m[K-# relative to this directory. They are copied after the builtin static files,
This appears to be caused because the &filetype of the buffer is not being set, and that seems to be a consequent of using Neobundle to load the plugin after Vim startup, just with NeoBundle "gabesoft/vim-ags"
(for testing it).
The file ftdetect/agsv.vim
is not being sourced/used in this case.
It would require to do filetype off
and filetype plugin on
first.
Adding the plugin to vimrc proper (before the filetype command fixes it).
from vim-ags.
For me the filetype for ags
buffer is set correctly. My .vimrc
goes like this:
" GENERAL
set nocompatible
filetype off
" PLUGINS
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gabesoft/vim-ags'
call vundle#end()
" GENERAL
filetype plugin indent on
syntax on
from vim-ags.
@mikekreeki
And does it look like in my paste for you?
Does :filetype off
, :filetype plugin indent on
fix it for you?
Or when you reload the file (:e
)?
from vim-ags.
@mikekreeki I still think that in your case it may be a syntax bug because only some of the lines don't get highlighted. But, I wasn't able to reproduce the problem just from the screeshot. It would help if you could paste the original text from your file.
from vim-ags.
@blueyed I've got the exact same issue as you did, using pathogen, but moving the pathogen#infect()
line around doesn't fix it:
execute pathogen#infect()
syntax on
filetype plugin indent on
Doing :set filetype=agsv
fixes the rendering.
ftdetect
is not being called apparently and I'm not sure why :(
from vim-ags.
I was able to fix it by putting
autocmd BufWinEnter {*.agsv} syntax on
in my vimrc.
from vim-ags.
@smith Your solution works for me too
from vim-ags.
@smith didn't work for me (where did you put it?)
However this did:
autocmd BufNewFile,BufRead,BufEnter *.agsv set filetype=agsv
It's still a hack though.
from vim-ags.
@vaskas it's somewhere in the middle :) after the Vundle setup stuff.
from vim-ags.
When using junegunn/rainbow_parentheses.vim the above problem occurs. The filetype and syntax are correctly set to agsv.
Cheers
from vim-ags.
Unfortunately, I'm not able to reproduce this. The search results display fine for me even when the rainbow parentheses are enabled. However, you could try disabling them for agse
and agsv
file types.
autocmd FileType agse,agsv RainbowParentheses!
from vim-ags.
Thnx, thats a work around. Let me know if you want me to try out something :)
from vim-ags.
Related Issues (20)
- What's the difference between this plugin and CtrlSF HOT 1
- How can I return back to SearchView from Edit Mode HOT 1
- Why can't I add lines to the edit view? HOT 1
- Lightline integration on readme HOT 2
- Problems getting search to follow symlinks HOT 4
- replace breaks format
- [Neovim] add async support? HOT 5
- reuse last window behavior HOT 4
- default mapping for next/prev result HOT 2
- Searching from git root HOT 10
- Regression for searches with spaces? HOT 2
- Open a file in a new tab HOT 5
- Optionally populate location/quickfix list HOT 3
- Edit mode HOT 3
- [Question] Mapping :Ags HOT 1
- Can't cancel long searches HOT 1
- Can't open files from search results
- Add folding markers
- Search results on new MacBook includes color encodings HOT 1
- file name encoding problem HOT 1
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-ags.