How to get directory of current file.

2020-04-17 Thread DwigtArmyOfChampions
I am using gVim on Windows. I open a file in C:\tmp called file1.cpp. After looking around in file1.cpp I now want to open file2.cpp which is also in C:\tmp. So I run the command :e .\file2.cpp But this doesn’t work because the “.” is C:\Windows\system32. Is there a different character or fun

RE: How to get directory of current file.

2020-04-17 Thread Wood, Geoff (Refinitiv)
> -Original Message- > From: vim_use@googlegroups.com On Behalf Of > DwigtArmyOfChampions > Sent: 17 April 2020 15:47 > To: vim_use > Subject: How to get directory of current file. > > I am using gVim on Windows. I open a file in C:\tmp called file1.cpp. After > looking around in file1

Re: How to get directory of current file.

2020-04-17 Thread Gary Johnson
On 2020-04-17, DwigtArmyOfChampions wrote: > I am using gVim on Windows. I open a file in C:\tmp called > file1.cpp. After looking around in file1.cpp I now want to open > file2.cpp which is also in C:\tmp. So I run the command > > :e .\file2.cpp > > But this doesn’t work because the “.” is C:\W

Re: How to get directory of current file.

2020-04-17 Thread Tim Chase
On 2020-04-17 07:47, DwigtArmyOfChampions wrote: > I am using gVim on Windows. I open a file in C:\tmp called > file1.cpp. After looking around in file1.cpp I now want to open > file2.cpp which is also in C:\tmp. So I run the command > > :e .\file2.cpp > > But this doesn’t work because the “.” i

Re: vim shows entire file in oneline

2020-04-17 Thread ping song
I found the cause, by binary search / test with my .vimrc turns out to be this line: setfileformats=unix,dos,mac funny that with it, in my server vim7.4 the log file was identified as "fileformat mac", and that caused the problem(everything in one line). but with same exact configuration in m

vim plugins for python which supporting auto-completion for dynamic attributes.

2020-04-17 Thread Hongyi Zhao
Hi, I'm using a python package called aiida-core, see here for more info: https://github.com/aiidateam/aiida-core This package uses so many dynamic/runtime loaded modules, as a result, all of the attributes belong to these modules are failed to auto-completion by using the static analysis method.

Failed to compile vim with lua support.

2020-04-17 Thread Hongyi Zhao
Hi, Latest git version of vim, see the following: $ make -j24 /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim': /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2011: undefined reference to `lua_setglobal' /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2013: undefined