字体修改、添加基本映射

This commit is contained in:
taynpg 2024-04-29 21:32:11 +08:00
parent 8cfd00532b
commit ab9e2159c8

View File

@ -3,10 +3,12 @@ set number
syntax enable syntax enable
filetype on filetype on
set vb t_vb= set vb t_vb=
colorscheme morning " colorscheme morning
set guifont=Consolas:h12 colorscheme gruvbox
" set background=light
set guifont=FiraCode\ Nerd\ Font\ Mono:h12
set incsearch set incsearch
" set lines=40 columns=150 set lines=40 columns=160
set backspace=2 set backspace=2
set shiftwidth=4 set shiftwidth=4
set expandtab set expandtab
@ -26,14 +28,27 @@ set fileencodings=ucs-bom,utf-8,chinese,cp936
set clipboard=unnamed set clipboard=unnamed
set relativenumber set relativenumber
autocmd GUIEnter * simalt ~x if has("gui_running")
autocmd GUIEnter * simalt ~x
endif
if(has("win32") || has("win64") || has("win95") || has("win16"))
let g:iswindows = 1
else
let g:islinux = 1
endif
:nnoremap <Leader>s :wa<CR> :nnoremap <Leader>s :wa<CR>
:nnoremap <Leader>h :noh<CR> :nnoremap <Leader>h :noh<CR>
:nnoremap <C-j> 4j :nnoremap <C-j> 4j
:nnoremap <C-k> 4k :nnoremap <C-k> 4k
:nnoremap <C-u> 4k :nnoremap <C-u> 9k
:nnoremap <C-d> 4j :nnoremap <C-d> 9j
:vnoremap < <gv
:vnoremap > >gv
:vnoremap J :move '>+1<CR>gv-gv
:vnoremap K :move '<-2<CR>gv-gv
" 状态栏介绍 " 状态栏介绍
" 设置状态行显示常用信息 " 设置状态行显示常用信息