-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
64 lines (51 loc) · 945 Bytes
/
.vimrc
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
set nocompatible
set t_Co=256
set mouse=a
set mousehide
set lazyredraw
set history=1000
set ttyfast
set laststatus=2
set showmode
set showcmd
set termguicolors
set background=dark
set ttyscroll=1 " Fix flicker when scrolling
set noswapfile
set noerrorbells
set novisualbell
set t_vb=
set relativenumber
set encoding=utf-8
set wrap
set scrolloff=8
set textwidth=79
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmatch
set foldenable
set foldmethod=syntax
set foldlevelstart=99
set autoindent
set expandtab
set smarttab
set hidden
set autoread
set fileformats+=mac
set nrformats-=octal
let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q"
syntax on
let mapleader = " "
nnoremap <SPACE> <Nop>
" Remap 'jj' to escape insert mode
inoremap jj <Esc>
" Save file with Ctrl+S
noremap <C-s> :w<CR>
inoremap <C-s> <Esc>:w<CR>a
" clear search
nnoremap <silent> <leader>/ :let @/=''<cr>
colorscheme desert