BPJ | 27 Nov 16:24 2014
Picon

Vim and disabillity accessability

As some of you may recall from earlier posts of mine I have
cerebral palsy, and Vim's character-sequence commands are a great
help to me to overcome my motor disability. However there are as
we all know commands which use ctrl and shift key combinations.
Hitherto I've been reasonably able to use such commands and to
type (initial) caps in insert mode without using capslock. Since
a month, however, I have a muscle inflammation in my right
shoulder which to a large extent has deprived me of the use of my
right hand, since working with it for any extended time (more
than one hour or so) causes considerable pain which endures for
hours, and I have been told that this will take four to six
months to heal! So now I'm looking for some clever mappings to
relieve me of having to use the shift and ctrl keys, and
hopefully also the alt key entirely. I'm thinking of adding
something like the following to my .vimrc:

    for num in range(char2nr("a"),char2nr("z"))
        let char = nr2char(num)
        exe printf("map <F3>%s <S-%s>", char, char)
        exe printf("map <F3><F3>%s <C-%s>", char, char)
        exe printf("map <F3><F3><F3>%s <S-C-%s>", char, char)
        for key in ["i", "c"]
            exe printf(":%smap <F4>%s %s", key, char, toupper(char))
        endfor
    endfor

My first question: is there some way to 'intercept' existing
mappings like `<S-{some-char}>{some-key}...` so that I can use
some combination of single-key presses instead of
`<S-{some- char}>` without remapping every `<S-{some-char}>{some-key}...`
(Continue reading)

'shortmess' -- is it redundent to have both "o" and "O"?

Relevant documentation: http://vimdoc.sourceforge.net/htmldoc/options.html#%27shortmess%27

My question is: is it redundant to have both "o" and "O" in the 'shortmess' option? In other words, does "O"
imply "o"? If this is not the case, can anyone demonstrate the difference between the two?

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

颖黄 | 26 Nov 22:47 2014
Picon

vim keymap to execute bash script with parameter

Hi, all
   I want to implement such a feature in vim script: in command mode of vi, press v to select the key word, and then
press F5, then vi call my bash file, called search.sh, passing the selected key word as parameter to the bash.
   Then my search.sh will do all the left work.
   But, I don't know how to call my search.sh from vi command mode, I guess it would be something like: 
   nnoremap F5 :vs path_to_mybash.sh $param1 $param2
   Could someone give me some clues? 

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
surge | 26 Nov 05:01 2014
Picon

tmux and screen restore

Hi,

If this has been answered, I'm sorry. Please point me to the right post -- I couldn't find much.

I'm using tmux through ssh and the screen is not restored upon exiting from vim. No matter what the terminal
type and even with these commands in .vimrc:

if &term =~ "linux"
  let &t_ti = "\<Esc>[?47h"
  let &t_te = "\<Esc>[?47l"
endif

Any ideas?

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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
petitjean.chiral | 25 Nov 16:22 2014
Picon

gnome-terminal, azerty keyboard, accents problem

Hi,
I am connected to my linux centos 5.5 station with an azerty keyboard pc105, with some accentuated vowels
available by pressing one button (no shift, no AltGr, etc.), such as:
éèçàù
I see them correctly on my screen just now and I hope that you can see them, too.
If you don't: I typed "e" with acute accent, then "e" with grave accent, then "c" with cedilla, then "a" with
grave accent, then "u" with a grave accent.
I see them also when using firefox and OpenOffice, but neither at the shell level with gnome-terminal
2.16.0 nor with vim 7.0.
The same symptoms appear with the other accentuated vowels reached via pressing two buttons (e.g. to put a
circonflex accent on the "a" or else).
The result of the locale command is:
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
What should I do to see the accentuated vowels when I type them within a line shell command or when inputting
text with vim ?
I read a huge of web pages about that, but nothing works.
Once some pertinent change will be found, should I just reopen a new terminal window, or logout then login,
(Continue reading)

ping song | 25 Nov 14:39 2014
Picon

[2nd post] vim taglist: jump to local file first

can anyone help on this?

On Sat, Nov 15, 2014 at 12:17 PM, ping song <songpingemail <at> gmail.com> wrote:
> this annoys me for quite a while...
>
> I started some scripts and created some functions/procedures in it.
> later when I created new script I simply borrowed these (well tested)
> fucntions/procedures in new scripts, but I may modified them here and
> there to get the new task done.
> now I end up with multiple files, each with overlapped function definitions.
>
> this is fine for the scripts - there is no cross reference so they all
> works good.
>
> now the issue is, I started taglist in one of the script1, and when I
> want to go to definition of script1:function1, I sometime end up to to
> have another script2 opened
> and I was put in the postion of script2:function1 definition.
>
> I had impression taglist/ctags always go to local file first, so I am
> wondering what happened and how to fix it?
>
> b.t.w I have vim easytags installed, so all tags were generated automatically...

-- 
--

-- 
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

(Continue reading)

russurquhart1 | 24 Nov 17:59 2014
Picon
Picon

vim to format/prettyprint assembly lang source - Best way?


 Hi All,

