vim: revert a specific change in the undo history

2023-07-11 Thread ping song
say I've done 3 changes A, B, C. but I realized B is a big mistake. A and C is good. can I just delete change B, but keep A and C? -- -- 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://

break long ex command into multiple lines

2022-07-25 Thread ping song
3 myapp.py \ -a 123 -b 123 -c 123 -d 123 how do I break a long ex command into multiple lines? Is this even supported? Regards ping -- -- 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 inf

vimrc: identify "small" version vs "huge" version

2020-10-02 Thread ping song
experts: I found in centos 7 there is /usr/bin/vi and /usr/bin/vim, with same version, patches. but vi is the "small" version and "vim" is the huge one. obviously both will use same .vimrc, and when vi is used a lot of errors pop up because of the much less features compiled. how do I differ these

Re: vim shows entire file in oneline

2020-04-17 Thread ping song
uration in my local PC vim8.1 , the same log file was identified as "fileformat unix", and I see multiple lines. I wonder why? is this default behavior changed in vim8.1? On Thu, Apr 16, 2020 at 12:14 AM ping song wrote: > experts: > I just ran into a weird issue today... >

vim shows entire file in oneline

2020-04-15 Thread ping song
Nov 24 2016 16:43:18) Included patches: 1-52 in my local machine (running wsl in windows): VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 03 2019 13:04:21) Included patches: 1-1967 is this a known issue that got fixed? I doubted it though. please shed some light on this. thanks. regards ping

vim dot repeat removal of a column

2018-02-21 Thread ping song
I found this is buggy... I visual block one column, x to remove it, now I want to repeat this 5 times. but 5. does not work - I still see one column being removed. is this a day 1 bug or this is per design? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

TOhtml folding + button in the generated html page

2018-01-30 Thread ping song
utton back. regards ping -- -- 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 G

vim TOhtml

2017-05-18 Thread ping song
I remember previously when doing diff, I can use TOhtml to generate a webpage, which can be collapsed or expanded by clicking the "+" side sign. but today I found it doesn't work - the webpage is generated but the "+" is not clickable anymore. any idea? -- -- You received this message from the "

vim stuck on write

2016-09-26 Thread ping song
7;\''--language-force=tcl'\'' '\''/home/ping/Dropbox/lin g-backup/crtc/crtc.abc'\'') 1>'\''/tmp/ve6IXR8/15'\'' 2>'\''/tmp/ve6IXR8/16'\''' shell to execute: "(sh -c &

vim: keep undo when moving a file?

2016-07-05 Thread ping song
I have a file that I keep using for quite a long while, it's convenient to keep the editing history forever, so if something gone wrong I can always undo back and locate the issue. today I moved the file to another folder and all undo history gone. I tried to rename my original undo file according

Fwd: feature work in console vim , but not over ssh

2016-01-19 Thread ping song
+ vim group... anyone has any idea, of why same feature works in console vim, but not in console vim over ssh? regards ping -- Forwarded message -- From: Charles Campbell Date: Tue, Jan 19, 2016 at 11:23 AM Subject: Re: vim drawit vs. http://asciiflow.com/#Draw To: ping ping

Re: vim drawit vs. http://asciiflow.com/#Draw

2016-01-19 Thread ping
On Friday, April 11, 2014 at 10:47:56 AM UTC-4, Charles Campbell wrote: > ping song wrote: > > hi Dr. Chip: > > I'm a big fan of your Drawit plugin (thanks!). > > today I hear of asciiflow.com/#Draw <http://asciiflow.com/#Draw>, it > > looks surprisingly nice

vim: register * and + missing in ubuntu1404 server

2015-11-17 Thread ping song
experts: I recently switch from ubuntu desktop to ubuntu server , both are 14.04. and I couldn't find the register * and +. this seems happened twice (whenever I change a system) and looks quite annoying. I couldn't find a working solution. I have all necessary vim modules/apps instal

Re: vim: what is the best python IDE plugin?

2015-07-01 Thread ping song
1:07 PM, Timothy Knox wrote: > Somewhere on Shadow Earth, at Wed, Jul 01, 2015 at 12:41:05PM -0400, ping > song wrote: > > experts: > > I'm learning python now...as always I don't want to miss any VIM magics. > > is there a "best" plugin to help me de

vim: what is the best python IDE plugin?

