boB Stepp | 6 Mar 07:51 2015
Picon

Unable to get omnicomplete to work for Python 3.4.3.

I am very new to Vim and am in the process of setting up Vim for use
as my Python 3 editing environment as I continue to work on learning
Python. I thought it would be nice to use omnicompletion and have been
struggling to get it to work. A portion of my Vim version
information::

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar  2 2015 21:15:22)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-648
Compiled by hp <at> HP-PC
Huge version with GUI.  Features included (+) or not (-):
+acl                +digraphs           +libcall            +profile
         +textobjects
+arabic             +directx            +linebreak
+python/dyn         +title
+autocmd            -dnd                +lispindent         +python3/dyn

I am using 64-bit Vim 7.4, 64-bit Win7, and 64-bit Python 3.4.3. If I type:

:python3 import sys; print(sys.version)

I get

3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]

python3complete.vim is in the location $HOME\Vim\vimfiles\autoload. I deleted

source $VIMRUNTIME/mswin.vim

from my _vimrc file so that I would have *nix-style keybindings in
(Continue reading)

Carlos Pita | 6 Mar 05:09 2015
Picon

colorcolumn and foldtext

Hi all,

is there any way to force the color column to show above a fold header?

I tried:

highlight Folded cterm=none ctermbg=none

and

highlight clear Folded

to no avail.

See the attached screenshot in case I'm not being clear.

Cheers
--
Carlos

-- 
--

-- 
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.
(Continue reading)

Paolo Bolzoni | 5 Mar 19:10 2015
Picon

Like vimrc, but executed last

Dear list,

I have this line in my .vimrc

inoremap <nl> <esc>

And normally it works fine, I can leave insert mode pressing
ctrl-enter.

However, I am using quite a bit of plugins when using vim for C++
editing and somewhere <nl> in normal mode get remapped in
apparently nothing.

So I was wondering, is there any file like .vimrc that actually
is executed last?

Yours faithfully,
Paolo

-- 
--

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

(Continue reading)

Paul | 5 Mar 17:35 2015
Picon

Netrw sorting of punctuations in file names

I'm noticing that netrw v149 lists files sorted by name in the
following order:

   20140220.1112+20140224.1416.zip*
   20140220.1112.zip*

In contrast, bash and Windows Explorer lists the files in the reverse
order:

   20140220.1112.zip*
   20140220.1112+20140224.1416.zip*

I prefer the latter over the former.  Is there a convenient setting
that will cause netrw to do this?

-- 
--

-- 
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.
J.D. Laub | 4 Mar 19:08 2015

suppressing "E319: * syntax off"

Hi.  I've got a standard .vimrc file I keep consistent across multiple machines with rsync.  I dislike syntax highlighting, so in that file I have " :syntax off " .  A problem I'm having is that some of the machines have the full-blown vim, where things work swell, but some of the machines have vim-tiny, and on those I get "E319: Sorry, the command is not available in this version: :syntax off" at start-up of vim.  I start vim many times a day, so this message gets old.

I'm looking for options on hushing the noise; after some thinking, these are the possibilities that come to mind (most of which probably don't exist):

    have vim recognize I'm trying to turn it off, which means I don't really care whether it's there or not, so there's no need for the E319
    put the "syntax off" in an rc file that applies only on full installs and not tiny installs
    put this error msg in some "yes he's seen it before so don't show it again" filter file
    turn on some option to suppress all E319 errors
    leave the default alone, but disable syntax highlighting some other way (maybe set up syntax files that effectively disables highlighting)
    eliminate the vimrc entry; instead, query vim at shell start-up, and only if syntax is a supported, then turn it off in my VIMRC environment var

The last I can do without too much hassle, but it feels like a work-around (putting the onus on the user & shell).  Other possibilities I'm missing?  Any other suggestions?

Cheers...

 

--
--
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.
L. A. Walsh | 5 Mar 03:26 2015

Bug? (was Re: vimscripting problem w/tabs and expanding width w/numbering option)

Ben Fritz wrote:
> On Sunday, February 8, 2015 at 5:59:28 PM UTC-6, L. A. Walsh wrote:
>>     It sorta looks like both tabs are being brought up at the same time and a race condition might be happening,
but the fact that it
>> is very deterministic, leads me to believe something else is going on.
> ----
> It can't be a race condition. Vim is single-threaded and will be processing one whole function at a time.
----
    Actually, it is a type of race condition, in that only the 1st
tab initialized/read in, gets the benefit of the function expanding
the columns.  I'm not sure how to have the function called for
each tab as it is initialized (no ".vimtabrc" ;-)?)...

    I tried using 'tab-specific' vars: i.e.:

func! SetNumberAndWidth()
    set number
    if (! exists("t:added_numwth")) | let t:added_numwth=0 | endif
    if (t:added_numwth < &numberwidth)
        let t:added_numwth = &numberwidth
        let &columns = 2 + t:added_numwth + &columns
    endif
endf
if !exists("t:autocommands_loaded")
    let t:autocommands_loaded =1
    au BufReadPost *   let ln = line("'\"") | if 
search("vim=:SetNumberAndWidth",'n') | call SetNumberAndWidth() | endif
endif

But same problem. As the code above only is called when gvim
starts -- not for each tab.

