-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.vimrc.local
113 lines (93 loc) · 3.89 KB
/
.vimrc.local
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
104
105
106
107
108
109
110
111
112
" set cursorline
" set cursorcolumn
"set number relativenumber
let NERDTreeShowHidden=1
" autocmd ColorScheme * highlight WhiteSpaces gui=undercurl guifg=LightGray | match WhiteSpaces / \+/
" Show number lines dynamic
"augroup numbertoggle
" autocmd!
" autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
" autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
"augroup END
" highlight Normal ctermbg=none
" highlight NonText ctermbg=none
" set guicursor+=n:hor20-Cursor/lCursor
" syntax on
color dracula
colorscheme dracula
"-------------------------------------------------------------------------------- HOTKEY Customized by ryubr
:map ,c :BD
":map <Alt> <esc>
:imap jj <Esc>
" Colar sem identacao - Paste whitout tab
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
" ------------------------------------------------------------------------------- TABS 4 SPACE
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab ts=4 sw=4 ai
set softtabstop=4
" set expandta
"****************'*************************************************************
"" Functions
"*****************************************************************************
if !exists('*s:setupWrapping')
function s:setupWrapping()
set wrap
set wm=2
set textwidth=79
endfunction
endif"
" use 4 spaces for tabs
set tabstop=4 softtabstop=4 shiftwidth=4
" display indentation guides
set list listchars=tab:❘-,trail:·,extends:»,precedes:«,nbsp:×
" convert spaces to tabs when reading file
"autocmd! bufreadpost * set noexpandtab | retab! 4
" convert tabs to spaces before writing file
" autocmd! bufwritepre * set expandtab | retab! 4
" convert spaces to tabs after writing file (to show guides again)
"autocmd! bufwritepost * set noexpandtab | retab! 4
"---------------------------------------------------------------------------------- SESSAO AUTO SAVE
" let g:session_autoload = "yes"
" let g:session_autosave = "yes"
"---------------------------------------------------------------------------------- FONTES PARA EXTENSAO E TEMA
"----------------------------------------------------------------------------------+ Dev-Icons
set encoding=utf-8
" set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ 11
let g:airline_powerline_fonts = 1
"----------------------------------------------------------------------------------++ Lightline Setup (Nao vi diferenca ainda)
let g:lightline = {
\ 'component_function': {
\ 'filetype': 'MyFiletype',
\ 'fileformat': 'MyFileformat',
\ }
\ }
function! MyFiletype()
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype . ' ' . WebDevIconsGetFileTypeSymbol() : 'no ft') : ''
endfunction
function! MyFileformat()
return winwidth(0) > 70 ? (&fileformat . ' ' . WebDevIconsGetFileFormatSymbol()) : ''
endfunction
"----------------------------------------------------------------------------------++ Powerline Setup (Nao vi diferenca ainda)
set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
set t_Co=256)
" testing extra-powerline-symbols
" set font:
" for now must grab this specific one:
" https://github.com/ryanoasis/powerline-extra-symbols/blob/master/patched-fonts/DroidSansMonoForPowerlinePlusNerdFileTypesMono.otf
set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ Mono\ Regular
" testing extra-powerline-symbols
" set font terminal font or set gui vim font
" to a Nerd Font (https://github.com/ryanoasis/nerd-fonts):
" set guifont=DroidSansMono\ Nerd\ Font\ 12
" testing rounded separators (extra-powerline-symbols):
let g:airline_left_sep = "\uE0B4"
let g:airline_right_sep = "\uE0B6"
" set the CN (column number) symbol:
let g:airline_section_z = airline#section#create(["\uE0A1" . '%{line(".")}' . "\uE0A3" . '%{col(".")}'])