2015-07-01 Thread ping song
experts: I'm learning python now...as always I don't want to miss any VIM magics. is there a "best" plugin to help me develop python scripts in vim? trying to google and don't find one. thanks. regards ping -- -- You received this message from the "vim_use&qu

Re: vim: least key stroke to replace a word

2015-06-02 Thread ping song
did other tests, it looks "Ns" is the best one in that: it support repeat with "." it is reliable. cta method is good (support repeat), but not reliable (it assumes the 1st word does not contain an 'a'.) thanks! On Thu, Feb 19, 2015 at 7:50 AM, HATe wrote: >

Re: vim: least key stroke to replace a word

2015-02-18 Thread ping song
it delete also the space next to the deleted word... I think I'll go with either Ns(less strokes) or dwi(no need to count, straitforward method) way and build it into my day to day habit... thanks! On Tue, Feb 17, 2015 at 9:40 PM, John Little wrote: > On Wednesday, February 18,

vim: least key stroke to replace a word

2015-02-17 Thread ping song
experts: I know this looks stupid and simple, but I don't know the answer right now. say I want to replace a word : from: abc 456 to: 123456 what I did is: 1. put my cursor in a, then cw123x , 7 strokes 2. put my cursor in b, then caw123, 7strokes 3. put my cursor in a, then dwi123,

vim: stock trading plugin

2014-12-20 Thread ping song
http://bluegene8210.is-programmer.com/user_files/bluegene8210/Image/Screenshot%20from%202014-11-05%2022:39:33.png whatelse vim can't do? -- -- 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

vim: search and jump

2014-12-14 Thread ping song
there is one feature that I had previously, but got lost after I reinstall everything in a new machine from scratch - I couldn't remember from which plugin this was provided... anyway...the feature is this: I search with /abc, if some matches found within current screen, the cursor will move to th

[2nd post] vim taglist: jump to local file first

2014-11-25 Thread ping song
can anyone help on this? On Sat, Nov 15, 2014 at 12:17 PM, ping song wrote: > this annoys me for quite a while... > > I started some scripts and created some functions/procedures in it. > later when I created new script I simply borrowed these (well tested) > fucntions/procedures

vim taglist: jump to local file first

2014-11-15 Thread ping song
this annoys me for quite a while... I started some scripts and created some functions/procedures in it. later when I created new script I simply borrowed these (well tested) fucntions/procedures in new scripts, but I may modified them here and there to get the new task done. now I end up with mult

Re: vim: surround plug bug

2014-11-15 Thread ping song
looks I have to live with it. thanks! On Sun, Nov 9, 2014 at 3:12 AM, glts <676c7...@gmail.com> wrote: > On Sunday, November 9, 2014 9:02:55 AM UTC+1, Eric Christopherson wrote: >> On Sun, Nov 09, 2014, Eric Christopherson wrote: >> > On Sat, Nov 08, 2014, ping song wrot

vim: surround plug bug

2014-11-08 Thread ping song
I believe this is easy to reproduce: test string 1. hi hello world. test string 2. hi hello world . I want to surround hello world (generating -> hi "hello world"). using surround.vim plugin, if my cursor is within hello, but not on h, the provided method is as following: ys2aw" if my cursor is

Re: vim: Zoomwin plugin stop working after

2014-11-08 Thread ping song
M, Charles Campbell wrote: > Eric Christopherson wrote: >> >> On Sat, Nov 01, 2014, ping song wrote: >>> >>> it's very easy to reproduce. just and then all windows >>> won't came back anymore. I know this is expected. but what's the value >

Re: Conqueterm blanks some lines

2014-11-08 Thread ping song
try vimshell , not much better though. at least it solve one issue that is not resolvable in conqueterm: long lines won't be broken into multiple lines. which is good. On Wed, Nov 5, 2014 at 8:56 AM, Ping wrote: > I think conqterm is a dead project. > > from iPhone > > >&

Re: vim: how to extract .vba file to a specific folder

2014-11-08 Thread ping song
that works (Usevimball), thanks! On Fri, Nov 7, 2014 at 6:23 PM, glts <676c7...@gmail.com> wrote: > On Friday, November 7, 2014 11:05:03 PM UTC+1, ping wrote: >> how to extract the vim ball to another folder? >> the reason I ask this is, I'm now using pathogen to