---------------
I figured this much out by using ":echo winwidth(0)"
(the 1st tab gets the enlarged value, the remaining tabs still have
the original width (of 80, usually).

I thought about trying to "loop" through the tabs, but when
the 1st file is opened and processed, it is likely they others
aren't opened or processed yet (as you said, vim is single threaded).

Is there a way to have the function executed once/tab (not once/
buffer -- as that would seem to 're-exec' the function with every
new buffer opened.

   
>>     I thought g: vars were 'global across all buffs, but this seems
>> to be behaving like g:added_numwth (*or*) &columns are not in-sync
>> between the tabs?  Is that what is happening or am I missing some
>> simpler explanation?
>
> g: vars are global across all buffers, tabs, and windows just as you expect. 'columns' is also a global
option so it will always be in sync between tabs.
>
> I don't know of a simpler explanation for what you're seeing, but it's not due to you use of g: variables or
tab pages, as far as I can tell.
----
   I would need something like a ".vimtabrc", but realistically,
since &columns is a global then the problem seems to be
the 2nd tab isn't getting it's "winwidth" set correctly to the #
of columns as set in ".gvimrc".

    NOTE:  background tabs *DO* get their winwidth reset when one
resizes the 1st tab manually -- so the behavior is such that
background tabs' winwidth's == the current physical size when
it is reset.  But that's not happening if the size is reset
via .gvimrc. 

    Horrible idea: (which probably wouldn't work anyway) due to
restrictions on init scripts -- but -- that would be to
do something like:

:!kill -SIGWINCH $PPID

in the column resizing function.... but that's just *evil*, even
by my standards! ;-)

FWIW -- same behavior in my linux 7.3.831 & windows 7.3.480

-- 
--

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

David Fishburn | 3 Mar 22:22 2015
Picon

Vim completion using reverse engineering Eclipse

I am hoping someone on this list has a passing familiarity with Eclipse.

Eclipse knows how to complete lots of different languages.

Vim already has XML / HTML completion and Mikolaj made it generic
enough so that I can use the same gear for other languages.

Eclipse already knows which tags and language syntax.

Does anyone know how (or at least which files contain all that
information so) that I can extract it from Eclipse and build what I need for Vim?

Any hints to get started would be wonderful.

Thanks,
David

--
--
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.
Ethan Hereth | 3 Mar 21:29 2015
Picon

inoremap <C-`>

Hey everybody,

I just got a wild hair and decided to try to create the following mapping:

inoremap <C-`> <Esc>b~ea

I want to use this to twiddle the case of the current word I'm typing (e.g. if I've tab completed a word, and it's the correct word but I don't want the first letter to be upper case.)

This does not work, I'm having a hard time figuring out what exactly it is doing, I seem to get new lines of text every time I execute the map consisting of text I've recently added to the buffer. But what exactly gets inserted is hard to pin down in terms of a pattern.

I hope this is making at least a little sense. This same behavior occurs when I start vim with -u NONE -U NONE

On the other hand, if I create the map this way

inoremap <C-p> <Esc>b~ea

it works as expected.

Does anybody know what's going on? By the way, I know that the map probably isn't as robust as it could be, but that's besides the point right now!

Thanks!

Ethan Alan

--
--
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.
V S Rawat | 3 Mar 18:05 2015
Picon

gvim not showing unicode Devanagari - Hindi text

Salutes from India

I am a new user.

Landed here primarily to ask this question.

My gvim, vim 7.4 on w8 is not showing unicode Devanagari - Hindi text.

What to do?

Thanks.
-- 
Rawat

-- 
--

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

at | 3 Mar 15:17 2015
Picon

Can you explain to me what this script is doing?

I found the following code on a stackexchange post: http://tex.stackexchange.com/questions/1548/intelligent-paragraph-reflowing-in-vim

The code is for environment-aware formatting in LaTeX.

It's not longer working quite the way I want it---I think it is interacting with one of my other plugins that
has been updated---so I'd like to try to modify it. However I don't have a great knowledge of the Vim
scripting language, so I don't really understand what's going on in the code. Could someone explain it to me?

Alternatively/additionally, if you have a good solution for formatting in LaTeX, please share!

Here's the code. It's also on the Stackexchange post in case the formatting gets messed up:

" Reformat lines (getting the spacing correct) {{{
fun! TeX_fmt()
    if (getline(".") != "")
    let save_cursor = getpos(".")
        let op_wrapscan = &wrapscan
        set nowrapscan
        let par_begin = '^\(%D\)\=\s*\($\|\\start\|\\stop\|\\Start\|\\Stop\|\\\(sub\)*section\>\|\\item\>\|\\NC\>\|\\blank\>\|\\noindent\>\)'
        let par_end   = '^\(%D\)\=\s*\($\|\\start\|\\stop\|\\Start\|\\Stop\|\\place\|\\\(sub\)*section\>\|\\item\>\|\\NC\>\|\\blank\>\)'
    try
      exe '?'.par_begin.'?+'
    catch /E384/
      1
    endtry
        norm V
    try
      exe '/'.par_end.'/-'
    catch /E385/
      $
    endtry
    norm gq
        let &wrapscan = op_wrapscan
    call setpos('.', save_cursor) 
    endif
endfun

nmap Q :call TeX_fmt()<CR>

-- 
--

-- 
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.
Alexey | 3 Mar 14:39 2015
Picon

How to cancel [count] prefix?

Hello,

i need this for my custom mappings, but i am also curious in this question on its own right:

  How do you cancel the count prefix in Vim?

Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a
different count.  How do i cancel '42' if i am in Visual mode?  (In Normal mode i can press <Esc>, but in Visual
mode this would also cancel the selection.)

The only solution for Visual mode i've found so far is to press ' <at> _'.  Is there a better way?

What if i've typed a wrong count in Operator-pending mode, like 'd42'?

Thank you,

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

Gmane