-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·133 lines (113 loc) · 3.28 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
syntax on
so ~/.vim/maps.vim
so ~/.vim/plugins.vim
set number
set mouse=a
set numberwidth=1
" sicroniza portapapeles con el sistema
set clipboard=unnamedplus
set showcmd
set ruler
set cursorline
set encoding=utf-8
set showmatch
set termguicolors
set sw=2
set relativenumber
set ignorecase
" Autoload de files with changes
set autoread
set tags=./tags,tags;$HOME
set noincsearch
let g:cpp_compiler_options = '-std=c++17'
" Establece las opciones de compilación.
let $CXXFLAGS = g:cpp_compiler_options
" Guarda la ultima posicion del buffer, para que cuanodo vuelvas no quedes al principio
autocmd BufEnter * silent! normal! g`"
" Guarda la ulitam posicion del buffer, para cuando vuelval a ingresar al archivo
autocmd BufLeave * :wshada
" Default mapping
let g:multi_cursor_start_word_key = '<C-n>'
let g:multi_cursor_select_all_word_key = '<A-n>'
let g:multi_cursor_start_key = 'g<C-n>'
let g:multi_cursor_select_all_key = 'g<A-n>'
let g:multi_cursor_next_key = '<C-n>'
let g:multi_cursor_prev_key = '<C-p>'
let g:multi_cursor_skip_key = '<C-x>'
let g:multi_cursor_quit_key = '<Esc>'
function! FileSize()
let file_size = line2byte(line('$'))
if file_size < 1024
return file_size . 'B'
elseif file_size < 1048576
return (file_size / 1024) . 'KB'
else
return (file_size / 1048576) . 'MB'
endif
endfunction
let g:lightline = {
\ 'colorscheme': 'gruvbox',
\ 'active': {
\ 'left': [
\ ['mode', 'paste'],
\ [],
\ ['relativepath', 'tagbar', 'modified']
\ ],
\ 'right': [
\ ['kitestatus'],
\ ['gitbranch', 'filetype', 'filesize', 'percent', 'lineinfo']
\ ]
\ },
\ 'inactive': {
\ 'left': [
\ ['inactive'],
\ ['relativepath']
\ ],
\ 'right': [
\ ['bufnum']
\ ]
\ },
\ 'component': {
\ 'bufnum': '%n',
\ 'inactive': 'inactive',
\ 'tagbar': '%{substitute(tagbar#currenttag("%s", "", "f"), "\\", ":", "g")}',
\ 'filesize': '%{FileSize()}',
\ },
\ 'component_function': {
\ 'gitbranch': 'gitbranch#name'
\ },
\ 'subseparator': {
\ 'left': '',
\ 'right': ''
\ }
\ }
" nerdtree
let NERDTreeShowHidden=1
let NERDTreeQuitOnOpen=1
let NERDTreeAutoDeleteBuffer=1
let NERDTreeMinimalUI=1
let NERDTreeDirArrows=1
let NERDTreeShowLineNumbers=1
"let NERDTreeMapOpenInTab='<CR>'
"let NERDTreeCustomOpenArgs={'file':{'where': 't'}}
let g:nerdtree_tabs_open_on_new_tab = 1
colorscheme gruvbox
let g:gruvbox_conntrast_dark = "hard"
let g:airline#extensions#tagbar#enabled = 1
let g:airline#extensions#tagbar#flags = ''
highlight Normal ctermbg=NONE
set laststatus=2
set noshowmode
" Highlight the symbol and its references when holding the cursor
autocmd CursorHold * silent call CocActionAsync('highlight')
" Enable and configure nvim-web-devicons
lua require'nvim-web-devicons'.setup {
\ default = true;
\}
let g:ale_sign_column_always = 1
" Configure Ale to use devicons
let g:ale_sign_error = '❌'
let g:ale_sign_warning = '⚠️'
"config vimspector
let g:vimspector_enable_mappings = 'HUMAN'
let g:vimspector_install_gadgets = {'enable-terminal': 0}