-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
71 lines (60 loc) · 1.24 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
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
call pathogen#infect()
" set t_Co=256
set background=dark
color smyck
syntax on
" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
if has("autocmd")
filetype plugin indent on
endif
" let mapleader = ","
" let g:mapleader = ","
" let g:user_emmet_leader_key = '<leader>y'
set autoindent
set autoread
set binary
set expandtab
set ignorecase
set incsearch
set nohidden
" set hlsearch
set noeol
set number
set nobackup
set nocompatible
set noswapfile
set nowrap
set nowritebackup
set ruler
set cindent
set smartindent
" set spell
set showcmd
set showmatch
set smartcase
set smarttab
" set visualbell
set wildmenu
set backspace=indent,eol,start
set encoding=utf8
set history=50
set pastetoggle=<F4>
set shiftwidth=2
set scrolloff=3
set tabstop=2
set timeoutlen=400
" imap <leader>, <Esc>
" autocmd vimenter * NERDTree
nmap <C-n> :NERDTreeToggle<CR>
" nmap <leader>w :w!<cr>
" nmap <leader>q :q<cr>
" nmap <leader>h :nohlsearch<cr>
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
" map <leader>pp :setlocal paste!<cr>
" filetype indent off
au BufNewFile,BufRead *.html,*.css,*.js,*.less,*.sh,*.py setlocal shiftwidth=2 tabstop=2 noexpandtab
au BufNewFile,BufRead *.c,*.h setlocal cc=80