-
Notifications
You must be signed in to change notification settings - Fork 0
/
neovimrc
48 lines (37 loc) · 933 Bytes
/
neovimrc
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
44
45
46
47
48
set number
set expandtab
syntax on
filetype on
set ruler
set autoindent
set smartindent
set tabstop=4
set shiftwidth=0
set softtabstop=-1
set foldmethod=indent
set hlsearch
set incsearch
set ignorecase
set smartcase
"Enable mouse click for nvim
set mouse=a
"Fix cursor replacement after closing nvim
set guicursor=
"Shift + Tab does inverse tab
inoremap <S-Tab> <C-d>
"See invisible characters
"set list listchars=tab:>\ ,trail:+,eol:$
"wrap to next line when end of line is reached
set whichwrap+=<,>,[,]
map <M-y> 4<C-y>
map <M-w> 4<C-e>
map <M-j> 4j
map <M-k> 4k
" Search for visually selected text
" To use the mapping, visually select the characters that are wanted in the search,
" then type // to search for the next occurrence of the selected text. Then press n
" to search for the next occurrence.
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
call plug#begin()
Plug 'github/copilot.vim'
call plug#end()