diff options
| author | Zhineng Li <im@zhineng.li> | 2026-05-28 11:00:38 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-05-28 11:00:38 +0800 |
| commit | d56598b1f9f8e1c7991bae2ef274e32c7b8bf04a (patch) | |
| tree | e8c659e6bc582fb51d6ec8234cb75b7769c66fd9 | |
| parent | 9124a17b9edb639d71b8d0b97ec42044906d37ad (diff) | |
| download | dotfiles-d56598b1f9f8e1c7991bae2ef274e32c7b8bf04a.tar.gz dotfiles-d56598b1f9f8e1c7991bae2ef274e32c7b8bf04a.zip | |
configure tabs and search
| -rw-r--r-- | nvim/init.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index 35b663f..12fbc30 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1,2 +1,17 @@ " Use system clipboard set clipboard+=unnamedplus + +" Case-insensitive search +set ignorecase + +" Use spaces instead of tabs +set expandtab + +" Display a tab character as four spaces +set tabstop=4 + +" Indent using four spaces +set shiftwidth=4 + +" Clear search highlighting with double Esc +nnoremap <Esc><Esc> :nohlsearch<CR> |
