`
isiqi
  • 浏览: 16617331 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

Vim个人配置文件

阅读更多

这几天一直在配置自己的Vim工作环境,主要是对~/.vimrc的配置。

以《史上最牛的Vim配置文件》为基础,形成自己的Vim环境,不过看了几天,整个.vimrc还是只看明白了20%

.vimrc内容如下:

——————————————————————————————————————

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" _
" __ |
" / | /
" __ |
" by Amix - http://amix.dk/
"
" Maintainer: Amir Salihefendic
" Version: 2.0
" Last Change: 12/08/06 13:39:28
" Fixed (win32 compatible) by: redguardtoo
" This vimrc file is tested on platforms like win32,linux, cygwin,mingw
" and vim7.0, vim6.4, vim6.1, vim5.8.9 by redguardtoo
"
" Tip:
" If you find anything that you can't understand than do this:
" help keyword OR helpgrep keyword
" Example:
" Go into command-line mode and type helpgrep nocompatible, ie.
" :helpgrep nocompatible
" then press c to see the results, or :botright cw
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Get out of VI's compatible mode..
set nocompatible

function! MySys()
return "linux"
endfunction

"Set shell to be bash
if MySys() == "linux"
set shell=bash
else
"I have to run win32 python without cygwin
"set shell=E:cygwininsh
endif

"Sets how many lines of history VIM har to remember
set history=400

"Enable filetype plugin
filetype on
if has("eval") && v:version>=600
filetype plugin on
filetype indent on
endif

"Set to auto read when a file is changed from the outside
if exists("&autoread")
set autoread
endif

"Audo complete
set completeopt=longest,menu

"Have the mouse enabled all the time:
"set mouse=a

"Set mapleader
let mapleader = ","
let g:mapleader = ","

"Fast saving
nmap w :w!
"imap :wai
"nmap :wa

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => QuickFix
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
nmap :cn
nmap :cp

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Grep
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
nnoremap :Rgrep

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Font
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Enable syntax hl
if MySys()=="linux"
if v:version<600
if filereadable(expand("$VIM/syntax/syntax.vim"))
syntax on
endif
else
syntax on
endif
else
syntax on
endif

"Set chinese help doc
set helplang=cn

"internationalization
"I only work in Win2k Chinese version
if has("multi_byte")
set termencoding=chinese
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
endif

"if you use vim in tty,
"'uxterm -cjk' or putty with option 'Treat CJK ambiguous characters as wide' on
if exists("&ambiwidth")
set ambiwidth=double
endif

if has("gui_running")
set guioptions-=m
set guioptions-=T
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R

if MySys()=="win32"
"start gvim maximized
if has("autocmd")
au GUIEnter * simalt ~x
endif
endif
"let psc_style='cool'
"colorscheme ps_color
"colorscheme default
else
"set background=dark
"colorscheme default
endif

"Some nice mapping to switch syntax (useful if one mixes different languages in one file)
map 1 :set syntax=cheetah
map 2 :set syntax=xhtml
map 3 :set syntax=python
map 4 :set ft=javascript
map $ :syntax sync fromstart

"Highlight current
if has("gui_running")
if exists("&cursorline")
set cursorline
endif
endif

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Fileformat
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Favorite filetype
set ffs=unix,dos,mac

nmap fd :se ff=dos
nmap fu :se ff=unix

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => VIM userinterface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Set 7 lines to the curors - when moving vertical..
set so=7

"Turn on WiLd menu
set wildmenu

"Always show current position
set ruler

"The commandbar is 1 high
set cmdheight=1

"Show line number
set nu!

"Do not redraw, when running macros.. lazyredraw
set lz

"Change buffer - without saving
set hid

"Set backspace
set backspace=eol,start,indent

"Set paste
set paste

"Bbackspace and cursor keys wrap to
set whichwrap+=<,>,h,l

"Ignore case when searching
"set ignorecase
set incsearch

"Set magic on
set magic

"No sound on errors.
set noerrorbells
set novisualbell
set t_vb=

"show matching bracet
set showmatch

"How many tenths of a second to blink
set mat=4

"Highlight search thing
set hlsearch

"Word newline
set linebreak

"Auto set working dir
set autochdir

""""""""""""""""""""""""""""""
" => Statusline
""""""""""""""""""""""""""""""
"Format the statusline
" Nice statusbar
set laststatus=2
set statusline=
set statusline+=%2*%-3.3n%0*\ " buffer number
set statusline+=%f\ " file name
set statusline+=%h%1*%m%r%w%0* " flag
set statusline+=[
if v:version >= 600
set statusline+=%{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%{&encoding}, " encoding
endif
set statusline+=%{&fileformat}] " file format
if filereadable(expand("$VIM/vimfiles/plugin/vimbuddy.vim"))
set statusline+=\ %{VimBuddy()} " vim buddy
endif
set statusline+=%= " right align
set statusline+=%2*0x%-8B\ " current char
set statusline+=%-14.(%l,%c%V%)\ %<%P " offset

" special statusbar for special window
if has("autocmd")
au FileType qf
\ if &buftype == "quickfix" |
\ setlocal statusline=%2*%-3.3n%0* |
\ setlocal statusline+=\ \[Compiler\ Messages\] |
\ setlocal statusline+=%=%2*\ %<%P |
\ endif

fun! FixMiniBufExplorerTitle()
if "-MiniBufExplorer-" == bufname("%")
setlocal statusline=%2*%-3.3n%0*
setlocal statusline+=\[Buffers\]
setlocal statusline+=%=%2*\ %<%P
endif
endfun

if v:version>=600
au BufWinEnter *
\ let oldwinnr=winnr() |
\ windo call FixMiniBufExplorerTitle() |
\ exec oldwinnr . " wincmd w"
endif
endif

" Nice window title
if has('title') && (has('gui_running') || &title)
set titlestring=
set titlestring+=%f\ " file name
set titlestring+=%h%m%r%w " flag
set titlestring+=\ -\ %{v:progname} " program name
endif

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Current window option
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
nmap wv v
nmap wc c
nmap ws s

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Moving around and tab
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Map space to / and c-space to ?
map /

"Smart way to move btw. window
map j
map k
map h
map l

""Actually, the tab does not switch buffers, but my arrow
""Bclose function ca be found in "Buffer related" section
"map bd :Bclose
"map bd
""Use the arrows to something usefull
"map :bn
"map :bp

"Tab configuration
map tn :tabnew %
map tc :tabclose
map tm :tabmove

if v:version>=700
set switchbuf=usetab
endif

if exists("&showtabline")
set stal=2
endif

"Moving fast to front, back and 2 sides ;)
imap $a
imap 0i
imap $a
imap 0i

"Moving cursor in insert mode
imap ja
imap ha
imap ka
imap la

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General Autocommand
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
map cd :cd %:p:h

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Parenthesis/bracket expanding
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
vnoremap $1 `>a)`
vnoremap $2 `>a]`
vnoremap $3 `>a}`
vnoremap $4 `>a*/`
vnoremap $$ `>a"`
vnoremap $q `>a'`

