-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
100 lines (75 loc) · 2.7 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
88
89
90
91
92
93
94
95
96
97
98
99
100
" Run as Vim and not compatible with Vi
set nocompatible
" Each time we edit a new or existing file the type of the file is recognized
" and the filetype option is set. The FileType event is sent. This event can
" be used to enable file specific syntax highlighting or loading of options
" specific to that file type.
filetype on
" When you edit a file vim will load the plugin file if there is a plugin file
" for the detected file type. The plugin file is where you can have options
" that are specific to a certain file type.
filetype plugin on
" Use utf-8 as the file encoding
set encoding=utf-8
" Show line numbers
set number
" Enable syntax highlighting
syntax enable
" Use the goodwolf colorscheme found in ~/.vim.d/colors/goodwolf.vim
" This theme was downloaded from here.
" https://github.com/sjl/badwolf/blob/master/colors/goodwolf.vim
" colorscheme goodwolf
" Set the maximum text width. The purpose is to wrap lines automatically.
set textwidth=120
" Make backspace behave in a more sane manner.
set backspace=indent,eol,start
" Disable the bell.
set belloff=all
" Disable showing matching parenthesis and brackets
" See :help matchparen for more info
let loaded_matchparen=1
" No backup files
set nobackup
" No swap files. We have enough memory
set noswapfile
" Turn off the startup message.
set shortmess+=I
" Open new splits on the right or below.
set splitbelow
set splitright
" Navigate splits using Ctrl plus one of h,j,k,l
" Press Ctrl plus the standard Vim movement key to move to
" the pane in that direction.
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Make it so that files that are opened are fully unfolded.
set foldlevelstart=99
" Specify a directory for plugins
" This should not be a standard directory like 'plugins'
call plug#begin('~/.vim/plugged')
"Install EditorConfig plugin
Plug 'editorconfig/editorconfig-vim'
" Install vim-virtualenv plugin to handle Python virtualenvs.
" :help virtualenv
Plug 'jmcantrell/vim-virtualenv'
" Install SimplyFold to improve folding of python code.
Plug 'tmhedberg/SimpylFold'
" Install Go language support
Plug 'fatih/vim-go'
" Initialize plugin system
call plug#end()
" Set color scheme
" https://github.com/tomasr/molokai
colorscheme molokai
" Use lightgrey as the color for comments
highlight Comment ctermfg=lightgrey
" Enable file type plugins.
" Enable filetype specific indent files to do automatic language-dependent indenting.
" The plugins should be placed in the ~/.vim/ftplugins/ and ~/.vim/after/ftplugins/
" directories. The ~/.vim/indent/ folder is used for file type specific indentation code.
" :help filetype
" :help filetype-plugins
" :help ftplugin-overrule
filetype plugin indent on