mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] collapse the set and setlocal commands because the Vimscript syntax allows it
This commit is contained in:
parent
8198c861f4
commit
2c6193a487
5 changed files with 6 additions and 17 deletions
|
@ -1,3 +1 @@
|
||||||
let g:haskall_test = 1
|
setlocal foldmethod< foldtext<
|
||||||
setlocal foldmethod<
|
|
||||||
setlocal foldtext<
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
setlocal foldmethod<
|
setlocal foldmethod< foldtext<
|
||||||
setlocal foldtext<
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
setlocal foldmethod<
|
setlocal foldmethod< foldtext<
|
||||||
setlocal foldtext<
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue