Re: Is there already a solution for mapping ALT in Terminal (urxvt)?

2013-04-03 Thread LCD 47
On 2 April 2013, Kent kent.y...@gmail.com wrote: [...] What I want to map is simple, a-j/k move current line up/down. [...] The keyboard bindings for ALT in urxvt depend on the URxvt.meta8 resource. If URxvt.meta8 is false (which is the default), ALTkey sends ESCkey and thus you need to

Re: Is there already a solution for mapping ALT in Terminal (urxvt)?

2013-04-03 Thread Tony Mechelynck
On 03/04/13 09:49, LCD 47 wrote: On 2 April 2013, Kent kent.y...@gmail.com wrote: [...] What I want to map is simple, a-j/k move current line up/down. [...] The keyboard bindings for ALT in urxvt depend on the URxvt.meta8 resource. If URxvt.meta8 is false (which is the default), ALTkey

Re: correctly setting terminal in SunOS for vim

2013-04-03 Thread Thomas E. Dickey
On Wednesday, April 3, 2013 12:51:57 AM UTC-4, skeept wrote: I am trying to use vim in a computer sunos computer uname -a: SunOS cmc01 5.10 Generic_142910-17 i86pc i386 i86pc At this point I was able to compile ncurses, screen and vim. I can only login to the machine from the work laptop.

Re: clicking to open folds in Gui?

2013-04-03 Thread Charles Campbell
AK wrote: On 04/02/2013 02:17 PM, Charles Campbell wrote: I use the following mapping: nnosilent space:exe 'silent! normal! '.((foldclosed('.')0)? 'zMzx' : 'zc')cr Its not a click mapping, obviously -- but it makes the space bar a toggle for the folding under the cursor. I suppose

Re: correctly setting terminal in SunOS for vim

2013-04-03 Thread skeept
Also, it's possible that screen is linked to the legacy termcap library on Solaris rather than /usr/lib/termcap (which sym-links to libcurses). You can check that using ldd. If it's linked to the legacy termcap library, you can't use TERMINFO to fix it. Thanks for the info. ldd screen

Re: replace represenation of certain characters with a string of characters?

2013-04-03 Thread neolus
Christian Brabandt wrote BTW: You know, that you need to replace vim by the chars you want to be replaced and EMACS by the chars, that you like to see, right? no I did not get that before :) thx for explaining. impressive workaround! now just to make it more seemless I only need to figure out

do word jump commands without line-wrap?

2013-04-03 Thread neolus
Hi! is there any fast neat way to tell vim not to go to next/previous word if it's on a different line that doesn't require writing a function? e.g. a flag or something? I looked but can't find anything on it other than whichwrap but it seems that only applies to hjkl stuff.. -- View this

execute user defined command and press enter

2013-04-03 Thread FlashBurn
I created the following command command! -nargs=1 Vim :call VimGrep(args, g:dir_list) | copen | cc The problem that I'm having is that it is asking me to press enter after it is executed. How can I avoid it? How can I make it open the quickfix list automatically without vim telling me to press

Re: replace represenation of certain characters with a string of characters?

2013-04-03 Thread Christian Brabandt
Hi neolus! On Mi, 03 Apr 2013, neolus wrote: Christian Brabandt wrote BTW: You know, that you need to replace vim by the chars you want to be replaced and EMACS by the chars, that you like to see, right? no I did not get that before :) thx for explaining. impressive workaround! now

Re: Setting the TEXINPUTS and BIBINPUTS varibles for latex inside vim/gVim

2013-04-03 Thread Gary Johnson
On 2013-04-02, Christoph Wiesmeyr wrote: Setting environment variables from within an app affects that app and its child apps. So, are you compiling from within vim? ie. do you leave vim and then try latex, bibtex, etc? I do not really know how this is implemented in the

How to put search result on FIRST screen line

2013-04-03 Thread Philip Rhoades
People, I want to flick through a large text file with repeated sections of variable length (but each with four heading lines) so that the the first heading line of each section always ends up as the first screen line - is there some way of doing this with the search facility? Thanks,

Re: do word jump commands without line-wrap?

2013-04-03 Thread tooth pik
On Wed, Apr 03, 2013 at 10:21:08AM -0700, neolus wrote: Hi! is there any fast neat way to tell vim not to go to next/previous word if it's on a different line that doesn't require writing a function? e.g. a flag or something? I looked but can't find anything on it other than whichwrap but it

Re: Setting the TEXINPUTS and BIBINPUTS varibles for latex inside vim/gVim

2013-04-03 Thread Christoph Wiesmeyr
Despite what you read on the web, ~/.bashrc is not the right place to set environment variables. For one thing, they won't be available to programs launched from Vim with :!command. For another, they won't be available to programs started from your window manager, as gvim often is.

Re: How to put search result on FIRST screen line

2013-04-03 Thread Kent
i didn't understand your text format very well but zt will move your current line (line under cursor) to screen top. which you may need, to build your command. On Wed, Apr 3, 2013 at 9:15 PM, Philip Rhoades p...@pricom.com.au wrote: People, I want to flick through a large text file with

Re: correctly setting terminal in SunOS for vim

2013-04-03 Thread skeept
For anyone interested the way I solved this was the following: I noticed that the linking step when compiling was done with: cc -o screen screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o search.o tty.o term.o window.o utmp.o loadav.o putenv.o help.o termcap.o input.o attacher.o pty.o

Re: How to put search result on FIRST screen line

2013-04-03 Thread Paul Isambert
I want to flick through a large text file with repeated sections of variable length (but each with four heading lines) so that the the first heading line of each section always ends up as the first screen line - is there some way of doing this with the search facility? Try something like:

