Skip to content
/ vimrc Public
forked from Shirui816/vimrc

我的vim配置,由本人整理及修改。用vundle管理插件,针对Python、LaTeX、Fortran等设置。

Notifications You must be signed in to change notification settings

coeotic/vimrc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim设置

很重要的一点:我的vim-latexsuite和vim-supertab是我用pacman安装的(我用arch),如果你的源里没有这两个插件请自行在vimrc里添加相对应的Bundle:

Bundle 'vim-scripts/LaTeX-Suite-aka-Vim-LaTeX'    
Bundle 'vim-scripts/SuperTab'

cscope.vim用法:

我稍微修改了一下它的打开方式。

<leader>f<mode, such as g, i, s.......> to find file(s), :cscopegen <root path of project> to create cs link, :cscopegen to update.

安装pip

arch:pacman -S python-pip
ubuntu:apt-get install pip
然后sudo pip install dbgp pep8 flake8 pyflakes

安装 ctags git 和 vim/gvim

ubuntu:apt-get install gvim exuberant-ctags git
arch:pacman -S gvim git ctags
启动vim,如果你没有~/.vim文件夹,那么一切会自动运行。
Powerline貌似官方又出了vim版本,可以直接bundle~
Powerline Git,各位可以去看看,这里有字体补丁~你可以使用自己喜欢的字体。

Ctags关于LaTeX的设置

把下面东西加入到~/.ctags

--langdef=latex   
--langmap=latex:.tex   
--regex-latex=/^\\tableofcontents/TABLE OF CONTENTS/s,toc/   
--regex-latex=/^\\frontmatter/FRONTMATTER/s,frontmatter/   
--regex-latex=/^\\mainmatter/MAINMATTER/s,mainmatter/   
--regex-latex=/^\\backmatter/BACKMATTER/s,backmatter/   
--regex-latex=/^\\bibliography\{/BIBLIOGRAPHY/s,bibliography/   
--regex-latex=/^\\part[[:space:]]*(\[[^]]*\])?[[:space:]]*\{([^}]+)\}/PART \2/s,part/   
--regex-latex=/^\\part[[:space:]]*\*[[:space:]]*\{([^}]+)\}/PART \1/s,part/   
--regex-latex=/^\\chapter[[:space:]]*(\[[^]]*\])?[[:space:]]*\{([^}]+)\}/CHAP \2/s,chapter/   
--regex-latex=/^\\chapter[[:space:]]*\*[[:space:]]*\{([^}]+)\}/CHAP \1/s,chapter/   
--regex-latex=/^\\section[[:space:]]*(\[[^]]*\])?[[:space:]]*\{([^}]+)\}/\. \2/s,section/   
--regex-latex=/^\\section[[:space:]]*\*[[:space:]]*\{([^}]+)\}/\. \1/s,section/   
--regex-latex=/^\\subsection[[:space:]]*(\[[^]]*\])?[[:space:]]*\{([^}]+)\}/\.\. \2/s,subsection/   
--regex-latex=/^\\subsection[[:space:]]*\*[[:space:]]*\{([^}]+)\}/\.\. \1/s,subsection/   
--regex-latex=/^\\subsubsection[[:space:]]*(\[[^]]*\])?[[:space:]]*\{([^}]+)\}/\.\.\. \2/s,subsubsection/   
--regex-latex=/^\\subsubsection[[:space:]]*\*[[:space:]]*\{([^}]+)\}/\.\.\. \1/s,subsubsection/   
--regex-latex=/^\\includegraphics[[:space:]]*(\[[^]]*\])?[[:space:]]*(\[[^]]*\])?[[:space:]]*\{([^}]+)\}/\3/g,graphic+listing/   
--regex-latex=/^\\lstinputlisting[[:space:]]*(\[[^]]*\])?[[:space:]]*(\[[^]]*\])?[[:space:]]*\{([^}]+)\}/\3/g,graphic+listing/   
--regex-latex=/\\label[[:space:]]*\{([^}]+)\}/\1/l,label/   
--regex-latex=/\\ref[[:space:]]*\{([^}]+)\}/\1/r,ref/   
--regex-latex=/\\pageref[[:space:]]*\{([^}]+)\}/\1/p,pageref/

Patcher用法

fontpatcher.py font-name.ttf

然后将生成的字体移动到~/.fonts/里面,fc-cache -fv刷新缓存。

About

我的vim配置,由本人整理及修改。用vundle管理插件,针对Python、LaTeX、Fortran等设置。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published