vim: how to extract .vba file to a specific folder

2014-11-07 Thread ping song
how to extract the vim ball to another folder? the reason I ask this is, I'm now using pathogen to install all my previous favorite plugins but some of them simply don't have a github mirror. and they are only available in the form of vim ball .vba file: e.g. http://www.drchip.org/astronaut/vim/ind

Re: Conqueterm blanks some lines

2014-11-05 Thread Ping
I think conqterm is a dead project. from iPhone > On Aug 22, 2014, at 14:25, Eric Christopherson > wrote: > >> On Fri, Aug 22, 2014 at 12:45 PM, Tim Chase wrote: >>> On 2014-08-22 10:42, John Biederstedt wrote: >>> Whenever I use conqueterm (on linux) to ssh to a nexus switch, and >>> backsp

vim: Zoomwin plugin stop working after

2014-11-01 Thread ping song
it's very easy to reproduce. just and then all windows won't came back anymore. I know this is expected. but what's the value to keep that if we have Zoomwin? the suggestion will be to provide an option to also map that to what _o does... -- -- You received this message from the "vim_use" maill

vim freeze from inside gnu

2014-10-24 Thread ping song
this is reproduced at this time. whenever I execute "register" command and hit enter, it freeze... in the begining it only happen in one of my gnu window, but now it happen in 3 of them... anyone experiences that? -- -- You received this message from the "vim_use" maillist. Do not top-post! Typ

vim netrw: ***warning*** this version of netrw needs vim 7.3.465 or later

2014-10-13 Thread ping
I got this message when I copy my .vim into a server running old vim: ***warning*** this version of netrw needs vim 7.3.465 or later server vim: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 31 2011 23:23:08) this is fine. I thought just new feature won't work, but the fact it looks like the

Re: vim: netrw: how to preview vertically but on the right?

2014-09-25 Thread ping song
the 1 0 works for me, thanks!! On Wed, Sep 17, 2014 at 10:59 AM, Charles E Campbell < drc...@campbellfamily.biz> wrote: > ping song wrote: > >> current behavior after I set "let g:netrw_preview=1" is to open a narrow >> vertical window from the left. >>

vim: netrw: how to preview vertically but on the right?

2014-09-16 Thread ping song
current behavior after I set "let g:netrw_preview=1" is to open a narrow vertical window from the left. but I would prefer more to have a larger vertical window opened on the right... how to change this behavior ? thanks. -- -- You received this message from the "vim_use" maillist. Do not top-p

Re: best vim plugin for tex?

2014-09-03 Thread ping song
thanks! I also found this one... https://github.com/lervag/vim-latex more often that, having more than 1 option is not as good as it sounds -- I don't know which one to pick ... On Wed, Sep 3, 2014 at 5:32 PM, Marc Weber wrote: > http://vim-wiki.mawercer.de/wiki/languages/latex.html > whic

best vim plugin for tex?

2014-09-03 Thread ping song
I wanted to start to write some tex files in vim and is looking for a plugin to make the tex edition/generation as easy as possible. is there a best plugin for this? thanks. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are repl

vim: how to copy selected text from vim running inside a remote ssh session, to local windows clipboard

2014-06-05 Thread ping song
experts: not sure this was asked before... I run ssh into remote pc(linux) from local PC (windows), run vim from within ssh then select some text from vim now I want to paste these text into local clipboard (so I can paste into outlook, etc).. is there any good way to implement this? I currently r

vim fold: how to avoid the "+--" marks

2014-04-26 Thread ping song
experts: a question about vim fold: I can fold these: a b c d e into : a b +-- 2 lines: c e I just wonder, how to avoid displaying the "+--", and just leave it as: a b 2 lines: c e sometime this looks "cleaner" for me... especially if I need to refer the fol

Re: Do you use status line plugins like powerline or airline?

2014-04-26 Thread ping song
yes I use vim airline, that's a great plugin! On Sat, Mar 15, 2014 at 7:17 AM, Paul Isambert wrote: > Charles Campbell a écrit: > > Joseph Orbegoso Pea wrote: > > > I'm curious to gain some insight on powerline/airline usage. If you > know what powerline and airline are, can you answer this po

Re: taglist: how to display tcl variables?

