第一次开通博客,这里只是记录自己在技术学习的道路上一些心得体会,并且最重要的是能和大家交流一下经验.

 

具体的手顺可参照网址



1http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html

2http://blog.csdn.net/t_arm/article/details/8521200

上述中(1)中

看到“下面是精简的,没有插件的vim配置文件,保存到自己的.vimrc文件就能使用。”这一行,把下面的内容复制下来,然后在你当前的用户目录下,新建一个 .vimrc 文件,把里面的内容复制进去。

然后再按照(2)进行插件的安装。

具体安装插件的步骤为======

把我贴的附件中三个.zip文件分别解压

分别将三个解压文件中的doc文件夹中的文件拷贝到/usr/share/vim/vim74/docTrinity没有)

分别将三个解压文件中的plugin文件夹中的文件拷贝到/usr/share/vim/vim74/pluginTrinity有两个文件)

然后在你base目录下执行

ctags –R

并且把

" Open and close all the three plugins on the same time 
nmap <F8>   :TrinityToggleAll<CR> 

" Open and close the srcexpl.vim separately 
nmap <F9>   :TrinityToggleSourceExplorer<CR> 

" Open and close the taglist.vim separately 
nmap <F10>  :TrinityToggleTagList<CR> 

" Open and close the NERD_tree.vim separately 
nmap <F11>  :TrinityToggleNERDTree<CR> 

复制到你的.vimrc文件中。


很感谢上述两个链接中的相关作者与原创!

 

新加打开vim后,自动跳转到上次关闭前编辑的地方

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

 

效果图如下