Repository navigation
Expand file tree
/
Copy path_vimrc
More file actions
100 lines (75 loc) · 1.97 KB
/
Copy path_vimrc
File metadata and controls
100 lines (75 loc) · 1.97 KB
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
91
92
93
94
95
96
97
98
99
100
" Automatic reloading of .vimrc
autocmd! bufwritepost _vimrc source %
set nocompatible " be iMproved, required
syntax enable
set nu
filetype off " required
set backspace=2
set shellslash
" easier moving of code blocks
vnoremap < <gv " better indentation
vnoremap > >gv " better indentation
" set the runtime path to include Vundle and initialize
set rtp+=~/vimfiles/bundle/Vundle.vim
call vundle#begin('~/vimfiles/bundle')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" vim-solarized
Plugin 'flazz/vim-colorschemes'
" Syntastic
"Plugin 'scrooloose/syntastic'
" NERDTree
Plugin 'scrooloose/nerdtree'
" emmet
"Plugin 'mattn/emmet-vim'
" rust syntax highlighting, file detection, formatting, Syntastic integration
"Plugin 'rust-lang/rust.vim'
" golang development plugin
"Plugin 'fatih/vim-go'
" ctrlp
"Plugin 'kien/ctrlp.vim'
" Surround
"Plugin 'tpope/vim-surround'
" numbers
"Plugin 'myusuf3/numbers.vim'
" neocomplete
"Plugin 'Shougo/neocomplete'
" auto-pairs
Plugin 'jiangmiao/auto-pairs'
" endwish
"Plugin 'tpope/vim-endwise'
" indentpython
Plugin 'vim-scripts/indentpython.vim'
call vundle#end() " required
filetype plugin indent on " required
" map CTRL+n to open and close NERDTree
map <C-n> :NERDTreeToggle<CR>
" Color scheme
if has("gui_running")
set t_Co=256
color solarized
set background=dark
" set guifont=Iosevka:h12
set guifont=Consolas:h12
endif
" tabs to spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround
set expandtab
" Disable backup and swap files
set nobackup
set nowritebackup
set noswapfile
" Unbind arrow keys
for prefix in ['i', 'n', 'v']
for key in ['<Up>', '<Down>', '<Left>', '<Right>']
exe prefix . "noremap " . key . " <Nop>"
endfor
endfor
" JS, html, css
au! BufNewFile,BufRead *.js set tabstop=2 softtabstop=2 shiftwidth=2
au! BufNewFile,BufRead *.html set tabstop=2 softtabstop=2 shiftwidth=2
au! BufNewFile,BufRead *.css set tabstop=2 softtabstop=2 shiftwidth=2
set laststatus=2