2014-04-24 Thread ping song
thanks. I'll look into it. On Wed, Apr 23, 2014 at 2:49 PM, Yegappan Lakshmanan wrote: > Hi, > > On Sat, Apr 19, 2014 at 10:20 AM, ping song > wrote: > > I remember I ever saw the variables in tlist window. > > but currently I only see functions/procedures,n

Re: vim: missing register * and #

2014-04-22 Thread ping song
remotely, now within GNU screen I can see the * + so confusingI'll post if I can figure this out... On Tue, Apr 22, 2014 at 11:41 PM, ping song wrote: > > > > On Sat, Apr 19, 2014 at 2:25 PM, Gary Johnson wrote: > >> On 2014-04-19, ping song wrote: >> >

Re: vim: missing register * and #

2014-04-22 Thread ping song
On Sat, Apr 19, 2014 at 2:25 PM, Gary Johnson wrote: > On 2014-04-19, ping song wrote: > > > On Thu, Apr 17, 2014 at 6:46 AM, Tim Chase wrote: > > > > On 2014-04-17 03:13, John Little wrote: > > > Shlomi Fish said: > > > > > > &g

Re: vim: portablity of backup files?

2014-04-22 Thread ping song
6 PM, Ben Fritz wrote: > On Saturday, April 19, 2014 11:20:29 AM UTC-5, ping wrote: > > I recently copied over a bunch of files to another machine and realized > I missed all of the backup files (for persistent undo). > > > > > > I managed to find out the "backupdir&q

taglist: how to display tcl variables?

2014-04-19 Thread ping song
might not support this: ping@ubuntu1404:~/bin$ ctags --list-kinds=all | grep -iA5 tcl Tcl c classes m methods p procedures Tex c chapters any way to work around? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply be

vim: portablity of backup files?

2014-04-19 Thread ping song
I recently copied over a bunch of files to another machine and realized I missed all of the backup files (for persistent undo). I managed to find out the "backupdir" and copied them over also, still I can't undo, I think I use the same folder path on both machines... any thought?

Re: vim: missing register * and #

2014-04-19 Thread ping song
thanks. I means the "+" and "*" register.. It looks both vi and vim were linked to the right target -- vim.gnome: ping@ubuntu1404:~$ sudo update-alternatives --config vi [sudo] password for ping: There are 4 choices for the alternative vi (providing /usr/bin/vi).

vim: missing register * and #

2014-04-16 Thread ping song
after installing vim in ubuntu14.04 in a new HD, I found I'm missing * and # register now... did some research but still no idea how to get it back. I did have vim-gnome installed, and version shows I have the clipboard ability... what am I missing here? :version VIM - Vi IMproved 7.4 (2013 Aug

Re: Poll: What's good about plugin managers?

2014-04-16 Thread ping song
really nice site! will read through..thanks! On Tue, Apr 8, 2014 at 3:57 AM, Marc Weber wrote: > I've already said that most wolk reasonably well for most common use > cases. > Smaller differences are documented here (maybe this is incomplete): > http://vim-wiki.mawercer.de/wiki/index.html > >

vim drawit vs. http://asciiflow.com/#Draw

2014-04-10 Thread ping song
hi Dr. Chip: I'm a big fan of your Drawit plugin (thanks!). today I hear of asciiflow.com/#Draw, it looks surprisingly nice too. I guess it's not possible to have the similiar ability in vim? FYI. regards ping -- -- You received this message from the "vim_use" maillist. D

Re: Poll: What's good about plugin managers?

2014-04-07 Thread ping song
I meant "folks"...:) On Mon, Apr 7, 2014 at 2:54 PM, ping song wrote: > forks: > any conclusions/progress about the discussion? > > I just got a new PC and I'd like to try one of the plugin manager way to > start my vim journey on it. > previously I only did t

Re: Poll: What's good about plugin managers?

2014-04-07 Thread ping song
forks: any conclusions/progress about the discussion? I just got a new PC and I'd like to try one of the plugin manager way to start my vim journey on it. previously I only did that manually in years. On Thu, Mar 27, 2014 at 11:43 AM, Nikolay Pavlov wrote: > > On Mar 27, 2014 7:31 PM, "Marc W

Re: Poll: What's good about plugin managers?

