Programming Lua with vim

2014-03-11 Thread meino . cramer
Hi, I want to write Lua code with vim. Currently I am missing the function of '%' to jump from one scope delimiter to the corresponding one for things like function name() end . Here the missing "scope delimiter" are 'function' and 'end'. There are several others more. I am using a 6

Re: I cannot remap the Enter key ()

2014-03-11 Thread Alexey
I guess is was stupid: i tried to map in the same script. Alexey. -- -- 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 becaus

Re: basic question on vim scripting

2014-03-11 Thread Matteo Cavalleri
> When and how? It may appear that you do this too late, too early, on wrong > buffer or in wrong context (after running code in a specific context cursor > is restored. I do not remember what context though: some autocmd maybe? Or > &*expr, though they usually use textlock). I tried cursor() b

Re: I cannot remap the Enter key ()

2014-03-11 Thread Alexey
Thanks for all the replies and for the explanation about `$ vim -u NONE`. Indeed, it works if i start Vim with `vim -N -u NONE`. It also works if i put this mapping in the end of my script, and not in the middle. This is very strange, because i do not remap `` anywhere else, i am still investi

Re: I cannot remap the Enter key ()

2014-03-11 Thread elken
Map with not On Tuesday, 11 March 2014 19:55:36 UTC, Alexey wrote: > (I believe i posted it here yesterday, but i do not see my message, so i am > resending.) > > I am trying to do this: > > noremap : > > It does not work for me, the command seems to be just ignored. I tested > starting

Re: I cannot remap the Enter key ()

2014-03-11 Thread Anthony Geoghegan
noremap : Hi Alexey, I had no problem using the above to map my Enter key (tested on gvim that came with Lubuntu). The only suggestion I have is to try running the map command with `verbose` prepended: verbose noremap : Then try running `:messages` in case you're not seeing a

Re: I cannot remap the Enter key ()

2014-03-11 Thread Gary Johnson
On 2014-03-11, Alexey wrote: > (I believe i posted it here yesterday, but i do not see my > message, so i am resending.) I saw it yesterday. > I am trying to do this: > > noremap : > > It does not work for me, the command seems to be just ignored. I > tested starting Vim with > > $ vim -u

I cannot remap the Enter key ()

2014-03-11 Thread Alexey
(I believe i posted it here yesterday, but i do not see my message, so i am resending.) I am trying to do this: noremap : It does not work for me, the command seems to be just ignored. I tested starting Vim with $ vim -u NONE so it should not be because of my configuration. When i searc

Re: basic question on vim scripting

