Domain: vim.org
Stories and comments across the archive that link to vim.org.
Comments · 469
-
Vim?
There doesn't appear to be support for Vim but that already has another script called snipMate http://www.vim.org/scripts/script.php?script_id=2540
-
Re:First prevorb
Well, tools aren't a big problem.
I can think of three off the top of my head that I know work fine, and I'm pretty sure I could add Eclipse and Anjuta to the list.
Incosistent implementation is an issue, but jQuery fixes a lot of that. I only had to add two or three functions to my 'compatibility.js' file I use with everything to get IE in line (the rest of the stuff is things I think JS is missing in the default).
Granted, I'd still rather be programming in Python, C or even Java with a good UI library, but for the purposes of web development, it's not bad, and it takes some display related logic off of my servers, without having a huge client side hit.
-
But, does it have...
But, does it have a good text editor?
-
Re:Why bother?
WTF? It's like saying somebody should buy an F1 car just because it's fastest
I agree 100%. People should buy a machine to suit their needs. Anyone who blindly buys the fastest model available is just being egotistical and foolish.
which does not cost them their house and children
A new Mac mini goes for $599 and a MacBook is $999. This is hardly "house and children" figures. Pick a reasonable Mac then go to Dell and spec out a similar machine. The PC prices will be in a close neighborhood.
not require special fuel and can run on ordinary road
This article is not about the iPhone. It is about Apple systems running OS X that can utilize Boot Camp.
Hardly any "special fuel" required on OS X systems. Take your pick from any of the great open source apps available for the platform: Firefox, Thunderbird, Inkscape, Gimp, VLC, Eclipse, the list goes on. Wanna write some code? Xcode comes free with OS X. Don't wanna use Xcode, then use another IDE or directly use make, gcc, gdb, and vim.
As for your "ordinary road" comment
... I'm writing this on a four year old iMac. Over the years I've upgraded the memory (Crucial has great prices) and hard drive (1TB was only $99 at Fry's). My mouse of choice is a five button Logitech scroll mouse. I hardly feel "locked in" or "abused".Way to go on a tangent!
Way to spread FUD. How about we just let people use the computer that best suits their needs.
Getting back on topic, I've been running Windows 7 in both Boot Camp and Parallels 5 with no problems. I don't know what the damage is with this "article".
-
Vim (+ plugins) + cgdb
I use Vim (mostly gvim built with gtk2) with the following plugins:
- bufexplorer: a quick way for changing buffers
- cscope_maps: full access to cscope, inside vim.
- taglist: by using (ex)ctags it gives you a window with all the tags in the opened files, with the possibility to quickly jump to any tag you wantI also set shortcuts for building and cleaning projects (for instance F8 and F9), for checking errors (F3 to open build log, F4 and F5 to go to prev. and next error), for folding and for many other things.
The only thing that I haven't tried yet is to integrate vim with gdb (I think I saw some plugins for this), and only because I already use cgdb, which is extremely useful. Basically you have a gdb with the extra benefit of having a special window for code listing.
Also, I can use this combination over ssh, which is a big plus for me.Another option would be to go for xemacs, which is at least as powerful.
-
Vim (+ plugins) + cgdb
I use Vim (mostly gvim built with gtk2) with the following plugins:
- bufexplorer: a quick way for changing buffers
- cscope_maps: full access to cscope, inside vim.
- taglist: by using (ex)ctags it gives you a window with all the tags in the opened files, with the possibility to quickly jump to any tag you wantI also set shortcuts for building and cleaning projects (for instance F8 and F9), for checking errors (F3 to open build log, F4 and F5 to go to prev. and next error), for folding and for many other things.
The only thing that I haven't tried yet is to integrate vim with gdb (I think I saw some plugins for this), and only because I already use cgdb, which is extremely useful. Basically you have a gdb with the extra benefit of having a special window for code listing.
Also, I can use this combination over ssh, which is a big plus for me.Another option would be to go for xemacs, which is at least as powerful.
-
Re:Project Pane
Try NERDTree. It looks and operates better than project.vim and also handles tabs better.
-
Re:Netbeans ( or others )
And if you want to use Visual Studio then visit the main download page
http://www.vim.org/download.php and get:
ftp://ftp.vim.org/pub/vim/pc/gvim72ole.zip
(OLE GUI executable, A GUI version with OLE support. This offers a few extra features, such as integration with Visual Developer Studio. But it uses quite a bit more memory.)And you can safely disregard the more memory part, if you are already using visual studio
:Dhttp://vim.wikia.com/wiki/Integrate_gvim_with_Visual_Studio for tips if you need help setting it up.
-
Re:Netbeans ( or others )
And if you want to use Visual Studio then visit the main download page
http://www.vim.org/download.php and get:
ftp://ftp.vim.org/pub/vim/pc/gvim72ole.zip
(OLE GUI executable, A GUI version with OLE support. This offers a few extra features, such as integration with Visual Developer Studio. But it uses quite a bit more memory.)And you can safely disregard the more memory part, if you are already using visual studio
:Dhttp://vim.wikia.com/wiki/Integrate_gvim_with_Visual_Studio for tips if you need help setting it up.
-
Re:Netbeans ( or others )
http://www.vim.org/scripts/script.php?script_id=864
It runs - I don't use VIM so I never ran it.
-
Re:dm-crypt
Not bad. In fact, there's a great plugin for vim, that uses openssl just like
that for creating a command-line password safe:
http://www.vim.org/scripts/script.php?script_id=2012However, your 2nd step is very questionable. You should instead use:
shred -vuz passwd.txt
Better yet, you do all this on a LUKS partition. (Then you might get away with a
simple rm.) -
Re:Please: No More Vertical Text
Dear KDE devs,
Please rethink the vertical text that has infected KDE4 like so much ringworm. It's hard to read, hard to use, and completely unnecessary. Also, please stop aping Windows Vista and 7. Or at least stop copying their bad ideas.
Thanks.
If you find that your text editor has to much wasted space, and you don't like frilly visuals, perhaps you should try the next generation of editors
-
Re:My first question would be...
gvim. Need I say any more?
-
Use this.
http://www.vim.org/scripts/script.php?script_id=2012
It handles de- and encryption transparently.
-
vim gpg
I'm not kidding...get it here.
I keep an encrypted password file (several copies, actually) that I use with a GPG key. If GPG is good enough to general-use encryption, it's certainly good enough for your password needs.
-
Re:The list, for those who don't care about pictur
Scilab numerical algebra system
unxutils native ports of some unix utilities to Win32
speedcrunch calculator
vim better than emacs
Sumatra PDF fast clean pdf viewer -
Re:HEY!
Linux version here:
I also like the openssl VIM plugin for a text file 'password safe', since you don't even need a X GUI to access it:
-
Vim has a menu bar now
But making the average Joe choose between Notepad and vim would certainly be a distaster for those that chose vim.
Why? Modern versions of Vim and Emacs have a traditional Windows-style menu bar (see Vim screenshot) to let the user copy and paste with less retraining than from Microsoft Office 2003 to Microsoft Office 2007.
-
Re:"Power Users"? I don't think so...
Vim: http://www.vim.org/
ssh: Comes with Cygwin
screen: Dunno, never used that one.
a decent terminal: What's so indecent about cmd.exe?
partimage: Try running "diskmgmt.msc"
rysnc: Dunno, but rsync comes with Cygwin. :)
Apache: Comes with Cygwin. Never worked too hard on configuring it, though.
Postfix: Why can't you just use GMail like everybody else? :P Or at least have a dedicated mail server besides your Windows machine?
Courier: Wikipedia says it's mainly for Windows.
Squirrelmail: See Postfix -
Re:I lol'd
Does Vim count? If so, I give you Vimacs
-
Re:Blatant Hijack of thread
There are some modules aimed at code folding, but they all appear to be line based.
I'm not very expienced with folding, so I might be missing something. Maybe if you explore the depths of Folding by Syntax or Folding by Expression.
Sorry I couldn't be more help.
-
Re:Blatant Hijack of thread
There are some modules aimed at code folding, but they all appear to be line based.
I'm not very expienced with folding, so I might be missing something. Maybe if you explore the depths of Folding by Syntax or Folding by Expression.
Sorry I couldn't be more help.
-
Re:Please...
I work daily with humongous text files. I have found no other editor that performs as well when you work with text files that are in several gigabytes range.
Not in Debian (or maybe all of Linux?) it doesn't.
Sorry, I view that link you gave as less of a bug report than a Twit Alert. Seriously, when was the last time you ran across a 2.7 GB file of nulls and thought of it as a text file to be edited?
The relevant section of the Vim docs explains that the maximum length of a line and the maximum number of lines per file depends on the local size of long integers, typically 32 bits. So if your box is limited to 2G lines per file and 2GB per line, is it any wonder there's an error message upon encountering 2.7 GB of nulls?
This evening I edited a 3.1 GB text file (generated from the dictionaries on my Ubuntu 8.04.2, AKA Debian Linux box) without any problems at all. 334M lines of text, averaging what, 9 characters per line? So to run into vim's limit I'd have to be editing close to 20 GB of dictionary words. Or for 90-character log file line lengths, somewhere in the vicinity of 200 GB of text.
So. no, I don't think that special case of a null file warrants real-world concern.
Tyler
-
Re:Am I crazy?
Am I crazy - or has vim 7.2 been out for a while?
* app-editors/vim
Latest version available: 7.2.021
Latest version installed: 7.2
Size of files: 9,077 kB
Homepage: http://www.vim.org/
Description: Vim, an improved vi-style text editor
License: vim -
Re:Full 'nix for arm?
Stop using only "w" exclusively - there are dozens of nav key combinations you can use with vim to move around. By using only the "skip to next word" function you're using it like one might use MS Word. There are tonnes of others - http://www.vim.org/htmldoc/usr_03.html
-
Re:Palantype, Velotype, Stenotype
Well - be there's arpeggio for vim:
http://www.vim.org/scripts/script.php?script_id=2425
And apparently "The concept of this plugin is derived from Emacs' key-chord.el" - so there you go. All proper IDEs support it already ;) -
Re:Bought the EEE, Switched to XP
And yeah... Sometimes I even miss the CLI and the joys of mpg123, mikmod, vim, and making a simple Perl script to modify 1000+ HTML files in the blink of an eye...
Vim is available for Windows, both as a console mode application and native Win32 GUI. Quite a few programmers I know actually use it as their primary editor.
Perl is absolutely there. Don't bother with ActiveState, go for Strawberry Perl for maximum portability.
Regarding CLI in general, I'd suggest looking into PowerShell. MS is investing pretty heavily into it and seem determined to move all Windows admins to it (oh, those poor MCSEs!). It is in general pretty nicely done, and logically extends and generalizes the original concept of the Unix shell in a way that makes more sense for some use cases (raw byte streams are not always the best way of passing data around).
If you're just feeling nostalgic for bash and zsh, you have several options. The GNU-Win32 project provides native (MinGW-based) ports for a lot of Unix utilities, including bash. Cygwin is a popular alternative that provides more faithful emulation of Unix environment on top of Win32 - including fork(), symlinks, and so on. Finally, there's Microsoft SUA ("Subsystem for Unix Applications"), which is a WinNT POSIX-compatible subsystem. Note that, unlike Cygwin, it's not build on top of Win32 - it's another subsystem, working in parallel to Win32, directly on top of the NT kernel. It has quite a few Unix utilities ported to it, including bash and Perl. This one actually comes for free in Win2008, and also Vista Enterprise and Ultimate editions.
-
Commenting
For commenting, I usually just use the NERD Commenter plugin. Easier to use than constant regular expressions.
\\cc - comment selected (highlighted) block.
\\cu - uncomment selected block.
-
custom motions really make the difference
I use a lot of custom motions on top of the stock vim ones. My two most often used are:
http://www.vim.org/scripts/script.php?script_id=1905
and
http://vim.sourceforge.net/scripts/script.php?script_id=30
It's the motions that really make editing with vim a pleasure.
No more tapping "l" through someones longCamelCaseClassName to change it. 2,wc,w jumps in 2 words, removes the third and drops you into insert mode.
Similarily, v]fd deletes a function in python. ]] jumps to the next class definition.
More motions are better. They help you edit the text structurally rather than as a stream of characters.
-
Re:Replacement
The "mark" facility is one of the most powerful things in Vim. The m[a-z] syntax drops a marker at the current position of the cursor. So you have the full alphabet at your disposal for markers, not just a & b.
The " ' " (the single quote char) with a mark letter is how you address a mark. This can be combined with many Vim commands. Example: drop a marker-h (mh) at the function you are working on, then no matter where you move to in the file, typing "'h" will take you to the "home" function you are working on.
To yank a series of lines, drop a marker-a (ma) at the beginning of the series of lines. Move down to the bottom of where you wish to yank. Hit "y'a" and you will yank all the lines from marker-a to your current position and can then "place" them (I call it drop them) with the p or P commands.
There are plenty of other marker capabilities and many other cool things in Vim. Steve Qualline's great book "VI iMproved", http://www.amazon.com/iMproved-VIM-Landmark-Steve-Oualline/dp/0735710015/ref=pd_bbs_sr_3?ie=UTF8&s=books&qid=1226030977&sr=8-3, is a great read and well worth the money for it. For those that can not afford it, it is also available as an online PDF ftp://ftp.vim.org/pub/vim/doc/book/vimbook-OPL.pdf
-
Re:f and t
if you like vimdiff, then did you know about
:diffsplit <filename>, :diffthis, :diffoffOr the VCSCommand plugin for doing vimdiff against a CVS/SVN/GIT repository
:VCSVimDiff -
Re:split
Also use
:diffsplit <filename> to diff one file with another.Use
:diffget and :diffput to shift changes between the two filesGet the VCSCommand vim plugin (one of the most useful plugins, but there are many more), and do
:VCSVimDiff r200 and get an interactive diff with your repository (svn,cvs,git) or things like :VCSBlame, :VCSCommit, :VCSLog, :VCSRevert etcIf you have two files open you can on diff mode using
:diffthis and :diffoff -
Perhaps two of the weirdest: Ctrl-A and Ctrl-X
(in vim only), Ctrl-A and Ctrl-X find the next number on the line starting at the cursor, and then increment or decrement it respectively.
Apart from being weird, these are surprisingly useful sometimes, e.g. toggling "#if 0" to "#if 1"...
-
Why asking...
RTFM : http://www.vim.org/htmldoc/help.html Damn...
:q!kill -9 !^ ty.. now that the frustration is gone I'm feeling so much better... pls post interesting news :) -
Re:Tab
How about this?
-
Re:No chrome until adblock and flashblockAnd mozex or It's all text.
Same reason I won't switch to Opera. I like vim.
Oh, and don't forget about noscript, even if Chrome runs javascript faster, most of the time, I don't care.
-
Re:Time to learn Linux
I'm typing this right now on an Ubuntu-based system with an nVidia card running dual monitors. There's a number of "user-friendly" methods of installing nVidia drivers, like Envy, but I just do it the good 'ol fashioned way:
(1) Download from nVidia's site, just as you would with Windows drivers.
(2) Stop X
(With a standard Ubuntu install:)
Ctrl-Alt-F1 for command line
sudo /etc/init.d/gdm stop
(3) cd to the directory I downloaded the drivers too
(4) sudo sh [driver-file-name]
(4.5) Type password
(5) Hit "OK" or "Next" a whole bunch of times.
(6) Start X again
sudo /etc/init.d/gdm start
To configure it (for things like dual-monitors:)
(1) Open a command line while in the gui (I think it's Applications -> Console... something like that)
(2) sudo nvidia-settings
Next time you give it a go try those instructions, or try Envy.
I've also got an EeePC. The pre-installed Xandros really sucks, sadly. If you get one, go ahead and get an SDHC card with it. It can boot from an OS installed on either the main flash drive or the SDHC slot (or something through USB) - which means you can try to install Ubuntu (or another distro - anything but that icky pre-installed one) on the SDHC card without worrying messing up the software it comes with. I highly recommend checking out eeexubuntu. It's got the reasonably noob-friendly Ubuntu goodness tweeked for the eeepc.
Also, one last thing - if you have the time and patience (and aren't already familiar with it), take a look at vi. When I got the eeepc, I found I could not keep up with my professors in class on the limited keyboard - I've been dependent on things like home/end and pageup/down, which aren't quite as accessible as they are on a full keyboard. I was directed by a friend to vi (well, specifically vim) which is a great text editing program that functions fine with the eeepc's limited, cramped keyboard. While it's mostly popular with Linux folk, there's a solid Windows version you can try. It's very, very different and is not user friendly at all, but in terms of typing notes in class the improvement is enormous. I'd recommend you at least give it a look, even if you find it's too much to try to pick up and drop it. -
Re:What's next?
vim http://www.vim.org/
Elvis http://elvis.vi-editor.org/
nvi http://www.bostic.com/vi/
vile http://invisible-island.net/vile/
viper http://www.delorie.com/gnu/docs/emacs/viper.html
March in the Clones; http://www.guckes.net/vi/clones.php3 -
Re:What is "vim"?
Normally I'd assume somebody asking what vim is was trying to troll, but from the rest of your post, I'm guessing you really don't know, so...
Vim is Vi Improved. It's a highly configurable, very powerful text editor aimed at programmers. Virtually all Linux programmers are familiar with it, and there are constant wars over whether it or emacs is the better editor. Personally, I prefer vim.
Also, just so you know, LCDs do not "refresh" like CRTs do. CRTs constantly redraw the entire picture a certain number of times per second, and that's their refresh rate. 60 Hz is a bit on the low side; that is generally the lowest that's considered acceptable, and there are a lot of people who can see a noticeable flicker. Good CRTs support refresh rates of up to 85 Hz. LCDs do not need to constantly redraw the entire picture; pixels are only changed when their color is changed. The concept of a "refresh rate" is meaningless for LCDs, although it is useful to measure how long it takes a pixel to turn from pure white to pure black.
-
ps_color.vim
I've been using ps_color.vim in VIM for over six years now. It works well with several programming languages. I highly recommended it.
-
Borland color scheme
I always liked the old Borland Turbo Pascal/C++ yellow white on a dark blue background color scheme.
-
Vim and desert
No question desert[1] is the best color scheme. Easy on the eyes, good contrast, good colors for different types of programming language components. It's a standard color scheme in Vim. On an xterm I for the colors to 256 and then use desert256[2].
[1] http://www.vim.org/scripts/script.php?script_id=105
[2] http://www.vim.org/scripts/script.php?script_id=1243 -
Vim and desert
No question desert[1] is the best color scheme. Easy on the eyes, good contrast, good colors for different types of programming language components. It's a standard color scheme in Vim. On an xterm I for the colors to 256 and then use desert256[2].
[1] http://www.vim.org/scripts/script.php?script_id=105
[2] http://www.vim.org/scripts/script.php?script_id=1243 -
darkdesert
I'm using darkdesert for some time now. http://www.vim.org/scripts/script.php?script_id=105
-
try zenburn
-
Zenburn
I love Zenburn. I use it on all my machines now and at work.
But there is one thing you should do in your
.vimrc prior to setting :colorscheme zenburn, and that is forcing the use of 256 colors: :set t_Co=256Also I found that the search highlighting wasn't visible enough for my taste, so I tuned it. After
:colorscheme zenburn I have: :hi search ctermbg=223 ctermfg=238 :hi incsearch ctermbg=216 ctermfg=242And if you like to have a little more contrast, then insert the following before your
:colorscheme zenburn: :let g:zenburn_high_Contrast = 1which together makes for this:
:set t_Co=256 :let g:zenburn_high_Contrast = 1 :colorscheme zenburn :hi search ctermbg=223 ctermfg=238 :hi incsearch ctermbg=216 ctermfg=242
-
Zenburn
Zenburn is a low-contrast colour scheme for low-light conditions. It is popular color scheme among programmers because it is very easy on the eyes.
Legend says it was used by the ancients when they developed teh internets and our realm.
* http://www.codinghorror.com/blog/archives/000682.html
* http://slinky.imukuppi.org/zenburn/
* http://www.vim.org/scripts/script.php?script_id=415
* http://slinky.imukuppi.org/2006/10/31/just-some-alien-fruit-salad-to-keep-you-i n-the-zone/
* http://termos.vemod.net/zenburn-for-konsole -
Re:Mod parent up
Thanks for the positive comment; I guess all the time I've spent idling on various IRC channels (which, with the exception of #mplayer and #mplayerdev, are mostly anime-related) has to count for something.
I'm involved with a couple of fansub groups, as well, and that's where most of the knowledge of subtitle formats comes from; most groups are moving towards soft-sub (ASS) MKVs with x264 video for their primary releases, and the quality of stuff out there is very good, with subtitles that are generally better than the licensed DVDs, particularly in terms of subtitles (you can't do much with DVD subs, unfortunately).
It also doesn't hurt that I'm geeky enough to hack at subtitles with text editors (instead of tools like Aegisub. IMO, it's a sign of how awesome vim is that there's SSA syntax highlighting for use with it. Plus, with tools like mkvtoolnix, it's easy to extract tracks and remux MKVs, which is great if you're obsessive enough to want to correct subtitles, or to merge a video file and external subs.
If nothing else, hopefully a few people picked up something worthwhile from the post; one of my friends saw it and was thanking me for the MPlayer config; I guess he didn't realize that he could set MPlayer to auto-play specific tracks. That has always been one of my favorite features.
Still, despite all of the VLC-bashing in this story, I have a lot of positive things to say about it, it definitely has some value as a player, even if I seldom use it. Mostly, I recommend it to less technical friends who aren't going to use it to watch soft-subbed video, since it can generally play everything and the kitchen sink, without having to monkey with codecs. And the streaming features are nice, should you need that sort of thing.
Thanks again.
-
Donate when you solve a problemI always donate when I just solved a problem with some piece of software, or found a particular functionality I appreciate:
- When I merged two pieces of source code using Meld, I donated $10
- Upon finding out I could resize windows in Vim in an xterm, I donated $10, and another $5 when I found out how nicely it works together with X11 clipboards
- When my business started earning money, I donated to CentOS because that's what's installed on my servers
- When the Dag Wieers RPM repository had packaged a piece of software for me, he saved me an hour of work -- so I donated $10
-
Re:!= Gobuntu?
Does this mea flame war is gonna start or are we just gonna all try Vimacs.
Or we could admit that both text editors have there own advantages and disadvatages and use wichever we want for the task.
also try booting up windows and edit somthing in notepad for ten minuetes then try your least fav editor in the VI/emacs debate bet it seems a hole lot better