Re: Go to definition and open in new tab

2016-03-09 Thread Thomas R.
On Wednesday, March 9, 2016 at 2:43:18 AM UTC+1, h_east wrote: > Hello Thomas! > > 2016-3-8(Tue) 19:04:06 UTC+9 Thomas R.: > > Hello, > > > > I'm trying to remap the shortcut so it goes to the definition but > > using a new tab. For example using . > > > > I have tried the following in my vimr

can I set a variable to store the file path in the vimrc and open the specific file in the command line like :e $myfile

2016-03-09 Thread 李哲
as the title said -- -- 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_u

Re: can I set a variable to store the file path in the vimrc and open the specific file in the command line like :e $myfile

2016-03-09 Thread Tim Chase
add the following to your vimrc: let myfile='/path/to/your/file' then you can invoke vim with vim -c 'exe "e ".myfile' which is a bit awkward, so you might want to make an alias if you intend to do it frequently. -tim -- -- You received this message from the "vim_use" maillist. Do no

Re: can I set a variable to store the file path in the vimrc and open the specific file in the command line like :e $myfile

2016-03-09 Thread Nikolay Aleksandrovich Pavlov
2016-03-09 17:02 GMT+03:00 Tim Chase : > add the following to your vimrc: > >let myfile='/path/to/your/file' > > then you can invoke vim with > >vim -c 'exe "e ".myfile' > > which is a bit awkward, so you might want to make an alias if you > intend to do it frequently. You forgot `fnameesc

Re: can I set a variable to store the file path in the vimrc and open the specific file in the command line like :e $myfile

2016-03-09 Thread BPJ
Den 2016-03-09 kl. 15:33, skrev Nikolay Aleksandrovich Pavlov: Unlike your variant which does not allow a huge number of characters including spaces and `[]` which are not uncommon, Square brackets in filenames is common? Where did "ASCII alphanumerics, hyphen, underscore and period" go? I do o

E474: Invalid argument: listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣

2016-03-09 Thread 童虎
I have a file `a.txt`. When I use root to edit this file `sudo vi a.txt`. Vim prompt: `E474: Invalid argument: listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣` But when I user `vi a.txt` without `sudo`. All things right. I have tried this: http://stackoverflow.com/questions/1832153

Re: can I set a variable to store the file path in the vimrc and open the specific file in the command line like :e $myfile

2016-03-09 Thread Nikolay Aleksandrovich Pavlov
2016-03-09 23:54 GMT+03:00 BPJ : > Den 2016-03-09 kl. 15:33, skrev Nikolay Aleksandrovich Pavlov: >> >> Unlike your variant which does not allow a huge number of characters >> including spaces and `[]` which are not uncommon, > > > Square brackets in filenames is common? Every second *.ass/*.srt/…

Re: E474: Invalid argument: listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣

2016-03-09 Thread Dmitri Vereshchagin
* 童虎 [2016-03-10 00:54]: > I have a file `a.txt`. > When I use root to edit this file `sudo vi a.txt`. Vim prompt: > > `E474: Invalid argument: > listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣` > > But when I user `vi a.txt` without `sudo`. All things right. May be Vim that runs

Re: E474: Invalid argument: listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣

2016-03-09 Thread Tim Chase
On 2016-03-09 01:34, 童虎 wrote: > I have a file `a.txt`. > When I use root to edit this file `sudo vi a.txt`. Vim prompt: First, I'd use "sudoedit" which invokes $SUDO_EDITOR environment variable, falling back to $VISUAL, and then $EDITOR if needed. Since it runs vim as you rather than as root, t

Re: E474: Invalid argument: listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣

2016-03-09 Thread Danek Duvall
On Wed, Mar 09, 2016 at 01:34:46AM -0800, 童虎 wrote: > I have a file `a.txt`. > When I use root to edit this file `sudo vi a.txt`. Vim prompt: > > `E474: Invalid argument: > listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣` > > But when I user `vi a.txt` without `sudo`. All things ri

tab completion of file names with partial string matching

2016-03-09 Thread kamaraju kusumanchi
Say I have a directory with two files junk1.txt, junk2.txt. In zsh, if I do vim 1 it expands to vim junk1.txt Is it possible to have this kind of completion when opening files in gvim as well? For example, commands such as :e 1 :find 1 :tabf 1 should expand to :e junk1.txt :find junk1.txt :tab