texlab 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +7 -6
- data/Gemfile.lock +10 -7
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/texlab +0 -0
- data/bin/texlab-compile +18 -6
- data/lib/texlab/debug.rb +7 -0
- data/lib/texlab/figure.rb +32 -0
- data/lib/texlab/hash.rb +52 -0
- data/lib/texlab/latex.rb +22 -0
- data/lib/texlab/macro.rb +101 -0
- data/lib/texlab/math.rb +13 -0
- data/lib/texlab/plot.rb +177 -0
- data/lib/texlab/stats.rb +9 -0
- data/lib/texlab/table.rb +54 -0
- data/lib/texlab/tikz.rb +6 -0
- metadata +59 -44
- data/.document +0 -5
- data/.rspec +0 -1
- data/doc/readme.texlab +0 -284
- data/lib/texlab/boot.rb +0 -437
- data/texlab +0 -3
- data/texlab.gemspec +0 -92
- data/vim/texlab.vim +0 -136
data/vim/texlab.vim
DELETED
@@ -1,136 +0,0 @@
|
|
1
|
-
let $TEXLAB = expand('<sfile>:p:h:h')
|
2
|
-
|
3
|
-
"" The followning lines are copied from evim.vim
|
4
|
-
|
5
|
-
" Don't use Vi-compatible mode.
|
6
|
-
set nocompatible
|
7
|
-
|
8
|
-
" Use the mswin.vim script for most mappings
|
9
|
-
source $VIMRUNTIME/mswin.vim
|
10
|
-
|
11
|
-
" Vim is in Insert mode by default
|
12
|
-
set insertmode
|
13
|
-
|
14
|
-
" Make a buffer hidden when editing another one
|
15
|
-
"set hidden
|
16
|
-
|
17
|
-
" Make cursor keys ignore wrapping
|
18
|
-
inoremap <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR>
|
19
|
-
inoremap <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR>
|
20
|
-
|
21
|
-
" CTRL-F does Find dialog instead of page forward
|
22
|
-
noremap <C-F> :promptfind<CR>
|
23
|
-
vnoremap <C-F> y:promptfind <C-R>"<CR>
|
24
|
-
onoremap <C-F> <C-C>:promptfind<CR>
|
25
|
-
inoremap <C-F> <C-O>:promptfind<CR>
|
26
|
-
cnoremap <C-F> <C-C>:promptfind<CR>
|
27
|
-
inoremap <ESC> <C-O>:nohlsearch<CR><C-\><C-G>
|
28
|
-
|
29
|
-
|
30
|
-
set backspace=2 " allow backspacing over everything in insert mode
|
31
|
-
set autoindent " always set autoindenting on
|
32
|
-
"if has("vms")
|
33
|
-
set nobackup " do not keep a backup file, use versions instead
|
34
|
-
"else
|
35
|
-
"set backup " keep a backup file
|
36
|
-
"endif
|
37
|
-
set history=50 " keep 50 lines of command line history
|
38
|
-
set ruler " show the cursor position all the time
|
39
|
-
set incsearch " do incremental searching
|
40
|
-
set mouse=a " always use the mouse
|
41
|
-
|
42
|
-
" Don't use Ex mode, use Q for formatting
|
43
|
-
map Q gq
|
44
|
-
|
45
|
-
" Switch syntax highlighting on, when the terminal has colors
|
46
|
-
" Highlight the last used search pattern on the next search command.
|
47
|
-
syntax on
|
48
|
-
set hlsearch
|
49
|
-
nohlsearch
|
50
|
-
|
51
|
-
" Only do this part when compiled with support for autocommands.
|
52
|
-
if has("autocmd")
|
53
|
-
|
54
|
-
" Enable file type detection.
|
55
|
-
" Use the default filetype settings, so that mail gets 'tw' set to 72,
|
56
|
-
" 'cindent' is on in C files, etc.
|
57
|
-
" Also load indent files, to automatically do language-dependent indenting.
|
58
|
-
filetype plugin indent on
|
59
|
-
|
60
|
-
" For all text files set 'textwidth' to 78 characters.
|
61
|
-
au FileType text setlocal tw=78
|
62
|
-
|
63
|
-
endif " has("autocmd")
|
64
|
-
|
65
|
-
" end of evim.vim
|
66
|
-
|
67
|
-
set autoindent softtabstop=2 shiftwidth=2 smarttab expandtab smartindent
|
68
|
-
set ignorecase showmatch smartcase incsearch hlsearch
|
69
|
-
set showcmd nohidden
|
70
|
-
set autowrite
|
71
|
-
set background=light
|
72
|
-
set modeline secure
|
73
|
-
set fencs=utf-8,latin2
|
74
|
-
set spelllang=hu spell
|
75
|
-
set linebreak
|
76
|
-
|
77
|
-
" set up ruby
|
78
|
-
rubyfile $TEXLAB/lib/texlab.rb
|
79
|
-
|
80
|
-
exec 'inoremap <F9> <C-O>:!rake -f ' . shellescape(expand('$TEXLAB/lib/texlab.rake')) . ' %:s?\.[^.]\+$?.pdf?<CR>'
|
81
|
-
exec 'noremap <F9> :!rake -f ' . shellescape(expand('$TEXLAB/lib/texlab.rake')) . ' %:s?\.[^.]\+$?.pdf?<CR>'
|
82
|
-
"inoremap <F9> <C-O>:ruby Rake::Task["compile"].invoke<CR>
|
83
|
-
|
84
|
-
exec 'inoremap <F8> <C-O>:!ruby ' . shellescape(expand('$TEXLAB/bin/texlab-console')) . ' %<CR>'
|
85
|
-
exec 'noremap <F8> :!ruby ' . shellescape(expand('$TEXLAB/bin/texlab-console')) . ' %<CR>'
|
86
|
-
|
87
|
-
inoremap <C-O> <C-O>:browse confirm e<CR>
|
88
|
-
inoremap <M-Left> <C-O><C-O>
|
89
|
-
inoremap <M-Left> <C-O><C-I>
|
90
|
-
noremap <C-S> :if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR>
|
91
|
-
vnoremap <C-S> <C-C>:if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR><C-\><C-G>
|
92
|
-
inoremap <C-S> <C-O>:if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR><C-\><C-G>
|
93
|
-
|
94
|
-
inoremap <ESC>: <C-O>:
|
95
|
-
|
96
|
-
|
97
|
-
" set file type for texlab files
|
98
|
-
au BufNewFile,BufRead *.texlab let b:eruby_subtype = "tex" | set ft=eruby
|
99
|
-
" set file type for new files
|
100
|
-
au BufNewFile * let b:eruby_subtype = "tex" | set ft=eruby
|
101
|
-
|
102
|
-
let b:eruby_subtype = "tex" | set ft=eruby
|
103
|
-
|
104
|
-
|
105
|
-
" Delete menu items
|
106
|
-
aunmenu ToolBar.SaveAll
|
107
|
-
aunmenu ToolBar.Print
|
108
|
-
aunmenu ToolBar.RunScript
|
109
|
-
aunmenu ToolBar.LoadSesn
|
110
|
-
aunmenu ToolBar.SaveSesn
|
111
|
-
aunmenu ToolBar.Help
|
112
|
-
aunmenu ToolBar.FindHelp
|
113
|
-
aunmenu ToolBar.RunCtags
|
114
|
-
aunmenu ToolBar.TagJump
|
115
|
-
aunmenu ToolBar.-sep5-
|
116
|
-
aunmenu ToolBar.-sep7-
|
117
|
-
|
118
|
-
set guioptions+=aeimgTrb
|
119
|
-
set guioptions-=t
|
120
|
-
|
121
|
-
" folding
|
122
|
-
set foldcolumn=1 foldmethod=syntax foldlevel=10000
|
123
|
-
|
124
|
-
" load plugins
|
125
|
-
"source <sfile>:p:h/plugin/**/*.vim
|
126
|
-
|
127
|
-
" cd next to file
|
128
|
-
if expand("%") != ""
|
129
|
-
cd %:p:h
|
130
|
-
endi
|
131
|
-
au Bufnew * lcd <afile>:p:h
|
132
|
-
|
133
|
-
" load texlabrc
|
134
|
-
if filereadable(expand("~/.texlabrc"))
|
135
|
-
source ~/.texlabrc
|
136
|
-
endif
|