Question:
The w commands do not take me to the beginning of the next word in Cyrillic text for example: writes – WRITES (uppercase "jumps")
Likewise with the 'e' command.
windows 10 system, vim 8.1 (2018 May 18)
config
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set number
set keymap=russian-jcukenwin
set iminsert=0
set imsearch=0
highlight lCursor guifg=NONE guibg=Cyan
set hlsearch
set incsearch
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', {'on':'NERDTreeToggle' }
Plug 'easymotion/vim-easymotion'
call plug#end()
"mappings
map <C-n> : NERDTreeToggle<CR>
set diffexpr=MyDiff()
Answer:
Or use:
set encoding=utf-8
at the beginning of the config file, or:
set iskeyword=@,48-57,_,192-255
Menu and unicode
In order for the menu to be displayed correctly in utf-8 set encoding=utf-8
must be placed at the very beginning of the config, i.e. these are the first settings that VIM should read. For more complete work in utf-8 in Russian, you can use the following settings (again, at the beginning of the configuration file):
" Отображение кириллицы во внутренних сообщениях программы
let $LANG='ru_RU.UTF-8'
lan mes ru_RU.UTF-8
" Отображение кириллицы в меню
set langmenu=ru_RU.UTF-8
set encoding=utf-8