On Wednesday, July 17, 2013 5:47:09 PM UTC+2, Ben Fritz wrote:
> On Tuesday, July 16, 2013 9:29:19 PM UTC-5, [email protected] wrote:
> 
> > 
> 
> > I tested with vim 7.3.822 on win7 this config:
> 
> > 
> 
> > :ver
> 
> > 
> 
> > VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 17 2013 03:39:13)
> 
> > 
> 
> > MS-Windows 32-bit console version
> 
> > 
> 
> > Included patches: 1-822
> 
> > 
> 
> > Compiled by g_user7@win7-PC
> 
> > 
> 
> > Huge version without GUI.  Features included (+) or not (-):
> 
> > 
> 
> > [SNIP] 
> 
> > 
> 
> > vimrc file used:
> 
> > 
> 
> > 
> 
> > " http://vimdoc.sourceforge.net/htmldoc/starting.html#vimrc
> 
> > 
> 
> > set nocompatible        " use vim defaults
> 
> > set scrolloff=3         " keep 3 lines when scrolling
> 
> > set ai                  " set auto-indenting on for programming
> 
> > 
> 
> > set showcmd             " display incomplete commands
> 
> > set nobackup            " do not keep a backup file
> 
> > set number              " show line numbers
> 
> > set ruler               " show the current row and column
> 
> > 
> 
> > set hlsearch            " highlight searches
> 
> > set incsearch           " do incremental searching
> 
> > set showmatch           " jump to matches when entering regexp
> 
> > set ignorecase          " ignore case when searching
> 
> > set smartcase           " no ignorecase if Uppercase char present
> 
> > 
> 
> > set visualbell t_vb=    " turn off error beep/flash
> 
> > set novisualbell        " turn off visual bell
> 
> > 
> 
> > set backspace=indent,eol,start  " make that backspace key work the way it 
> > should
> 
> > 
> 
> > syntax on               " turn syntax highlighting on by default
> 
> > filetype on             " detect type of file
> 
> > filetype indent on      " load indent file for specific file type
> 
> > 
> 
> > set t_RV=               " http://bugs.debian.org/608242, 
> > http://groups.google.com/group/vim_dev/browse_thread/thread/9770ea844cec3282
> 
> > 
> 
> 
> 
> I copied this .vimrc into %TEMP%\test_vimrc.vim and ran Vim using:
> 
> 
> 
>   vim -N --noplugin -u %TEMP%\test_vimrc.vim -U NONE -i NONE
> 
> 
> 
> > After executed the vim normal command on fileinwin32 input file:
> 
> > 
> 
> >   :%no<S-Tab>!Y6r gw}Vp<CR>
> 
> > 
> 
> >    with the config above, in last paragraph of buffer, the word "BL" is  
> 
> > repeated on the next line  and "connotation" is pushed on next line.
> 
> > 
> 
> 
> 
> I could not reproduce the problem. "BL" stays on the same line when I do
> 
> it. I realized my terminal window was set to 25 characters in height, 80
> 
> characters in width, so I resized to 80 high and 160 wide as you stated
> 
> you used, and still I get the same result. "BL" stays on the same line,
> 
> lines only get re-indented.
> 
> 
> 
> > Also, I used this line windows command to start vim:
> 
> >        vim -u NONE -U NONE fileinwin32
> 
> > In this case the paragraphs are not indented,
> 
> 
> 
> Because 'autoindent' is not set.
> 
> 
> 
> > but word "BL," is added,  
> 
> > after execution of vim normal command, and the word "BL," appears two times.
> 
> > 
> 
> 
> 
> When I do this, using vim -u NONE -U NONE -i NONE, I get no change in
> 
> the text at all. Somehow, and I have no idea why, gw} for you is
> 
> acting as if 'textwidth' or 'wrapmargin' is set to some value which puts
> 
> "BL," past the boundary where Vim will wrap lines. As far as I can tell,
> 
> unless you've accidentally omitted some of your config, you do not set
> 
> these values.
> 
> 
> 
> What does :scriptnames show after you launch Vim and your command fails?

  C:\Scripts\vim20130714_018\vim\runtime\syntax\syntax.vim
  C:\Scripts\vim20130714_018\vim\runtime\syntax\synload.vim
  C:\Scripts\vim20130714_018\vim\runtime\syntax\syncolor.vim
  C:\Scripts\vim20130714_018\vim\runtime\filetype.vim
  C:\Scripts\vim20130714_018\vim\runtime\indent.vim
  C:\Scripts\vim20130714_018\vim\runtime\syntax\markdown.vim
  C:\Scripts\vim20130714_018\vim\runtime\syntax\html.vim
  C:\Scripts\vim20130714_018\vim\runtime\syntax\javascript.vim
  C:\Scripts\vim20130714_018\vim\runtime\syntax\vb.vim
  C:\Scripts\vim20130714_018\vim\runtime\syntax\css.vim

I aslo did:

:set
--- Options ---
  autoindent          hlsearch          noloadplugins         scroll=39         
  smartcase           updatecount=0
  filetype=markdown   ignorecase          number              scrolloff=3       
  syntax=markdown     t_vb=
  helplang=fr         incsearch           ruler               showmatch         
  ttyfast
  backspace=indent,eol,start

With  the configs above, the normal command, does't work.

But today I tested on another windows 7 desktop (vim 7.4a.023 compiled on 
machine where doesn't work) and on the new machine the normal command for 
"hanging indent" works: The options on this win7 are:

 :set
--- Options ---
  autoindent          helplang=fr         ignorecase          modified          
  ruler               scrolloff=3         showmatch           ttyfast
  encoding=utf-8      hlsearch            incsearch           number            
  scroll=34           shiftwidth=3        smartcase           t_vb=
  backspace=indent,eol,start
  fileencoding=utf-8
  fileencodings=ucs-bom,utf-8,default,latin1

I think that the problem is result of  "fileencoding" or "utf8 encoding" 
options.

I found another problem:

1. I have 1 line in the buffer:
s\x6fme\tt\x65xt\n\"Sa\155ba\u201d: \\\\net\\share

2.After these commands 
 
   c}<C-R>="<C-R>""<CR>

the result in the buffer must change to ( on two lines):

some    text
"Samba”: \\net\share

But in my win32 vim version the char ” ( unicode \u201d ) after word Samba 
disappear.

When setting set encoding=utf8, the commands works as expected, also the 
"hanging indent" commands.

Could have vim initialize in windows like in linux encoding to utf8 by default?

Thanks a lot !

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui