I want to auto enter the insert mode after use f command how to make it?

2021-01-21 Thread Zhe Lee
As the title said I want to edit immediately after using f command. seems cant remap the f direct, because f need a parameter. -- -- 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

Re: How to get the folder from a full file path?

2020-01-29 Thread Zhe Lee
On Tuesday, January 28, 2020 at 1:16:41 AM UTC+8, Gary Johnson wrote: > > On 2020-01-27, Zhe Lee wrote: > > I know %:p %:t thes things. But What I need now is not current folder I > get a > > full file path from a regex match. > > > > And now I need to g

How to get the folder from a full file path?

2020-01-27 Thread Zhe Lee
I know %:p %:t thes things. But What I need now is not current folder I get a full file path from a regex match. And now I need to get the folder from this full path. I already Google a lot but can't find useful things all related about "%:t :p" things so how to make it. This is the code I

vim html highlight not work.

2018-01-21 Thread Zhe Lee
The filetype is html, and syntax is on. the html.vim is in the \Vim\vim80\syntax\. But the html still not highlight why is that? -- -- 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

how to notify external program to know the current mode of Vim efficient ?

2017-12-03 Thread Zhe Lee
I write the code below to call a external program, but a cmd window will show out when the command execuated. So I want to know show to hide the cmd window when execuate them? au InsertEnter * :silent execute '!VimModeRecord.exe' au InsertLeave * :silent execute '!VimModeRecord.exe' -- --

Re: How to replace the wave line in title string ?

2017-09-06 Thread Zhe Lee
On Wednesday, September 6, 2017 at 5:16:18 PM UTC+8, Zhe Lee wrote: > The gvim seems replace the home directory with the wave line. > > how to disable that, I just want the fullpath without any variable in it. Add this line to vimrc will be fine. set titlestring=%{expand('%:p')} ti

How to replace the wave line in title string ?

2017-09-06 Thread Zhe Lee
The gvim seems replace the home directory with the wave line. how to disable that, I just want the fullpath without any variable in it. -- -- 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

Why the bufnew not work here?

2017-07-29 Thread Zhe Lee
I use au BufNewFile *.py 0r headerfile/python.header in my vimrc file . I want to auto add snippet when the python file is create. But it doesn't work, when I use the "gvim newpy.py" command in command prompt. How to fix this? -- -- You received this message from the "vim_use" maillist. Do

How to get the vim buildin variable list?

2017-07-21 Thread Zhe Lee
I know the variable $HOME, $VIM, and $VIMRC I want to get all the buildin list how to get that ? -- -- 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: How to active the tab if the file is already opened?

2017-07-19 Thread Zhe Lee
On Wednesday, July 19, 2017 at 9:15:02 AM UTC+8, Zhe Lee wrote: > I use the code to open my snippet. But if it already been opened, I just want > to active the tab instead of open a new tab. > How to do that? > > tabnew $VIM\vimfiles\bundle\vim-snipmate\snippets\python.snippets t

How to active the tab if the file is already opened?

2017-07-18 Thread Zhe Lee
I use the code to open my snippet. But if it already been opened, I just want to active the tab instead of open a new tab. How to do that? tabnew $VIM\vimfiles\bundle\vim-snipmate\snippets\python.snippets -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

How to continue the map when an error come out?

2017-07-15 Thread Zhe Lee
nnoremap k :%s/\v^\s+//g:sort u:xa This is my map. When there is no match to the "^\s+", an error will come out, and the map will pause, the sort u, and the xa will not be executed. So how to continue the map when there is an error come out? -- -- You received this message from the

Re: Why the substitute in the selection only substitute the first letter in the selection in my vimscript?

2017-01-29 Thread Zhe Lee
On Friday, January 27, 2017 at 9:17:06 PM UTC+8, Christian Brabandt wrote: > Hi Zhe! > > On Fr, 27 Jan 2017, Zhe Lee wrote: > > > Why the substitute in the selection only substitute the first letter in the > > selection? > > > > The \%V option works f

