[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< foldtext<
setlocal foldmethod<
setlocal foldtext<

View File

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

View File

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

View File

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

View File

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