vim - Vim 命令 0 转到第二列而不是第一列
问题描述
当我0
在普通模式下按时,光标会转到第二列而不是第一列。这不是 vim 中所述的正常行为:help 0
。
我已经尝试禁用重映射以在我的配置(如下)的换行之间移动,并且行为是相同的。有什么办法可以改变这个吗?也许是一个包干扰了常规行为,但我看不出是哪个包。
这是我的 .vimrc 配置文件
set backspace=indent,eol,start " backspace over everything in insert mode
set nocompatible " be improved, required
filetype off " required
" vim-plug manager
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
Plug 'lervag/vimtex'
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=0
set conceallevel=1
let g:tex_conceal='abdmg'
Plug 'sirver/ultisnips'
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
Plug 'itchyny/lightline.vim'
Plug 'sainnhe/gruvbox-material'
Plug 'scrooloose/nerdcommenter'
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
syntax enable
"colorscheme monokai
set number
set ts=4
set expandtab
set autoindent
set wildmenu
set showmatch
set showmatch
set incsearch
set nohlsearch
set linebreak
set ttimeoutlen=0
set laststatus=2
set noshowmode
" Lets you edit another file without saving the current
set hidden
" GUI enhancements
" Set nice colors for 256 terminal
if !has('gui_running')
set t_Co=256
endif
" Set the airline colorscheme
let g:lightline = {'colorscheme' : 'gruvbox_material'}
" Set colorscheme
set termguicolors
set background=dark
let g:gruvbox_material_background = 'medium'
colorscheme gruvbox-material
" REMAPS
" Inserting a real Tab when pressing Shift + Tab
:inoremap <S-Tab> <C-V>Tab>
" Move between wrapped lines
noremap <silent> k gk
noremap <silent> j gj
noremap <silent> 0 g0
noremap <silent> $ g$
解决方案
推荐阅读
- sequelize.js - Sequelize:如何将连接表的 PK 设置为外键对,以便能够在连接表实例上使用 save() 而不会触发“无 PK 错误”?
- javascript - 未检测到 PDF 的余印
- javascript - Javascript - 删除年份并在日期名称中写入完整的工作日名称
- html - CSS boxshadow不重叠下拉
- iis - Owin 覆盖 IIS 客户端证书映射规则上的身份验证
- ruby-on-rails - 为什么我的 regexp_replace 语句返回 \0001?
- javascript - 如何通过使用数组的值作为键来获取对象的值
- c# - 谷歌日历 API。仅在身份验证时向某人的日历添加事件会引发错误“错误 401:invalid_client”
- python - SQLAlchemy 如何实现类似过滤器的方法?
- asp.net-core - 使用 UrlHelper 获取控制器的基本 url