mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update options
This commit is contained in:
parent
10aeaf8ab6
commit
3a64834d16
35
options.vim
35
options.vim
@ -1,7 +1,7 @@
|
|||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
"{ Builtin options and settings
|
"{ Builtin options and settings
|
||||||
" change filechar for folding, vertical split, and message sepator
|
" change filechar for folding, vertical split, and message separator
|
||||||
set fillchars=fold:\ ,vert:\│,msgsep:‾
|
set fillchars=fold:\ ,vert:\│,msgsep:‾
|
||||||
|
|
||||||
" Paste mode toggle, it seems that Neovim's bracketed paste mode
|
" Paste mode toggle, it seems that Neovim's bracketed paste mode
|
||||||
@ -15,8 +15,7 @@ set splitbelow splitright
|
|||||||
" see https://unix.stackexchange.com/q/36882/221410 for more info
|
" see https://unix.stackexchange.com/q/36882/221410 for more info
|
||||||
set timeoutlen=1000
|
set timeoutlen=1000
|
||||||
|
|
||||||
" For CursorHold events
|
set updatetime=1000 " For CursorHold events
|
||||||
set updatetime=1000
|
|
||||||
|
|
||||||
" Clipboard settings, always use clipboard for all delete, yank, change, put
|
" Clipboard settings, always use clipboard for all delete, yank, change, put
|
||||||
" operation, see https://stackoverflow.com/q/30691466/6064933
|
" operation, see https://stackoverflow.com/q/30691466/6064933
|
||||||
@ -45,8 +44,7 @@ set expandtab " expand tab to spaces so that tabs are spaces
|
|||||||
" Set matching pairs of characters and highlight matching brackets
|
" Set matching pairs of characters and highlight matching brackets
|
||||||
set matchpairs+=<:>,「:」,『:』,【:】,“:”,‘:’,《:》
|
set matchpairs+=<:>,「:」,『:』,【:】,“:”,‘:’,《:》
|
||||||
|
|
||||||
" Show line number and relative line number
|
set number relativenumber " Show line number and relative line number
|
||||||
set number relativenumber
|
|
||||||
|
|
||||||
" Ignore case in general, but become case-sensitive when uppercase is present
|
" Ignore case in general, but become case-sensitive when uppercase is present
|
||||||
set ignorecase smartcase
|
set ignorecase smartcase
|
||||||
@ -64,8 +62,7 @@ set showbreak=↪
|
|||||||
set wildmode=list:longest
|
set wildmode=list:longest
|
||||||
set wildignorecase " ignore file and dir name cases in cmd-completion
|
set wildignorecase " ignore file and dir name cases in cmd-completion
|
||||||
|
|
||||||
" Show current line where the cursor is
|
set cursorline " Show current line where the cursor is
|
||||||
set cursorline
|
|
||||||
|
|
||||||
" Minimum lines to keep above and below cursor when scrolling
|
" Minimum lines to keep above and below cursor when scrolling
|
||||||
set scrolloff=3
|
set scrolloff=3
|
||||||
@ -77,11 +74,9 @@ set mousemodel=popup " Set the behaviour of mouse
|
|||||||
" Do not show mode on command line since vim-airline can show it
|
" Do not show mode on command line since vim-airline can show it
|
||||||
set noshowmode
|
set noshowmode
|
||||||
|
|
||||||
" Fileformats to use for new files
|
set fileformats=unix,dos " Fileformats to use for new files
|
||||||
set fileformats=unix,dos
|
|
||||||
|
|
||||||
" The way to show the result of substitution in real time for preview
|
set inccommand=nosplit " Show the result of substitution in real time for preview
|
||||||
set inccommand=nosplit
|
|
||||||
|
|
||||||
" Ignore certain files and folders when globbing
|
" Ignore certain files and folders when globbing
|
||||||
set wildignore+=*.o,*.obj,*.bin,*.dll,*.exe
|
set wildignore+=*.o,*.obj,*.bin,*.dll,*.exe
|
||||||
@ -93,14 +88,8 @@ set wildignore+=*.aux,*.bbl,*.blg,*.brf,*.fls,*.fdb_latexmk,*.synctex.gz
|
|||||||
" Ask for confirmation when handling unsaved or read-only files
|
" Ask for confirmation when handling unsaved or read-only files
|
||||||
set confirm
|
set confirm
|
||||||
|
|
||||||
" Do not use visual and errorbells
|
set visualbell noerrorbells " Do not use visual and errorbells
|
||||||
set visualbell noerrorbells
|
set history=500 " The number of command and search history to keep
|
||||||
|
|
||||||
" The level we start to fold
|
|
||||||
set foldlevel=0
|
|
||||||
|
|
||||||
" The number of command and search history to keep
|
|
||||||
set history=500
|
|
||||||
|
|
||||||
" Use list mode and customized listchars
|
" Use list mode and customized listchars
|
||||||
set list listchars=tab:▸\ ,extends:❯,precedes:❮,nbsp:+
|
set list listchars=tab:▸\ ,extends:❯,precedes:❮,nbsp:+
|
||||||
@ -131,7 +120,6 @@ set shortmess+=c
|
|||||||
set completeopt+=menuone " Show menu even if there is only one item
|
set completeopt+=menuone " Show menu even if there is only one item
|
||||||
set completeopt-=preview " Disable the preview window
|
set completeopt-=preview " Disable the preview window
|
||||||
|
|
||||||
" Settings for popup menu
|
|
||||||
set pumheight=10 " Maximum number of items to show in popup menu
|
set pumheight=10 " Maximum number of items to show in popup menu
|
||||||
|
|
||||||
" Insert mode key word completion setting
|
" Insert mode key word completion setting
|
||||||
@ -144,8 +132,7 @@ set spellsuggest+=10 " The number of suggestions shown in the screen for z=
|
|||||||
" see http://vim.1045645.n5.nabble.com/shiftround-option-td5712100.html
|
" see http://vim.1045645.n5.nabble.com/shiftround-option-td5712100.html
|
||||||
set shiftround
|
set shiftround
|
||||||
|
|
||||||
" Virtual edit is useful for visual block edit
|
set virtualedit=block " Virtual edit is useful for visual block edit
|
||||||
set virtualedit=block
|
|
||||||
|
|
||||||
" Correctly break multi-byte characters such as CJK,
|
" Correctly break multi-byte characters such as CJK,
|
||||||
" see https://stackoverflow.com/q/32669814/6064933
|
" see https://stackoverflow.com/q/32669814/6064933
|
||||||
@ -158,9 +145,7 @@ set tildeop
|
|||||||
" see https://stackoverflow.com/q/4760428/6064933
|
" see https://stackoverflow.com/q/4760428/6064933
|
||||||
set nojoinspaces
|
set nojoinspaces
|
||||||
|
|
||||||
" Text after this column number is not highlighted
|
set synmaxcol=200 " Text after this column number is not highlighted
|
||||||
set synmaxcol=200
|
|
||||||
|
|
||||||
set nostartofline
|
set nostartofline
|
||||||
|
|
||||||
" External program to use for grep command
|
" External program to use for grep command
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user