Questions tagged [surround]

91 questions
0
votes
1 answer

Dynamically Surrounding controls C#

In my code I have some pictureboxes that are clicked onto a panel by the user. Wherever the user clicks a picture box is placed. The location is stored in a database so that it can be called back later. When a user clicks a picturebox it changes…
User9123
  • 23
  • 5
0
votes
3 answers

Using vim-surround with argument to a function

I'm new to vim-surround. I would like to achieve the folowing. I have an html file with many images as this (* is the cursor position): And I would like to change it with this:
Albert Vonpupp
  • 4,557
  • 1
  • 17
  • 20
0
votes
2 answers

How to negate a solr query with the surround query parser

Is there a way to negate a solr surround query? I'm using it in a fq field, if that gives me more options for negating the results. fq={!surround}fieldName:2w(foo,bar) I normally negate a filter by prepending '-', e.g., fq=-fieldName:baz But when…
ajo2995
  • 1
  • 3
0
votes
1 answer

vim surround extension install problems

I am trying to install the vim (7.4) surround extension on Arch Linux (downloaded and installed this week) within an Oracle VM on a Windows 7 host. I am getting a variety of errors including E388 (Could not find definition) when on "Hello World"…
Axiombadger
  • 161
  • 10
0
votes
2 answers

Css div absolute surrounded by text

I am trying to surround div with position: absolute by text. Always text going under div. CSS which I am using: .all { display: block; width: 250px; min-height: 180px; height: auto; position: relative; background:…
Daniel
  • 128
  • 1
  • 2
  • 12
0
votes
3 answers

Using MacVim and surround.vim - Backspace in Visual Mode surrounds text with ""

I just remapped some keys in my .vimrc and I'm getting some wierd behavior. When I select text in visual mode, and hit the delete key, it surrounds the highlighted text with ""... Here's the relevant pieces of my .vimrc "Using Vundle Bundle…
Joe Susnick
  • 6,544
  • 5
  • 44
  • 50
0
votes
1 answer

visual studio 2010 "surround with" hijacked by "pex and moles"

After I installed "Pex and Moles", used for automated testing, my "Surround with" (ctrl + k, s) in Visual Studio 2010 has been "hijacked" by the new add on. This means I can only choose to insert a "PexClass for MSTest", which is kind of annoying…
0
votes
2 answers

Mapping Surround.vim plugin to add Markdown link in visual mode

I am using the following plugin to simplify tagging URLs in Markdown: tpope/vim-surround This works: nmap l Ysurroundiw]%a(*) This doesn't (notice the capital 'S'): vmap l YSurround]%a(*) Any idea…
Forethinker
  • 3,548
  • 4
  • 27
  • 48
0
votes
1 answer

Remove a space before an argument, while adding '(' and ')' with VIM surround

using vim with the plugin vim-surround pretty extensively, and I am really happy with it. However, there is one replacement for witch I haven't found a nice shortcut. The usage case, is the following. I need : def function argument to become (when…
Raphael Pr
  • 896
  • 10
  • 28
0
votes
2 answers

Remove surrounding lines in vim

I often surround some code/text with some other lines of text. For the sake of a concrete example, say I have some text: this is some text I then have macro that lets me convert that (after highlighting the lines) to if false then this is …
0
votes
1 answer

Python: Find Surrounding parts of a string with irrelevant section in the middle

So I have a large string with several similar things. I want to find part of a string but have part of it be irrelevant. For example: "0" blah"11" "0" blah"3" "0" blah"6" "0" blah"600" "0" I want to find ' blah"..." ' Where '...' is the number and I…
user2430629
0
votes
1 answer

automatically surround tag with another tag

Does anybody know a way to surround a predefined tag (eg container-tag) automatically with another tag. eg. you have different container types like article.tag,video.tag,image.tag etc. Everytime I call such a container, I want it to automatically…
heiningair
  • 441
  • 1
  • 6
  • 23
0
votes
1 answer

OpenAL output sound 5.1

In my project I'm using OpenAl, the 3d effect works fine, but only with the left/right speakers.. my pc have a 5.1 system, so 2 rear speakers, 2 front, 1 head and 1 subwoofer. in windows is right configured, so if I see a movie or play a game that…
ghiboz
  • 7,863
  • 21
  • 85
  • 131
0
votes
1 answer

Lucene: Escaping keywords for Surround QueryParser

I'm using Lucene Contrib's SurroundQueryParser, and I've hit an issue with escaping keywords. Unlike Lucene's regular QueryParser, Surround seems to recognize even lower case and/or/not as keywords, and not only the uppercase version, which causes…
Doron Yaacoby
  • 9,412
  • 8
  • 48
  • 59
-1
votes
1 answer

Why isnt my border containing the Button?

I want the "Dive" button to be surrounded by the border aswell. Anybody got an Idea? jsfiddle