-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
62 lines (54 loc) · 1.14 KB
/
vimrc
File metadata and controls
62 lines (54 loc) · 1.14 KB
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
" ~/.vimrc
" Seongho's dotfiles
" ========== General ==========
set nocompatible
set encoding=utf-8
set fileencoding=utf-8
" ========== UI ==========
syntax on
set number
set cursorline
set showcmd
set showmatch
set wildmenu
set laststatus=2
set signcolumn=yes
set termguicolors
set background=dark
colorscheme one-monokai
" ========== Search ==========
set hlsearch
set incsearch
set ignorecase
set smartcase
" ========== Indent ==========
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
" ========== Behavior ==========
set backspace=indent,eol,start
set scrolloff=8
set mouse=a
set clipboard=unnamed
set hidden
set noswapfile
set nobackup
set undofile
set undodir=~/.vim/undodir
" ========== Key mappings ==========
let mapleader = " "
nnoremap <leader>w :w<CR>
nnoremap <leader>q :q<CR>
nnoremap <Esc><Esc> :noh<CR>
" Create undo directory if missing
if !isdirectory(expand("~/.vim/undodir"))
call mkdir(expand("~/.vim/undodir"), "p")
endif
" ========== Local overrides ==========
" Machine-specific config. Not managed by dotfiles.
if filereadable(expand("~/.vimrc.local"))
source ~/.vimrc.local
endif