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<
|
||||
setlocal foldtext<
|
||||
setlocal foldmethod< foldtext<
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
setlocal foldmethod<
|
||||
setlocal foldtext<
|
||||
setlocal foldmethod< foldtext<
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
setlocal foldmethod<
|
||||
setlocal foldtext<
|
||||
setlocal foldmethod< foldtext<
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
" }}}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue