Ubuntu16.04如何把vim打造成为latex编辑器
来源:互联网 发布:final java 参数 编辑:程序博客网 时间:2024/05/16 09:32
其实我也是第一次做这方面的尝试,以下是尝试的内容。
从点击打开链接网站下载一个叫做“vim-latex”的插件。然后解压到“~/.vim”文件夹中。
在“~/.vimrc”中加入如下内容:
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.filetype plugin on" IMPORTANT: win32 users will need to have 'shellslash' set so that latex" can be called correctly.set shellslash" IMPORTANT: grep will sometimes skip displaying the file name if you" search in a singe file. This will confuse Latex-Suite. Set your grep" program to always generate a file-name.set grepprg=grep\ -nH\ $*" OPTIONAL: This enables automatic indentation as you type.filetype indent on" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to" 'plaintex' instead of 'tex', which results in vim-latex not being loaded." The following changes the default filetype back to 'tex':let g:tex_flavor='latex'
在“~/.vim/ftplugin/tex.vim”文件中加入如下内容:
" this is mostly a matter of taste. but LaTeX looks good with just a bit" of indentation.set sw=2" TIP: if you write your \label's as \label{fig:something}, then if you" type in \ref{fig: and press <C-n> you will automatically cycle through" all the figure labels. Very useful!set iskeyword+=:
打开vim,在命令模式下输入如下命令:
helptags ~/.vim/doc
0 0
- Ubuntu16.04如何把vim打造成为latex编辑器
- 尝试把vim打造成为IDE
- Ubuntu16.04 Vim编辑器配置
- 如何把win8打造成为自己熟悉的win7
- ubuntu16.04 latex应用
- ubuntu16.04如何把菜单栏放到下面
- ubuntu16.04如何把菜单栏放到下面
- Vim打造强大的编辑器
- 打造自己的VIM编辑器
- Linux下vim配置,使vim编辑器作为Latex编辑器
- ubuntu16.04 vim-gnome
- ubuntu16.04安装vim
- 配置VIM-将VIM打造成为强大的IDE
- 打造你自己的vim--如何配置vim
- 打造你自己的vim--如何配置vim
- 打造Ubuntu16.10桌面及Vim的C++版 IDE
- 如何退出vim编辑器
- 在 Ubuntu16.04 上安装 LaTeX
- win10安装64位mysql5.7 server
- Sublime Text3 Package Control 在菜单栏中不显示
- CPU是AMD的电脑如何安装android studio,以及studio的环境变量的配置
- Android面试题
- Android Https请求详细demo
- Ubuntu16.04如何把vim打造成为latex编辑器
- 【技术分享】京东电商广告和推荐的机器学习系统实践
- Qt连接mysql数据库,及出现的问题
- C#设计模式学习笔记-单例模式
- RXJava
- Linux内核驱动之热插拔事件
- 图片切换(小数量)
- Java FTP 下载文件和文件夹
- Android里回调(callback)的简单用法