aboutsummaryrefslogtreecommitdiff
path: root/options.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-09-26 09:15:40 +0800
committerjdhao <jdhao@hotmail.com>2020-09-26 09:15:40 +0800
commitb65c7c6d702ba0371e917066b55a58cf14f2d1bb (patch)
tree801a9cab3e33120ee8a7781c1ccb28522b59b269 /options.vim
parentc248ab02d40249479ca5c0f75ae580e5f2074239 (diff)
change vim script style from 4-space indent to 2-space
Diffstat (limited to 'options.vim')
-rw-r--r--options.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/options.vim b/options.vim
index 53fde1c..02959ad 100644
--- a/options.vim
+++ b/options.vim
@@ -21,7 +21,7 @@ set updatetime=2000
" Clipboard settings, always use clipboard for all delete, yank, change, put
" operation, see https://stackoverflow.com/q/30691466/6064933
if !empty(provider#clipboard#Executable())
- set clipboard+=unnamedplus
+ set clipboard+=unnamedplus
endif
" Disable creating swapfiles, see https://stackoverflow.com/q/821902/6064933
@@ -114,7 +114,7 @@ set autowrite
set title
set titlestring=
if g:is_linux
- set titlestring+=%(%{hostname()}\ \ %)
+ set titlestring+=%(%{hostname()}\ \ %)
endif
set titlestring+=%(%{expand('%:p:~')}\ \ %)
set titlestring+=%{strftime('%Y-%m-%d\ %H:%M',getftime(expand('%')))}
@@ -164,15 +164,15 @@ set nostartofline
" External program to use for grep command
if executable('rg')
- set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case
- set grepformat=%f:%l:%c:%m
+ set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case
+ set grepformat=%f:%l:%c:%m
endif
" Highlight groups for cursor color
augroup cursor_color
- autocmd!
- autocmd ColorScheme * highlight Cursor cterm=bold gui=bold guibg=cyan guifg=black
- autocmd ColorScheme * highlight Cursor2 guifg=red guibg=red
+ autocmd!
+ autocmd ColorScheme * highlight Cursor cterm=bold gui=bold guibg=cyan guifg=black
+ autocmd ColorScheme * highlight Cursor2 guifg=red guibg=red
augroup END
" Set up cursor color and shape in various mode, ref: