vim

作者: allenhaozi | 来源:发表于2024-05-17 19:28 被阅读0次

colorscheme

colorschemes

.vimrc

set cursorline

set nocompatible

syntax on 

colorscheme molokai " color theme
"colorscheme azure" color theme
"colorscheme legacy" color theme

"let g:molokai_original = 1
"let g:rehash256 = 1

if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

set number 
set cursorline
set ruler " status
set shiftwidth=4 "
set softtabstop=4 " 
set tabstop=4 "
set nobackup "
set autochdir "
filetype plugin indent on "
set backupcopy=yes "
set ignorecase smartcase 
set nowrapscan 
set incsearch 
set hlsearch 
set noerrorbells 
set novisualbell 
set t_vb= " 置空错误铃声的终端代码
" set showmatch " 插入括号时,短暂地跳转到匹配的对应括号
" set matchtime=2 " 短暂跳转到匹配括号的时间
set magic " 设置魔术
set hidden " 允许在有未保存的修改时切换缓冲区,此时的修改由 vim 负责保存
set guioptions-=T " 隐藏工具栏
set guioptions-=m " 隐藏菜单栏
set smartindent " 开启新行时使用智能自动缩进
set backspace=indent,eol,start

set cmdheight=1 "
set laststatus=2 " 显示状态栏 (默认值为 1, 无法显示状态栏)
"set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l/%L%)\ 
set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l/%L%)/%{line('.')*100/line('$')}%%

set foldenable " 开始折叠
set foldmethod=syntax " 设置语法折叠
set foldcolumn=0 " 设置折叠区域的宽度
setlocal foldlevel=1 " 设置折叠层数为
set foldclose=all " 设置为自动关闭折叠 
" nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
(gradio) --------------------------------------------------------------

相关文章

  • Vim 常用命令

    VIM 命令 文件命令 VIM的模式 VIM导航命令 VIM插入命令 VIM查找命令 VIM替换命令 VIM使用技...

  • 小技巧3:vim学习

    摘要 VIM的插件管理 VIM写latex VIM写python VIM写C++ 1.VIM的插件管理工具vim-...

  • FFmpeg实践记录三:Vim基本讲解

    Vim处理模式 Vim常用命令 Vim拷贝、粘贴和删除 Vim光标移动 Vim行内光标移动 Vim查找与替换 Vi...

  • Vim操作记录

    vim 编辑显示行号: vim 编辑隐藏行号: vim 编辑多行注释: vim 编辑取消多行注释: vim 批量注...

  • 无标题文章

    # Getting Started with Vim ## History of Vim * Vim editor...

  • Vim学习资料

    VIMTUTOR OpenVim vim-adventures The basics of Vim Vim...

  • FFmpeg开发--Vim详解

    Vim编辑器Vim处理模式: Vim常用命令: Vim查找与替换:

  • vi或者vim中文乱码

    打开vi或者vim打开文件“/etc/vim/vimrc” ,指令为:vim /etc/vim/vimrc 将下面...

  • Vim常用命令

    Vim官网:*http://www.vim.org/[http://www.vim.org/] Vim文档: ht...

  • Vim插件

    vim-multifiles Sparkup vim-snipmate surround.vim

网友评论

      本文标题:vim

      本文链接:https://www.haomeiwen.com/subject/yjqwfjtx.html