[nvim] collapse the set and setlocal commands because the Vimscript syntax allows it

This commit is contained in:
Dmytro Meleshko 2021-04-25 21:20:14 +03:00
parent 8198c861f4
commit 2c6193a487
5 changed files with 6 additions and 17 deletions

View file

@ -1,3 +1 @@
let g:haskall_test = 1
setlocal foldmethod<
setlocal foldtext<
setlocal foldmethod< foldtext<

View file

@ -1,2 +1 @@
setlocal foldmethod<
setlocal foldtext<
setlocal foldmethod< foldtext<

View file

@ -1,2 +1 @@
setlocal foldmethod<
setlocal foldtext<
setlocal foldmethod< foldtext<

View file

@ -4,5 +4,4 @@
" sourced in `syntax/nginx.vim` in vim-polyglot, which resets the `commentstring`
" set in `ftplugin/nginx.vim` and sets `comments` to some garbage. This script
" undoes that damage.
setlocal comments<
setlocal commentstring=#%s
setlocal comments< commentstring=#%s

View file

@ -58,23 +58,17 @@ set commentstring=//%s
" Cursor and Scrolling {{{
set number
set relativenumber
set cursorline
set number relativenumber cursorline
" remember cursor position
augroup vimrc-editing-remember-cursor-position
autocmd!
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exec "normal! g`\"" | endif
augroup END
" }}}
" Wrapping {{{
set nowrap
set colorcolumn=81,101,121
set nowrap colorcolumn=81,101,121
" }}}