From 6f23dea8f3125b269eb9afab1e09ec0f9b2e923d Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 26 Feb 2021 00:09:51 +0800 Subject: [PATCH] update airline settings for vim-xkbswitch --- core/plugins.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/plugins.vim b/core/plugins.vim index b07318a..210b1e0 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -898,6 +898,12 @@ let g:airline#extensions#hunks#non_zero_only = 1 " Speed up airline let g:airline_highlighting_cache = 1 +" The key in the following shortcode are the layout when we use a specific +" input method mode. On my macOS, 0 means that we are trying to input Chinese, +" and 1 means we are using English mode. +" See also https://github.com/vim-airline/vim-airline/blob/master/autoload/airline/extensions/xkblayout.vim#L11 +let g:airline#extensions#xkblayout#short_codes = {'0': 'CN', '1': 'US'} + """"""""""""""""""""""""""""vim-startify settings"""""""""""""""""""""""""""" " Do not change working directory when opening files. let g:startify_change_to_dir = 0