Add UltiSnips plugin and define markdown snippets
This commit is contained in:
parent
c15001531b
commit
f64160510a
|
@ -0,0 +1,16 @@
|
||||||
|
snippet firma "Signature"
|
||||||
|
Un saludo,
|
||||||
|
|
||||||
|
Amin Kasrou Aouam
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet meta "YAML metadata for pandoc"
|
||||||
|
---
|
||||||
|
title: "$1"
|
||||||
|
author: [Amin Kasrou Aouam]
|
||||||
|
date: "`date +%F`"
|
||||||
|
titlepage: true
|
||||||
|
logo: /home/coolneng/Pictures/Logos/UGR.png
|
||||||
|
...
|
||||||
|
|
||||||
|
endsnippet
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 6fdc3647f72e0a1f321ea6bd092ecd01f7c187ba
|
22
vim/.vimrc
22
vim/.vimrc
|
@ -10,15 +10,15 @@ set t_Co=256
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
""MuComplete
|
""MuComplete
|
||||||
set completeopt+=menuone
|
"set completeopt+=menuone
|
||||||
set completeopt+=noinsert
|
"set completeopt+=noinsert
|
||||||
set shortmess+=c
|
"set shortmess+=c
|
||||||
set hlsearch
|
"set hlsearch
|
||||||
set incsearch
|
"set incsearch
|
||||||
set ignorecase
|
"set ignorecase
|
||||||
set smartcase
|
"set smartcase
|
||||||
let g:mucomplete#enable_auto_at_startup = 1
|
"let g:mucomplete#enable_auto_at_startup = 1
|
||||||
let g:mucomplete#completion_delay = 1
|
"let g:mucomplete#completion_delay = 1
|
||||||
""Keybindings
|
""Keybindings
|
||||||
set pastetoggle=<F2>
|
set pastetoggle=<F2>
|
||||||
map <Space> :noh<CR>
|
map <Space> :noh<CR>
|
||||||
|
@ -35,6 +35,10 @@ let g:vim_markdown_math=1
|
||||||
autocmd FileType markdown nnoremap <silent> <F3> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template eisvogel --listings &<cr>
|
autocmd FileType markdown nnoremap <silent> <F3> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template eisvogel --listings &<cr>
|
||||||
autocmd FileType markdown nnoremap <silent> <F4> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf -t beamer -V theme:metropolis --listings &<cr>
|
autocmd FileType markdown nnoremap <silent> <F4> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf -t beamer -V theme:metropolis --listings &<cr>
|
||||||
autocmd FileType markdown nnoremap <silent> <F5> :<c-u>!zathura %:p:r:S.pdf &<cr>
|
autocmd FileType markdown nnoremap <silent> <F5> :<c-u>!zathura %:p:r:S.pdf &<cr>
|
||||||
|
"" Snippets
|
||||||
|
let g:UltiSnipsExpandTrigger = '<tab>'
|
||||||
|
let g:UltiSnipsJumpForwardTrigger = '<tab>'
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
|
||||||
""Quitting whether Goyo is active or not
|
""Quitting whether Goyo is active or not
|
||||||
function! g:Goyo_before()
|
function! g:Goyo_before()
|
||||||
let b:quitting = 0
|
let b:quitting = 0
|
||||||
|
|
Loading…
Reference in New Issue