summaryrefslogtreecommitdiff
path: root/nvim/init.vim
blob: fe50fd810f88993d201948ec98a551b233a2bc26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
" Use system clipboard
set clipboard+=unnamedplus

" Case-insensitive search
set ignorecase

" Keep long lines unwrapped
set nowrap

" Use spaces instead of tabs
set expandtab

" Display a tab character as four spaces
set tabstop=4

" Indent using four spaces
set shiftwidth=4

" Allow trusted per-directory local configuration files
set exrc
set secure

" Customize the prefix key
let mapleader = ","

" Clear search highlighting with double Esc
nnoremap <Esc><Esc> :nohlsearch<CR>

" Leave terminal mode more quickly
tnoremap <Esc><Esc> <C-\><C-n>

"
" Netrw: the built-in file explorer
"

" Hide the banner
let g:netrw_banner = 0

" The size of the Netrw window in percentage when it splits
let g:netrw_winsize = 30

" Toggle the file explorer
map <Leader><Leader> :Lexplore<CR>