2014-03-11 Thread Nikolay Pavlov
On Mar 11, 2014 7:00 PM, "Matteo Cavalleri" wrote: > > I'm playing a bit with a vim script, and I'm stuck on this problem: > > if exists('b:current_line') > echom "normal! ".b:current_line."G" > exe "normal! ".b:current_line."G" > echom 'line is '.line('

Re: basic question on vim scripting

2014-03-11 Thread Jean-Rene David
* Matteo Cavalleri [2014.03.11 11:16]: > I'm playing a bit with a vim script, and I'm stuck on this problem: > > if exists('b:current_line') > echom "normal! ".b:current_line."G" > exe "normal! ".b:current_line."G" > echom 'line is '.line('.') >

Re: Encoding Issues on Windows

2014-03-11 Thread Alexander Shukaev
It looks like there was a patch [https://groups.google.com/forum/#!searchin/vim_dev/windows8%2420ime/vim_dev/JhtPJhOdTKo/E2d5RcIwL2AJ] which was included in 7.4.142. From now on, I can type `chcp 1251` to change to cyrillic codepage and then start terminal Vim. As a result, now I can see Russia

basic question on vim scripting

2014-03-11 Thread Matteo Cavalleri
I'm playing a bit with a vim script, and I'm stuck on this problem: if exists('b:current_line') echom "normal! ".b:current_line."G" exe "normal! ".b:current_line."G" echom 'line is '.line('.') endif If I run the script and then do :messages, the

Re: Vim for Windows (Updated to 7.4.193)

2014-03-11 Thread Alexander Shukaev
Dear Linda, It feels like Perl is not very trendy these days. Support for that many languages was added because certain popular plugins are written partly (or fully) in these languages rather than Vim Script. Python is probably the most popular language for extending Vim right now, perhaps after V

Re: How should I modify a normal mode map set by a plugin?

2014-03-11 Thread Nikolay Pavlov
On Mar 11, 2014 11:33 AM, "Paul Isambert" wrote: > > Hello Ethan, > > Ethan Hereth a écrit: > > I have a question that I think should have a better answer. > > > > I used to have a couple normal mode maps in my .vimrc that went like this: > > > > nnoremap n nzz > > nnoremap N Nzz > > > > which, a

Re: How should I modify a normal mode map set by a plugin?

2014-03-11 Thread Ethan Hereth
Ethan Alan On Tue, Mar 11, 2014 at 3:33 AM, Paul Isambert wrote: > Hello Ethan, > > Ethan Hereth a écrit: >> I have a question that I think should have a better answer. >> >> I used to have a couple normal mode maps in my .vimrc that went like this: >> >> nnoremap n nzz >> nnoremap N Nzz >> >>

Syntax Coloring seems to not scan Folded sections correctly.

2014-03-11 Thread Linda W
I have seen this in more than one place, where a section of code has a long text literal (150-200 characters) in single quotes. The text after the fold is colored as "quoted" -- even though it isn't. If the fold is opened, it parses normally. I was unable to get any resync using "Control-L".

Re: Vim for Windows (Updated to 7.4.193)

2014-03-11 Thread Linda W
Alexander Shukaev wrote: Hey everyone, Vim for Windows [https://bitbucket.org/Haroogan/vim-for-windows] has been updated to 7.4.193. Starting from this release, the support for the latest Lua (5.2) has been included. Um... you seemed to have missed including perl all-together. You got

Vim for Windows (Updated to 7.4.193)

2014-03-11 Thread Alexander Shukaev
Hey everyone, Vim for Windows [https://bitbucket.org/Haroogan/vim-for-windows] has been updated to 7.4.193. Starting from this release, the support for the latest Lua (5.2) has been included. Best regards, Alexander Shukaev -- -- You received this message from the "vim_use" maillist. Do not

Re: Question about surround.vim and visual selection

2014-03-11 Thread Niels Kobschaetzki
On 11/03, KF wrote: On Tuesday, March 11, 2014 2:30:47 PM UTC+8, Niels Kobschätzki wrote: is there a way when using surround.vim with visual selection doesn't add white space? When having: "This is some text" and I select "some" and hit "S(" it becomes: "This is ( some ) text" but I want

Re: How should I modify a normal mode map set by a plugin?

2014-03-11 Thread Paul Isambert
Hello Ethan, Ethan Hereth a écrit: > I have a question that I think should have a better answer. > > I used to have a couple normal mode maps in my .vimrc that went like this: > > nnoremap n nzz > nnoremap N Nzz > > which, as I'm sure I don't need to tell most of you, causes the next search >

Re: Question about surround.vim and visual selection

2014-03-11 Thread KF
On Tuesday, March 11, 2014 2:30:47 PM UTC+8, Niels Kobschätzki wrote: > is there a way when using surround.vim with visual selection doesn't add > white space? > > When having: > > "This is some text" > > and I select "some" and hit "S(" it becomes: > > "This is ( some ) text" > > but I want

Re: Question about surround.vim and visual selection

2014-03-11 Thread Jürgen Krämer
Hi, Niels Kobschätzki wrote: > > is there a way when using surround.vim with visual selection doesn't add > white space? > > When having: > "This is some text" > and I select "some" and hit "S(" it becomes: > "This is ( some ) text" > but I want > "This is (some) text" use the closing pare