2014-03-23 Thread ping song
I think it's best to have a vim built-in standardized/official plugin manager. for an ordinary user it's often confusing to choose between many options - so better to have an official one (better have most features centralized/integrated) to start with ... On Sun, Mar 23, 2014 at 12:47 PM, ed jon

Sum plugin not support comma in digits

2014-02-27 Thread ping song
hi Dr. chip: I've been using your Sum plugin and it helps from time to time. today I found that it does not support the comma as displayed in my bank account - give me wrong huge value (I hope the number become true though..) currently I work around it by removing the comma manually and re-Sum. do

Re: vim: how to leave vim in insert mode after execute a command

2014-01-22 Thread Ping
is this supported currently ? On Jan 21, 2014, at 23:26, ping song wrote: > it looks, after any command executed, vim will be left normal mode. > how to make vim stay in insert mode after any ex command ? > > > example: > > :normal iabc > > <-- after this, I

vim: how to leave vim in insert mode after execute a command

2014-01-21 Thread ping song
it looks, after any command executed, vim will be left normal mode. how to make vim stay in insert mode after any ex command ? example: :normal iabc <-- after this, I have "abc" in my buffer , but in normal mode. -- -- You received this message from the "vim_use" maillist. Do not top-post! T

vim fugitive Glog error message

2014-01-09 Thread ping song
hi Tim: whenever I issue Glog (git log) command with fugitive plugin, I got the following errors: :Glog :!git --git-dir=/home/ping/temp-git/.git --no-pager log --no-color '--pretty=format:fugitive:///home/ping/temp-git/.git//%H/file1.txt::%s' -- file1.txt 2>&1| tee /tmp/v

Re: constant vim coredump

2014-01-04 Thread ping song
strange that I can't locate the core...it's not in my current folder and the folders of my opened file.. attached is the vim --version and the session files... On Sat, Jan 4, 2014 at 11:18 AM, Nikolay Pavlov wrote: > > On Jan 4, 2014 7:57 PM, "ping song" wrote:

constant vim coredump

2014-01-04 Thread ping song
I got constant vim coredump whenever I open my session file: vim -S fuf Vim: Caught deadly signal SEGV Vim: finished saved session "fuf" Segmentation fault (core dumped). I'm using vim 7.4. seems only happen when I open this session file... -- -- You received this message from the "vim_use" ma

vim read remote text file and web page from a URL

2013-12-28 Thread ping song
I'm like to open a remote well-formatted text file from vim directly: vim http://tools.ietf.org/rfc/rfc4601.txt it shows me the file, well formatted. but then sometime I want to check a web page quickly: vim http://www.google.com adding these 2 lines the webpage can be rendered by elink and get

vim: any good tcl/expect debugging plugins?

2013-12-22 Thread ping song
like perl-support or bash-support... is there a tcl/expect one? -- -- 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 yo

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-22 Thread ping song
just overide in that local buffer/ft. thanks! On Sun, Dec 22, 2013 at 3:00 PM, Yegappan Lakshmanan wrote: > Hi, > > On Sun, Dec 22, 2013 at 11:48 AM, ping song > wrote: > > gee..I just tried this idea on another scenario, didn't work... > > > > "this doesn&

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-22 Thread ping song
st set from ~/.vim/plugin/taglist.vim Press ENTER or type command to continue kind of a tricky request, like:how to make the not to jump over, while after borrowing taglist's magic? On Sat, Dec 21, 2013 at 8:51 PM, ping song wrote: > thanks Chris, this works! I didn't know tha

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-21 Thread ping song
I think this might be another great thought that solves the issue from a different angle.. filter the quickfix 2nd time is a good idea. thanks! On Wed, Dec 18, 2013 at 5:37 AM, Marc Weber wrote: > Map :cnext and :cprev to keys, then :cnext is fast. > > If you have to find a different line, thin

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-21 Thread ping song
thanks Chris, this works! I didn't know that vim can: define a map for just one filetype further, just for one buffer. that's nice! On Wed, Dec 18, 2013 at 4:39 AM, Christian Brabandt wrote: > On Wed, December 18, 2013 10:30, ping song wrote: > > I guess this is an old topi

Re: vim: conqueterm : truncated lines

2013-12-21 Thread ping song
anyone got any resolution for this issue? is conqterm a dead project ? there seems to be no bug fix since 2 years ago... it's just unfortunate since this is one of the greatest extensions that far expand vim's magic... On Wed, Mar 6, 2013 at 2:16 PM, ping wrote: > On 12/20/2012 1

