-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
75 lines (52 loc) · 1.29 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
"enable pathogen
execute pathogen#infect()
"enable syntax, filetype detection and indentation by filetype
syntax on
filetype plugin on
filetype plugin indent on
"display line numbers
set number
"display space characters
set list
"don't wrap long lines
set nowrap
"dark bg
"set bg=dark
"always use spaces
set expandtab
set autoindent
set softtabstop=4
set shiftwidth=4
"set textwidth and color last column
set textwidth=140
set colorcolumn=140
"highlight searched terms
set hlsearch
"enable omnicomplete
set omnifunc=syntaxcomplete#Complete
"automatically remove trailing whitespaces on save
autocmd BufWritePre * :%s/\s\+$//e
"keep nerdtree open
let NERDTreeQuitOnOpen = 0
"show nerdtree when vim is opened with no file passed as argument
function! StartUp()
if 0 == argc()
NERDTree
end
endfunction
"map F3 to nerdtree
silent! map <F3> :NERDTreeFind<CR>
"map F4 to tagbar
nmap <F4> :TagbarToggle<CR>
let g:NERDTreeMapActivateNode="<F3>"
autocmd VimEnter * call StartUp()
set directory=~/tmp//,.,/var/tmp//,/tmp//
"colo distinguished
" enable all Python syntax highlighting features
let python_highlight_all = 1
" show a visual line under the cursor's current line
"set cursorline
" show the matching part of the pair for [] {} and ()
set showmatch
colo distinguished
"vim: syntax=vimrc