forked from tagliati/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc_novo
97 lines (78 loc) · 2.25 KB
/
vimrc_novo
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
set nocompatible " be iMproved, required
filetype off " required
"Config do vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
" Colocar a lista de plugins nesse espaco
Plugin 'gmarik/Vundle.vim'
Plugin 'fisadev/fisa-vim-colorscheme'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'mattn/emmet-vim'
Plugin 'scrooloose/syntastic'
Plugin 'klen/python-mode'
Plugin 'Shougo/neocomplcache.vim'
Plugin 'go.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'JellyX'
Plugin 'molokai'
Plugin 'jellybeans.vim'
Plugin 'candy.vim'
Plugin 'vividchalk.vim'
Plugin 'Twilight-for-python'
Plugin 'twilight256.vim'
Plugin 'twilight'
Plugin 'Solarized'
Plugin 'vim-scala'
Plugin 'spf13/vim-colors'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Removes trailing spaces
function TrimWhiteSpace()
%s/\s*$//
''
endfunction
" Mapeando o retirar espaco para /o
map <Leader>o :call TrimWhiteSpace()<CR>
" tab length exceptions on some file types
autocmd FileType html setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType htmldjango setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType ruby setlocal shiftwidth=2 tabstop=2 softtabstop=2
" syntax highlight on
syntax on
" toggle nerdtree display
map <F3> :NERDTreeToggle<CR>
" open nerdtree with the current file selected
nmap ,t :NERDTreeFind<CR>
" don;t show these file types
let NERDTreeIgnore = ['\.pyc$', '\.pyo$']
let g:pymode_folding = 0
" tabs and spaces handling
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set wildignore=*.swp,*.bak,*.pyc,*.class
set nu
set ls=2
" when scrolling, keep cursor 3 lines away from screen border
set scrolloff=3
" autocompletion of files and commands behaves like shell
" (complete only the common part, list the options that match)
set wildmode=list:longest
set t_Co=256
colorscheme solarized
if has("gui_running")
set antialias
set guioptions=egmt
set guioptions-=m
set fuoptions=maxvert,maxhorz
set go-=T
set bg=dark
set guioptions=T
set background=dark
endif