Browse Source

Move ftplugin directory, add nvim-r plugin

master
Riyyi 6 years ago
parent
commit
0e60de8c09
  1. 0
      .config/vim/ftplugin/c.vim
  2. 1
      .config/vim/ftplugin/cpp.vim
  3. 16
      .config/vim/ftplugin/tex.vim
  4. 1
      .config/vim/pack/list
  5. 4
      .config/vim/vimrc

0
.config/vim/after/ftplugin/cpp.vim → .config/vim/ftplugin/c.vim

1
.config/vim/ftplugin/cpp.vim

@ -0,0 +1 @@
setlocal colorcolumn=81

16
.config/vim/ftplugin/tex.vim

@ -0,0 +1,16 @@
" General
setlocal cmdheight=1
setlocal colorcolumn=81
setlocal textwidth=80
" Document structuring
nnoremap ;be i\begin{(<>)}<Return><Tab><Return>\end{(<>)}<Esc>kk^
" Text formatting
inoremap ;b \textbf{}(<>)<Esc>T{i
inoremap ;i \textit{}(<>)<Esc>T{i
inoremap ;u \underline{}(<>)<Esc>T{i
inoremap ;e \emph{}(<>)<Esc>T{i
" Next section
noremap <silent> .. <Esc>/(<>)<Enter>"_c4l

1
.config/vim/pack/list

@ -4,5 +4,6 @@ https://github.com/mgee/lightline-bufferline.git
https://github.com/scrooloose/nerdtree.git https://github.com/scrooloose/nerdtree.git
https://github.com/scrooloose/nerdcommenter.git https://github.com/scrooloose/nerdcommenter.git
https://github.com/lervag/vimtex.git https://github.com/lervag/vimtex.git
https://github.com/jalvesaq/Nvim-R.git
opt: opt:
https://github.com/kristijanhusak/vim-hybrid-material.git https://github.com/kristijanhusak/vim-hybrid-material.git

4
.config/vim/vimrc

@ -5,8 +5,8 @@ set nocompatible
" Setup paths " Setup paths
set backupdir=$XDG_CACHE_HOME/vim,/var/tmp,/tmp set backupdir=$XDG_CACHE_HOME/vim,/var/tmp,/tmp
set directory=$XDG_CACHE_HOME/vim,/var/tmp,/tmp set directory=$XDG_CACHE_HOME/vim,/var/tmp,/tmp
set packpath^=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after set packpath^=$XDG_CONFIG_HOME/vim
set runtimepath^=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after set runtimepath^=$XDG_CONFIG_HOME/vim
set viminfo+=n$XDG_CACHE_HOME/vim_history set viminfo+=n$XDG_CACHE_HOME/vim_history
"" General "" General

Loading…
Cancel
Save