... In Vim, a "command history" is a log of the Ex commands entered (those commands that with ":", like ":tabe" or ":help :tabe". As stated, you can see that...
135356
Boris Danilov
brdanilov@...
Jan 7, 2013 9:24 am
Hello! The question is how to call a function on a ftplugin undo? As far as I understand, the universal method for undoing stuff is putting commands to...
135357
Boris Danilov
brdanilov@...
Jan 7, 2013 9:33 am
P.S. Okay, in documentation I found the following way to get the SID number: function s:SID() return matchstr(expand('<sfile>'), '<SNR>\zs92;d\+\ze_SID$') endfun...
135358
Marco
netuse@...
Jan 7, 2013 9:52 am
I'm trying to match words containing characters beyond a-zA-Z. The problem is that words like prästgården treść are not recognized as words. If I match...
135359
Andy Wokula
anwoku@...
Jan 7, 2013 10:12 am
... The word motion w moves over those characters. ... Also, [:upper:] and [:lower:] include more characters. Try /\c[[:lower:]]\+ to match lower *and*...
135360
niva
nivaemail@...
Jan 7, 2013 10:35 am
... I have checked that Gvim is faster without loading plugins and vimrc by this command : gvim -u NONE -U NONE -N "$@" So, now, i would like to call a...
135361
Marco
netuse@...
Jan 7, 2013 10:51 am
... But what does that mean? The w motion recognises å as a letter, the regex \w does not. w moves a *word* forward. A word is: A word consists of a sequence...
135362
Christian Brabandt
cblists@...
Jan 7, 2013 10:57 am
... It still doesn't match (Is this a bug?). However, you could possibly use equivalence classes like /[[=s=][=c=][=a=]], which you can read about at :h...
135363
Tony Mechelynck
antoine.mechelynck@...
Jan 7, 2013 10:59 am
... I don't understand the SID$ at the end ... Getting the "current script number" is feasible but not easy. If this works for you after testing, stay with it....
135364
Marco
netuse@...
Jan 7, 2013 11:09 am
... This wreaks havoc! dots, dashes, brackets, everything is matched. I could reduce iskeyword to include only 0-9a-zA-Z_ and all accented characters. That...
135365
Marco
netuse@...
Jan 7, 2013 11:12 am
... I only managed to match single characters, not *every* character. [=a=] matches äåa, etc. What would be the syntax to match *all characters including all...
135366
Marc Weber
marco-oweber@...
Jan 7, 2013 11:16 am
... github.com/MarcWeber/vim-addon-manager let's you choose which plugins to activate easily. It also supports loading plugins at runtime as needed. grep its...
135367
Marco
netuse@...
Jan 7, 2013 11:33 am
... grep matches ś, vim does not: echo ś | grep '[[:lower:]]' ś abcśdef /[[:lower:]] ^^^ ^^^ There definitely seems to be something wrong. Marco...
135368
lith
minilith@...
Jan 7, 2013 12:33 pm
... Alternatively, you could use the tplugin script (http://www.vim.org/scripts/script.php?script_id=2917), which will define proxy commands & catch calls to...
135369
Boris Danilov
brdanilov@...
Jan 7, 2013 1:04 pm
Tony, ... <sfile> inside a function returns function name (i.e. might be '<SNR>18_SID') which is matched against pattern '<SNR>\d+_SID$', where $ matches for...
135370
surr.name
litichevskij.vova@...
Jan 7, 2013 1:23 pm
Hi! Is there any way to switch mode automaticaly to NORMAL when <Ctrl>+<something> pressed and Vim is in INSERT mode? For example: Vim is in INSERT mode, and...
135371
Chris Schneider
chris@...
Jan 7, 2013 1:42 pm
imap <c-x> <esc> Where imap is "insert mode mapping", <c-x> is control-x (or whatever you'd want), and <esc> is the action the mapping takes. In this case,...
135372
Литичев...
litichevskij.vova@...
Jan 7, 2013 3:28 pm
looks like the question was wrong formulated. I've meant something like this imap <c-f> <esc><c-f>i but for all keys combinations with <Ctrl> but thanks...
135373
Chris Schneider
chris@...
Jan 7, 2013 3:34 pm
There are lots of insert mode commands. You can overwrite them with mappings, but you'd be losing out on everything vim can do in insert mode. You have the...
135374
stosss
stosss@...
Jan 7, 2013 5:01 pm
I start out with this: text text more text more text still more text still more text I want to end up with this: text text more text...
135375
sc
toothpik@...
Jan 7, 2013 5:04 pm
... are you aware of <C-O>? used in insert mode it allows one normal mode command then returns you to insert mode. In your example above <C-O><C-F> when...
135376
Chris Schneider
chris@...
Jan 7, 2013 5:20 pm
There are plugins to help: Tabularize is the one I use. So assuming the larger spaces were \t characters (actual tabs), it'd be :Tabularize /\t If they are...
135377
ping
songpingemail@...
Jan 7, 2013 5:24 pm
hi guys/Michael <http://www.vim.org/account/profile.php?user_id=19478>: I've beening using vim-indent-object as an extra text-object to handle my indented text...
135378
Boris Danilov
brdanilov@...
Jan 7, 2013 6:30 pm
Hello! I have a language with one-line comments that start from '//' (double slash) and last to the end of the line. I want to syntactically define folds that...
135379
Andy Wokula
anwoku@...
Jan 7, 2013 6:59 pm
... -- Andy -- 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...
135380
Boris Danilov
brdanilov@...
Jan 7, 2013 7:04 pm
Thank you Andy, but I'm writing syntax file for that kind of a language and want to have folds syntactically. Regards, Boris ... -- You received this message...
135381
Dan Wierenga
dwierenga@...
Jan 7, 2013 9:47 pm
I'm trying to create a syntax file for a file containing fixed-width records [1], so that whenever I edit a file, the records are highlighted so that each...
135382
Charles Campbell
Charles.E.Campbell@...
Jan 7, 2013 9:51 pm
... What separates the two sets of text? If its a tab, and using the Align plugin (http://www.drchip.org/astronaut/vim/index.html#ALIGN): use V+motion to...
135383
Литичев...
litichevskij.vova@...
Jan 7, 2013 9:57 pm
Thanks a lot for <C-O> ! 2013/1/7 sc <toothpik@...> ... -- ÷Ï×Á ìÉÔÉÞÅ×ÓËÉ. -- You received this message from the "vim_use" maillist. Do...
135384
Gary Johnson
garyjohn@...
Jan 7, 2013 10:58 pm
... And if it's not a tab but is just a sequence of two or more spaces, you could convert those sequences to tabs as part of Chip's solution: use V+motion to...