-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvscodevimrc
69 lines (60 loc) · 1.32 KB
/
vscodevimrc
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
" Key mappings
nnoremap <localleader>q :q<CR>
nnoremap <localleader>o :Rfinder<CR>
nnoremap <C-h> <C-w><C-h>
nnoremap <C-j> <C-w><C-j>
nnoremap <C-k> <C-w><C-k>
nnoremap <C-l> <C-w><C-l>
nnoremap <MiddleMouse> <Nop>
nnoremap <2-MiddleMouse> <Nop>
nnoremap <3-MiddleMouse> <Nop>
nnoremap <4-MiddleMouse> <Nop>
inoremap <MiddleMouse> <Nop>
inoremap <2-MiddleMouse> <Nop>
inoremap <3-MiddleMouse> <Nop>
inoremap <4-MiddleMouse> <Nop>
vnoremap <MiddleMouse> <Nop>
vnoremap <2-MiddleMouse> <Nop>
vnoremap <3-MiddleMouse> <Nop>
vnoremap <4-MiddleMouse> <Nop>
" Enable filetype plugins and indentation
filetype plugin indent on
" Editor settings
set number
set ruler
set ts=4
set sw=4
set sts=4
set expandtab
set smarttab
set autoindent
set smartindent
set splitbelow
set splitright
set encoding=utf-8
set cmdheight=1
set updatetime=300
set signcolumn=yes
set scrolloff=3
set conceallevel=0
set nofoldenable
set ignorecase
set smartcase
set shortmess+=c
set mouse=
syntax on
syntax enable
set colorcolumn=120
set background=light
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
set termguicolors
set noswapfile
" Escape key mapping
nnoremap <esc> <C-c>
" Filetype detection for .env files
augroup filetypedetect
autocmd!
autocmd BufNewFile,BufRead .env set filetype=sh
autocmd BufNewFile,BufRead .env.* set filetype=sh
augroup END