Re: How to put search result on FIRST screen line

2013-04-03 Thread Philip Rhoades
Kent, Thanks but I don't want to do a second command - I want the search results on the first screen line after the search . . Regards, Phil. On 2013-04-04 06:47, Kent wrote: i didn't understand your text format very well but zt will move your current line (line under cursor) to screen

Re: How to put search result on FIRST screen line

2013-04-03 Thread Christian Brabandt
Hi Philip! (Please don't top poste). On Do, 04 Apr 2013, Philip Rhoades wrote: Kent, Thanks but I don't want to do a second command - I want the search results on the first screen line after the search . . Then map it to your favorite key . Mit freundlichen Grüßen Christian -- Letzte

Re: How to put search result on FIRST screen line

2013-04-03 Thread Philip Rhoades
Christian, On 2013-04-04 07:03, Christian Brabandt wrote: Hi Philip! (Please don't top poste). I usually don't but Kent did when he replied to my original post so I had to follow suit otherwise my reply to Kent would have been hard to read . . On Do, 04 Apr 2013, Philip Rhoades

Re: Vim on the iPad

2013-04-03 Thread Eric Weir
On Mar 20, 2013, at 8:22 AM, Jeroen Budts wrote: 2) Cut and paste between apps on Android is very easy. Tap-and-hold a piece of text and a small toolbar pops-up where you can select cut/copy. Then in another app you can tap-and-hold in a textfield and a paste button will show up. In Vimtouch

Re: How to put search result on FIRST screen line

2013-04-03 Thread Taylor Hedberg
Philip Rhoades, Thu 2013-04-04 @ 07:09:21+1100: What do you mean? How do you map the search and the zt command? e.g.: nnoremap Leadern nzt signature.asc Description: Digital signature

Re: Vim on the iPad

2013-04-03 Thread stosss
Hi Eric, That is one of the very reasons that the Open Source Software community came about. There are hundreds of thousands (maybe several million by now) of people that disagree with the proprietary corporate ways of locking and controlling what you can and can't do on a computer. Apple almost

Re: How to put search result on FIRST screen line

2013-04-03 Thread Philip Rhoades
Taylor, On 2013-04-04 07:17, Taylor Hedberg wrote: Philip Rhoades, Thu 2013-04-04 @ 07:09:21+1100: What do you mean? How do you map the search and the zt command? e.g.: nnoremap Leadern nzt That seems to put the searched line in the centre of the screen . . not the first line of the

Re: How to put search result on FIRST screen line

2013-04-03 Thread Taylor Hedberg
Philip Rhoades, Thu 2013-04-04 @ 07:40:47+1100: That seems to put the searched line in the centre of the screen . . not the first line of the screen. Not sure why that would be, as `zt` scrolls the cursor line to the top of the window. It is working as intended on my machine. signature.asc

Re: How to put search result on FIRST screen line

2013-04-03 Thread Tim Chase
On 2013-04-04 07:40, Philip Rhoades wrote: nnoremap Leadern nzt That seems to put the searched line in the centre of the screen . . not the first line of the screen. Do you have a non-default setting (i.e., very large value) for 'scrolloff'? -tim -- -- You received this message from

Re: How to put search result on FIRST screen line

2013-04-03 Thread Philip Rhoades
Paul, On 2013-04-04 06:57, Paul Isambert wrote: I want to flick through a large text file with repeated sections of variable length (but each with four heading lines) so that the the first heading line of each section always ends up as the first screen line - is there some way of doing this

Re: do word jump commands without line-wrap?

2013-04-03 Thread Christian Brabandt
Hi neolus! On Mi, 03 Apr 2013, neolus wrote: Hi! is there any fast neat way to tell vim not to go to next/previous word if it's on a different line that doesn't require writing a function? e.g. a flag or something? I looked but can't find anything on it other than whichwrap but it seems that

Re: Is there already a solution for mapping ALT in Terminal (urxvt)?

2013-04-03 Thread Kent
thanks Tony, thanks LCD 47 I just did some test again, didn't find solution... :( I think the alt-j mapping works here. my problem is the keycode timeout.. Normal mode mapping I have no problem, but Insert mode let's say, I tried followings: inoremap ^[j Esc:m-2CR==gi(c-v then alt-j)

Re: execute user defined command and press enter

2013-04-03 Thread Ben Fritz
On Wednesday, April 3, 2013 1:17:56 PM UTC-5, FlashBurn wrote: I created the following command command! -nargs=1 Vim :call VimGrep(args, g:dir_list) | copen | cc The problem that I'm having is that it is asking me to press enter after it is executed. How can I avoid it? How can I make it

Re: do word jump commands without line-wrap?

2013-04-03 Thread Paul Isambert
Selon Christian Brabandt cbli...@256bit.org: Hi neolus! On Mi, 03 Apr 2013, neolus wrote: Hi! is there any fast neat way to tell vim not to go to next/previous word if it's on a different line that doesn't require writing a function? e.g. a flag or something? I looked but can't find

errorformat when error is not a number

2013-04-03 Thread FlashBurn
I have setup my errorformat quite nicely to match the compiler and lint output, however today I bumped onto a new error format: offending expression ^ path/to/the/file,line numberwhite spaceError[Peerror number]:white spaceerror messagev Vim usually displays error number next to

Re: execute user defined command and press enter

2013-04-03 Thread Gary Johnson
On 2013-04-03, FlashBurn wrote: I created the following command command! -nargs=1 Vim :call VimGrep(args, g:dir_list) | copen | cc The problem that I'm having is that it is asking me to press enter after it is executed. How can I avoid it? How can I make it open the quickfix list