Re: customize indentation

2014-03-22 Thread Erik Christiansen
On 21.03.14 10:58, Arup Rakshit wrote: > I wanted to my vim to configure in a way, so that I can see the > indentation correctly happening or not. I mean if it is really 2 > spaces or more. > Suppose, when I will be writing my code, Like below : > > class Foo > . .def foo > . . . .x = 10 > . .

RE: ^@

2014-03-22 Thread John Beckett
Ni Va wrote: > I am launching windows cmd from GVim7.4. > > let cmd = 'myexecutablepath ' > exe "!".cmd To guard against strange characters, the command must be escaped: let cmd = 'myexecutablepath ' exe "!".shellescape(cmd, 1) John -- -- You received this message from the "vim_use" maillist

Re: Alt-?doesn't work

2014-03-22 Thread Erik Christiansen
On 21.03.14 12:13, Johnfg wrote: > I ran the cmds: :nnoremap :put="Hello". > In command mode, Alt-? the line at the bottom of the screen shows > :put="Hello". Trying it here, the problem is not with the mapping, but that the :put command fails, even when executed manually: :put="Hello" causes

Re: customize indentation

2014-03-22 Thread Arup Rakshit
Hi, You can see my .vimrc content here - https://groups.google.com/forum/#!topic/vim_use/zy2yUzWsD9U I am not using *tab* for indentation, rather 2 space indentation. Could you tell me what to change in my .vimrc file ? > If tabs are used, not just an amorphous pile of spaces, then indentatio

Re: customize indentation

2014-03-22 Thread Erik Christiansen
On 22.03.14 02:29, Arup Rakshit wrote: > I am not using *tab* for indentation, rather 2 space indentation. Then either you or some program would need to count spaces, and divide by some factor, in this case 2. > Could you tell me what to change in my .vimrc file ? Just omit the initial colons in

Re: Alt-?doesn't work

2014-03-22 Thread Tim Chase
On 2014-03-22 20:08, Erik Christiansen wrote: > > I ran the cmds: :nnoremap :put="Hello". > > In command mode, Alt-? the line at the bottom of the screen > > shows :put="Hello". > > Trying it here, the problem is not with the mapping, but that > the :put command fails, even when executed manual

customize indentation

2014-03-22 Thread BPJ
lördagen den 22:e mars 2014 skrev Arup Rakshit >: > On Saturday, March 22, 2014 4:56:34 PM UTC+5:30, Erik Christiansen wrote: > > On 22.03.14 02:29, Arup Rakshit wrote: > > > > > I am not using *tab* for indentation, rather 2 space indentation. > > > > > > > > Then either you or some program woul

Re: customize indentation

2014-03-22 Thread Erik Christiansen
On 22.03.14 04:44, Arup Rakshit wrote: > Now I am getting some $ at the end of my each line : And they are the same colour as the ">-" tab visualisations, i.e. blue, unless you've changed colours. They are very useful, because they show if lines are cluttered with trailing whitespace. Type this co

Re: Alt-?doesn't work

2014-03-22 Thread Erik Christiansen
On 22.03.14 07:00, Tim Chase wrote: > Grr...that's what I get for mistranscribing what should have been > single-quotes instead of double-quotes: > > :nnoremap :put='Hello' > > which should insert the line "hello" below the cursor. And, dangnabit, if I'd more closely scrutinised ":h :put", th

Re: customize indentation

2014-03-22 Thread Christian Brabandt
Hi Arup! On Fr, 21 Mär 2014, Arup Rakshit wrote: > I wanted to my vim to configure in a way, so that I can see the indentation > correctly happening or not. I mean if it is really 2 spaces or more. > > Suppose, when I will be writing my code, Like below : > > class Foo > . .def foo > . . . .

Re: customize indentation

2014-03-22 Thread Arup Rakshit
On Saturday, March 22, 2014 7:20:49 PM UTC+5:30, Christian Brabandt wrote: > Hi Arup! > > > > On Fr, 21 Mär 2014, Arup Rakshit wrote: > > > > > I wanted to my vim to configure in a way, so that I can see the indentation > > correctly happening or not. I mean if it is really 2 spaces or more.

Re: Can not open filenames with non-ascii characters on Windows

