-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc-base
66 lines (58 loc) · 1.66 KB
/
vimrc-base
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
set nocompatible
filetype plugin on
syntax on
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" editor
if has("gui_running")
set guioptions=i
colorscheme desert
set guifont=DejaVu\ Sans\ Mono\ 12
else
colorscheme delek
endif
set number
set relativenumber
set noswapfile
set mouse=a
set hlsearch
set incsearch
set encoding=utf-8
set path=**
set wildmenu
set smartindent
set nowrap
set ttymouse=sgr
set laststatus=2
set showcmd
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" textwidth
set colorcolumn=80
set textwidth=80
set formatoptions=
au FileType tex,text,gitcommit,markdown set formatoptions=tc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" spell
au FileType tex,text,gitcommit,markdown set spell spelllang=en_us
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" tabs
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" file explorer
set noequalalways
let g:netrw_banner = 0
let g:netrw_liststyle = 0
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 15
let g:netrw_keepdir = 1
let g:netrw_list_hide = netrw_gitignore#Hide() . ',\(^\|\s\s\)\zs\.\S\+'
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" jump to the last position when reopening a file
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" quickfix jump maps
map [q :cp<CR>
map ]q :cn<CR>