"Map auto complete of (, ", ', [
"http://www.vim.org/tips/tip.php?tip_id=153
"

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General Abbrev
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Comment for C like language
if has("autocmd")
au BufNewFile,BufRead *.js,*.htc,*.c,*.tmpl,*.css ino $c /** **/O
endif

"My information
ia xdate =strftime("%d/%m/%y %H:%M:%S")
"iab xname Amir Salihefendic

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Editing mappings etc.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Remap VIM 0
map 0 $
map 9 ^

"Move a line of text using control
nmap mz:m+`z
nmap mz:m-2`z
vmap :m'>+`mzgv`yo`z
vmap :m'<-2`>my`

if MySys() == "mac"
nmap
nmap
vmap
vmap
endif

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Command-line config
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
func! Cwd()
let cwd = getcwd()
return "e " . cwd
endfunc

func! DeleteTillSlash()
let g:cmd = getcmdline()
if MySys() == "linux" || MySys() == "mac"
let g:cmd_edited = substitute(g:cmd, "(.*[/]).*", "", "")
else
let g:cmd_edited = substitute(g:cmd, "(.*[\]).*", "", "")
endif
if g:cmd == g:cmd_edited
if MySys() == "linux" || MySys() == "mac"
let g:cmd_edited = substitute(g:cmd, "(.*[/]).*/", "", "")
else
let g:cmd_edited = substitute(g:cmd, "(.*[\]).*[\]", "", "")
endif
endif
return g:cmd_edited
endfunc

func! CurrentFileDir(cmd)
return a:cmd . " " . expand("%:p:h") . "/"
endfunc

"cno $q eDeleteTillSlash()
"cno $c e eCurrentFileDir("e")
"cno $tc eCurrentFileDir("tabnew")
cno $th tabnew ~/
cno $td tabnew ~/Desktop/

