-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
83 lines (65 loc) · 1.75 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
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'scrooloose/nerdtree'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'fatih/vim-go'
Plugin 'vim-latex/vim-latex'
" Add all your plugins here (note older versions of Vundle used Bundle instead
" of Plugin)
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" standard python code editing
au BufNewFile,BufRead *.py,*.yml
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |
\ set colorcolumn=80 |
\ highlight ColorColumn ctermbg=red
" something for full stack development
au BufNewFile,BufRead *.js,*.html,*.css
\ set tabstop=2 |
\ set softtabstop=2 |
\ set expandtab |
\ set autoindent |
\ set shiftwidth=2
" something for C programming
au BufNewFile,BufRead *.c,*.cpp,*.h,*.hpp
\ set tabstop=4 |
\ set softtabstop=4 |
\ set expandtab |
\ set autoindent |
\ set shiftwidth=4 |
\ set colorcolumn=80 |
\ highlight ColorColumn ctermbg=red
set encoding=utf-8
let python_highlight_all=1
syntax on
" hidy specific extensions in NERDTree
let NERDTreeIgnore = ['\.pyc$']
" standard python code editing
au BufNewFile,BufRead *.rst
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4
" Enable folding
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
set background=dark
" some kind of security
set exrc
set secure
" show first match for pattern
set incsearch
" set tags file to be in the current directory
set tags=tags,./tags,.tags