Why the substitute in the selection only substitute the first letter in the selection in my vimscript?

2017-01-27 Thread Zhe Lee
Why the substitute in the selection only substitute the first letter in the selection? The \%V option works fine when I just use the command line to exec it. But it seems not work very well when I use it in the vimscript. vnoremap dfc :call DragonflyCmdProcess(1) function!

Re: How to make the curly brace on the same line when press enter between them ?

2017-01-25 Thread Zhe Lee
On Thursday, January 26, 2017 at 10:06:09 AM UTC+8, Gary Johnson wrote: > On 2017-01-25, Zhe Lee wrote: > > On Thursday, January 26, 2017 at 4:23:09 AM UTC+8, Tony Mechelynck wrote: > > > On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee wrote: > > > > here is the thing: >

Re: How to make the curly brace on the same line when press enter between them ?

2017-01-25 Thread Zhe Lee
On Thursday, January 26, 2017 at 4:23:09 AM UTC+8, Tony Mechelynck wrote: > On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee <imlegend...@gmail.com> wrote: > > here is the thing: > > {|}, | is my curve when I press enter now the curly braces will not on the > >

Re: How to make the curly brace on the same line when press enter between them ?

2017-01-25 Thread Zhe Lee
On Thursday, January 26, 2017 at 4:23:09 AM UTC+8, Tony Mechelynck wrote: > On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee <imlegend...@gmail.com> wrote: > > here is the thing: > > {|}, | is my curve when I press enter now the curly braces will not on the > >

Re: How to make the curly brace on the same line when press enter between them ?

2017-01-25 Thread Zhe Lee
On Thursday, January 26, 2017 at 4:23:09 AM UTC+8, Tony Mechelynck wrote: > On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee <imlegend...@gmail.com> wrote: > > here is the thing: > > {|}, | is my curve when I press enter now the curly braces will not on the > >

Re: How to make the curly brace on the same line when press enter between them ?

2017-01-25 Thread Zhe Lee
On Thursday, January 26, 2017 at 4:23:09 AM UTC+8, Tony Mechelynck wrote: > On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee <imlegend...@gmail.com> wrote: > > here is the thing: > > {|}, | is my curve when I press enter now the curly braces will not on the > >

Re: How to make the curly brace on the same line when press enter between them ?

2017-01-25 Thread Zhe Lee
gt; > <antoine.mechely...@gmail.com> wrote: > >> On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee <imlegend...@gmail.com> wrote: > >>> here is the thing: > >>> {|}, | is my curve when I press enter now the curly braces will not on > >>> the same l

Re: How to modify the trigger key in the snip mate?

2017-01-15 Thread Zhe Lee
On Monday, January 16, 2017 at 3:19:30 AM UTC+8, ZyX wrote: > 2017-01-15 17:32 GMT+03:00 Zhe Lee <imlegend...@gmail.com>: > > The mappings SnipMate uses can be customized with the |:map| commands. For > > example, to change the key that triggers snippets and moves to

How to modify the trigger key in the snip mate?

2017-01-15 Thread Zhe Lee
The mappings SnipMate uses can be customized with the |:map| commands. For example, to change the key that triggers snippets and moves to the next tab stop, > :imap snipMateNextOrTrigger :smap snipMateNextOrTrigger I check the doc, and find the lines above, but when I press

Re: How to use * to search the word with dash under cursor?

2017-01-07 Thread Zhe Lee
On Sunday, January 8, 2017 at 9:50:51 AM UTC+8, ZyX wrote: > 2017-01-08 4:45 GMT+03:00 Zhe Lee <imlegend...@gmail.com>: > > > > > > for example the text is like this > > ``` > > a-b > > b-c > > a-b > > > > ``` > > > > &

Re: How to use * to search the word with dash under cursor?

2017-01-07 Thread Zhe Lee
On Sunday, January 8, 2017 at 9:52:52 AM UTC+8, Tim Chase wrote: > On 2017-01-07 17:45, Zhe Lee wrote: > > if the cursor is on the first line first column (on `a` now). And > > then I press `*` I want to find the `a-b` but the vim just search > > `a` instead of `a-b`, so how

