-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc_utfpr
103 lines (79 loc) · 2.42 KB
/
.vimrc_utfpr
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
101
102
103
set number
map <C-F11> :set nu!<cr>
imap <C-F11> <Esc>:set nu!<cr>
set showmode
set autoindent
set pastetoggle=<F12>
set ruler
set autoread
set ts=4
set expandtab
set sw=4
set sm
set showcmd
filetype on
filetype plugin on
filetype indent on
set report=0
set backspace=eol,start,indent
set softtabstop=4
set noerrorbells
set bk
set backupdir=~/.vim/.backup/
set statusline=%<%F%h%m%r%h%w%y\ ft:%{&ft}\ ff:%{&ff}\
\Modificado:\ %{strftime(\"%c\",getftime(expand(\"%:p\")))}
\%=\ coluna:%04v\ linha:%04l\
\total:%04L\ hex:%03.3B\ ascii:%03.3b\ %03P\
set title
set wildignore=*.o,*.obj,*.bak,*.exe,*.dll,*.com,*.class,*.au,*.wav,*.ps,\
\*.avi,*.wmv,*.flv,*.djvu,*.pdf,*.chm,*.dvi,*.svn/,*~
set cedit=<Esc>
set hi=5000
set titlelen=78
set titlestring=%<%F%h%m%r%h%w\ \ \ \ \ \ coluna:%04v\ \ \
\ linha:%04l\ de\ %04L\ \ \ \ %03P\
set wm=10
set nomodeline
set nocompatible
syntax on
set background=dark
map <S-F6> <ESC>:set background=light<CR>
map <C-S-F6> <ESC>:set background=dark<CR>
" ----------------------------------------------------------------------------
" Função para trocar o tema de cores
" A primeira linha refere-se ao esquema padrão
" ----------------------------------------------------------------------------
colorscheme evening
function! <SID>SwitchColorSchemes()
if g:colors_name == 'evening'
colorscheme blue
elseif g:colors_name == 'blue'
colorscheme darkblue
elseif g:colors_name == 'darkblue'
colorscheme default
elseif g:colors_name == 'default'
colorscheme delek
elseif g:colors_name == 'delek'
colorscheme elflord
elseif g:colors_name == 'elflord'
colorscheme desert
elseif g:colors_name == 'desert'
colorscheme koehler
elseif g:colors_name == 'koehler'
colorscheme morning
elseif g:colors_name == 'morning'
set background=dark
colorscheme evening
endif
endfunction
map <F6> :call <SID>SwitchColorSchemes()<CR>:echo g:colors_name<CR>
" ----------------------------------------------------------------------------
" Cor da numeração lateral
" ----------------------------------------------------------------------------
" hi LineNr guifg=pink ctermfg=lightMagenta
hi LineNr guifg=green ctermfg=lightGreen
set cursorline
set hlsearch
set incsearch
"iab iostream #include <iostream>
iab usingstd using namespace std;