Suggest a vim task for a college workshop

2009-08-23 Thread Vlad Dogaru
Hello Vim users, at the suggestion of a Reddit user, I am 'crossposting' a question I posted on the Vim Reddit[1]. [1] http://www.reddit.com/r/vim/comments/9dd7i/hey_rvim_please_suggest_a_task_for_a_college/ === I'm helping out with writing a task/tutorial-based lab for a freshman college class

Re: annoying difference between vim and notepad

2009-08-23 Thread Vlad Dogaru
On Sun, 23 Aug 2009 16:52:00 -0700 (PDT) drlatex wrote: > So my question is, why does vim not have the \n at the end after > pressing %j! , while matlab and notepad seem to thing there IS a \n > at the end ?? And is there a way to modify the files with vim so that > matlab and notepad don't add

Re: Remove everything up to and including a certain word

2009-08-24 Thread Vlad Dogaru
On Mon, 24 Aug 2009 14:18:00 -0700 (PDT) drlatex wrote: > > > Hello there vimmers, > > I was wondering if I could remove everything in a file up to AND > including a certain word within the file. > > Let's say I have something like "...hello word123" > > And I want only 123 to remain.

Re: Suggest a vim task for a college workshop

2009-08-26 Thread Vlad Dogaru
Ben Fritz wrote: > > > > On Aug 25, 8:14 pm, Ken Bloom wrote: >> >> When I first got interested in vim, it was because I watched people do >> vi's relatively simple navigation things -- being able to move a word at >> a time, delete a word, replace a word with simple keystrokes. >> >> But I don't

Re: Aliasing ex commands for typos

2009-08-26 Thread Vlad Dogaru
On Wed, 26 Aug 2009 06:39:12 -0700 Danny Colligan wrote: > > Hello, > > In ex mode, I often make the typo of having the first letter of the > command capitalized (for instance, ":Set nu" instead of ":set nu") > since my finger is still on the shift key after typing the colon. > Some ex command

Re: colorscheme in vimrc not setting background

2009-09-07 Thread Vlad Dogaru
On Mon, 7 Sep 2009 23:33:03 +0200 Nathan Huesken wrote: > - It happens with all colorschemes > - I am on archlinux > - I am using the gui > - When I do :hi normal guibg=black in the gui, it works > but when I do "hi normal guibg=black" in my .vimrc, it is no help :( Gvim sources /etc/vim/gvimrc

Re: n00b needs help with @ and ~ on empty lines

2009-10-05 Thread Vlad Dogaru
On Mon, 5 Oct 2009 13:14:00 -0700 (PDT) Bill wrote: > > I have been using vim for a week but my searches have not yielded an > answer for the following question regarding vim 7.2.245 on my xp box. > > Vim inserts several blue tilde signs (~) on empty lines *below* my > text. I don't know why it

Re: Paragraph formatting help

2010-01-13 Thread Vlad Dogaru
On 01/13/2010 05:22 PM, sc wrote: > On Wednesday 13 January 2010 09:18:11 am Keyan wrote: > >> i know about the 'qwap' option, which formats a paragraph, but >> i have to following problem. assume i have this text: >> >> aaa >> bbb dddf ff s >> dfs dff >> df ff ddf dff >> >> where the curso

Re: Insert line breaks

2010-03-19 Thread Vlad Dogaru
On 03/19/2010 11:25 AM, j.hofm...@e-punkt.eu wrote: > Hello, > > I have a file with one long line. > How can I insert a line break every n columns? You can set 'textwidth' at n columns: :set tw=n Then you can use gqgq to format the current line to obey the textwidth. A side-effect is that (usu

Re: foldmethod=indent and tabstop=4

2010-04-27 Thread Vlad Dogaru
On Tue, 2010-04-27 at 14:20 -0400, Jeremiah Martell wrote: > I can't seem to get these two to work together: > > set foldmethod=indent > set tabstop=4 Also set 'shiftwidth'. Help on fold-indent explains that shiftwidth is the value that governs folds. It's common _not_ to change tabstop, but onl

Re: foldmethod=indent and tabstop=4

2010-04-27 Thread Vlad Dogaru
On Tue, 2010-04-27 at 15:38 -0400, Jeremiah Martell wrote: > It also fixed the folding issue, but broke my syntax matching for > tabs. > > I have this line in a special syntax file: > syn match SpecialK /\t/ > > But (with softtabstop instead of tabstop) it only matches double tabs > (8 spaces),

Re: foldmethod=indent and tabstop=4

2010-04-27 Thread Vlad Dogaru
On Tue, 2010-04-27 at 22:52 +0300, Vlad Dogaru wrote: > I'm not really sure about this, but Vim might be inserting tabs every 8 > consecutive spaces. Try setting list to see if there really are tabs > instead of 8 spaces and, if so, setting notabstop, even

Re: vim rectangular selection on windows XP

2010-07-14 Thread Vlad Dogaru
On Wed, Jul 14, 2010 at 04:12:11AM -0700, kapil_vim wrote: > > Hi Vim'ers > > i have been using vim past quite some times on linux but now have > been pushed to windows and there on gvim i am not able to use regular CTRL-v > for rectangular selection. Please tell me how do we achieve thi

Re: I think vim.org should have a common plugin package on vim.org

2010-08-04 Thread Vlad Dogaru
On Wed, Aug 04, 2010 at 12:05:21PM +0300, Boyko Bantchev wrote: > On 3 August 2010 21:54, H Xu wrote: > > Many people quit using vim because they think vim is not as powerful as > > emacs. However, mostly this is because they don't install vim plugins. > > The way you put it already places Vim i