Hello everyone, I want to know how to match the space that is not in the start of the line. for example sss sss ^^^^ ^ I just match the second part of the...
ginkgo
mydorado@...
Jul 1, 2009 9:46 am
105478
... How about: /^\s\+\S\+\zs\s / - Search ^ - Start of the line \s\+ - One or more spaces (replace \+ with * if you don't mind whether there are spaces) ...
A. S. Budden
abudden@...
Jul 1, 2009 9:52 am
105479
... You want the "\@<!" modifier: \%(^\s*\)\@<!\s which "Matches with zero width if the preceding atom does NOT match just before what follows." as detailed at...
Tim Chase
vim@...
Jul 1, 2009 9:53 am
105480
... Thank for quick reply, you pattern work for this case. I think I do not say clear, the other example sss sss ss ^^^^ ^^ ^^ ^^ just match the...
ginkgo
mydorado@...
Jul 1, 2009 10:20 am
105481
... thanks Tim , I think your atom work well. I know the \@<! , but I use the \%(^\s\+\)\@<!\s , can you tell me, why the \s\+ not work well, but the \s*...
ginkgo
mydorado@...
Jul 1, 2009 10:24 am
105482
... They should be nearly equiv., with the only difference being the "\+" version *requires* that the line start with whitespace (one or more whitespace...
Tim Chase
vim@...
Jul 1, 2009 10:31 am
105483
On Jun 30, 6:37 pm, Charles Campbell <Charles.E.Campb...@...> ... I got it working!! This was in my vimrc if ($OS =~ "Windows") let...
Aman Jain
amanjain.nitrkl@...
Jul 1, 2009 10:40 am
105484
... Ah, sorry, I misunderstood. I think Tim has posted a good solution, but another option would be: /\S\@<=\s \S - Non space \@<= - Match with zero width if...
A. S. Budden
abudden@...
Jul 1, 2009 11:28 am
105485
... Great -- I'm glad you found the problem! Yes, I am Dr. Chip -- thank you. Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ ...
Charles Campbell
Charles.E.Campbell@...
Jul 1, 2009 1:09 pm
105486
... The goal was to replace complicated keystrokes with commands so that I could simplify my mappings (i.e keyboard, menu, etc). The above was just an example...
Edward Beach
beach9000@...
Jul 1, 2009 1:49 pm
105487
How does one search characters under cursor? Not '*' which is a whole word. I am looking for something like / and then repeated typing of some special...
rpmcmurphy
dushyant.jhamb@...
Jul 1, 2009 2:59 pm
105488
Kind of a newbie question here, hope its obvious! I'm trying to implement the following: nmap <Leader>d 80A*<ESC>80|D The idea is that it would write a line...
at
atorgovitsky@...
Jul 1, 2009 3:03 pm
105489
... The | is used to separate commands. There are several ways to use the | on the right hand side of the mapping. Read :help map_bar HTH, Dennis Benzinger ...
Dennis Benzinger
Dennis.Benzinger@...
Jul 1, 2009 3:15 pm
105490
... nmap <Leader>d 80A*<esc>80<bar>D A literal | terminates the mapping. Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You...
Charles Campbell
Charles.E.Campbell@...
Jul 1, 2009 3:20 pm
105491
... You might try this pair of mappings: nnoremap <f4> :let @/=escape(getline('.')[col('.')-1], '.~\\')<cr><right> nnoremap <f5> :let...
Tim Chase
vim@...
Jul 1, 2009 3:21 pm
105492
Got it...Thanks a lot to both! On Jul 1, 11:22 am, Charles Campbell <Charles.E.Campb...@...> ... --~--~---------~--~----~------------~-------~--~----~ ...
at
atorgovitsky@...
Jul 1, 2009 4:05 pm
105493
... I personally would use something like this: nnoremap <f4> :norm! "ayl<cr>:let @/=escape(@a, '.~\\')<cr><right> nnoremap <f5> :norm! "ayl<cr>:let...
Christian Brabandt
cblists@...
Jul 1, 2009 4:49 pm
105494
Suppose I am editing/viewing a file and searching for different regular expressions in the file, for example, issuing commands "/ abcd", "/efgh", "/ijkl" and...
googler
pinaki_m77@...
Jul 1, 2009 4:58 pm
105495
... 2 possibilities: - When starting a new search using / use the up-arrow key to select any of the previous searches. - Use the command-line window (:h...
Christian Brabandt
cblists@...
Jul 1, 2009 5:00 pm
105496
... After pressing "/" you should be able to use up/down (or control+P or control+N) to navigate the search history. You can also use q/ to pull up the...
Tim Chase
vim@...
Jul 1, 2009 5:00 pm
105497
... Actually, there are several ways to use search history; most of them apply also to command history if you replace / or ? by : - Plain history: Hit / or ?...
Tony Mechelynck
antoine.mechelynck@...
Jul 1, 2009 5:19 pm
105498
... Thanks a lot everyone! I will deactivate this when writing code and do the wrapping manually. The tip about highlighting long lines is fantastic! Cheers, ...
Torsten Andre
qa@...
Jul 1, 2009 5:26 pm
105499
... yet another method that everyone's been ignoring is to hit '/' followed by ctrl-F to open the search history window can't have too many choices now, can we...
_sc_
toothpik@...
Jul 1, 2009 7:22 pm
105500
... Hi everybody, thanks for your replies. All this information will definitely be helpful. However, when I posted this question, what I was thinking was if...
googler
pinaki_m77@...
Jul 1, 2009 7:35 pm
105501
Anyone have a script that can be mapped to perhaps a function key that will cycle all available colorschemes? thanks, Keith ...
Keith Kaple
kak@...
Jul 1, 2009 7:45 pm
105502
... you'll get a lot of responses to that :) my favorite is one that started with a thread on this very list: ...
_sc_
toothpik@...
Jul 1, 2009 8:06 pm
105503
Hi Keith! ... There has been a thread about a similar question some weeks ago: http://groups.google.com/group/vim_use/browse_frm/thread/5eda184cd9aedde7 Hope...
Dennis Benzinger
Dennis.Benzinger@...
Jul 1, 2009 8:17 pm
105504
... Simply use :nmap or :nnoremap with any of the methods already discussed. For example, these are basically equivalent and do ALMOST what you ... ...
Ben Fritz
fritzophrenic@...
Jul 1, 2009 9:31 pm
105505
Thanks guys. Both methods work great. Am not editing multibyte so I'll save my "a reg. ... --~--~---------~--~----~------------~-------~--~----~ You received...
rpmcmurphy
dushyant.jhamb@...
Jul 1, 2009 9:32 pm
105506
Hi googler! ... ,---- ... `---- regards, Christian -- ... --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use"...