Reputation: 604
I like to use vim (on ms windows), I guess everybody have a favorite editor and this is mine.
On one particular PC I run into problems conserning the mark[a-zA-Z]
command.
It does not work for the letters a and A but it does for b-z and B-Z and I would like to know why.
If I use the command :marks
I can see that ma
and mA
do set an entry. But 'a
and 'A
have no effect. The same for the backtick versions.
If I do the same with labels b or B it works.
I checked my _vimrc but there is no line doing something to a or A.
What can block the labels a and A? How can I find out what is causing this problem?
Any sugestion is welcome.
Additional information: 5-mar-2016, 23:59
I have no _gvimrc file and use the `standard' _vimrc file, never took the time to dig deep into the vim configurations. So it is still pretty vanilla. I like it this way, there are too many PC's I have to work with and synchronising _vimrc files is not what I'm looking for. :-)
This is in my _vimrc file.
:source C:\Program Files (x86)\Vim\_vimrc
let g:xml_syntax_folding=1
:filetype on
:filetype plugin on
:set foldmethod=marker
:set foldmarker={,}
autocmd FileType xml source C:\Users\andre\vimfiles\ftplugin\xml.vim
autocmd FileType python source C:\Users\andre\vimfiles\ftplugin\py.vim
autocmd FileType cs source C:\Users\andre\vimfiles\ftplugin\cs.vim
I have tried the suggestions made by cbaumhardt and that does not make any difference, running vim -Nu NONE -U NONE
.
Additional information: 6-mar-2016, 20:23LT
The keyboard setting was interfering with the input. (US-international
)
Changing the keyboard setting to US
solved the problem.
Upvotes: 2
Views: 1829
Reputation: 31469
The operating system can intercept the key presses before vim sees it. So if you use an international keyboard layout, 'a
might produce a with an accent. Vim will not see 'a
which is why the mark doesn't work.
One solution is to map the character with the accent to 'a
or change the keyboard layout.
nnoremap <a with accent> 'a
Upvotes: 7