Re: vim: combine quickfix with bufdo/tabdo/argdo/windo..

2013-12-21 Thread ping song
thanks Ben. that works as expected, not quite handy though...but still good. On Fri, Dec 20, 2013 at 9:08 PM, Ben Fritz wrote: > On Friday, December 20, 2013 7:29:52 PM UTC-6, ping wrote: > > > > but if it look at vimgrep, it actually provide very little control of on > what

vim: combine quickfix with bufdo/tabdo/argdo/windo..

2013-12-20 Thread ping song
I'm quite sure that vim is lacking an important/handy feature here: it provides the bufdo/tabdo/argdo/windo , wich gives precise control to what files you are operating on. it also provide vimgrep+QFwin, which provide a built-in powerful multi-file search ability. but if it look at vimgrep, it ac

vim quickfix: make a locate the match but don't jump on it.

2013-12-18 Thread ping song
epad++ or ultraeditor that my colleague is using... I was thinking to make some maps to automatically jump back after a , but I don't know how to make that map to only work under QF window. regards ping -- -- You received this message from the "vim_use" maillist. Do not top-po

Re: vim is very slow when opening multiple , large , gzip files

2013-12-18 Thread ping song
thanks! On Wed, Dec 18, 2013 at 4:00 AM, ping song wrote: > you are absolutely right... > vim -p seems the best option available ..(-o/O doesn't look good for files > more than 3..). > > now the file toggling is MUCH faster, so only 1 time slow on start up and > all o

Re: vim is very slow when opening multiple , large , gzip files

2013-12-18 Thread ping song
you are absolutely right... vim -p seems the best option available ..(-o/O doesn't look good for files more than 3..). now the file toggling is MUCH faster, so only 1 time slow on start up and all other later operation is fast. great ! On Tue, Dec 17, 2013 at 3:21 PM, Ben Fritz wrote: > On Tue

vim is very slow when opening multiple , large , gzip files

2013-12-17 Thread ping song
I know it might be normal, how can I expect it to be same fast as small/single txt file? but the thing is `less` is much faster, in the same situation... so this is how I opened them: vim *.gz and I got all these gz files opened. each of the gz files is about 4M Bytes. so far nice and the vim ma

Re: vim: toggle between tabs and toggle between buffers

2013-12-13 Thread ping song
time when you need multiple files displayed in front of you so you can quickly jump back and forth when you look at the names ... but some google research shows "there is no way to display multiple rows of tabs unless modifying the VIM source code" -- means VIM don't support this, rig

Re: vim: toggle between tabs and toggle between buffers

2013-12-12 Thread ping song
ffers else if v:count == 0 map gt :bn map gT :bp else map gt :exec "b" . v:count endif endif On Thu, Dec 12, 2013 at 11:23 PM, Nikolay Pavlov wrote: > > On Dec 13, 2013 1:56 AM, "ping song" wrote: > > > > furthermore, I want to

Re: vim: toggle between tabs and toggle between buffers

2013-12-12 Thread ping song
furthermore, I want to overide Ngt to :bN, when there is only one tab... this looks requiring N being extracted and used as a parameter of the function... how to implement that? thanks! On Thu, Dec 12, 2013 at 11:29 AM, ping song wrote: > thanks. this is nice. just one more in the

Re: vim: toggle between tabs and toggle between buffers

2013-12-12 Thread ping song
thanks. this is nice. just one more in the end. noremap ,l :call switch() reading about again...(I figured it out ever) On Thu, Dec 12, 2013 at 4:40 AM, Paul Isambert wrote: > "ping song" : > > currently I have a map to quickly switch between 2 tabs: > > > >

vim: toggle between tabs and toggle between buffers

2013-12-11 Thread ping song
experts: currently I have a map to quickly switch between 2 tabs: nmap ,l :exe "tabn “.g:lasttab au TabLeave * let g:lasttab = tabpagenr() it works nice. but I'm thinking to extend that to another scenario, that if I got only one tab left but still have multiple buffers, the same map will toggl

how to remap ';' key, without affacting/slowing down its original function?

2013-12-09 Thread ping song
I'm looking at my keyboard for any un-used but still good keys left for my own maps I know ; was by default used as a repeat movement key. I thought that's not quite frequently-used, but still hesitating to block it. so thinking of ; key, that makes sense only when: 1) a fFtT key has been execu

Re: improving Vim - Kickstarter - brainstorming - goals - who wants to join?

2013-12-02 Thread Ping
agree I think it'll move vim to a new milestone if more cool stuff can be integrated into vim. Throw away other sick hackings and stay just with vim . Like emacs . How about lightweight version (current) and a new(heavy ) version , toggle-able via a new 'compatible ' knob? from iPhone On Dec

Re: how to disable (or toggle) csv plugin?

2013-11-30 Thread Ping
2013, Nikolay Pavlov wrote: > >> On Dec 1, 2013 12:33 AM, "Christian Brabandt" wrote: >>> >>> Hi ping! >>> >>> On Fr, 29 Nov 2013, ping song wrote: >>> >>>> csv plugin is nice, but for some reason when I open a large

how to disable (or toggle) csv plugin?

2013-11-29 Thread ping song
csv plugin is nice, but for some reason when I open a large file it take forever to load and then freeze. Ctrl-c doesn't help. is there a way to disable it (without uninstall) temporarily? thanks! -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply belo

Re: Happy Birthday Vim

2013-11-02 Thread Ping
Nice. How old is emacs btw? from iPhone On Nov 2, 2013, at 18:05, Tony Mechelynck wrote: > Happy Birthday To You! > Happy Birthday To You! > Happy Birthday dear Vi-im! > Happy Birthday To You! > > and Many Happy Returns of the Day! > > Vim is 12 years old today: its first public release (Vim

Re: vim: ex cmd with pipe

2013-09-08 Thread Ping
I think I tried that but still got errors I'll paste the captures later On Sep 6, 2013, at 10:17, Paul wrote: > On Thursday, 05 September, 2013 at 20:24:43 BST, Ping wrote: >>> all fine, but now I need a little bit pipe work here: >>> >>> :Conqterm ta

Fwd: vim: ex cmd with pipe

2013-09-05 Thread Ping
function 237..conque_term#set_mappings: > line 150: > E31: No such mapping > > what's the right way to do? > > thanks > > regards > ping -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replyi

Re: Fwd: vim: what the current best practice to work with excel file (xlsx)?

2013-08-28 Thread ping song
Fri, Apr 5, 2013 at 5:08 PM, ping wrote: > thanks! > > > On 04/05/2013 02:47 PM, Christian Brabandt wrote: > >> Hi ping! >> >> On Fr, 05 Apr 2013, ping wrote: >> >> [CSV filetype plugin] >> >>> been nearly a year now... >>>

Re: vim: how to use back reference to compare strings?

2013-08-12 Thread ping song
Sat, 10 Aug 2013, ping song wrote: > > I tested this again these test lines, doesn't work. >> >> abc123 bla bla bla abc123 bla bla >> abc123 bla bla bla abc1234 bla bla >> abc123 bla bla bla abc123 bla bla >> abc123 bla bla bla abc1234 bla bla >> abc

Re: vim: how to use back reference to compare strings?

2013-08-11 Thread ping song
Sun, Aug 11, 2013 at 3:08 AM, John Little wrote: > On Sunday, August 11, 2013 2:44:28 PM UTC+12, ping wrote: > > any idea of what I missed here? > > With > > :g#\(abc\d\+\)\(.*\)\(abc\d\+\)\(.*\)#s//\=Diff(submatch(1),submatch(2))/n > > I get all lines reporting a differ

Re: vim: how to use back reference to compare strings?

2013-08-10 Thread ping song
I also checked "help \@!", and got this: Useful example: to find "foo" in a line that does not contain "bar": /^\%(.*bar\)\@!.*\zsfoo but it seems, it desn't work with back-ref ... guys, who can help explaining these ? On Sat, Aug 10, 2013 at 10:50 PM, pi

Re: vim: how to use back reference to compare strings?

2013-08-10 Thread ping song
a bla I'm expecting to see only line 2&4... any idea? regards ping On Sat, Aug 10, 2013 at 5:11 PM, Niklas Reinhart wrote: > Hi, > > this works for me: > > abc\(\d\+\).*abc\1\@! > > Regards > > Niklas > > > Am Sat, 10 Aug 2013 16:45:30 -0400

Re: vim: how to use back reference to compare strings?

2013-08-10 Thread ping song
tch(2))/n I got : "5 substitutions in 5 lines". no message got printed out... any idea of what I missed here? thanks anyway. On Sat, Aug 10, 2013 at 9:06 PM, John Little wrote: > On Sunday, August 11, 2013 8:45:30 AM UTC+12, ping wrote: > > > > what I meant is, how t

Re: vim: how to use back reference to compare strings?

2013-08-10 Thread Ping
This looks nice, will test it out On Aug 10, 2013, at 21:06, John Little wrote: > On Sunday, August 11, 2013 8:45:30 AM UTC+12, ping wrote: >> >> what I meant is, how to use these to actually do the compare in a vim ex >> command line? >> sth like : >>

Re: vim: how to use back reference to compare strings?

2013-08-10 Thread Ping Song
clarify what I meant On Sat, Aug 10, 2013 at 3:30 AM, Marcin Szamotulski wrote: Hi, I am not sure if I understand you correctly but you can use \(...\) and and then reuse it with \1 (it matches the same string as what \(...\) have matched). Regards, Marcin On 00:44 Sat 10 Aug , ping s

vim: how to use back reference to compare strings?

2013-08-09 Thread ping song
hi guys: I run into a scenario that , I need to compare 2 part of the regex string in one line : "abc123456 bla bla bla abc1234" so I'm thinking, can we use the backreference, to compare the first abc\d\+ with the second one and only print out a message in case we detect the different ones ? pref

Re: vim: how to produce the html pages like the vim help html?

2013-07-24 Thread ping
On 7/23/13 11:11 PM, Nikolay Pavlov wrote: On Jul 24, 2013 1:00 AM, "Charles Campbell" mailto:charles.e.campb...@nasa.gov>> wrote: > > ping song wrote: >> >> any help? >> >> >> >> On Mon, Jul 22, 2013 at 9:03 AM, ping <ma

Re: vim: how to produce the html pages like the vim help html?

2013-07-23 Thread ping song
any help? On Mon, Jul 22, 2013 at 9:03 AM, ping wrote: > this looks real nice! > > http://vimdoc.sourceforge.net/**htmldoc/<http://vimdoc.sourceforge.net/htmldoc/> > > the thing that I like it , is that it looks exactly what it is in vim , > compacted pure text but st

vim: how to produce the html pages like the vim help html?

2013-07-22 Thread ping
can't simply archieve in vimwiki. what options of tools do we have (in vim or external) to generate those beautiful pages? regards thanks! ping -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replyi

vim TOhtml: generate page including multiple windows

2013-06-20 Thread ping
hi folks: I know this great plugin can generate a decent web page looks just like what is in vim, with 2vsplit windows. I think it's neat to have the same feature for other "non-diff", generic scenarios . is it currently supported yet and if yes how? regards ping -- -- Yo

Re: ANN: vim-online-thesaurus -- a Vim plugin for looking up words in an online thesaurus

2013-06-18 Thread ping
does this work to translate between different languages? On 06/18/2013 06:32 PM, Anton Beloglazov wrote: Hi Paul, The link to the screenshot in my first post works for me. The correct link is: https://raw.github.com/beloglazov/vim-online-thesaurus/master/screenshot.png Cheers, Anton On Tues

Re: vim: format each long lines and insert just one break afterward

2013-05-20 Thread ping
On 05/20/2013 01:03 PM, Gary Johnson wrote: The action of the first exec is to expand and execute its arguments, which in this case is a single argument, the string a:firstline . "," . a:lastline . "g/^/exec " . "normal! gqq" Assuming for sake of a concrete example a firstline of 123 and

Re: vim: format each long lines and insert just one break afterward

2013-05-20 Thread ping
in a ranged func ? exec a:firstline . "," . a:lastline . "g/^/exec " . "normal! gqq" thanks! regards ping -- -- 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 informati

Re: vim: format each long lines and insert just one break afterward

2013-05-18 Thread ping
On 5/18/2013 11:13 PM, Tim Chase wrote: On 2013-05-18 20:22, ping wrote: 1) :'<,'>g/.*/exec "normal! o\" unconditionally insert a new line after each line (this may bring a lot of empty lines , if the original book already contains empty lines) Any line matching &qu

  1   2   3   4   >