-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.base
90 lines (74 loc) · 1.6 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
" .vimrc
" cnsworder@gmail.com
" simple vim
set nocompatible
set fileencoding=utf-8
set encoding=utf-8
set fileencodings=utf-8,gb18030,gb2312,gbk
set clipboard=unnamed
filetype off
syntax off
set backupdir=/tmp
set directory=/tmp
if has("gui_running")
set guioptions-=T
else
set t_Co=256
" colorscheme tango
endif
if has("gui_running")
"set guifont=文泉驿等宽微米黑\ 12
set guifont=DejaVu\ Sans\ Mono\ 10
"set guifont=Source\ Code\ Pro:h16
endif
set nobackup
set cursorline
"set cursorcolumn
"set hlsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
"set list
"let t_Co=256
set laststatus=2
set number
set nowrap
set cscopeprg=gtags-cscope
set encoding=utf-8
let mapleader=";"
nnoremap <leader>n :set number! <cr>
nnoremap <leader>l :set list! <cr>
nnoremap <leader>b :set wrap!<cr>
nmap <silent> <leader>ww :cw<cr>
nmap <silent> <leader>wc :cclose<cr>
nmap <silent> <leader>s :Ag<space>
nmap <silent> <leader>q :q <cr>
nmap <silent> <leader>qq :q! <cr>
nmap <silent> <leader>w :w <cr>
nmap <silent> <leader>wq :wq <cr>
nmap <silent> <leader>qa :qall<cr>
nmap <silent> <leader>a :A <cr>
map <leader>zz :set foldenable<cr>
map <leader>zn :set nofoldenable<cr>
"set foldmethod=syntax
set foldmethod=indent
set nofoldenable
syntax on
set backspace=indent,eol,start
try
" colorscheme dracula
set background=dark
colorscheme gruvbox
catch
colorscheme ron
endtry
if executable('ag')
set grepprg="ag -nogroup --nocolor"
endif
function! Hackvim()
:e ~/.vimrc
endfunction
command! Hackvim :call Hackvim()
nmap <leader>h :call Hackvim()<cr>