Hello, I simply wanted to redirect Alt + Space in insert mode to a plain
space
but this seems more complicated than I thought.
I've only tried i[nore]map A-Space Space
(or w/ imap M-Space Space)
but the same behaviour that it its always given me remains.
e.g. in insert I type Alt + Space my
my bad, I'm using gvim 7.4.335-4
--
View this message in context:
http://vim.1045645.n5.nabble.com/imap-Alt-Space-please-help-tp5721993p5721996.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
--
You received this message from the vim_use maillist.
Do not top-post!
Hello !
Would anyone have any idea how to go about changing what vim displays
for certain characters ?
All I'm asking for is, that vim prints to the screen a different character
than the one that's there.
EXAMPLE:
FILE.txt: (normal vim)
hello world :) abcdefghijklmnopqrstuvwxyz
FILE.txt:
You guys are awesome for replying so fast :)
At least I know now.
What I'll do I think is before executing the action, make a mark, save the
line number to a variable, do the command, check to see if it changed and if
so jump to the mark. That way I could apply it to each word command variant.
It's probably just my color scheme I have to fix, thx for all the help
Christian!
TSCHÜSS!
--
View this message in context:
http://vim.1045645.n5.nabble.com/replace-represenation-of-certain-characters-with-a-string-of-characters-tp5714620p5714819.html
Sent from the Vim - General mailing list
Christian Brabandt wrote
BTW: You know, that you need to replace vim by the chars you want to be
replaced and EMACS by the chars, that you like to see, right?
no I did not get that before :) thx for explaining.
impressive workaround!
now just to make it more seemless
I only need to figure out
Hi! is there any fast neat way to tell vim not to go to next/previous word if
it's on a different line that doesn't require writing a function? e.g. a
flag or something? I looked but can't find anything on it other than
whichwrap but it seems that only applies to hjkl stuff..
--
View this
hi I tried the first command and then the second gave me an error saying
E492: Not an editor command:
fdt=substitute(getline(v:foldstart),'vim','EMACS','g') fillchars-=fold
I also tried the command with
set fdt=substitute(getline(v:foldstart),'vim','EMACS','g')
fillchars-=fold
which
John Little-4 wrote
Another thought, you could use autocommands on reading and writing the
file to change what's seen, like the way vim handles gzipped files.
you mean like running sed on the whole file when opening it and running it
again after saving it?
that's basically my give up plan
--
I considered using fontforge that way, only issue is I'm not sure if fonts
have particular resrtictions to cell size for each character. For my
purposes I'm doing more of a
( replace character with wide character e.g. from: ? to: )
kinda thing..
--
View this message in context:
whenever I tried with two characters vim complained it was an invalid
argument.
conceallevel 2 is on but it still won't work with more than one character.
I tried
hi Special gui=bold guibg=#00 guifg=#022FEE
set cole=2
syn match Container B conceal cchar=AE
syn match
Also even if fontforge could let me draw a wide glyph doesn't vim only allow
monospace fonts anyway?
--
View this message in context:
http://vim.1045645.n5.nabble.com/replace-represenation-of-certain-characters-with-a-string-of-characters-tp5714620p5714650.html
Sent from the Vim - General
if that's all it's not worth looking into for me, as I in fact want more than
just two character width .
--
View this message in context:
http://vim.1045645.n5.nabble.com/replace-represenation-of-certain-characters-with-a-string-of-characters-tp5714620p5714652.html
Sent from the Vim - General
I'm sorry to be misleading, from the start I wanted to be able to do this
with more than 2 characters ( at least 4 in particular) it seems like I gave
the impression that I only needed two.
--
View this message in context:
I couldn't figure out a way to phrase my question but I'm not asking about
replacing patterns or anything.
I'd like to know if it's possible in vim to ( visually ) show any certain
character as something else. e.g. while editing a text file any occurrence
of the character '?' would just /look/
ah ok I found some hoops to jump through
function! TabCursor()
let currentchar = getline('.')[col('.')-1]
if currentchar == ''
if mode() == n
normal v
redraw
sleep 4m
wait! what about having the cursor change color specifically when on a tab?
that wouldn't require any stretching?
--
View this message in context:
http://vim.1045645.n5.nabble.com/Possible-to-stretch-cursor-on-tab-character-tp5713419p5713425.html
Sent from the Vim - General mailing list
ok
function! TabCursor()
let currentchar = getline('.')[col('.')-1]
if currentchar == ' '
highlight Cursor guibg=#0FF74A
else
highlight Cursor guibg=#7F97AA
endif
endfunction
au CursorMoved * :call TabCursor()
I
sigh, how dissapointing.
--
View this message in context:
http://vim.1045645.n5.nabble.com/Possible-to-stretch-cursor-on-tab-character-tp5713419p5713424.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
--
You received this message from the vim_use maillist.
Do not
a) the listchars option didn't address my issue, in fact I specifically
mentioned that I was not interested in highlighting all the tabs on the
page, and not liking the look of the page covered with ghost characters is
simply a matter of personal preference.
b) I don't know what hoops you're
I think it would be extremely useful to have the cursor stretch itself on
every tab character, versus being placed at the beginning or end as if it
were on a space, because the way it is right now is very ambiguos with space
characters and one generally doesnt now if the curor is on a tab untill
21 matches
Mail list logo