How to use * to search the word with dash under cursor?

2017-01-07 Thread Zhe Lee
for example the text is like this ``` a-b b-c a-b ``` if the cursor is on the first line first column (on `a` now). And then I press `*` I want to find the `a-b` but the vim just search `a` instead of `a-b`, so how to make * to include the dash `-`? -- -- You received this message from

Re: Is there a key map conflict in my Vim?

2016-12-27 Thread Zhe Lee
On Saturday, December 24, 2016 at 7:36:55 AM UTC+8, Tony Mechelynck wrote: > On Fri, Dec 23, 2016 at 2:22 AM, Zhe Lee <imlegend...@gmail.com> wrote: > > I use the two command below to map my `j` and `k`, the purpose of these > > command is that when the cur

Is there a key map conflict in my Vim?

2016-12-22 Thread Zhe Lee
I use the two command below to map my `j` and `k`, the purpose of these command is that when the current line is too long, it will be wrapped in vim window, and you don't want to jump it when you press j or k. So ~ nnoremap j v:count == 0 ? 'gj' : 'j' nnoremap k v:count == 0 ? 'gk' : 'k' It

Re: How to fold or hide the comment in vimrc file?

2016-12-22 Thread Zhe Lee
On Tuesday, December 20, 2016 at 12:23:59 AM UTC+8, Gary Johnson wrote: > On 2016-12-19, Zhe Lee wrote: > > On Friday, December 16, 2016 at 10:42:07 PM UTC+8, Gary Johnson wrote: > > > On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: > > > > 2016-12-16 5:41 GMT+

Re: How to fold or hide the comment in vimrc file?

2016-12-19 Thread Zhe Lee
On Friday, December 16, 2016 at 12:28:20 PM UTC+8, ZyX wrote: > 2016-12-16 5:41 GMT+03:00 Zhe Lee <imlegend...@gmail.com>: > > I want to fold or hide the comment in the vimrc file. > > I Google it and find mainly the 2 solution below but none of them worked. > > > &

Re: How to fold or hide the comment in vimrc file?

2016-12-19 Thread Zhe Lee
On Friday, December 16, 2016 at 12:28:20 PM UTC+8, ZyX wrote: > 2016-12-16 5:41 GMT+03:00 Zhe Lee <imlegend...@gmail.com>: > > I want to fold or hide the comment in the vimrc file. > > I Google it and find mainly the 2 solution below but none of them worked. > > > &

Re: How to fold or hide the comment in vimrc file?

2016-12-19 Thread Zhe Lee
On Friday, December 16, 2016 at 10:42:07 PM UTC+8, Gary Johnson wrote: > On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: > > 2016-12-16 5:41 GMT+03:00 Zhe Lee > > > I want to fold or hide the comment in the vimrc file. > > > I Google it and find mainly the 2 solu

How to fold or hide the comment in vimrc file?

2016-12-15 Thread Zhe Lee
I want to fold or hide the comment in the vimrc file. I Google it and find mainly the 2 solution below but none of them worked. syn match comment "\v(^\s*\".*\n)+" fold set foldmethod=expr foldexpr=getline(v:lnum)=~'^\s*"' My Vimrc file is like this, when I enter the 2 commands above

Re: How to set the language of ui in gvim

2016-12-14 Thread Zhe Lee
On Tuesday, December 13, 2016 at 10:02:16 PM UTC+8, Zhe Lee wrote: > According to this link I already add the language setting code into my vimrc > file. > http://superuser.com/a/921446/609799 > > "Set The Language Of The Vim" > set langmenu=en_US > let $LANG

Re: Re: How to set the language of ui in gvim

2016-12-14 Thread Zhe Lee
On Wednesday, December 14, 2016 at 12:54:58 PM UTC+8, Tony Mechelynck wrote: > It is not always possible or desirable to disable +multi_lang. > > Which languages are recognized (and acceptable as argument to the > :language command and its subcommands) depends on your OS and on hos > it is