diff options
author | Camil Staps | 2023-02-15 17:13:11 +0100 |
---|---|---|
committer | Camil Staps | 2023-02-15 17:13:11 +0100 |
commit | 79f3cde08db3a2838e1a45853ad1170606663333 (patch) | |
tree | 09b0dc1e1a90a1085596659fb89a4e2ede810b4a /vim | |
parent | Update vim spellfile (diff) |
Vim: add snug; fold clean using syntax; set textwidth by default for folding comments
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/after/ftplugin/clean.vim | 2 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/tex.vim | 1 | ||||
-rw-r--r-- | vim/.vimrc | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/vim/.vim/after/ftplugin/clean.vim b/vim/.vim/after/ftplugin/clean.vim index 1be7ff8..d7007e3 100644 --- a/vim/.vim/after/ftplugin/clean.vim +++ b/vim/.vim/after/ftplugin/clean.vim @@ -1,5 +1,5 @@ setlocal autoindent -setlocal foldmethod=manual +setlocal foldmethod=syntax setlocal tags+=.nitrile-tags; setlocal tags+=nitrile-packages/linux-x64/*/lib/.nitrile-tags; setlocal tags+=nitrile-packages/linux-x86/*/lib/.nitrile-tags; diff --git a/vim/.vim/after/ftplugin/tex.vim b/vim/.vim/after/ftplugin/tex.vim index 6de2aea..a3b5ee2 100644 --- a/vim/.vim/after/ftplugin/tex.vim +++ b/vim/.vim/after/ftplugin/tex.vim @@ -1,5 +1,6 @@ setlocal spell spelllang=en_gb setlocal tabstop=2 shiftwidth=2 +setlocal formatoptions-=t function! SyncTeXToPDF() call system('zathura --synctex-forward ' . @@ -20,6 +20,7 @@ Plugin 'andymass/vim-matchup' " TeX parentheses; see https://git Plugin 'Shirk/vim-gas' " GNU Assembly Plugin 'git@gitlab.com:clean-and-itasks/vim-clean' " Clean Plugin 'camilstaps/vim-fuspel', {'pinned': 1} " Fuspel +Plugin 'camilstaps/vim-snug', {'pinned': 1} " Snug Plugin 'iamcco/markdown-preview.nvim' " live markdown preview with :MarkdownPreview Plugin 'https://gitlab.com/camilstaps/nir', {'pinned': 1, 'rtp': 'vim'} " Nir Plugin 'camilstaps/vim-sil', {'pinned': 1} " Sil @@ -57,6 +58,7 @@ autocmd! BufWritePost .Xresources !xrdb -merge % " Common settings set tabstop=4 shiftwidth=4 set colorcolumn=80 +set textwidth=79 set linebreak set number set path+=** |