Update git vim repo
This commit is contained in:
parent
e705339fee
commit
19a3611a4e
7 changed files with 21 additions and 3 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -40,3 +40,9 @@
|
||||||
[submodule "bundle/rust.vim"]
|
[submodule "bundle/rust.vim"]
|
||||||
path = bundle/rust.vim
|
path = bundle/rust.vim
|
||||||
url = https://github.com/rust-lang/rust.vim.git
|
url = https://github.com/rust-lang/rust.vim.git
|
||||||
|
[submodule "bundle/mom.vim"]
|
||||||
|
path = bundle/mom.vim
|
||||||
|
url = https://github.com/vim-scripts/mom.vim.git
|
||||||
|
[submodule "bundle/TextFormat"]
|
||||||
|
path = bundle/TextFormat
|
||||||
|
url = https://github.com/vim-scripts/TextFormat.git
|
||||||
|
|
1
bundle/TextFormat
Submodule
1
bundle/TextFormat
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 7fa3514aa0edef9d3acbca60ff2b81a1ccf25f11
|
1
bundle/mom.vim
Submodule
1
bundle/mom.vim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 1ca55ea8c066cd6d05eef5b0853be31d9c984e50
|
Binary file not shown.
1
init.vim
Normal file
1
init.vim
Normal file
|
@ -0,0 +1 @@
|
||||||
|
runtime vimrc
|
5
notes/command-on-save.txt
Normal file
5
notes/command-on-save.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
To run "command" on the current file on each save, use:
|
||||||
|
|
||||||
|
:autocmd BufWritePost * !command <afile>
|
||||||
|
|
||||||
|
<afile> is a built-in variable for the current active file.
|
10
vimrc
10
vimrc
|
@ -2,6 +2,9 @@ silent! runtime bundle/vim-pathogen/autoload/pathogen.vim
|
||||||
silent! execute pathogen#infect()
|
silent! execute pathogen#infect()
|
||||||
|
|
||||||
autocmd BufRead,BufNewFile *.md set filetype=markdown
|
autocmd BufRead,BufNewFile *.md set filetype=markdown
|
||||||
|
autocmd BufWritePost *.mom !pdfmom -t -k <afile> > <afile>.pdf
|
||||||
|
autocmd BufWritePost *.rst !rst2html <afile> <afile>.html
|
||||||
|
autocmd BufWritePost *.tex !lualatex --output-directory=/tmp <afile>
|
||||||
command Q q
|
command Q q
|
||||||
command W w
|
command W w
|
||||||
command WQ wq
|
command WQ wq
|
||||||
|
@ -36,17 +39,18 @@ set ignorecase
|
||||||
set linebreak
|
set linebreak
|
||||||
set list
|
set list
|
||||||
set modelines=0
|
set modelines=0
|
||||||
|
set nojoinspaces
|
||||||
set number
|
set number
|
||||||
set omnifunc=syntaxcomplete#Complete
|
set omnifunc=syntaxcomplete#Complete
|
||||||
set printoptions=paper:A4,duplex:off,header:0
|
set printoptions=paper:A4,duplex:off,header:0
|
||||||
set relativenumber
|
set relativenumber
|
||||||
set ruler
|
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set smartcase
|
set smartcase
|
||||||
set spl=en_gb nospell
|
set spl=en_gb nospell
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set textwidth=72
|
set textwidth=72
|
||||||
set ttyfast
|
set ttyfast
|
||||||
|
set viminfo="NONE"
|
||||||
set wrap
|
set wrap
|
||||||
silent! colorscheme desert
|
silent! colorscheme desert
|
||||||
silent! filetype plugin indent on
|
silent! filetype plugin indent on
|
||||||
|
@ -54,9 +58,9 @@ silent! syntax on
|
||||||
|
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
if has("gui_gtk2")
|
if has("gui_gtk2")
|
||||||
set guifont=Monoid\ 9
|
set guifont=Monospace\ Regular\ 10
|
||||||
elseif has("gui_win32")
|
elseif has("gui_win32")
|
||||||
set guifont=Monoid:h9:cANSI
|
set guifont=Consolas:h10:cANSI
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set columns=88
|
set columns=88
|
||||||
|
|
Loading…
Reference in a new issue