-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
87 lines (68 loc) · 1.6 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" colorschemes
Plugin 'tomasiser/vim-code-dark'
" comment
Plugin 'preservim/nerdcommenter'
" vim-airline
Plugin 'vim-airline/vim-airline'
" auto-pairs
Plugin 'jiangmiao/auto-pairs'
" vim-surround
Plugin 'tpope/vim-surround'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
let g:airline_powerline_fonts=1
let g:NERDSpaceDelims = 1
let g:NERDCommentEmptyLines = 1
set noswapfile
set cms=#%s
set incsearch
set hlsearch
set laststatus=2
set encoding=utf-8
set t_Co=256
set termencoding=utf-8
set number
set ttimeoutlen=50
set mouse=a
" mac delete
set backspace=2
set cursorline
set ignorecase
set tabstop=4 shiftwidth=4 expandtab
set autoindent
set smartindent
set pastetoggle=<F2>
set listchars=tab:▸\ ,eol:¬,space:·
set list
" theme
syntax on
set background=dark
silent! colorscheme codedark
" map
map <C-/> <plug>NERDCommenterToggle
imap <C-/> <plug>NERDCommenterInsert
nnoremap <leader>n :nohl<CR>
nnoremap <leader>w :w<CR>
" line wrap
nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk
nnoremap <Down> gj
nnoremap <Up> gk
vnoremap <Down> gj
vnoremap <Up> gk
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
nmap m :m +1<CR>
nmap M :m -2<CR>