-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbasic_vimrc
More file actions
48 lines (41 loc) · 819 Bytes
/
basic_vimrc
File metadata and controls
48 lines (41 loc) · 819 Bytes
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
" Basic VIM config
set nocompatible
set encoding=utf-8
set noswapfile
set nobackup
set nowb
set clipboard^=unnamed,unnamedplus
set backspace=indent,eol,start
set autoread
set hidden
" layout and style
set visualbell
set background=dark
set nu
set cmdheight=2
set showmode
colorscheme desert
" formatting
filetype on
filetype plugin indent on
syntax on
au BufNewFile,BufRead *.js, *.html, *.css, *.json, *.yaml;
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
au BufNewFile,BufRead *.py;
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix
" searching and spelling
set ignorecase
set smartcase
set hlsearch
set spell
hi clear SpellBad
hi SpellBad cterm=underline ctermfg=red
imap jj <esc>