I have some assembly language source, in an older document, that when it was ported to our current platform,
the code samples got messed up.

I am now faced with the task of going through and reformatting the assembly language examples. I'm using
vim, to format the code but it is still a pretty manual task. I was wondering if anyone could suggest a better method.

I start with something like this:

<Code> MOVIZF32 R1H, #-2.0 ; R1H = -2.0 (0xC0000000) ABSF32 R1H, R1H ; R1H = 2.0 (0x40000000), ZF = NF = 0
MOVIZF32 R0H, #5.0 ; R0H = 5.0 (0x40A00000) ABSF32 R0H, R0H ; R0H = 5.0 (0x40A00000), ZF = NF = 0 MOVIZF32 R0H,
#0.0 ; R0H = 0.0 ABSF32 R1H, R0H ; R1H = 0.0 ZF = 1, NF = 0</Code>

And to maintain the formatting i need to end up with something like this:

<Code> 
        MOVIZF32  R1H, #-2.0    ; R1H = -2.0 (0xC0000000) 
        ABSF32       R1H, R1H      ; R1H = 2.0 (0x40000000), ZF = NF = 0 

        MOVIZF32  R0H, #5.0     ; R0H = 5.0 (0x40A00000) 
        ABSF32       R0H, R0H      ; R0H = 5.0 (0x40A00000), ZF = NF = 0 

        MOVIZF32  R0H, #0.0     ; R0H = 0.0 
        ABSF32       R1H, R0H      ; R1H = 0.0 ZF = 1, NF = 0</Code>

Can anyone suggest the best way to do this in Vim?

thanks,
(Continue reading)

Andy | 23 Nov 01:40 2014
Picon

gvim default color scheme

I like the default color scheme that I get with gvim (I'm running version 7.4 on Linux). A screenshot is
attached. (Note: it looks like Windows because the window is being displayed by Cygwin/X on a Windows
system.) I also have MacVim on a Mac running Mavericks and I would like to use the same color scheme there. I
don't care for the MacVim color scheme (I especially don't like the use of bold for certain syntax items).
I'm trying to figure out how to use the same color scheme that I get with gvim in MacVim. If I start gvim and run
":colo" it just says "default", but the default color scheme file doesn't actually define any colors. Can
someone tell me where those colors are coming from and how to transfer that color scheme to the Mac? Thanks.

Andy

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Picon

Re: Can vim use 24 bit colorscheme in terminal?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On November 22, 2014 4:01:37 PM EAT, OOO <othree <at> gmail.com> wrote:
>Hi ZyX
>
>I found the reason.
>If I set term type to 'xterm'
>Then every thing works great.
>
>And only happens after 'd0fc837'
>I am not sure which term type should I use for full color environment.
>So I just use 'xterm-256color'
>
>
>Thanks for your help and contribution.
>24 bit color support for Vim is very important for me.
>
>
>
>
>https://bitbucket.org/ZyX_I/vim/commits/d0fc837fee1469ba59187873ea9a5ced97e31c01
>
>
>2014-11-22 20:35 GMT+08:00 OOO <othree <at> gmail.com>:
>> 'Hi ZyX
>>
>> Thanks for reply so quick.
>> I think there is an issue on my environment.
(Continue reading)

meino.cramer | 22 Nov 08:08 2014
Picon
Picon

When *~ and .*.swp will be written ?

Hi,

I am running vim (also) on a Gentoo Linux on this little thing of
board:
http://www.acmesystems.it/arietta

Since there is no harddisc but only a sdcard -- and flash memeory has
a limited amount of write cycles -- I want to eliminated unneccary
writes to the sdcard.

One source of unessary writes are -- in some cases -- the backup-
and swap-files vim generates.

When will these types of file be open while starting vim?

Or in other words:
Is it early enough to do a :set noswapfile | set nobackup right
after loading an existing file (which is more then 0 bytes long)
to prevent creating of any additional file?

Thank you very much in advance for any help!
Best regards,
mcc

-- 
--

-- 
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

(Continue reading)

Paul Jungwirth | 21 Nov 07:20 2014

vim opening files in wrong directory

Hello,

Sometimes when I'm using vim it will start behaving as if I ran it in
a different directory. It seems to be particular files that set it
off, where I have other files with the same name elsewhere on my disk.
For example, if I `cd ~/src/a/app/controllers` and `vi
users_controller.rb`, then I `:e application_controller.rb`, vim will
open ~/src/b/app/controllers/application_controller.rb. If I `:!pwd`
I'll get ~/src/b/app/controllers. If I `:ls` it will show this:

~/src/a/app/controllers/users_controller.rb
application_controller.rb

I've been living with this for years, and I've never had success
trying to Google it. If I close all my vim sessions and `rm -rf
~/.vim/view` the problem goes away for a little while, but it always
comes back.

Does anyone else have this problem? Any ideas how I can troubleshoot it?

I'm running 7.3 on Ubuntu 12.04, although I've had the problem going
back to version 6.

My .vimrc is pretty short, but I'll paste it below just in case.

Sorry this isn't very reproducible, but I'm hoping it rings a bell for someone.

Thanks!
Paul

(Continue reading)


Gmane