-
as seen on Super User
- Search for 'Super User'
Like many of you, my custom Vim configuration is stored in my ~/.vimrc, with the plugins, colors, etc. stored under ~/.vim/plugins, ~/.vim/colors, etc.
I want to share a single Vim configuration among many servers. Some of these servers run Vim 7, some run the older Vim 6. Most Vim plugins are intended…
>>> More
-
as seen on Super User
- Search for 'Super User'
I'm trying to use Pathogen to manage my Vim extensions. My bundle folder looks like this:
.../bundle/
+-- vim-pathogen
¦ +-- autoload
¦ +-- pathogen.vim
+-- vim-smoothscroll
+-- autoload
+-- smooth_scroll.vim
And my vimrc file includes this:
let s:root = fnamemodify(resolve(expand(":p"))…
>>> More
-
as seen on Super User
- Search for 'Super User'
I created a custom syntax file, and but none of the files in $VIMRUNTIME seem to load. I followed these pieces of the documentation:
http://vimdoc.sourceforge.net/htmldoc/filetype.html#new-filetype
http://vimdoc.sourceforge.net/htmldoc/syntax.html#mysyntaxfile
When I do
:echo &runtimepath
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The "matchit" plugin for vim is supposed to allow you to use the % key to jump between matching start/end tags when editing HTML, as well as /* and */ comment delimiters when editing other kinds of code.
I've followed the exact instructions in ":help matchit", but % still doesn't work for me.
It…
>>> More
-
as seen on Super User
- Search for 'Super User'
I store, commands found at http://www.commandlinefu.com/commands/browse, in a text file.
If I open this text file in Vim and I want to execute the command where the cursor is actually located I do copy the line with Y, switching to command mode with : and !CTRL+r*
Is there a more "lazy" possibility ;)
>>> More
-
as seen on Oracle Blogs
- Search for 'Oracle Blogs'
A few nights ago I received a comment on one of our blog posts that reminded me of a statistic that I heard a while back. The statistic reflected the change in our views towards work and showed how while people in past generations would stay in one role for their working career - now with so much…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
The query is simple:
SELECT
TB.ID,
TB.Latitude,
TB.Longitude,
111151.29341326*SQRT(pow(-6.185-TB.Latitude,2)+pow(106.773-TB.Longitude,2)*cos(-6.185*0.017453292519943)*cos(TB.Latitude*0.017453292519943)) AS Distance
FROM
`tablebusiness` AS TB
WHERE
-6.2767668133836 < TB.Latitude AND…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using the new in-app SMS features in my iPhone app, but obviously iPod Touches aren't able to send and receive SMS without support of a third party app.
I know all well how to detect the device and how to hide a UIButton, but what I do not know is how to change the width of the others.
Above…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
As the title says, I have a problem with binding to a change in a dropdown select list - it seems that "change" doesn't work with IE(7 or 8), so when I try the alternative and use a "click" event, it works in IE but doesn't work in Chrome! Am I missing something obvious here?
Here's my code:
//event…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm looking for a method of how to change the contents of a div when an option on a select dropdown is selected.
I came across the following:
<script type="text/javascript" src="jquery.js"></script>
<!-- the select -->
<select id="thechoices">
<option value="box1">Box…
>>> More