-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·67 lines (58 loc) · 1.47 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
set nocompatible
"Pathogen, carregar plugins em ~/.vim/bundle
call pathogen#helptags()
call pathogen#infect()
syntax on
set encoding=utf-8
set hidden "esconder buffers em vez de os fechar
set tabstop=4 "1 tab sao 4 espacos
set backspace=indent,eol,start
set autoindent
filetype plugin indent on
set shiftwidth=4 "numero de espacos para o autoident
set number "mostrar sempre a linha
set showcmd "show current command on bottom
set hlsearch
set incsearch
set ignorecase
set smartcase
set smarttab
"modo paste
set pastetoggle=<F2>
"nao fazer backups
set nobackup
set noswapfile
" Auto complete HTML
filetype plugin on
set omnifunc=syntaxcomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
"--Keybindings
"close html tags on <//
inoremap <lt>// </<C-X><C-O>
"nao deixar usar setas
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
" Easy window navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
" limpar buffer de procura
nmap <silent> º :nohlsearch<CR>
"usar w!! para gravar quando esqucer do sudo
cmap w!! w !sudo tee % >/dev/null
"VIM AIRLINE CONF
" Enable the list of buffers
let g:airline#extensions#tabline#enabled = 1
" Show just the filename
let g:airline#extensions#tabline#fnamemod = ':t'
" Enable powerline fonts
let g:airline_powerline_fonts = 1
" Always show bottomline
set laststatus=2
"Template Vars
let g:username = 'strang3quark'
let g:email = 'strang3quark@gmail.com'
let g:licence = 'GPL v3.0'