2014-03-22 Thread Yukihiro Nakadaira
On Wed, Mar 19, 2014 at 11:45 PM, David Balažic wrote: > Hi! > > I used vim 7.3 and from today 7.4 on Windows 7 Pro SP1 64 bit. > > It seems it has problems opening files that have non-ascii characters in > their names. > > For example: > - I create file named testčšž.txt (in case this gets corr

Re: Can not open filenames with non-ascii characters on Windows

2014-03-22 Thread Tim Chase
On 2014-03-19 07:45, David Balažic wrote: > I used vim 7.3 and from today 7.4 on Windows 7 Pro SP1 64 bit. > > It seems it has problems opening files that have non-ascii > characters in their names. > > For example: > - I create file named testčšž.txt (in case this gets corrupted, > that is test

Reactive programming

2014-03-22 Thread Gautier DI FOLCO
Hi all, Is there a way to do reactive programming within ViM ? Thanks by advance for your answers. -- -- 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 ---

Re: Reactive programming

2014-03-22 Thread Marc Weber
Excerpts from Gautier DI FOLCO's message of Sat Mar 22 18:28:21 + 2014: > Is there a way to do reactive programming within ViM ? Vim is a text editor. "reactive programming" usually means writing code. Sure Vim can do it (as well as many other editors). So please clarify what you're asking exac

Re: Reactive programming

2014-03-22 Thread Gautier DI FOLCO
2014-03-22 20:00 GMT+01:00 Marc Weber : > Excerpts from Gautier DI FOLCO's message of Sat Mar 22 18:28:21 + 2014: > > Is there a way to do reactive programming within ViM ? > Vim is a text editor. "reactive programming" usually means writing code. > Sure Vim can do it (as well as many other ed

Re: Can not open filenames with non-ascii characters on Windows

2014-03-22 Thread David Balažic
:e test+TAB does not work. TAB does not make anything appear. It works with "normal" filenames. I suspect Vim uses the 8-bit (ASCII) API instead of the (20 years old!) Unicode API. In that case of course it can not work. Regards, David On 22 March 2014 17:08, Tim Chase wrote: > On 2014-03-19

Re: Can not open filenames with non-ascii characters on Windows

2014-03-22 Thread David Balažic
On 22 March 2014 16:57, Yukihiro Nakadaira wrote: > On Wed, Mar 19, 2014 at 11:45 PM, David Balažic wrote: >> > Try ":set encoding=utf-8" and ":edit testčšž.txt". Yes, this helped. After setting the encoding, the file can be opened. Note that the file content is pure ASCII, just the filename has

Re: Reactive programming

2014-03-22 Thread Marc Weber
Excerpts from Gautier DI FOLCO's message of Sat Mar 22 19:07:51 + 2014: > I really mean reactive programming: when some variables are changed > expressions which dependent on them are recomputed. Reactive tools I know about: - ruby guard https://github.com/guard/guard Thus if you "write" you c

Abbreviations and option paste

2014-03-22 Thread contact
Hello everyone ! I use the abbreviations more and more often, but as the help mention: [quote] Abbreviations are disabled if the 'paste' option is on. [/quote] But they don't work even for the command mode. And when I'm in the command mode, my paste toggle key doesn't work. So the workaround is e

OCaml mode : \t (type display) doesn't work as expected

2014-03-22 Thread Antoine
Hello, I'm programing in OCaml and would like to use the "t" functionality that normally displays the type of the selected term. I activated annotations files, and the function seems to be called and to return the good result. My problem is that the result is displayed too briefly to be read (i

OCaml mode : unable to use \t (type display)

2014-03-22 Thread Antoine
Hello, I would like to use the OCaml t functionality (that displays the type of the selected term, and is defined in ocaml.vim), but the result disappears very quickly (or, most of the times, just doesn't show up). It is just enough to understand that the function that calculates the type does

Re: customize indentation

2014-03-22 Thread Konstantinos Pachnis
You need to set the strings to use (listchars) when in list mode and for the list command. :help listchars This is what I use. if has('multi_byte') && &enc ==# 'utf-8' set listchars=tab:▸\ ,extends:❯,precedes:❮,trail:·,nbsp:± let &showbreak = '↪' else set listchars=tab:>\ ,extends:>,preced

Abbreviations and paste option

2014-03-22 Thread contact
Hello everyone ! I use the abbreviations more and more often, but as the help mention: [quote] Abbreviations are disabled if the 'paste' option is on. [/quote] They don't for the command mode when the option 'paste' is set. And when I'm in the command mode, my paste toggle key doesn't work. So

Re: Reactive programming

2014-03-22 Thread Gautier DI FOLCO
2014-03-22 21:10 GMT+01:00 Marc Weber : > Excerpts from Gautier DI FOLCO's message of Sat Mar 22 19:07:51 + 2014: > > I really mean reactive programming: when some variables are changed > > expressions which dependent on them are recomputed. > > Reactive tools I know about: > - ruby guard http

Re: Abbreviations and option paste

2014-03-22 Thread Ben Fritz
On Saturday, March 22, 2014 4:42:50 AM UTC-5, con...@arkade.info wrote: > Hello everyone ! > > > > I use the abbreviations more and more often, but as the help mention: > > [quote] > > Abbreviations are disabled if the 'paste' option is on. > > [/quote] > > > > But they don't work even for