diff options
author | Urbain Vaes <urbain@vaes.uk> | 2021-09-30 20:48:21 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2021-09-30 20:48:21 +0200 |
commit | ee07f3a792cb0a09fcd87dd31eb8ea596b8365a3 (patch) | |
tree | b130fb4be747885e1baec50557141607e7716ca7 /vim | |
parent | 179918a8892a78c428774e35afecfc3df875d3c7 (diff) |
Minor changes
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/after/ftplugin/tex/mappings.vim | 28 | ||||
-rw-r--r-- | vim/.vim/spell/en.utf-8.add.spl | bin | 1207 -> 1220 bytes | |||
-rw-r--r-- | vim/.vimrc | 11 |
3 files changed, 28 insertions, 11 deletions
diff --git a/vim/.vim/after/ftplugin/tex/mappings.vim b/vim/.vim/after/ftplugin/tex/mappings.vim index 2b25c4a..a69f752 100644 --- a/vim/.vim/after/ftplugin/tex/mappings.vim +++ b/vim/.vim/after/ftplugin/tex/mappings.vim @@ -1,35 +1,47 @@ +" iabbrev <buffer> (( \left( +" iabbrev <buffer> )) \right) +" iabbrev <buffer> {{ \left\{ +" iabbrev <buffer> }} \right\} +" iabbrev <buffer> [[ \left[ +" iabbrev <buffer> ]] \right] +iabbrev <buffer> :: \colon +inoremap <buffer> ^^ ^{}<Left> +inoremap <buffer> __ _{}<Left> + iabbrev <buffer> ga \alpha iabbrev <buffer> gb \beta iabbrev <buffer> gc \xi -iabbrev <buffer> gg \gamma iabbrev <buffer> gd \delta iabbrev <buffer> ge \varepsilon -iabbrev <buffer> gz \zeta -iabbrev <buffer> gy \eta +iabbrev <buffer> gf \phi +iabbrev <buffer> gg \gamma iabbrev <buffer> gh \theta iabbrev <buffer> gi \iota iabbrev <buffer> gk \kappa iabbrev <buffer> gl \lambda iabbrev <buffer> gm \mu iabbrev <buffer> gn \nu -iabbrev <buffer> gx \chi +iabbrev <buffer> gp \pi +iabbrev <buffer> gq \psi iabbrev <buffer> gr \rho iabbrev <buffer> gs \sigma iabbrev <buffer> gt \tau -iabbrev <buffer> gf \phi -iabbrev <buffer> gp \pi iabbrev <buffer> gw \omega +iabbrev <buffer> gx \chi +iabbrev <buffer> gy \eta +iabbrev <buffer> gz \zeta iabbrev <buffer> gB \Beta iabbrev <buffer> gC \Xi -iabbrev <buffer> gG \Gamma iabbrev <buffer> gD \Delta +iabbrev <buffer> gF \Phi +iabbrev <buffer> gG \Gamma iabbrev <buffer> gH \Theta iabbrev <buffer> gL \Lambda iabbrev <buffer> gP \Pi +iabbrev <buffer> gQ \Psi iabbrev <buffer> gS \Sigma iabbrev <buffer> gW \Omega -iabbrev <buffer> gF \Phi nnoremap <buffer> <LocalLeader>i :VimtexCompile<CR> nnoremap <buffer> <LocalLeader>e :VimtexErrors<CR> diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl Binary files differindex 8a0bad8..94a2c8d 100644 --- a/vim/.vim/spell/en.utf-8.add.spl +++ b/vim/.vim/spell/en.utf-8.add.spl @@ -64,8 +64,8 @@ endif if has("nvim") && hostname() != "peuplier" Plug '~/dotfiles/plugins/nvim-i3scratchpad' Plug 'neovim/nvim-lspconfig' - Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} - Plug 'nvim-treesitter/playground' + " Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + " Plug 'nvim-treesitter/playground' endif " Colors @@ -212,7 +212,9 @@ let g:tex_conceal= '' let g:tex_flavor='latex' augroup latex + autocmd! autocmd FileType tex let b:surround_124 = "\\lvert \r \\rvert" + autocmd FileType tex let b:surround_110 = "\\lVert \r \\rVert" augroup END "" Vim options {{{1 @@ -393,7 +395,7 @@ if has("nvim") nnoremap <Leader>t :b term \| norm A<cr> endif -if has("nvim") +if has("nvim") && &runtimepath =~ 'treesitter' lua <<EOF require'nvim-treesitter.configs'.setup { highlight = { enable = true }, @@ -434,3 +436,6 @@ let g:ripple_repls = { \ }, \ "r": "radian" \ } + +" Vim sensible fix +inoremap <c-w> <c-w> |