"Bash like
cno
cno
cno

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Buffer realted
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Fast open a buffer by search for a name
"map :sb

"Open a dummy buffer for paste
"map q :e ~/buffer

"Restore cursor to file position in previous editing session
set viminfo='10,"100,:20,%,n~/.viminfo

" Buffer - reverse everything ... :)
map ggVGg?

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files and backup
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Turn backup off
set nobackup
set nowb
"set noswapfile

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Folding
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Enable folding, I find it very useful
if exists("&foldenable")
set fen
endif

if exists("&foldlevel")
set fdl=0
endif

"set foldmethod=sytnax
"set foldlevel=100

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text option
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" python script
"set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
set backspace=2
set smarttab
set lbr
"set tw=500

""""""""""""""""""""""""""""""
" => Indent
""""""""""""""""""""""""""""""
"Auto indent
set ai!

"Smart indet
set si

"C-style indenting
set cindent

"Wrap line
set wrap

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Spell checking
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
map sn ]
map sp [
map sa zg
map s? z=

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Plugin configuration
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""
" => Yank Ring
""""""""""""""""""""""""""""""
map y :YRShow

""""""""""""""""""""""""""""""
" => File explorer
""""""""""""""""""""""""""""""
"Split vertically
let g:explVertical=1

"Window size
let g:explWinSize=35

let g:explSplitLeft=1
let g:explSplitBelow=1

"Hide some file
let g:explHideFiles='^.,.*.class$,.*.swp$,.*.pyc$,.*.swo$,.DS_Store$'

"Hide the help thing..
let g:explDetailedHelp=0

""""""""""""""""""""""""""""""
" => Minibuffer
""""""""""""""""""""""""""""""
let g:miniBufExplModSelTarget = 1
let g:miniBufExplorerMoreThanOne = 0
let g:miniBufExplModSelTarget = 0
let g:miniBufExplUseSingleClick = 1
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplVSplit = 25
let g:miniBufExplSplitBelow=1

"WindowZ
map :WMToggle

let g:bufExplorerSortBy = "name"

""""""""""""""""""""""""""""""
" => Tag list (ctags) - not used
""""""""""""""""""""""""""""""
"let Tlist_Ctags_Cmd = "/sw/bin/ctags-exuberant"
"let Tlist_Sort_Type = "name"
"let Tlist_Show_Menu = 1
"map t :Tlist
map :Tlist
set tags=/home/sunyubo/pH1sLDM_prot/sample/STF_LDM/tags

""""""""""""""""""""""""""""""
" => Cscope setting
""""""""""""""""""""""""""""""
"cs add /home/sunyubo/pH1sLDM_prot/sample/STF_LDM/cscope.out /home/sunyubo/pH1sLDM_prot/sample/STF_LDM/

""""""""""""""""""""""""""""""
" => LaTeX Suite thing
""""""""""""""""""""""""""""""
"set grepprg=grep -r -s -n
let g:Tex_DefaultTargetFormat="pdf"
let g:Tex_ViewRule_pdf='xpdf'

if has("autocmd")
"Binding
au BufRead *.tex map :w! :silent! call Tex_RunLaTeX()

"Auto complete some things ;)
au BufRead *.tex ino $i indent
au BufRead *.tex ino $* cdot
au BufRead *.tex ino $i item
au BufRead *.tex ino $m []O
endif

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Filetype generic
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Todo
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"au BufNewFile,BufRead *.todo so ~/vim_local/syntax/amido.vim

""""""""""""""""""""""""""""""
" => VIM
""""""""""""""""""""""""""""""
if has("autocmd") && v:version>600
au BufRead,BufNew *.vim map :w!:source %
endif

""""""""""""""""""""""""""""""
" => HTML related
""""""""""""""""""""""""""""""
" HTML entities - used by xml edit plugin
let xml_use_xhtml = 1
"let xml_no_auto_nesting = 1

"To HTML
let html_use_css = 0
let html_number_lines = 0
let use_xhtml = 1

""""""""""""""""""""""""""""""
" => Ruby & PHP section
""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""
" => Python section
""""""""""""""""""""""""""""""
""Run the current buffer in python - ie. on leader+space
"au BufNewFile,BufRead *.py so ~/vim_local/syntax/python.vim
"au BufNewFile,BufRead *.py map :w!:!python %
"au BufNewFile,BufRead *.py so ~/vim_local/plugin/python_fold.vim

""Set some bindings up for 'compile' of python
"au BufNewFile,BufRead *.py set makeprg=python -c "import py_compile,sys; sys.stderr=sys.stdout; py_compile.compile(r'%')"
"au BufNewFile,BufRead *.py set efm=%C %.%#,%A File "%f", line %l%.%#,%Z%[%^ ]%@=%m
"au BufNewFile,BufRead *.py nmap :w!:make

""Python iMap
"au BufNewFile,BufRead *.py set cindent
"au BufNewFile,BufRead *.py ino $r return
"au BufNewFile,BufRead *.py ino $s self
"au BufNewFile,BufRead *.py ino $c ####kla
"au BufNewFile,BufRead *.py ino $i import
"au BufNewFile,BufRead *.py ino $p print
"au BufNewFile,BufRead *.py ino $d """"""O

""Run in the Python interpreter
"function! Python_Eval_VSplit() range
" let src = tempname()
" let dst = tempname()
" execute ": " . a:firstline . "," . a:lastline . "w " . src
" execute ":!python " . src . " > " . dst
" execute ":pedit! " . dst
"endfunction
"au BufNewFile,BufRead *.py vmap :call Python_Eval_VSplit()

""""""""""""""""""""""""""""""
" => Cheetah section
"""""""""""""""""""""""""""""""

"""""""""""""""""""""""""""""""
" => Java section
"""""""""""""""""""""""""""""""

""""""""""""""""""""""""""""""
" => JavaScript section
"""""""""""""""""""""""""""""""
"au BufNewFile,BufRead *.js so ~/vim_local/syntax/javascript.vim
"function! JavaScriptFold()
" set foldmethod=marker
" set foldmarker={,}
" set foldtext=getline(v:foldstart)
"endfunction
"au BufNewFile,BufRead *.js call JavaScriptFold()
"au BufNewFile,BufRead *.js imap console.log();hi
"au BufNewFile,BufRead *.js imap alert();hi
"au BufNewFile,BufRead *.js set nocindent
"au BufNewFile,BufRead *.js ino $r return

"au BufNewFile,BufRead *.js ino $d //////ka
"au BufNewFile,BufRead *.js ino $c /****/ka

if has("eval") && has("autocmd")
"vim 5.8.9 on mingw donot know what is , so I avoid to use function
"c/cpp
fun! Abbrev_cpp()
ia cci const_iterator
ia ccl cla
ia cco const
ia cdb bug
ia cde throw
ia cdf /** file/
ia cdg ingroup
ia cdn /** Namespace /
ia cdp param
ia cdt test
ia cdx /**/
ia cit iterator
ia cns Namespace ianamespace
ia cpr protected
ia cpu public
ia cpv private
ia csl std::list
ia csm std::map
ia css std::string
ia csv std::vector
ia cty typedef
ia cun using Namespace ianamespace
ia cvi virtual
ia #i #include
ia #d #define
endfunction

fun! Abbrev_java()
ia #i import
ia #p System.out.println
ia #m public static void main(String[] args)
endfunction

fun! Abbrev_python()
ia #i import
ia #p print
ia #m if __name__=="__main":
endfunction
augroup abbreviation
au!
au FileType cpp,c :call Abbrev_cpp()
au FileType java :call Abbrev_java()
au FileType python :call Abbrev_python()
augroup END
endif

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => MISC
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Remove the Windows ^M
noremap m :%s/r//g

"Paste toggle - when pasting something in, don't indent.
"set pastetoggle=

"Remove indenting on empty line
"map :%s/\s*$//g:noh''

"Super paste
ino :set pastemui+mv'uV'v=:set nopaste

——————————————————————————————————————

在运行过程发生过backspace不能删除前一个字符,但可以向前移动的问题,经过多次查找努力尝试,最后在.vimrc中加入了set paste,最终OK。不过现在在插入模式时会提示Insert (paste),不知其中有蹊跷。

分享到:
评论

相关推荐

    vim配置文件,vim配置文件

    它的高度可定制性是其一大特色,用户可以通过配置文件来调整编辑器的行为以适应个人的工作习惯。本压缩包文件“vim-config”很可能包含了用于自定义Vim环境的设置。 在Linux环境中,Vim配置文件通常位于用户的主...

    vim 环境配置文件

    它的可配置性是其一大亮点,用户可以通过自定义配置文件让Vim更适合个人的工作习惯。本文将深入探讨“vim环境配置文件”的相关知识点,帮助你打造一个高效且个性化的开发环境。 首先,`.vimrc`文件是Vim的配置文件...

    vim配置文件目录

    本压缩包包含的“vim配置文件目录”是一个个人化的Vim设置集合,它允许你利用Git进行版本控制,方便追踪和管理你的配置更改。 首先,让我们来理解一下Vim配置文件的重要性。Vim的默认配置可能不能满足每个用户的...

    vim配置文件

    `vim配置文件`是个人化Vim环境的关键,它允许用户根据自己的需求调整编辑器的行为,提高编程效率。在Vim中,配置文件通常是名为`.vimrc`的文本文件,位于用户的主目录下。 `ctags`和`cscope`是两个非常有用的辅助...

    Source Insight 模仿VIM主题配置文件

    **Source Insight 模仿VIM主题配置文件详解** Source Insight是一款强大的源代码阅读和编辑工具,尤其在编程领域,它以其高效的颜色高亮、代码跳转等功能受到许多开发者的青睐。而VIM(Vi Improved)则是一款历史...

    vim的配置文件设置

    首先,Vim的配置文件通常是`.vimrc`,这是一个位于用户主目录下的文本文件。在Linux系统中,它通常位于`~/.vimrc`或`~/.config/nvim/init.vim`(对于Neovim用户)。这个文件包含了启动Vim时要执行的一系列命令和设置...

    强大的vim配置文件(最新整理)

    本文将深入探讨"强大的vim配置文件"中涉及的关键知识点,以帮助你充分利用这款编辑器。 1. **自动补全**:Vim的自动补全功能极大地提高了编程效率。通过配置,可以在输入括号、函数名、变量名等时自动完成,减少了...

    vim简单的配置文件

    "vim简单的配置文件"指的是.vimrc文件,这是Vim的配置文件,允许用户根据个人喜好自定义编辑器的行为。 在Vim中,.vimrc是启动时自动加载的初始化脚本,通过修改这个文件,我们可以设置快捷键、修改颜色方案、调整...

    Vim 7.3安装文件及配置文件

    Vim(Vi IMproved)是一款强大的文本编辑器,它在程序员和...对于初次接触Vim的用户来说,理解并逐步定制这个配置文件是深入掌握Vim的第一步。而熟练的Vim用户则经常分享他们的 `_vimrc` 设置,以便其他人借鉴和学习。

    vim配置文件.rar

    Vim的配置文件是其个性化和提高效率的关键,通过定制.vimrc文件,用户可以根据个人需求调整编辑器的行为。 _vimrc文件,即Vim的初始设置文件,位于用户的主目录下。在Linux系统中,通常是~/.vimrc,在Windows中...

    Gvim/Vim配置文件(for Java)

    本主题聚焦于Gvim/Vim的配置文件,特别是对于Java开发者的定制。 在Vim中,配置文件主要由`.vimrc`和一些插件组成,这些文件可以极大地提升编辑体验,提高编程效率。`_vimrc`文件是Vim的启动配置文件,它包含了用户...

    很好用的vim配置文件

    在本主题中,我们将深入探讨“很好用的vim配置文件”,该配置文件包含了一些最实用的功能,能够极大地提升Vim的使用体验。 首先,`.vimrc` 文件是Vim的配置文件,它是Vim启动时读取的初始化脚本,用于设定编辑器的...

    vim常用插件配置文件

    "vim常用插件配置文件"这个主题正是围绕如何优化Vim的使用体验,通过安装和配置一系列插件来提升开发效率。 1. **NERDTree**: 这是Vim的一个文件管理器插件,它在左侧提供了一个树形视图,让用户可以方便地浏览和...

    ubuntu 下vim的配置文件

    ### Ubuntu下Vim配置文件详解 #### 一、概述 Vim是一款强大的文本编辑器,在Linux环境下被广泛使用。为了更好地提升工作效率和个人习惯,通常会定制一个`.vimrc`文件来个性化配置Vim的行为。本篇文章将根据提供的...

    vim的配置文件

    Vim(Vi IMproved)是一款强大的文本编辑器,它的配置文件是个人化Vim环境的关键。这个`.tar`压缩包包含了一些重要的组成部分,便于用户快速设置自己的Vim环境。让我们详细了解一下这些组件以及如何利用它们。 首先...

    vim 编辑器 IDE 配置文件 直接使用

    此压缩包包含的Vim配置文件,主要是`.vimrc`文件,它是Vim的启动配置文件,用于定义编辑器的行为和外观。当你将这个配置文件复制到你的用户目录(通常是`~/.vimrc`)下,Vim将按照其中的设定启动,实现IDE的功能。...

Global site tag (gtag.js) - Google Analytics