Subscribed unsubscribe Subscribe Subscribe

F# Monkey

about

Setting of Neovim

Vim

init.vim

英語メニュー

タブインデント

インサートモードのhjkl移動

"//////////////////////////////////////////////////////////
"// Neovim setting
"//////////////////////////////////////////////////////////

"----------------------------------------------------------
" Neovim's Python2 provider
"----------------------------------------------------------
let g:python_host_prog = '/usr/local/bin/python'

"----------------------------------------------------------
" General
"----------------------------------------------------------
set clipboard+=unnamedplus " use clipboard ( see : help clipboard )
set tabstop=4 shiftwidth=4 expandtab
set nowrap
set number
set noswapfile

"----------------------------------------------------------
" Seek
"----------------------------------------------------------
set wrapscan
set ignorecase
set smartcase
nnoremap <silent> <C-l> :nohlsearch<CR>

"----------------------------------------------------------
" Appearance
"----------------------------------------------------------
colorscheme birds-of-paradise

" English menu display
source $VIMRUNTIME/delmenu.vim
set    langmenu=none
source $VIMRUNTIME/menu.vim

if has("multi_lang")
    language en_gb
endif

"----------------------------------------------------------
" Char code
"----------------------------------------------------------
set encoding=utf-8
set fileencodings=utf-8,iso-2022-jp,euc-jp,sjis

"----------------------------------------------------------
" Key binding
"----------------------------------------------------------
" Tab indent, Tab unindent
inoremap <Tab>   <C-t>
inoremap <S-Tab> <C-d>
vnoremap <Tab>   0>>gv
vnoremap <S-Tab> 0<<gv

" hjkl in insert mode (see : https://github.com/neovim/neovim/wiki/FAQ#my-ctrl-h-mapping-doesnt-work )
inoremap <C-h> <Left>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C-l> <Right>

How to use Ctrl-H by Neovim

see: https://github.com/neovim/neovim/wiki/FAQ#my-ctrl-h-mapping-doesnt-work

$ infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
$ tic $TERM.ti
Remove all ads