great, that's what I was looking for.
Funny how in visual mode, $ includes the carriage return, but in normal
mode it doesn't.
On Fri, Apr 4, 2014 at 10:07 PM, Nikolay Pavlov wrote:
>
> On Apr 4, 2014 8:32 PM, "JP Lew" wrote:
> >
> > Hi:
> >
>
Hi:
in order to yank a line, I know I can go `yy`. The problem is, this copies the
carriage return at the end. What I do instead is position the cursor on the
first character of the line, then go `v$hy` to select everything except the
last character from the right.
Is there a better way to do
>
>
> Not in-built. You could do something like
>
> :nnoremap s="+1
>
I see. You're substituting the character, entering expression mode, pasting
it back then adding 1. How clever.
> Part of the problem may have been that vim doesn't discern
> control+{char} from control+shift+{char}, but you
Hi:
I was wondering if it was possible for Vim to increment the character I
have selected under the cursor, rather than the whole number. For example,
let's say I have a line like this:
margin-bottom: 30px;
I want it to be 40px instead. If I place my cursor over the '3' then hit
CTRL-A, I get '31
Hello:
I want to set up an abbreviation in my .vimrc file like this:
iabbr sub the_sub_field('');
However, the delimitMate plugin I have installed automatically expands
'sub' to the following in my PHP file:
the_sub_field(''); '')
Rather than pasting the whole string at one time, it is being
Hi there:
I use Vim to write PHP, and am looking for a way to quickly preview
PHP files through localhost. After some brief research (http://
vim.wikia.com/wiki/VimTip1015), I came up with the following key remap
solution for Mac using xampp:
map :w:!open -a Google\ Chrome `echo
http://localhost
On May 24, 5:31 am, Eljay Love-Jensen wrote:
> There are a lot of powerful editors available. Vim is more than a powerful
> editor. Vim is zen editing. Vim lets me become one with my keyboard and
> edit my document; all the while the editor is not a distracting interface
> but rather is unobtru
(source: http://vim.wikia.com/wiki/Remove_unwanted_empty_lines)
Awesome!
On Tue, May 24, 2011 at 12:26 AM, John Beckett wrote:
> JP Lew wrote:
> > No matter which document I'm editing, whenever I search for a
> > carriage return like this:
> >
> > /\r
> >
&g
Hi there:
No matter which document I'm editing, whenever I search for a carriage
return like this:
/\r
I get the following error message:
E486: Pattern not found: \r
It's puzzling because Vim is matching other character classes like \t
and \n without any problems. I know for a fact that my docu