<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with vim8]]></title><description><![CDATA[A list of topics that have been tagged with vim8]]></description><link>https://jike.info/tags/vim8</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 10:06:16 GMT</lastBuildDate><atom:link href="https://jike.info/tags/vim8.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[Linux VIM 配置内容 .vimrc]]></title><description><![CDATA[<pre><code>"去掉vi的一致性"
set nocompatible
"显示行号"
set number
" 隐藏滚动条"    
set guioptions-=r 
set guioptions-=L
set guioptions-=b
"隐藏顶部标签栏"
set showtabline=0
syntax on   "开启语法高亮"
set background=dark     "设置背景色"
set nowrap  "设置不折行"
set fileformat=unix "设置以unix的格式保存文件"
set cindent     "设置C样式的缩进格式"
set tabstop=4   "设置table长度"
set shiftwidth=4        "同上"
set softtabstop=4
set smarttab
set showmatch   "显示匹配的括号"
set scrolloff=1     "距离顶部和底部5行"
set laststatus=2    "命令行为两行"
set fenc=utf-8      "文件编码"
set backspace=2
set mouse=v     "启用鼠标"
set selection=exclusive
set selectmode=mouse,key
set matchtime=5
set incsearch
set hlsearch        "高亮搜索项"
set expandtab     "不允许扩展table"
set whichwrap+=&lt;,&gt;,h,l
set autoread
set cursorline      "突出显示当前行"
hi CursorLine term=bold cterm=bold ctermbg=237
set cursorcolumn        "突出显示当前列"

nnoremap &lt;C-J&gt; &lt;C-W&gt;&lt;C-J&gt;
nnoremap &lt;C-K&gt; &lt;C-W&gt;&lt;C-K&gt;
nnoremap &lt;C-L&gt; &lt;C-W&gt;&lt;C-L&gt;
nnoremap &lt;C-H&gt; &lt;C-W&gt;&lt;C-H&gt;

"F3自动格式化代码
noremap &lt;F3&gt; :Autoformat&lt;CR&gt;
let g:autoformat_autoindent = 0
let g:autoformat_retab = 0
let g:autoformat_remove_trailing_spaces = 0


map &lt;F5&gt; :call CompileRunGcc()&lt;CR&gt;
func! CompileRunGcc()
        exec "w"
        if &amp;filetype == 'c'
                exec "!g++ % -o %&lt;"
                exec "!time ./%&lt;"
        elseif &amp;filetype == 'cpp'
                exec "!g++ % -o %&lt;"
                exec "!time ./%&lt;"
        elseif &amp;filetype == 'java'
                exec "!javac %"
                exec "!time java %&lt;"
        elseif &amp;filetype == 'sh'
                :!time bash %
        elseif &amp;filetype == 'python'
                exec "!clear"
                exec "!time python3 %"
        elseif &amp;filetype == 'html'
                exec "!firefox % &amp;"
        elseif &amp;filetype == 'go'
                " exec "!go build %&lt;"
                exec "!time go run %"
        elseif &amp;filetype == 'mkd'
                exec "!~/.vim/markdown.pl % &gt; %.html &amp;"
                exec "!firefox %.html &amp;"
        endif
endfunc

" set nocompatible              " required
" filetype off                  " required

"set rtp+=~/.vim/bundle/Vundle.vim
"call vundle#begin()

"Plugin 'gmarik/Vundle.vim'
"Plugin 'Chiel92/vim-autoformat'
" Plugin 'davidhalter/jedi-vim'

"call vundle#end()            " required
"filetype plugin indent on    " required

" Uncomment the following to have Vim jump to the last position when
" reopening a file
au BufReadPost * if line("'\"") &gt; 1 &amp;&amp; line("'\"") &lt;= line("$") | exe "normal! g'\"" | endif



syntax on


</code></pre>
]]></description><link>https://jike.info/topic/7166/linux-vim-配置内容-vimrc</link><guid isPermaLink="true">https://jike.info/topic/7166/linux-vim-配置内容-vimrc</guid><dc:creator><![CDATA[malaohu]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CentOS 7 安装 VIM 8+]]></title><description><![CDATA[<p dir="auto">安装依赖（注意这个会按照python3）</p>
<pre><code>yum install ruby ruby-devel lua lua-devel luajit \
luajit-devel ctags git python python-devel \
python36 python36-devel tcl-devel \
perl perl-devel perl-Extutils-ParseXS \
perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \
perl-ExtUtils-Embed libX* ncurses-devel gtk2-devel
</code></pre>
<p dir="auto">卸载默认的 vim</p>
<pre><code>yum -y remove vim
</code></pre>
<p dir="auto">下载vim仓库</p>
<pre><code>git clone https://github.com/vim/vim.git （国外）
git clone https://gitee.com/shtml/vim.git  （国内）
</code></pre>
<p dir="auto">配置</p>
<pre><code>cd vim/src

./configure --with-features=huge \
--enable-gui=gtk2 \
--with-x \
--enable-fontset \
--enable-cscope \
--enable-multibyte \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib64/python2.7/config \
--enable-python3interp \
--with-python3-config-dir=/usr/lib64/python3.6/config \
--enable-luainterp \
--enable-rubyinterp \
--enable-perlinterp \
--enable-multibyte \
--prefix=/usr/local/vim \
--with-compiledby="brooksj"
</code></pre>
<p dir="auto">参数说明如下：</p>
<p dir="auto">–with-features=huge：支持最大特性</p>
<p dir="auto">–enable-rubyinterp：启用Vim对ruby编写的插件的支持</p>
<p dir="auto">–enable-pythoninterp：启用Vim对python编写的插件的支持</p>
<p dir="auto">-enable-python3interp：启用对python3编写的插件的支持</p>
<p dir="auto">–enable-luainterp：启用Vim对lua编写的插件的支持</p>
<p dir="auto">–enable-perlinterp：启用Vim对perl编写的插件的支持</p>
<p dir="auto">–enable-multibyte：多字节支持 可以在Vim中输入中文</p>
<p dir="auto">--enable-fontset：支持字体设置</p>
<p dir="auto">–enable-cscope：Vim对cscope支持 ，cscope是一款优秀的代码浏览工具</p>
<p dir="auto">–enable-gui=gtk2：gtk2支持,也可以使用gnome，表示生成gvim</p>
<p dir="auto">-–with-python-config-dir 指定 python配置 路径</p>
<p dir="auto">--with-python3-config-dir 指定python3配置路径</p>
<p dir="auto">–-prefix：编译安装路径</p>
<p dir="auto">--with-compiledby：编译者</p>
<p dir="auto">配置很关键，这直接关系到你以后vim的功能使用，这里建议最好按照上面我所给出的的配置方案来配置，以免后续出现问题。</p>
<p dir="auto">编译安装</p>
<pre><code>make &amp;&amp; make install
</code></pre>
<p dir="auto">创建软链</p>
<pre><code>ln -s  /usr/local/vim/bin/vim /usr/bin/vim
</code></pre>
]]></description><link>https://jike.info/topic/7103/centos-7-安装-vim-8</link><guid isPermaLink="true">https://jike.info/topic/7103/centos-7-安装-vim-8</guid><dc:creator><![CDATA[malaohu]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>