-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
43 lines (39 loc) · 1.84 KB
/
.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
syntax on " Enable syntax highlighting
set belloff=all " Disable all annoying error bells
set background=dark " Hint to colorscheme for its choice of colors
color OceanicNext " Use this color scheme when vim opens
set autoindent " New line mimics leading whitespace of preceding line
set expandtab " Peplace tabs with spaces
set tabstop=4 " Number of spaces per tab
set shiftwidth=4 " When using indent operator >
set history=1000 " Command history; :help history
set showcmd " Show incomplete commands
set number " Line numbering
set ruler " Show row/column cursor position
set cc=80 " Colorize this column
set tw=0 " Textwidth, used for wrapping; 0 prevents wrapping.
set formatoptions+=t " Wrap at textwidth during insert mode
set hidden " Buffer hiding without saves
set showmatch " Hightlight matching brackets
set incsearch " Show initial match as search is being typed
set fileformat=unix " End lines with UNIX LF (omit CR)
set clipboard=unnamed " Enable copying to OS clipboard
set backspace=indent,eol,start " behavior for backspace key
set cursorline " Highlight current line
"set list
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
let g:netrw_dirhistmax=0 " Disable network read/write history
" http://joelonsoftware.com/articles/Unicode.html
if has("multi_byte")
set enc=utf-8
set fencs=ucs-bom,utf-8,latin1
setglobal fenc=utf-8
endif
if has("mouse")
set mouse=a " allow mouse clicks to move cursor in all modes
endif
" For Python files, convert tabs to 4 spaces
autocmd Filetype python setlocal expandtab tabstop=2 shiftwidth=2
autocmd Filetype html setlocal expandtab tabstop=2 shiftwidth=2
" On buffer save, remove trailing whitespace on buffer save
autocmd BufWritePre * %s/\s\+$//e