Am 2014-06-30 19:40, schrieb Sarath Addanki:
> I tried all the options suggested here. I have understood the problem
> more clearly now.
>
>
> Problematic Case:
> 1)Open a remote session to hpux machine via putty.
> 2)Open Vim and paste text (that has atleast 3 lines)
> 3)paste operation freezes and text animates slowly.
>
> I have tried the following stuff to narrow out the possible issues
>
> Case 1:
> Repeat Step 1.
> Open vi and paste text. Works perfectly
>
> Case 2:
> Repeat Step 1.
> Open emacs and paste text. Works perfectly
>
> Case 3:
> Repeat Step 1.
> Open gVim and paste text. No issues (though gvim startup time is slow)
>
> Case 4:
> Repeat Step 1.
> Recompile vim with the following options --with-features=huge
> --enable=gui=no
> Repeat Step 2 & Step 3. Still slow.
>
> Case 5:
> Repeat Step 1.
> Open Vim with the following command
> vim -u NONE -U NONE -N -i NONE -V16
>
> Saw the error message:
> Opening the X display failed. Result is same(slow paste)
>
> Case 6:
> Repeat Step 1.
> Open Vim the following command
> vim -X -u NONE -U NONE -N -i NONE -V16
>
> Error message in Case 5 disappears. But Result is same(slow paste)
>
> Case 7:
> Repeat Step 1.
> Open Vim with file containing some text. Copy some 10+ lines in Visual
> mode and paste. No issues. So, Paste inside editor works.
>
>
> In the above cases, paste means I have copied text outside of putty
> and pasting into Vim editor which is inside Putty. I'm on Windows 7.
>
> pasting from external source seems problem. I don't know how to
> trouble shoot this problem further.
Since you already recompiled your Vim, would it be hard for you to
profile it?
That might give us a clue, what is going on.
Best,
Christian
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Monday, June 30, 2014
Re: vim 7.4: pasting is very slow on HP UX machine.
On 2014-07-01, John Beckett wrote:
> Sarath Addanki wrote:
> > I'm using right click to paste into Vim via PuTTY.
>
> Has anyone pointed out what is happening? On paste (right
> click), PuTTY sends each character from the clipboard over the
> SSH session to the server where Vim is running, as if you had
> typed the character. I do not know the details, but PuTTY must
> somehow throttle sending in order to avoid overrunning the input
> buffer on the server. My guess is that slow pasting is an
> unavoidable consequence.
That's a good point, John, but Sarath did the same pasting into vi
(vim tiny?) and emacs and neither was as slow as vim, so it's not
just PuTTY.
I wonder if the problem would be there using telnet instead of ssh
and if so, if Wireshark would reveal anything interesting.
> I don't need to use PuTTY much, but in the past I have found it
> easier to use a separate command prompt window to upload a file
> (pscpy) with whatever text I needed, then read it into Vim (:r
> filename.txt).
I use PuTTY on Windows 7 over ssh to vim on Linux all the time and
most of the time I don't notice any speed issues at all, including
when I paste.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Sarath Addanki wrote:
> > I'm using right click to paste into Vim via PuTTY.
>
> Has anyone pointed out what is happening? On paste (right
> click), PuTTY sends each character from the clipboard over the
> SSH session to the server where Vim is running, as if you had
> typed the character. I do not know the details, but PuTTY must
> somehow throttle sending in order to avoid overrunning the input
> buffer on the server. My guess is that slow pasting is an
> unavoidable consequence.
That's a good point, John, but Sarath did the same pasting into vi
(vim tiny?) and emacs and neither was as slow as vim, so it's not
just PuTTY.
I wonder if the problem would be there using telnet instead of ssh
and if so, if Wireshark would reveal anything interesting.
> I don't need to use PuTTY much, but in the past I have found it
> easier to use a separate command prompt window to upload a file
> (pscpy) with whatever text I needed, then read it into Vim (:r
> filename.txt).
I use PuTTY on Windows 7 over ssh to vim on Linux all the time and
most of the time I don't notice any speed issues at all, including
when I paste.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RE: vim 7.4: pasting is very slow on HP UX machine.
Sarath Addanki wrote:
> I'm using right click to paste into Vim via PuTTY.
Has anyone pointed out what is happening? On paste (right
click), PuTTY sends each character from the clipboard over the
SSH session to the server where Vim is running, as if you had
typed the character. I do not know the details, but PuTTY must
somehow throttle sending in order to avoid overrunning the input
buffer on the server. My guess is that slow pasting is an
unavoidable consequence. I don't need to use PuTTY much, but in
the past I have found it easier to use a separate command prompt
window to upload a file (pscpy) with whatever text I needed,
then read it into Vim (:r filename.txt).
John
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> I'm using right click to paste into Vim via PuTTY.
Has anyone pointed out what is happening? On paste (right
click), PuTTY sends each character from the clipboard over the
SSH session to the server where Vim is running, as if you had
typed the character. I do not know the details, but PuTTY must
somehow throttle sending in order to avoid overrunning the input
buffer on the server. My guess is that slow pasting is an
unavoidable consequence. I don't need to use PuTTY much, but in
the past I have found it easier to use a separate command prompt
window to upload a file (pscpy) with whatever text I needed,
then read it into Vim (:r filename.txt).
John
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim productivity plugin
On 01/07/14 02:04, Felix Dietze wrote:
> Hi,
>
> is there a plugins that gives you hints on how to improve your vim usage?
>
> If for example I'm pressing "lllll" the plugin would suggest me to make more use of "e,w,E,W".
> If I'm pressing "|i" the suggestion would be to use "I" instead.
>
> I'm thinking about writing one, but wanted to check here first if something like this exists already.
>
> Of course any thougts on this are welcome.
>
> Felix
>
Have you run the tutor? If not, do it.
The idea is to get the right customs into your reflexes rather than pop
up annoying messages which get on your nerves and also _worsen_ your
productivity every time you don't do "as the master said".
Indeed, there are often many ways to obtain a given result in Vim, and
usually none of them can be said to be "the best for everyone every
time" to the exclusion of all other ways to get the same result.
Matter in point: some users will bash you no end for using ←↓↑→ when
"the Vim way", they say, means never using them, and always using only
hjkl instead. Others say that since Vim supports the arrow keys, you may
use them if you want to (and your keyboard provides them). I'm not
saying on which side of that fence I stand but maybe you can guess it.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
123. You ask the car dealer to install an extra cigarette lighter
on your new car to power your notebook.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
>
> is there a plugins that gives you hints on how to improve your vim usage?
>
> If for example I'm pressing "lllll" the plugin would suggest me to make more use of "e,w,E,W".
> If I'm pressing "|i" the suggestion would be to use "I" instead.
>
> I'm thinking about writing one, but wanted to check here first if something like this exists already.
>
> Of course any thougts on this are welcome.
>
> Felix
>
Have you run the tutor? If not, do it.
The idea is to get the right customs into your reflexes rather than pop
up annoying messages which get on your nerves and also _worsen_ your
productivity every time you don't do "as the master said".
Indeed, there are often many ways to obtain a given result in Vim, and
usually none of them can be said to be "the best for everyone every
time" to the exclusion of all other ways to get the same result.
Matter in point: some users will bash you no end for using ←↓↑→ when
"the Vim way", they say, means never using them, and always using only
hjkl instead. Others say that since Vim supports the arrow keys, you may
use them if you want to (and your keyboard provides them). I'm not
saying on which side of that fence I stand but maybe you can guess it.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
123. You ask the car dealer to install an extra cigarette lighter
on your new car to power your notebook.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
vim productivity plugin
Hi,
is there a plugins that gives you hints on how to improve your vim usage?
If for example I'm pressing "lllll" the plugin would suggest me to make more use of "e,w,E,W".
If I'm pressing "|i" the suggestion would be to use "I" instead.
I'm thinking about writing one, but wanted to check here first if something like this exists already.
Of course any thougts on this are welcome.
Felix
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
is there a plugins that gives you hints on how to improve your vim usage?
If for example I'm pressing "lllll" the plugin would suggest me to make more use of "e,w,E,W".
If I'm pressing "|i" the suggestion would be to use "I" instead.
I'm thinking about writing one, but wanted to check here first if something like this exists already.
Of course any thougts on this are welcome.
Felix
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabstop for python on mac for vim 7.4 messed up
On Monday, June 30, 2014 7:40:52 PM UTC-4, Ben Fritz wrote:
> On Monday, June 30, 2014 4:18:09 PM UTC-5, Sid wrote:
> > Hi,
> >
> > I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
> >
> > This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
> >
> > Help would be greatly appreciated!
> > Thanks!
>
> Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
>
> " As suggested by PEP8.
> setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
>
> If you don't like that, then set up a FileType autocmd to fix it:
>
> autocmd FileType python setlocal tabstop=8
That worked, thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On Monday, June 30, 2014 4:18:09 PM UTC-5, Sid wrote:
> > Hi,
> >
> > I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
> >
> > This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
> >
> > Help would be greatly appreciated!
> > Thanks!
>
> Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
>
> " As suggested by PEP8.
> setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
>
> If you don't like that, then set up a FileType autocmd to fix it:
>
> autocmd FileType python setlocal tabstop=8
That worked, thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabstop for python on mac for vim 7.4 messed up
On Monday, June 30, 2014 7:40:52 PM UTC-4, Ben Fritz wrote:
> On Monday, June 30, 2014 4:18:09 PM UTC-5, Sid wrote:
> > Hi,
> >
> > I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
> >
> > This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
> >
> > Help would be greatly appreciated!
> > Thanks!
>
> Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
>
> " As suggested by PEP8.
> setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
>
> If you don't like that, then set up a FileType autocmd to fix it:
>
> autocmd FileType python setlocal tabstop=8
That worked, thanks! Incidentally, do you know why this was not happening in vim 7.3?
--Sid
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On Monday, June 30, 2014 4:18:09 PM UTC-5, Sid wrote:
> > Hi,
> >
> > I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
> >
> > This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
> >
> > Help would be greatly appreciated!
> > Thanks!
>
> Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
>
> " As suggested by PEP8.
> setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
>
> If you don't like that, then set up a FileType autocmd to fix it:
>
> autocmd FileType python setlocal tabstop=8
That worked, thanks! Incidentally, do you know why this was not happening in vim 7.3?
--Sid
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabstop for python on mac for vim 7.4 messed up
On Monday, June 30, 2014 7:40:52 PM UTC-4, Ben Fritz wrote:
> On Monday, June 30, 2014 4:18:09 PM UTC-5, Sid wrote:
> > Hi,
> >
> > I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
> >
> > This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
> >
> > Help would be greatly appreciated!
> > Thanks!
>
> Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
>
> " As suggested by PEP8.
> setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
>
> If you don't like that, then set up a FileType autocmd to fix it:
>
> autocmd FileType python setlocal tabstop=8
I tried that, both in .vimrc and in ftplugin/python.vim but it didn't work. Any ideas on why? Also how come this is happening in vim 7.4 but not 7.3?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On Monday, June 30, 2014 4:18:09 PM UTC-5, Sid wrote:
> > Hi,
> >
> > I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
> >
> > This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
> >
> > Help would be greatly appreciated!
> > Thanks!
>
> Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
>
> " As suggested by PEP8.
> setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
>
> If you don't like that, then set up a FileType autocmd to fix it:
>
> autocmd FileType python setlocal tabstop=8
I tried that, both in .vimrc and in ftplugin/python.vim but it didn't work. Any ideas on why? Also how come this is happening in vim 7.4 but not 7.3?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabstop for python on mac for vim 7.4 messed up
On Monday, June 30, 2014 4:18:09 PM UTC-5, Sid wrote:
> Hi,
>
> I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
>
> This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
>
> Help would be greatly appreciated!
> Thanks!
Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
" As suggested by PEP8.
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
If you don't like that, then set up a FileType autocmd to fix it:
autocmd FileType python setlocal tabstop=8
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
>
> I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
>
> This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
>
> Help would be greatly appreciated!
> Thanks!
Probably the python filetype plugin is setting a tabstop for you, which as Gary says I think is intentional. The filetype plugin says:
" As suggested by PEP8.
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
If you don't like that, then set up a FileType autocmd to fix it:
autocmd FileType python setlocal tabstop=8
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabstop for python on mac for vim 7.4 messed up
On 2014-06-30, Sid wrote:
> Hi,
>
> I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to
> 4. However if I have the line "filetype plugin on" (which I really
> need), then the tabstop for python (but not for c++, java, c,
> julia) is being set to 8. This is happening both with MacVim as
> well as the brew install version.
>
> This does not happen with Vim 7.3, neither for the OSX default nor
> for MacVim.
I think the behavior you're seeing is correct. I don't have the
reference at the moment, but at least at one time Python specified
that tab stops were to be 8. Indentation, though, can be anything
you want.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
>
> I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to
> 4. However if I have the line "filetype plugin on" (which I really
> need), then the tabstop for python (but not for c++, java, c,
> julia) is being set to 8. This is happening both with MacVim as
> well as the brew install version.
>
> This does not happen with Vim 7.3, neither for the OSX default nor
> for MacVim.
I think the behavior you're seeing is correct. I don't have the
reference at the moment, but at least at one time Python specified
that tab stops were to be 8. Indentation, though, can be anything
you want.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
>
> What, if anything, does
>
>
>
> :imap <middlemouse>
>
>
>
> show? I'm guessing that you're using the middlemouse to paste.
>
>
>
> Regards,
>
> Chip Campbell
the above ex command returns "No mapping found".
I'm using right click to paste into Vim via PuTTY.
Thanks
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> What, if anything, does
>
>
>
> :imap <middlemouse>
>
>
>
> show? I'm guessing that you're using the middlemouse to paste.
>
>
>
> Regards,
>
> Chip Campbell
the above ex command returns "No mapping found".
I'm using right click to paste into Vim via PuTTY.
Thanks
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
Dominique Pellé wrote:
> Sarath Addanki wrote:
>
>> Hi,
>>
>> I have to use vim on HP-UX machine. Whenever I paste
>> any text with more than one line(or some 60 chars), it
>> completes the operation very slowly. This problem is
>> making vim un usable. Please assist.
>>
>> Following are the details
>>
>> machine details:
>> HP-UX stlhp107 B.11.31 U ia64 3120353525
>>
>> Terminal used is: dtterm
>>
>> Attached is the vim installation details.
>>
>> Please help to troubleshoot. I'm a long term user of vim.
>> Without vim it's difficult to write code for me.
>
> Is it faster with "vim -X" ?
>
> In your attached file, we do not see the version of vim
> (first 2 lines of "vim --version").
>
What, if anything, does
:imap <middlemouse>
show? I'm guessing that you're using the middlemouse to paste.
Regards,
Chip Campbell
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Sarath Addanki wrote:
>
>> Hi,
>>
>> I have to use vim on HP-UX machine. Whenever I paste
>> any text with more than one line(or some 60 chars), it
>> completes the operation very slowly. This problem is
>> making vim un usable. Please assist.
>>
>> Following are the details
>>
>> machine details:
>> HP-UX stlhp107 B.11.31 U ia64 3120353525
>>
>> Terminal used is: dtterm
>>
>> Attached is the vim installation details.
>>
>> Please help to troubleshoot. I'm a long term user of vim.
>> Without vim it's difficult to write code for me.
>
> Is it faster with "vim -X" ?
>
> In your attached file, we do not see the version of vim
> (first 2 lines of "vim --version").
>
What, if anything, does
:imap <middlemouse>
show? I'm guessing that you're using the middlemouse to paste.
Regards,
Chip Campbell
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tabstop for python on mac for vim 7.4 messed up
Hi,
I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
Help would be greatly appreciated!
Thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm using vim 7.4 on the Mac. In my .vimrc, I set the tabstop to 4. However if I have the line "filetype plugin on" (which I really need), then the tabstop for python (but not for c++, java, c, julia) is being set to 8. This is happening both with MacVim as well as the brew install version.
This does not happen with Vim 7.3, neither for the OSX default nor for MacVim.
Help would be greatly appreciated!
Thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
james,
OS selection is not always a choice. In work place you have to adapt to what you get. I request you to not divert this topic. Thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
OS selection is not always a choice. In work place you have to adapt to what you get. I request you to not divert this topic. Thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
On Mon, 30 Jun 2014, Sarath Addanki wrote:
> I tried all the options suggested here. I have understood the problem more clearly now.
>
>
> Problematic Case:
> 1)Open a remote session to hpux machine via putty.
> 2)Open Vim and paste text (that has atleast 3 lines)
> 3)paste operation freezes and text animates slowly.
>
> I have tried the following stuff to narrow out the possible issues
>
> Case 1:
> Repeat Step 1.
> Open vi and paste text. Works perfectly
>
> Case 2:
> Repeat Step 1.
> Open emacs and paste text. Works perfectly
>
> Case 3:
> Repeat Step 1.
> Open gVim and paste text. No issues (though gvim startup time is slow)
>
> Case 4:
> Repeat Step 1.
> Recompile vim with the following options --with-features=huge --enable=gui=no
> Repeat Step 2 & Step 3. Still slow.
>
> Case 5:
> Repeat Step 1.
> Open Vim with the following command
> vim -u NONE -U NONE -N -i NONE -V16
>
> Saw the error message:
> Opening the X display failed. Result is same(slow paste)
>
> Case 6:
> Repeat Step 1.
> Open Vim the following command
> vim -X -u NONE -U NONE -N -i NONE -V16
>
> Error message in Case 5 disappears. But Result is same(slow paste)
>
> Case 7:
> Repeat Step 1.
> Open Vim with file containing some text. Copy some 10+ lines in Visual mode and paste. No issues. So, Paste inside editor works.
>
>
> In the above cases, paste means I have copied text outside of putty and pasting into Vim editor which is inside Putty. I'm on Windows 7.
>
> pasting from external source seems problem. I don't know how to trouble shoot this problem further.
>
> Please help.
>
> Thanks,
> Sarath
I use linux and I've not found gvim or vim slow. I'd say switch to a superior
OS like linux and use emacs... as somehow you're finding trouble with vim/gvim.
james
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> I tried all the options suggested here. I have understood the problem more clearly now.
>
>
> Problematic Case:
> 1)Open a remote session to hpux machine via putty.
> 2)Open Vim and paste text (that has atleast 3 lines)
> 3)paste operation freezes and text animates slowly.
>
> I have tried the following stuff to narrow out the possible issues
>
> Case 1:
> Repeat Step 1.
> Open vi and paste text. Works perfectly
>
> Case 2:
> Repeat Step 1.
> Open emacs and paste text. Works perfectly
>
> Case 3:
> Repeat Step 1.
> Open gVim and paste text. No issues (though gvim startup time is slow)
>
> Case 4:
> Repeat Step 1.
> Recompile vim with the following options --with-features=huge --enable=gui=no
> Repeat Step 2 & Step 3. Still slow.
>
> Case 5:
> Repeat Step 1.
> Open Vim with the following command
> vim -u NONE -U NONE -N -i NONE -V16
>
> Saw the error message:
> Opening the X display failed. Result is same(slow paste)
>
> Case 6:
> Repeat Step 1.
> Open Vim the following command
> vim -X -u NONE -U NONE -N -i NONE -V16
>
> Error message in Case 5 disappears. But Result is same(slow paste)
>
> Case 7:
> Repeat Step 1.
> Open Vim with file containing some text. Copy some 10+ lines in Visual mode and paste. No issues. So, Paste inside editor works.
>
>
> In the above cases, paste means I have copied text outside of putty and pasting into Vim editor which is inside Putty. I'm on Windows 7.
>
> pasting from external source seems problem. I don't know how to trouble shoot this problem further.
>
> Please help.
>
> Thanks,
> Sarath
I use linux and I've not found gvim or vim slow. I'd say switch to a superior
OS like linux and use emacs... as somehow you're finding trouble with vim/gvim.
james
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
E763 'Word Characters' differ de.utf-8.spl
Hello to everybody,
since a couple of month I have a problem with my de.utf-8.spl. Everytime I start vim, it reports:
Fehler beim Ausführen von "/home/mpw/.vim/spell/de.utf-8.spl":
E763: 'Word Characters' unterscheiden sich zwischen Rechtschreibwörterbüchern
Betätigen Sie die EINGABETASTE oder geben Sie einen Befehl ein
Translation:
Error during execution of ~/.vim/spell/de.utf-8.spl
E763 'Word Characters' differ between the two spell dictionaries
Press key to continue
Which "two" dictonaries"? I have only one.
I replaced the the files:
de.utf-8.spl
de.utf-8.sug
several times with the uptodate versions from here:
http://ftp.vim.org/vim/runtime/spell/de.utf-8.spl
http://ftp.vim.org/vim/runtime/spell/de.utf-8.sug
The spell check works. I just want to get rid of this warning message.
Thanks for reading.
Greetings from Germany
Matthias Walther
since a couple of month I have a problem with my de.utf-8.spl. Everytime I start vim, it reports:
Fehler beim Ausführen von "/home/mpw/.vim/spell/de.utf-8.spl":
E763: 'Word Characters' unterscheiden sich zwischen Rechtschreibwörterbüchern
Betätigen Sie die EINGABETASTE oder geben Sie einen Befehl ein
Translation:
Error during execution of ~/.vim/spell/de.utf-8.spl
E763 'Word Characters' differ between the two spell dictionaries
Press key to continue
Which "two" dictonaries"? I have only one.
I replaced the the files:
de.utf-8.spl
de.utf-8.sug
several times with the uptodate versions from here:
http://ftp.vim.org/vim/runtime/spell/de.utf-8.spl
http://ftp.vim.org/vim/runtime/spell/de.utf-8.sug
The spell check works. I just want to get rid of this warning message.
Thanks for reading.
Greetings from Germany
Matthias Walther
Re: vim 7.4: pasting is very slow on HP UX machine.
I tried all the options suggested here. I have understood the problem more clearly now.
Problematic Case:
1)Open a remote session to hpux machine via putty.
2)Open Vim and paste text (that has atleast 3 lines)
3)paste operation freezes and text animates slowly.
I have tried the following stuff to narrow out the possible issues
Case 1:
Repeat Step 1.
Open vi and paste text. Works perfectly
Case 2:
Repeat Step 1.
Open emacs and paste text. Works perfectly
Case 3:
Repeat Step 1.
Open gVim and paste text. No issues (though gvim startup time is slow)
Case 4:
Repeat Step 1.
Recompile vim with the following options --with-features=huge --enable=gui=no
Repeat Step 2 & Step 3. Still slow.
Case 5:
Repeat Step 1.
Open Vim with the following command
vim -u NONE -U NONE -N -i NONE -V16
Saw the error message:
Opening the X display failed. Result is same(slow paste)
Case 6:
Repeat Step 1.
Open Vim the following command
vim -X -u NONE -U NONE -N -i NONE -V16
Error message in Case 5 disappears. But Result is same(slow paste)
Case 7:
Repeat Step 1.
Open Vim with file containing some text. Copy some 10+ lines in Visual mode and paste. No issues. So, Paste inside editor works.
In the above cases, paste means I have copied text outside of putty and pasting into Vim editor which is inside Putty. I'm on Windows 7.
pasting from external source seems problem. I don't know how to trouble shoot this problem further.
Please help.
Thanks,
Sarath
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Problematic Case:
1)Open a remote session to hpux machine via putty.
2)Open Vim and paste text (that has atleast 3 lines)
3)paste operation freezes and text animates slowly.
I have tried the following stuff to narrow out the possible issues
Case 1:
Repeat Step 1.
Open vi and paste text. Works perfectly
Case 2:
Repeat Step 1.
Open emacs and paste text. Works perfectly
Case 3:
Repeat Step 1.
Open gVim and paste text. No issues (though gvim startup time is slow)
Case 4:
Repeat Step 1.
Recompile vim with the following options --with-features=huge --enable=gui=no
Repeat Step 2 & Step 3. Still slow.
Case 5:
Repeat Step 1.
Open Vim with the following command
vim -u NONE -U NONE -N -i NONE -V16
Saw the error message:
Opening the X display failed. Result is same(slow paste)
Case 6:
Repeat Step 1.
Open Vim the following command
vim -X -u NONE -U NONE -N -i NONE -V16
Error message in Case 5 disappears. But Result is same(slow paste)
Case 7:
Repeat Step 1.
Open Vim with file containing some text. Copy some 10+ lines in Visual mode and paste. No issues. So, Paste inside editor works.
In the above cases, paste means I have copied text outside of putty and pasting into Vim editor which is inside Putty. I'm on Windows 7.
pasting from external source seems problem. I don't know how to trouble shoot this problem further.
Please help.
Thanks,
Sarath
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
Am 2014-06-30 03:40, schrieb KKde:
>>
>> Is it faster if you ":set paste" first before pasting? Make sure to
>> turn it off again after you paste.
>
> Ben - I tried and it's still slower. Thanks.
> Dominique - No it's not faster. Thanks. Version i'm using is
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 28 2014 14:53:12)
> Compiled by <text removed>
>
> In my other HP machine it is faster, but the OS version is
> different(HP-UX hpitan4 B.11.23 U ia64)
>
> I installed vim from
> http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.4/
>
> I'm very grateful if someone can help me resolve the problem. As I
> said I cannot live without vim for coding and code navigation.
>
> are there any Vim users on HP machine here?
There are a couple of things to check first:
http://vimhelp.appspot.com/vim_faq.txt.html#faq-2.5
This should give you a hint, if this is a problem with Vim itsself or
some
plugin or runtime you are using.
Regards,
Christian
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
>>
>> Is it faster if you ":set paste" first before pasting? Make sure to
>> turn it off again after you paste.
>
> Ben - I tried and it's still slower. Thanks.
> Dominique - No it's not faster. Thanks. Version i'm using is
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 28 2014 14:53:12)
> Compiled by <text removed>
>
> In my other HP machine it is faster, but the OS version is
> different(HP-UX hpitan4 B.11.23 U ia64)
>
> I installed vim from
> http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.4/
>
> I'm very grateful if someone can help me resolve the problem. As I
> said I cannot live without vim for coding and code navigation.
>
> are there any Vim users on HP machine here?
There are a couple of things to check first:
http://vimhelp.appspot.com/vim_faq.txt.html#faq-2.5
This should give you a hint, if this is a problem with Vim itsself or
some
plugin or runtime you are using.
Regards,
Christian
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
> Dominique - No it's not faster. Thanks. Version i'm using is
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 28 2014 14:53:12)
> Compiled by <text removed>
no patches included? there have been various bugs fixed in the first releases of vim 7.4, so if you're not using the latest version you might try to compile it from the sources.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 28 2014 14:53:12)
> Compiled by <text removed>
no patches included? there have been various bugs fixed in the first releases of vim 7.4, so if you're not using the latest version you might try to compile it from the sources.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: How to start vimdiff?
On 09/06/14 14:16, Tim Chase wrote:
> On 2014-06-08 22:39, Tony Mechelynck wrote:
>>> 7.0.0 that I have on my work XP machine
>>> (I can hear Tony groaning at that version number)
>>
>> Me groan? I have more important things to groan about at the
>> moment. Anyway, it's your funeral, not only about Vim but also
>> about M$W.
>
> Yeah, it's an XP VM for $SIDE_JOB. Though it is nice to be able to
> test things on a Win32 machine (even if it's ancient and unsupported
> now). At home, it's the year-old 7.3.547 that is stock with Debian
> Stable which helps me better gauge whether an issue on the XP box is
> fixed in more recent versions.
>
> Though of new features since 7.x, I wouldn't miss most of them in my
> day-to-day usage of vim except for new quotation/tag text objects,
> internal vimgrep, and spell-checking. There are a couple other new
> things that are nice to have, but I get along fine without them. I
> thought I'd use 'relativenumber' more, but found it too distracting
> to use regularly; and "conceal" sounds promising, but haven't gotten
> around to learning it.
>
> -tim
>
>
>
I don't use relativenumber or conceal myself. I use vimgrep a lot but
IIRC it's been there since 7.0 so no problem there.
What other things do I use?
Extra Unicode support (7.0): recognizable glyphs above U+FFFF,
'maxcombine', 8g8
MatchParen (7.0)
'cursorline' and 'cursorcolumn' (7.0)
Tab pages (7.0)
Scrolling back at the more-prompt and hit-Enter-prompt (7.0)
:map and :abbr with <expr> (7.0)
a" a' i" i' text objects (7.0)
Floating point (7.2)
Additional floating-point functions (7.3)
And certainly some more which I don't think of at the moment. One new
7.4 thing I don't use (yet) is the new "NFA" regexp engine.
As soon as I see a new patchlevel I compile it for both Huge and Tiny
featuresets but that's a little overdoing it for most users. It's my
contribution to testing (e.g., that there are the right #ifdef
directives to avoid compile errors in the Tiny build). I also have a Vim
from my distro but it's later in the $PATH. ATM it's a Huge 7.4.52 with
+x11 +xterm_clipboard but -gui.
Best regards,
Tony.
--
"After the survivor of the Spanish conquest has told his life's story he is
convicted by the Inquisition:
"He posted no brief in defense or mitigation of his offenses, and
when he was most solemnly advised by the Court President of the dire
consequences he faced if found guilty, Juan Damasceno volunteered
only one comment:
'It will mean I do not go to the Christian heaven?'
He was told that that would indeed be the worst of his punishments:
that he would most assuredly not go to Heaven. At which, his smile
sent a thrill of horror through every soul of the Court."
["Aztec", by Gary Jennings]
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On 2014-06-08 22:39, Tony Mechelynck wrote:
>>> 7.0.0 that I have on my work XP machine
>>> (I can hear Tony groaning at that version number)
>>
>> Me groan? I have more important things to groan about at the
>> moment. Anyway, it's your funeral, not only about Vim but also
>> about M$W.
>
> Yeah, it's an XP VM for $SIDE_JOB. Though it is nice to be able to
> test things on a Win32 machine (even if it's ancient and unsupported
> now). At home, it's the year-old 7.3.547 that is stock with Debian
> Stable which helps me better gauge whether an issue on the XP box is
> fixed in more recent versions.
>
> Though of new features since 7.x, I wouldn't miss most of them in my
> day-to-day usage of vim except for new quotation/tag text objects,
> internal vimgrep, and spell-checking. There are a couple other new
> things that are nice to have, but I get along fine without them. I
> thought I'd use 'relativenumber' more, but found it too distracting
> to use regularly; and "conceal" sounds promising, but haven't gotten
> around to learning it.
>
> -tim
>
>
>
I don't use relativenumber or conceal myself. I use vimgrep a lot but
IIRC it's been there since 7.0 so no problem there.
What other things do I use?
Extra Unicode support (7.0): recognizable glyphs above U+FFFF,
'maxcombine', 8g8
MatchParen (7.0)
'cursorline' and 'cursorcolumn' (7.0)
Tab pages (7.0)
Scrolling back at the more-prompt and hit-Enter-prompt (7.0)
:map and :abbr with <expr> (7.0)
a" a' i" i' text objects (7.0)
Floating point (7.2)
Additional floating-point functions (7.3)
And certainly some more which I don't think of at the moment. One new
7.4 thing I don't use (yet) is the new "NFA" regexp engine.
As soon as I see a new patchlevel I compile it for both Huge and Tiny
featuresets but that's a little overdoing it for most users. It's my
contribution to testing (e.g., that there are the right #ifdef
directives to avoid compile errors in the Tiny build). I also have a Vim
from my distro but it's later in the $PATH. ATM it's a Huge 7.4.52 with
+x11 +xterm_clipboard but -gui.
Best regards,
Tony.
--
"After the survivor of the Spanish conquest has told his life's story he is
convicted by the Inquisition:
"He posted no brief in defense or mitigation of his offenses, and
when he was most solemnly advised by the Court President of the dire
consequences he faced if found guilty, Juan Damasceno volunteered
only one comment:
'It will mean I do not go to the Christian heaven?'
He was told that that would indeed be the worst of his punishments:
that he would most assuredly not go to Heaven. At which, his smile
sent a thrill of horror through every soul of the Court."
["Aztec", by Gary Jennings]
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, June 29, 2014
Re: vim 7.4: pasting is very slow on HP UX machine.
On 2014-06-29, KKde wrote:
> In my other HP machine it is faster, but the OS version is
> different(HP-UX hpitan4 B.11.23 U ia64)
>
> I installed vim from
> http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.4/
>
> I'm very grateful if someone can help me resolve the problem. As I
> said I cannot live without vim for coding and code navigation.
>
> are there any Vim users on HP machine here?
I used to run Vim on HP-UX, but haven't for several years and I no
longer have access to an HP-UX machine. I built Vim myself and
never had any speed issues. I always ran it in an xterm which I
also built myself.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> In my other HP machine it is faster, but the OS version is
> different(HP-UX hpitan4 B.11.23 U ia64)
>
> I installed vim from
> http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.4/
>
> I'm very grateful if someone can help me resolve the problem. As I
> said I cannot live without vim for coding and code navigation.
>
> are there any Vim users on HP machine here?
I used to run Vim on HP-UX, but haven't for several years and I no
longer have access to an HP-UX machine. I built Vim myself and
never had any speed issues. I always ran it in an xterm which I
also built myself.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
>
> Is it faster if you ":set paste" first before pasting? Make sure to turn it off again after you paste.
Ben - I tried and it's still slower. Thanks.
Dominique - No it's not faster. Thanks. Version i'm using is
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 28 2014 14:53:12)
Compiled by <text removed>
In my other HP machine it is faster, but the OS version is different(HP-UX hpitan4 B.11.23 U ia64)
I installed vim from http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.4/
I'm very grateful if someone can help me resolve the problem. As I said I cannot live without vim for coding and code navigation.
are there any Vim users on HP machine here?
Thanks,
Sarath
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Is it faster if you ":set paste" first before pasting? Make sure to turn it off again after you paste.
Ben - I tried and it's still slower. Thanks.
Dominique - No it's not faster. Thanks. Version i'm using is
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 28 2014 14:53:12)
Compiled by <text removed>
In my other HP machine it is faster, but the OS version is different(HP-UX hpitan4 B.11.23 U ia64)
I installed vim from http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.4/
I'm very grateful if someone can help me resolve the problem. As I said I cannot live without vim for coding and code navigation.
are there any Vim users on HP machine here?
Thanks,
Sarath
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: How to substitute text with combining characters?
On Sunday, June 29, 2014 4:41:04 PM UTC+2, kks...@gmail.com wrote:
> On Sunday, June 29, 2014 5:08:08 AM UTC+7, glts wrote:
> > On Saturday, June 28, 2014 6:21:23 PM UTC+2, kks...@gmail.com wrote:
> > > For text `é,e` (\x65 \u0301 \x2c \x65):
> > >
> > > If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
> > >
> > > If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
> > >
> > > Is this a bug or not?
> >
> > The first example works for me. Have you tried with a recent version of
> > Vim?
> >
> > The second example I managed to get working with this hack:
> >
> > :s/.́/\=submatch(0)[0:(strlen(nr2char(char2nr(submatch(0))))-1)] . "\u0302"/g
> >
> > This matches any character with an acute on it, then chops off the bytes
> > following the base character (that is, the combining acute), and then
> > concatenates the base character with the combining circumflex. I made
> > sure that it works for multi-byte base characters, too. But there has
> > got to be an easier solution.
> >
> > Vim support for combining characters isn't complete. Check the todo list
> > at ":h todo" (be aware that todo.txt talks about "composing characters"
> > instead of the proper "combining characters").
>
> Both examples did not work on my Vim 7.4.335.
>
> Thanks for the hints ":h todo" and "composing character". It seems what I want is a "known bug".
I see why it worked on my Vim 7.4.347. I'm still avoiding the new regexp
engine by setting 'regexpengine' to 1, precisely because it has these
bugs.
Using the old regexp engine the first example you gave works fine.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On Sunday, June 29, 2014 5:08:08 AM UTC+7, glts wrote:
> > On Saturday, June 28, 2014 6:21:23 PM UTC+2, kks...@gmail.com wrote:
> > > For text `é,e` (\x65 \u0301 \x2c \x65):
> > >
> > > If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
> > >
> > > If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
> > >
> > > Is this a bug or not?
> >
> > The first example works for me. Have you tried with a recent version of
> > Vim?
> >
> > The second example I managed to get working with this hack:
> >
> > :s/.́/\=submatch(0)[0:(strlen(nr2char(char2nr(submatch(0))))-1)] . "\u0302"/g
> >
> > This matches any character with an acute on it, then chops off the bytes
> > following the base character (that is, the combining acute), and then
> > concatenates the base character with the combining circumflex. I made
> > sure that it works for multi-byte base characters, too. But there has
> > got to be an easier solution.
> >
> > Vim support for combining characters isn't complete. Check the todo list
> > at ":h todo" (be aware that todo.txt talks about "composing characters"
> > instead of the proper "combining characters").
>
> Both examples did not work on my Vim 7.4.335.
>
> Thanks for the hints ":h todo" and "composing character". It seems what I want is a "known bug".
I see why it worked on my Vim 7.4.347. I'm still avoiding the new regexp
engine by setting 'regexpengine' to 1, precisely because it has these
bugs.
Using the old regexp engine the first example you gave works fine.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: How to substitute text with combining characters?
On Sunday, June 29, 2014 5:08:08 AM UTC+7, glts wrote:
> On Saturday, June 28, 2014 6:21:23 PM UTC+2, kks...@gmail.com wrote:
>
> > For text `é,e` (\x65 \u0301 \x2c \x65):
>
> >
>
> > If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
>
> >
>
> > If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
>
> >
>
> > Is this a bug or not?
>
>
>
> The first example works for me. Have you tried with a recent version of
>
> Vim?
>
>
>
> The second example I managed to get working with this hack:
>
>
>
> :s/.́/\=submatch(0)[0:(strlen(nr2char(char2nr(submatch(0))))-1)] . "\u0302"/g
>
>
>
> This matches any character with an acute on it, then chops off the bytes
>
> following the base character (that is, the combining acute), and then
>
> concatenates the base character with the combining circumflex. I made
>
> sure that it works for multi-byte base characters, too. But there has
>
> got to be an easier solution.
>
>
>
> Vim support for combining characters isn't complete. Check the todo list
>
> at ":h todo" (be aware that todo.txt talks about "composing characters"
>
> instead of the proper "combining characters").
>
>
>
>
>
> --
>
> David
Both examples did not work on my Vim 7.4.335.
Thanks for the hints ":h todo" and "composing character". It seems what I want is a "known bug".
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On Saturday, June 28, 2014 6:21:23 PM UTC+2, kks...@gmail.com wrote:
>
> > For text `é,e` (\x65 \u0301 \x2c \x65):
>
> >
>
> > If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
>
> >
>
> > If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
>
> >
>
> > Is this a bug or not?
>
>
>
> The first example works for me. Have you tried with a recent version of
>
> Vim?
>
>
>
> The second example I managed to get working with this hack:
>
>
>
> :s/.́/\=submatch(0)[0:(strlen(nr2char(char2nr(submatch(0))))-1)] . "\u0302"/g
>
>
>
> This matches any character with an acute on it, then chops off the bytes
>
> following the base character (that is, the combining acute), and then
>
> concatenates the base character with the combining circumflex. I made
>
> sure that it works for multi-byte base characters, too. But there has
>
> got to be an easier solution.
>
>
>
> Vim support for combining characters isn't complete. Check the todo list
>
> at ":h todo" (be aware that todo.txt talks about "composing characters"
>
> instead of the proper "combining characters").
>
>
>
>
>
> --
>
> David
Both examples did not work on my Vim 7.4.335.
Thanks for the hints ":h todo" and "composing character". It seems what I want is a "known bug".
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabs for indentation, spaces for alignment - possible in vanilla vim?
Hi @Paul,
thanks for the response and the function. I think 'smart tab' plugin achieves the same goal.
I was more thinking: is there a built-in vim-option for this.
But, it seems there isn't.
@ZyX, thanks for the clarification. I though this is relatively trivial problem, but now I get where the complexity lies.
On Saturday, June 28, 2014 11:33:39 PM UTC+2, Bruno Sutic wrote:
> Hi,
> I would like to use tabs for indentation and spaces for alignment.
> This "idea" is also described here: http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
>
> To put it simple:
> - tabs should be used at the beginning of the line
> - spaces should be inserted when after any character in the line
>
> The article linked above proposes a 'smart tab' plugin to achieve this. Unfortunately, this plugin breaks snipmate plugin which also uses tab.
>
> So I wonder, is there a way (an option maybe) to achieve this without a plugin?
> I tried `:h 'smarttab'`, but that does something else.
>
> Thanks
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
thanks for the response and the function. I think 'smart tab' plugin achieves the same goal.
I was more thinking: is there a built-in vim-option for this.
But, it seems there isn't.
@ZyX, thanks for the clarification. I though this is relatively trivial problem, but now I get where the complexity lies.
On Saturday, June 28, 2014 11:33:39 PM UTC+2, Bruno Sutic wrote:
> Hi,
> I would like to use tabs for indentation and spaces for alignment.
> This "idea" is also described here: http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
>
> To put it simple:
> - tabs should be used at the beginning of the line
> - spaces should be inserted when after any character in the line
>
> The article linked above proposes a 'smart tab' plugin to achieve this. Unfortunately, this plugin breaks snipmate plugin which also uses tab.
>
> So I wonder, is there a way (an option maybe) to achieve this without a plugin?
> I tried `:h 'smarttab'`, but that does something else.
>
> Thanks
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabs for indentation, spaces for alignment - possible in vanilla vim?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
To not break plugin that uses Tab you either need to avoid mapping Tab or somehow run Tab "manually" in new mapping. I know how to chain mappings (run one mapping from the other), but it is rather complicated code that does not handle at least one edge case.
This mapping is not going to achieve tabs indentation+space alignment goal: this goal means that some "starter" lines have only indentation via tabs and "continuation" lines have indentation (same as "starter") and alignment:
if (ch1 == 'a'
&& ch2 == 'b'
&& ch3 == 'c')
^^^^ indentation
^^^^ alignment (lines up first "&" and next character after the opening parenthesis)
. It also means that inline alignment should be done with spaces, but this bit is pretty trivial.
To achieve this you should not only map Tab. You should also make Vim behave correctly when you add new line in a number of ways. OP simplifies it too much: the two "simple" statements are nearly not a complete description of this concept. Wiki article talks about this: see section "Continuation lines".
On June 29, 2014 9:59:40 AM GMT+03:00, Paul Isambert <zappathustra@free.fr> wrote:
>Le samedi 28 juin 2014 à 11:33, Bruno Sutic a écrit:
>> Hi,
>> I would like to use tabs for indentation and spaces for alignment.
>> This "idea" is also described here:
>http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
>>
>> To put it simple:
>> - tabs should be used at the beginning of the line
>> - spaces should be inserted when after any character in the line
>>
>> The article linked above proposes a 'smart tab' plugin to achieve
>this. Unfortunately, this plugin breaks snipmate plugin which also uses
>tab.
>>
>> So I wonder, is there a way (an option maybe) to achieve this without
>a plugin?
>> I tried `:h 'smarttab'`, but that does something else.
>
>Try this:
>
> function! s:TabOrSpace ()
> let c = col(".")
> if c == 1 || getline(".")[c-2] =~ '\t'
> return "\t"
> else
> return " "
> endif
> endfunction
> inoremap <expr> <Tab> <SID>TabOrSpace()
>
>Then <Tab> (you can change the key, of course) will insert a tab if at
>the beginning of the line or after a tab, and a space (you can make it
>return more) otherwise.
>
>I'm not 100% sure that's what you want, but I hope it helps anyway.
>
>Best,
>Paul
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google
>Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1
iQI1BAEBCgAfBQJTr7vNGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSvpzPD/9y578mB+Rr21+YcDmNieMstpVWXvzSi/B5Bp/dis3c/JPs0d+mrm1W
kBOg5czbKjro5GYo6Tr0i5VcS8p6sLthJ/DPoMzxVwfqUncFl4UJegMF0Wp7E4DA
F9zd7aFFIQtFrVsHjoEUpJm6Axkoc96cYtT3OFG+isuy+dMURETZEYGny8HAW+9b
k2nhhzFdUZyG/A9Efe6KYck649hOkKSi6mZfIpsYVFgdVD3akZXLA2wOhLUHhr+N
F3aIAdaH6q0SkHE2mfqJxyYZBzAKWB4o7FpofzQm2XSGR4IVJBvjQ98dpdlEZiEP
uZ7c0vxeoNMeOsPWZThAEcScBqW3wHqtzP1+LUk8/vXawMrnpaWjmpFejikcPYNv
QC4hRfbiw/9XQRhLCl3hRHZQ0iF7SSpzcLnGXxkGEbv1Q8fD9JwLwVb/cWgtBGDq
d1Rzi673g0IpFCzjNOMfwC4r/m+aiGBwWVxDpMj7QOdRKKVIYaiyk2y4hKMkK6S/
WQBcBwoZ/NgXgmFaolvY2gWGaX11EVnLzt55Q89Tv5WTVCxMhPjYxcRmNPPeYTaY
V9a+Pdy9c6p8roY9Qsk86BGYrFlcdCJIwtY2/KsQKGneiahhSZ55tJmfAnKOBob3
3IPTigKEYby2wOSdV5mX35j9TdrTlRw31zmcR4B+ffL4ykVuVJNIiQ==
=6MzD
-----END PGP SIGNATURE-----
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hash: SHA512
To not break plugin that uses Tab you either need to avoid mapping Tab or somehow run Tab "manually" in new mapping. I know how to chain mappings (run one mapping from the other), but it is rather complicated code that does not handle at least one edge case.
This mapping is not going to achieve tabs indentation+space alignment goal: this goal means that some "starter" lines have only indentation via tabs and "continuation" lines have indentation (same as "starter") and alignment:
if (ch1 == 'a'
&& ch2 == 'b'
&& ch3 == 'c')
^^^^ indentation
^^^^ alignment (lines up first "&" and next character after the opening parenthesis)
. It also means that inline alignment should be done with spaces, but this bit is pretty trivial.
To achieve this you should not only map Tab. You should also make Vim behave correctly when you add new line in a number of ways. OP simplifies it too much: the two "simple" statements are nearly not a complete description of this concept. Wiki article talks about this: see section "Continuation lines".
On June 29, 2014 9:59:40 AM GMT+03:00, Paul Isambert <zappathustra@free.fr> wrote:
>Le samedi 28 juin 2014 à 11:33, Bruno Sutic a écrit:
>> Hi,
>> I would like to use tabs for indentation and spaces for alignment.
>> This "idea" is also described here:
>http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
>>
>> To put it simple:
>> - tabs should be used at the beginning of the line
>> - spaces should be inserted when after any character in the line
>>
>> The article linked above proposes a 'smart tab' plugin to achieve
>this. Unfortunately, this plugin breaks snipmate plugin which also uses
>tab.
>>
>> So I wonder, is there a way (an option maybe) to achieve this without
>a plugin?
>> I tried `:h 'smarttab'`, but that does something else.
>
>Try this:
>
> function! s:TabOrSpace ()
> let c = col(".")
> if c == 1 || getline(".")[c-2] =~ '\t'
> return "\t"
> else
> return " "
> endif
> endfunction
> inoremap <expr> <Tab> <SID>TabOrSpace()
>
>Then <Tab> (you can change the key, of course) will insert a tab if at
>the beginning of the line or after a tab, and a space (you can make it
>return more) otherwise.
>
>I'm not 100% sure that's what you want, but I hope it helps anyway.
>
>Best,
>Paul
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google
>Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1
iQI1BAEBCgAfBQJTr7vNGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSvpzPD/9y578mB+Rr21+YcDmNieMstpVWXvzSi/B5Bp/dis3c/JPs0d+mrm1W
kBOg5czbKjro5GYo6Tr0i5VcS8p6sLthJ/DPoMzxVwfqUncFl4UJegMF0Wp7E4DA
F9zd7aFFIQtFrVsHjoEUpJm6Axkoc96cYtT3OFG+isuy+dMURETZEYGny8HAW+9b
k2nhhzFdUZyG/A9Efe6KYck649hOkKSi6mZfIpsYVFgdVD3akZXLA2wOhLUHhr+N
F3aIAdaH6q0SkHE2mfqJxyYZBzAKWB4o7FpofzQm2XSGR4IVJBvjQ98dpdlEZiEP
uZ7c0vxeoNMeOsPWZThAEcScBqW3wHqtzP1+LUk8/vXawMrnpaWjmpFejikcPYNv
QC4hRfbiw/9XQRhLCl3hRHZQ0iF7SSpzcLnGXxkGEbv1Q8fD9JwLwVb/cWgtBGDq
d1Rzi673g0IpFCzjNOMfwC4r/m+aiGBwWVxDpMj7QOdRKKVIYaiyk2y4hKMkK6S/
WQBcBwoZ/NgXgmFaolvY2gWGaX11EVnLzt55Q89Tv5WTVCxMhPjYxcRmNPPeYTaY
V9a+Pdy9c6p8roY9Qsk86BGYrFlcdCJIwtY2/KsQKGneiahhSZ55tJmfAnKOBob3
3IPTigKEYby2wOSdV5mX35j9TdrTlRw31zmcR4B+ffL4ykVuVJNIiQ==
=6MzD
-----END PGP SIGNATURE-----
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saturday, June 28, 2014
Re: vim 7.4: pasting is very slow on HP UX machine.
Sarath Addanki wrote:
> Hi,
>
> I have to use vim on HP-UX machine. Whenever I paste
> any text with more than one line(or some 60 chars), it
> completes the operation very slowly. This problem is
> making vim un usable. Please assist.
>
> Following are the details
>
> machine details:
> HP-UX stlhp107 B.11.31 U ia64 3120353525
>
> Terminal used is: dtterm
>
> Attached is the vim installation details.
>
> Please help to troubleshoot. I'm a long term user of vim.
> Without vim it's difficult to write code for me.
Is it faster with "vim -X" ?
In your attached file, we do not see the version of vim
(first 2 lines of "vim --version").
Dominique
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
>
> I have to use vim on HP-UX machine. Whenever I paste
> any text with more than one line(or some 60 chars), it
> completes the operation very slowly. This problem is
> making vim un usable. Please assist.
>
> Following are the details
>
> machine details:
> HP-UX stlhp107 B.11.31 U ia64 3120353525
>
> Terminal used is: dtterm
>
> Attached is the vim installation details.
>
> Please help to troubleshoot. I'm a long term user of vim.
> Without vim it's difficult to write code for me.
Is it faster with "vim -X" ?
In your attached file, we do not see the version of vim
(first 2 lines of "vim --version").
Dominique
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Tabs for indentation, spaces for alignment - possible in vanilla vim?
Le samedi 28 juin 2014 à 11:33, Bruno Sutic a écrit:
> Hi,
> I would like to use tabs for indentation and spaces for alignment.
> This "idea" is also described here: http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
>
> To put it simple:
> - tabs should be used at the beginning of the line
> - spaces should be inserted when after any character in the line
>
> The article linked above proposes a 'smart tab' plugin to achieve this. Unfortunately, this plugin breaks snipmate plugin which also uses tab.
>
> So I wonder, is there a way (an option maybe) to achieve this without a plugin?
> I tried `:h 'smarttab'`, but that does something else.
Try this:
function! s:TabOrSpace ()
let c = col(".")
if c == 1 || getline(".")[c-2] =~ '\t'
return "\t"
else
return " "
endif
endfunction
inoremap <expr> <Tab> <SID>TabOrSpace()
Then <Tab> (you can change the key, of course) will insert a tab if at
the beginning of the line or after a tab, and a space (you can make it
return more) otherwise.
I'm not 100% sure that's what you want, but I hope it helps anyway.
Best,
Paul
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
> I would like to use tabs for indentation and spaces for alignment.
> This "idea" is also described here: http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
>
> To put it simple:
> - tabs should be used at the beginning of the line
> - spaces should be inserted when after any character in the line
>
> The article linked above proposes a 'smart tab' plugin to achieve this. Unfortunately, this plugin breaks snipmate plugin which also uses tab.
>
> So I wonder, is there a way (an option maybe) to achieve this without a plugin?
> I tried `:h 'smarttab'`, but that does something else.
Try this:
function! s:TabOrSpace ()
let c = col(".")
if c == 1 || getline(".")[c-2] =~ '\t'
return "\t"
else
return " "
endif
endfunction
inoremap <expr> <Tab> <SID>TabOrSpace()
Then <Tab> (you can change the key, of course) will insert a tab if at
the beginning of the line or after a tab, and a space (you can make it
return more) otherwise.
I'm not 100% sure that's what you want, but I hope it helps anyway.
Best,
Paul
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: vim 7.4: pasting is very slow on HP UX machine.
On Saturday, June 28, 2014 4:01:39 PM UTC-5, Sarath Addanki wrote:
> Hi,
>
> I have to use vim on HP-UX machine. Whenever I paste any text with more than one line(or some 60 chars), it completes the operation very slowly. This problem is making vim un usable. Please assist.
>
> Following are the details
>
> machine details:
> HP-UX stlhp107 B.11.31 U ia64 3120353525
>
> Terminal used is: dtterm
>
> Attached is the vim installation details.
>
> Please help to troubleshoot. I'm a long term user of vim. Without vim it's difficult to write code for me.
>
> Thanks,
> Sarath
Is it faster if you ":set paste" first before pasting? Make sure to turn it off again after you paste.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
>
> I have to use vim on HP-UX machine. Whenever I paste any text with more than one line(or some 60 chars), it completes the operation very slowly. This problem is making vim un usable. Please assist.
>
> Following are the details
>
> machine details:
> HP-UX stlhp107 B.11.31 U ia64 3120353525
>
> Terminal used is: dtterm
>
> Attached is the vim installation details.
>
> Please help to troubleshoot. I'm a long term user of vim. Without vim it's difficult to write code for me.
>
> Thanks,
> Sarath
Is it faster if you ":set paste" first before pasting? Make sure to turn it off again after you paste.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RE: how can I mark the indentation with (dots) in Vim ?
Arup Rakshit wrote:
> You can see, that, while he is typing code, indentations are
> showing with dots. 2 dots for 2 space indentations, 4 dots for
> 4 spaces etc..
>
> How the same can be done in Vim ?
Search for listchars at
http://vim.wikia.com/wiki/Highlight_unwanted_spaces
John
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> You can see, that, while he is typing code, indentations are
> showing with dots. 2 dots for 2 space indentations, 4 dots for
> 4 spaces etc..
>
> How the same can be done in Vim ?
Search for listchars at
http://vim.wikia.com/wiki/Highlight_unwanted_spaces
John
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: How to substitute text with combining characters?
On Saturday, June 28, 2014 6:21:23 PM UTC+2, kks...@gmail.com wrote:
> For text `é,e` (\x65 \u0301 \x2c \x65):
>
> If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
>
> If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
>
> Is this a bug or not?
The first example works for me. Have you tried with a recent version of
Vim?
The second example I managed to get working with this hack:
:s/.́/\=submatch(0)[0:(strlen(nr2char(char2nr(submatch(0))))-1)] . "\u0302"/g
This matches any character with an acute on it, then chops off the bytes
following the base character (that is, the combining acute), and then
concatenates the base character with the combining circumflex. I made
sure that it works for multi-byte base characters, too. But there has
got to be an easier solution.
Vim support for combining characters isn't complete. Check the todo list
at ":h todo" (be aware that todo.txt talks about "composing characters"
instead of the proper "combining characters").
--
David
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> For text `é,e` (\x65 \u0301 \x2c \x65):
>
> If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
>
> If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
>
> Is this a bug or not?
The first example works for me. Have you tried with a recent version of
Vim?
The second example I managed to get working with this hack:
:s/.́/\=submatch(0)[0:(strlen(nr2char(char2nr(submatch(0))))-1)] . "\u0302"/g
This matches any character with an acute on it, then chops off the bytes
following the base character (that is, the combining acute), and then
concatenates the base character with the combining circumflex. I made
sure that it works for multi-byte base characters, too. But there has
got to be an easier solution.
Vim support for combining characters isn't complete. Check the todo list
at ":h todo" (be aware that todo.txt talks about "composing characters"
instead of the proper "combining characters").
--
David
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tabs for indentation, spaces for alignment - possible in vanilla vim?
Hi,
I would like to use tabs for indentation and spaces for alignment.
This "idea" is also described here: http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
To put it simple:
- tabs should be used at the beginning of the line
- spaces should be inserted when after any character in the line
The article linked above proposes a 'smart tab' plugin to achieve this. Unfortunately, this plugin breaks snipmate plugin which also uses tab.
So I wonder, is there a way (an option maybe) to achieve this without a plugin?
I tried `:h 'smarttab'`, but that does something else.
Thanks
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I would like to use tabs for indentation and spaces for alignment.
This "idea" is also described here: http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
To put it simple:
- tabs should be used at the beginning of the line
- spaces should be inserted when after any character in the line
The article linked above proposes a 'smart tab' plugin to achieve this. Unfortunately, this plugin breaks snipmate plugin which also uses tab.
So I wonder, is there a way (an option maybe) to achieve this without a plugin?
I tried `:h 'smarttab'`, but that does something else.
Thanks
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
vim 7.4: pasting is very slow on HP UX machine.
Huge version with X11-Motif GUI. Features included (+) or not (-):
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra +toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak -python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind +X11
-dnd +modify_fname +signs +xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop
+farsi +mouse_netterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/ziguser1/zig/dev/saddanki/share/vim"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -O -I/usr/local/include -I/usr/contrib/X11R6/include -O -I/usr/local/include -I/usr/contrib/X11R6/include
Linking: cc -L/usr/lib/Motif1.1 -Wl,+b -Wl,/usr/local/lib/hpux32 -L/usr/local/lib/hpux32 -L/usr/contrib/X11R6/lib -L/usr/local/lib -o vim -lXmu -lXext -lXm -lm -lncurses -lintlHi,
I have to use vim on HP-UX machine. Whenever I paste any text with more than one line(or some 60 chars), it completes the operation very slowly. This problem is making vim un usable. Please assist.
Following are the details
machine details:
HP-UX stlhp107 B.11.31 U ia64 3120353525
Terminal used is: dtterm
Attached is the vim installation details.
Please help to troubleshoot. I'm a long term user of vim. Without vim it's difficult to write code for me.
Thanks,
Sarath
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra +toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak -python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind +X11
-dnd +modify_fname +signs +xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop
+farsi +mouse_netterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/ziguser1/zig/dev/saddanki/share/vim"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -O -I/usr/local/include -I/usr/contrib/X11R6/include -O -I/usr/local/include -I/usr/contrib/X11R6/include
Linking: cc -L/usr/lib/Motif1.1 -Wl,+b -Wl,/usr/local/lib/hpux32 -L/usr/local/lib/hpux32 -L/usr/contrib/X11R6/lib -L/usr/local/lib -o vim -lXmu -lXext -lXm -lm -lncurses -lintlHi,
I have to use vim on HP-UX machine. Whenever I paste any text with more than one line(or some 60 chars), it completes the operation very slowly. This problem is making vim un usable. Please assist.
Following are the details
machine details:
HP-UX stlhp107 B.11.31 U ia64 3120353525
Terminal used is: dtterm
Attached is the vim installation details.
Please help to troubleshoot. I'm a long term user of vim. Without vim it's difficult to write code for me.
Thanks,
Sarath
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How to substitute text with combining characters?
For text `é,e` (\x65 \u0301 \x2c \x65):
If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
Is this a bug or not?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If I use `:s/\Ze/x/g`, I get `x,x`. How to get `x́,x`?
If I use `:s/́/̂/g` (substitue \u0301 with \u0302), I get ̂`,e`. How to get `ê,e`?
Is this a bug or not?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: how can I mark the indentation with (dots) in Vim ?
On Saturday, June 28, 2014 11:48:41 AM UTC+2, Arup Rakshit wrote:
> If you look at the below video url,
>
> http://blog.teamtreehouse.com/what-is-a-has_many-through-association-in-ruby-on-rails-treehouse-quick-tip
>
> You can see, that, while he is typing code, indentations are showing with
> dots. 2 dots for 2 space indentations, 4 dots for 4 spaces etc..
>
> How the same can be done in Vim ?
http://stackoverflow.com/q/1675688
--
David
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> If you look at the below video url,
>
> http://blog.teamtreehouse.com/what-is-a-has_many-through-association-in-ruby-on-rails-treehouse-quick-tip
>
> You can see, that, while he is typing code, indentations are showing with
> dots. 2 dots for 2 space indentations, 4 dots for 4 spaces etc..
>
> How the same can be done in Vim ?
http://stackoverflow.com/q/1675688
--
David
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: how can I mark the indentation with (dots) in Vim ?
you can try some plugins like:
https://github.com/Yggdroot/indentLine
https://github.com/nathanaelkane/vim-indent-guides
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
https://github.com/Yggdroot/indentLine
https://github.com/nathanaelkane/vim-indent-guides
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
how can I mark the indentation with (dots) in Vim ?
Hi,
If you look at the below video url,
http://blog.teamtreehouse.com/what-is-a-has_many-through-association-in-ruby-on-rails-treehouse-quick-tip
You can see, that, while he is typing code, indentations are showing with
dots. 2 dots for 2 space indentations, 4 dots for 4 spaces etc..
How the same can be done in Vim ?
--
================
Regards,
Arup Rakshit
================
Debugging is twice as hard as writing the code in the first place. Therefore,
if you write the code as cleverly as possible, you are, by definition, not
smart enough to debug it.
--Brian Kernighan
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you look at the below video url,
http://blog.teamtreehouse.com/what-is-a-has_many-through-association-in-ruby-on-rails-treehouse-quick-tip
You can see, that, while he is typing code, indentations are showing with
dots. 2 dots for 2 space indentations, 4 dots for 4 spaces etc..
How the same can be done in Vim ?
--
================
Regards,
Arup Rakshit
================
Debugging is twice as hard as writing the code in the first place. Therefore,
if you write the code as cleverly as possible, you are, by definition, not
smart enough to debug it.
--Brian Kernighan
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Friday, June 27, 2014
Re: Compare files, save differences
On Fr, 27 Jun 2014, Conner McDaniel wrote:
> Can you give an example? I can't get comm to produce the OP's
> requested output.
Please don't top poste. You can find the answer in the thread, you are
replying to:
https://groups.google.com/d/msg/vim_use/a_dxsQtjTbU/sPdTeTV_7FsJ
Best,
Christian
--
Windows98: 98% Grafik und 2% Betriebssystem.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Can you give an example? I can't get comm to produce the OP's
> requested output.
Please don't top poste. You can find the answer in the thread, you are
replying to:
https://groups.google.com/d/msg/vim_use/a_dxsQtjTbU/sPdTeTV_7FsJ
Best,
Christian
--
Windows98: 98% Grafik und 2% Betriebssystem.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Compare files, save differences
Can you give an example? I can't get comm to produce the OP's requested
output.
Thanks!
Conner
On Fri, Jun 27, 2014 at 04:49:10PM +0200, Christian Brabandt wrote:
>
>On Fr, 27 Jun 2014, Conner McDaniel wrote:
>
>> I apologize. You can use sort and join to get this result. For
>> example...
>>
>> join -v1 <(sort allwords.txt) <(sort mywords.txt) >difwords.txt
>
>or use comm(1) as I wrote a couple of months before.
>
>Best,
>Christian
>--
>Darin besteht ja die Teufelei weiblicher Reize, daß sie einen
>zwingen, sein eigenes Verderben herbeizusehnen.
> -- George Bernard Shaw
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
output.
Thanks!
Conner
On Fri, Jun 27, 2014 at 04:49:10PM +0200, Christian Brabandt wrote:
>
>On Fr, 27 Jun 2014, Conner McDaniel wrote:
>
>> I apologize. You can use sort and join to get this result. For
>> example...
>>
>> join -v1 <(sort allwords.txt) <(sort mywords.txt) >difwords.txt
>
>or use comm(1) as I wrote a couple of months before.
>
>Best,
>Christian
>--
>Darin besteht ja die Teufelei weiblicher Reize, daß sie einen
>zwingen, sein eigenes Verderben herbeizusehnen.
> -- George Bernard Shaw
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Compare files, save differences
On Fr, 27 Jun 2014, Conner McDaniel wrote:
> I apologize. You can use sort and join to get this result. For
> example...
>
> join -v1 <(sort allwords.txt) <(sort mywords.txt) >difwords.txt
or use comm(1) as I wrote a couple of months before.
Best,
Christian
--
Darin besteht ja die Teufelei weiblicher Reize, daß sie einen
zwingen, sein eigenes Verderben herbeizusehnen.
-- George Bernard Shaw
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> I apologize. You can use sort and join to get this result. For
> example...
>
> join -v1 <(sort allwords.txt) <(sort mywords.txt) >difwords.txt
or use comm(1) as I wrote a couple of months before.
Best,
Christian
--
Darin besteht ja die Teufelei weiblicher Reize, daß sie einen
zwingen, sein eigenes Verderben herbeizusehnen.
-- George Bernard Shaw
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Compare files, save differences
I apologize. You can use sort and join to get this result. For
example...
join -v1 <(sort allwords.txt) <(sort mywords.txt) >difwords.txt
- Conner
On Fri, Jun 27, 2014 at 10:12:10AM -0400, kamaraju kusumanchi wrote:
>On Fri, Jun 27, 2014 at 9:56 AM, Conner McDaniel <connermcd@gmail.com>
>wrote:
>
>> You can use the `diff` program to check differences between files. You
>> could also use `git diff` as an alternative. If you want to view changes
>> interactively in vim use `:vimdiff`. Seek help for these commands in the
>> man pages and `:help` documentation.
>>
>> - Conner
>>
>>
>
>While these are all useful tools, this will not solve OP's problem. The
>idea here is to get the list of list of names that are in one set but not
>in another set and then store the results into a different file. How will
>you achieve this with diff, git diff, vimdiff?
>
>raju
>--
>Kamaraju S. Kusumanchi
>http://malayamaarutham.blogspot.com/
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
example...
join -v1 <(sort allwords.txt) <(sort mywords.txt) >difwords.txt
- Conner
On Fri, Jun 27, 2014 at 10:12:10AM -0400, kamaraju kusumanchi wrote:
>On Fri, Jun 27, 2014 at 9:56 AM, Conner McDaniel <connermcd@gmail.com>
>wrote:
>
>> You can use the `diff` program to check differences between files. You
>> could also use `git diff` as an alternative. If you want to view changes
>> interactively in vim use `:vimdiff`. Seek help for these commands in the
>> man pages and `:help` documentation.
>>
>> - Conner
>>
>>
>
>While these are all useful tools, this will not solve OP's problem. The
>idea here is to get the list of list of names that are in one set but not
>in another set and then store the results into a different file. How will
>you achieve this with diff, git diff, vimdiff?
>
>raju
>--
>Kamaraju S. Kusumanchi
>http://malayamaarutham.blogspot.com/
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Compare files, save differences
On Fri, Jun 27, 2014 at 9:56 AM, Conner McDaniel <connermcd@gmail.com> wrote:
You can use the `diff` program to check differences between files. You could also use `git diff` as an alternative. If you want to view changes interactively in vim use `:vimdiff`. Seek help for these commands in the man pages and `:help` documentation.
- Conner
While these are all useful tools, this will not solve OP's problem. The idea here is to get the list of list of names that are in one set but not in another set and then store the results into a different file. How will you achieve this with diff, git diff, vimdiff?
raju
--
Kamaraju S. Kusumanchi
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Compare files, save differences
You can use the `diff` program to check differences between files. You
could also use `git diff` as an alternative. If you want to view changes
interactively in vim use `:vimdiff`. Seek help for these commands in the
man pages and `:help` documentation.
- Conner
On Fri, Jun 27, 2014 at 01:28:33AM -0400, kamaraju kusumanchi wrote:
>On Mon, Apr 21, 2014 at 5:14 AM, Jeri Raye <jeri.raye@gmail.com> wrote:
>
>> Hi,
>>
>> I have a file allwords.txt.
>> And I have another file mywords.txt
>>
>> How can I filter the differences, and safe them in another file called
>> difwords.txt?
>>
>> Example:
>> +------ allwords.txt -------+
>> James
>> Richard
>> Anna
>> Claude
>> Ben
>> +------------+
>>
>> +------mywords.txt-----+
>> Anna
>> Ben
>> +-------------------+
>>
>> This should then make the following file
>>
>> +------difwords.txt-----+
>> James
>> Richard
>> Claude
>> +-----------+
>>
>
>It has been a long time since you posted this. I am not sure if you found
>the solution already. But since this is a problem I frequently encounter, I
>made a perl script to solve it. You can download it from
>https://sourceforge.net/p/rajuutils/code/ci/master/tree/perl/overlap/ . By
>default, it operates on two files setA.txt, setB.txt. The output is stored
>in "out" directory.
>
>For example, with the following input files
>
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat setA.txt
>James
>Richard
>Anna
>Claude
>Ben
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat setB.txt
>Anna
>Ben
>Jeff
>Raju
>
>Run the script
>
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ ./overlap.pl
>set count pct
>A 5 0.71
>B 4 0.57
>A or B 7 1.00
>A and B 2 0.29
>A - B 3 0.43
>B - A 2 0.29
>notA and notB 0 0.00
>storing output files under out directory
>
>The output files are as follows:
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ ls out/
>out_AandB.txt out_AorB.txt out_notAnotB.txt out_onlyA.txt out_onlyB.txt
>
>In this case, the file you are interested in is out_onlyA.txt
>
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat out/out_onlyA.txt
>Claude
>James
>Richard
>
>hth
>raju
>--
>Kamaraju S. Kusumanchi
>http://malayamaarutham.blogspot.com/
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
could also use `git diff` as an alternative. If you want to view changes
interactively in vim use `:vimdiff`. Seek help for these commands in the
man pages and `:help` documentation.
- Conner
On Fri, Jun 27, 2014 at 01:28:33AM -0400, kamaraju kusumanchi wrote:
>On Mon, Apr 21, 2014 at 5:14 AM, Jeri Raye <jeri.raye@gmail.com> wrote:
>
>> Hi,
>>
>> I have a file allwords.txt.
>> And I have another file mywords.txt
>>
>> How can I filter the differences, and safe them in another file called
>> difwords.txt?
>>
>> Example:
>> +------ allwords.txt -------+
>> James
>> Richard
>> Anna
>> Claude
>> Ben
>> +------------+
>>
>> +------mywords.txt-----+
>> Anna
>> Ben
>> +-------------------+
>>
>> This should then make the following file
>>
>> +------difwords.txt-----+
>> James
>> Richard
>> Claude
>> +-----------+
>>
>
>It has been a long time since you posted this. I am not sure if you found
>the solution already. But since this is a problem I frequently encounter, I
>made a perl script to solve it. You can download it from
>https://sourceforge.net/p/rajuutils/code/ci/master/tree/perl/overlap/ . By
>default, it operates on two files setA.txt, setB.txt. The output is stored
>in "out" directory.
>
>For example, with the following input files
>
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat setA.txt
>James
>Richard
>Anna
>Claude
>Ben
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat setB.txt
>Anna
>Ben
>Jeff
>Raju
>
>Run the script
>
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ ./overlap.pl
>set count pct
>A 5 0.71
>B 4 0.57
>A or B 7 1.00
>A and B 2 0.29
>A - B 3 0.43
>B - A 2 0.29
>notA and notB 0 0.00
>storing output files under out directory
>
>The output files are as follows:
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ ls out/
>out_AandB.txt out_AorB.txt out_notAnotB.txt out_onlyA.txt out_onlyB.txt
>
>In this case, the file you are interested in is out_onlyA.txt
>
>rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat out/out_onlyA.txt
>Claude
>James
>Richard
>
>hth
>raju
>--
>Kamaraju S. Kusumanchi
>http://malayamaarutham.blogspot.com/
>
>--
>--
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thursday, June 26, 2014
Re: Compare files, save differences
On Mon, Apr 21, 2014 at 5:14 AM, Jeri Raye <jeri.raye@gmail.com> wrote:
+------difwords.txt-----+Hi,+------mywords.txt-----+
I have a file allwords.txt.
And I have another file mywords.txt
How can I filter the differences, and safe them in another file called difwords.txt?
Example:
+------ allwords.txt -------+
James
Richard
Anna
Claude
Ben
+------------+
Anna
Ben
+-------------------+
This should then make the following file
James
Richard
Claude
+-----------+
It has been a long time since you posted this. I am not sure if you found the solution already. But since this is a problem I frequently encounter, I made a perl script to solve it. You can download it from https://sourceforge.net/p/rajuutils/code/ci/master/tree/perl/overlap/ . By default, it operates on two files setA.txt, setB.txt. The output is stored in "out" directory.
For example, with the following input files
rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat setA.txt James Richard Anna Claude Ben rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat setB.txt Anna Ben Jeff Raju
Run the script
rajulocal@hogwarts:~/work/rutils/perl/overlap$ ./overlap.pl
set count pct
A 5 0.71
B 4 0.57
A or B 7 1.00
A and B 2 0.29
A - B 3 0.43
B - A 2 0.29
notA and notB 0 0.00
storing output files under out directory
The output files are as follows:
rajulocal@hogwarts:~/work/rutils/perl/overlap$ ls out/
out_AandB.txt out_AorB.txt out_notAnotB.txt out_onlyA.txt out_onlyB.txt
In this case, the file you are interested in is out_onlyA.txt
rajulocal@hogwarts:~/work/rutils/perl/overlap$ cat out/out_onlyA.txt
Claude
James
Richard
hth
raju
--
Kamaraju S. Kusumanchi
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: imap Alt Space (please help <:( )
On 06/26/2014 02:03 AM, John Little wrote:
> Alt-whatever often belongs to the DE, and alt-space is used by
> windows and gnome at least; so, what OS? and desktop
> environment if linux?
In my case, I'm running Linux (Fedora 20) and KDE. While mostly
I configure KDE such that alt-space opens the window operations
menu (to match the equivalent behavior in Windows), I unmapped
this key for my Vim tests. In that environment, I can run gvim
and enter insert mode. When I press alt-space once, nothing
visible happens. Pressing alt-space again yields the following
character inserted into the buffer: Â
Using a unicode decoder, I see this is Unicode code point
U+00C2, "LATIN CAPITAL LETTER A WITH CIRCUMFLEX".
Testing in a terminal emulator (KDE Konsole), I run:
cat
then press alt-space. As with other alt keys in this terminal,
alt-space is encoded as an escape character followed by a space
(<Esc><Space> in Vim's notation). In console Vim, this is in
fact what I get when I enter insert mode and press alt-space.
Gvim is a different story, though. I don't really know how keys
are encoded and received by Gvim, other than to say that
pressing alt-space twice causes insertion of the "Â" character
on my system.
Since the original poster shows similar behavior (pressing
alt-space appears to do nothing, but following that keypress
with <F2> causes <80> to be inserted), I suspect alt-space isn't
mapped to anything outside of Gvim in his environment.
Michael Henry
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Alt-whatever often belongs to the DE, and alt-space is used by
> windows and gnome at least; so, what OS? and desktop
> environment if linux?
In my case, I'm running Linux (Fedora 20) and KDE. While mostly
I configure KDE such that alt-space opens the window operations
menu (to match the equivalent behavior in Windows), I unmapped
this key for my Vim tests. In that environment, I can run gvim
and enter insert mode. When I press alt-space once, nothing
visible happens. Pressing alt-space again yields the following
character inserted into the buffer: Â
Using a unicode decoder, I see this is Unicode code point
U+00C2, "LATIN CAPITAL LETTER A WITH CIRCUMFLEX".
Testing in a terminal emulator (KDE Konsole), I run:
cat
then press alt-space. As with other alt keys in this terminal,
alt-space is encoded as an escape character followed by a space
(<Esc><Space> in Vim's notation). In console Vim, this is in
fact what I get when I enter insert mode and press alt-space.
Gvim is a different story, though. I don't really know how keys
are encoded and received by Gvim, other than to say that
pressing alt-space twice causes insertion of the "Â" character
on my system.
Since the original poster shows similar behavior (pressing
alt-space appears to do nothing, but following that keypress
with <F2> causes <80> to be inserted), I suspect alt-space isn't
mapped to anything outside of Gvim in his environment.
Michael Henry
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Wednesday, June 25, 2014
imap Alt Space (please help <:( )
Alt-whatever often belongs to the DE, and alt-space is used by windows and gnome at least; so, what OS? and desktop environment if linux?
Regards, John Little
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Regards, John Little
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: imap Alt Space (please help <:( )
> On Wednesday, June 25, 2014 3:29:38 PM UTC+2, neolus wrote:
>> Hello, I simply wanted to redirect Alt + Space in insert mode to a plain
>> space but this seems more complicated than I thought.
I see from a later post that you're running gvim. Normally that
makes mapping keys fairly straightforward, but mapping alt-space
seems to be an anomaly, at least for me running Gvim under KDE
on Linux. I usually have alt-space mapped for a system-wide
function, so I'd never tried mapping it in Gvim before. I get
the same behavior as you. A common way to determine which codes
are sent by pressing a key is to enter insert mode, press Ctrl-V
(or Ctrl-Q if you've got Ctrl-V mapped, which is sometimes done
on Microsoft Windows), then press the key in question. It
should insert its key code into the buffer for examination.
When I try this with alt-space, nothing happens until I press
another key. I think this means you may not have much success
trying to map alt-space in Gvim, at least without a more
thorough look into Gvim's guts to see what's going on under the
hood.
On 06/25/2014 11:25 AM, Bruno Sutic wrote:
> I've tried to make a plugin that consistently enables alt mappings in vim.
> https://github.com/bruno-/vim-alt-mappings
Hi, Bruno,
I took a quick look at your plugin page, and I see you've got it
marked "experimental" because of some unsolved issues. You
might like to take a look at my "fixkey" plugin to see how it
handles some of the issues you bring up:
https://github.com/drmikehenry/vim-fixkey
Michael Henry
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
>> Hello, I simply wanted to redirect Alt + Space in insert mode to a plain
>> space but this seems more complicated than I thought.
I see from a later post that you're running gvim. Normally that
makes mapping keys fairly straightforward, but mapping alt-space
seems to be an anomaly, at least for me running Gvim under KDE
on Linux. I usually have alt-space mapped for a system-wide
function, so I'd never tried mapping it in Gvim before. I get
the same behavior as you. A common way to determine which codes
are sent by pressing a key is to enter insert mode, press Ctrl-V
(or Ctrl-Q if you've got Ctrl-V mapped, which is sometimes done
on Microsoft Windows), then press the key in question. It
should insert its key code into the buffer for examination.
When I try this with alt-space, nothing happens until I press
another key. I think this means you may not have much success
trying to map alt-space in Gvim, at least without a more
thorough look into Gvim's guts to see what's going on under the
hood.
On 06/25/2014 11:25 AM, Bruno Sutic wrote:
> I've tried to make a plugin that consistently enables alt mappings in vim.
> https://github.com/bruno-/vim-alt-mappings
Hi, Bruno,
I took a quick look at your plugin page, and I see you've got it
marked "experimental" because of some unsolved issues. You
might like to take a look at my "fixkey" plugin to see how it
handles some of the issues you bring up:
https://github.com/drmikehenry/vim-fixkey
Michael Henry
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: imap Alt Space (please help <:( )
my bad, I'm using gvim 7.4.335-4
--
View this message in context: http://vim.1045645.n5.nabble.com/imap-Alt-Space-please-help-tp5721993p5721996.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
View this message in context: http://vim.1045645.n5.nabble.com/imap-Alt-Space-please-help-tp5721993p5721996.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: imap Alt Space (please help <:( )
Hey,
I've tried to make a plugin that consistently enables alt mappings in vim.
https://github.com/bruno-/vim-alt-mappings
It turns our that's a though problem for command line vim - mostly because enabling alt mappings breaks a lot of other stuff.
But anyway - can you post which vim are you using (command line, gui)?
Also, if it's terminal vim, then can you please post terminal (Terminal.all in OSX, iTerm, or something else)?
On Wednesday, June 25, 2014 3:29:38 PM UTC+2, neolus wrote:
> Hello, I simply wanted to redirect Alt + Space in insert mode to a plain
>
> space
>
> but this seems more complicated than I thought.
>
>
>
> I've only tried i[nore]map <A-Space> <Space>
>
> (or w/ imap <M-Space> <Space>)
>
>
>
> but the same behaviour that it its always given me remains.
>
> e.g. in insert I type Alt + Space & my input is grabbed untill I press one
>
> more key
>
> like say Alt + Space, F2 will print <80>
>
>
>
> I really hope there's a way, and I hope somebody out there has an idea ?
>
> I already searched alot for this but can't seem to find anyone else w/ the
>
> same problem/need.
>
> Thanks in advance if you're reading this !
>
> Cheers !
>
>
>
>
>
>
>
> --
>
> View this message in context: http://vim.1045645.n5.nabble.com/imap-Alt-Space-please-help-tp5721993.html
>
> Sent from the Vim - General mailing list archive at Nabble.com.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've tried to make a plugin that consistently enables alt mappings in vim.
https://github.com/bruno-/vim-alt-mappings
It turns our that's a though problem for command line vim - mostly because enabling alt mappings breaks a lot of other stuff.
But anyway - can you post which vim are you using (command line, gui)?
Also, if it's terminal vim, then can you please post terminal (Terminal.all in OSX, iTerm, or something else)?
On Wednesday, June 25, 2014 3:29:38 PM UTC+2, neolus wrote:
> Hello, I simply wanted to redirect Alt + Space in insert mode to a plain
>
> space
>
> but this seems more complicated than I thought.
>
>
>
> I've only tried i[nore]map <A-Space> <Space>
>
> (or w/ imap <M-Space> <Space>)
>
>
>
> but the same behaviour that it its always given me remains.
>
> e.g. in insert I type Alt + Space & my input is grabbed untill I press one
>
> more key
>
> like say Alt + Space, F2 will print <80>
>
>
>
> I really hope there's a way, and I hope somebody out there has an idea ?
>
> I already searched alot for this but can't seem to find anyone else w/ the
>
> same problem/need.
>
> Thanks in advance if you're reading this !
>
> Cheers !
>
>
>
>
>
>
>
> --
>
> View this message in context: http://vim.1045645.n5.nabble.com/imap-Alt-Space-please-help-tp5721993.html
>
> Sent from the Vim - General mailing list archive at Nabble.com.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Sorting a List of Numbers
Christian wrote:
> > > On Di, 10 Jun 2014, Павлов Николай Александрович wrote:
> > >
> > > > How would you sort a heterogeneous list otherwise?
> > >
> > > Who says, lists are always heterogeneous? I think one could try to sort
> > > numerical, if all list items are of type number or float, else keep the
> > > existing sorting order.
> >
> > It's just that when the sort() function was added the main purpose was
> > to sort text. From that the idea was added to turn anything into text
> > to be able to sort that too.
> >
> > Obviously we would need to add another sort function, or a special
> > argument to the existing sort function, to have it convert everything to
> > a number and sort that. Text and other non-numbers would be used as
> > zero, just slightly better than reporting an error.
> >
> > We already have the special case for the {func} argument to ignore case
> > when it's one. Could use the same flags as the :sort command has.
>
> So how about the attached patch.
Thanks! Glad to see it was not too complicated.
--
DEAD PERSON: I don't want to go in the cart!
CUSTOMER: Oh, don't be such a baby.
MORTICIAN: I can't take him...
DEAD PERSON: I feel fine!
CUSTOMER: Oh, do us a favor...
MORTICIAN: I can't.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> > > On Di, 10 Jun 2014, Павлов Николай Александрович wrote:
> > >
> > > > How would you sort a heterogeneous list otherwise?
> > >
> > > Who says, lists are always heterogeneous? I think one could try to sort
> > > numerical, if all list items are of type number or float, else keep the
> > > existing sorting order.
> >
> > It's just that when the sort() function was added the main purpose was
> > to sort text. From that the idea was added to turn anything into text
> > to be able to sort that too.
> >
> > Obviously we would need to add another sort function, or a special
> > argument to the existing sort function, to have it convert everything to
> > a number and sort that. Text and other non-numbers would be used as
> > zero, just slightly better than reporting an error.
> >
> > We already have the special case for the {func} argument to ignore case
> > when it's one. Could use the same flags as the :sort command has.
>
> So how about the attached patch.
Thanks! Glad to see it was not too complicated.
--
DEAD PERSON: I don't want to go in the cart!
CUSTOMER: Oh, don't be such a baby.
MORTICIAN: I can't take him...
DEAD PERSON: I feel fine!
CUSTOMER: Oh, do us a favor...
MORTICIAN: I can't.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.