-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
85 lines (68 loc) · 2.32 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
" Configuración tomada del repo de danirod https://github.com/danirod/vimrc
" Stop acting like classic vi
set noswapfile " don't create swapfiles
set nobackup " don't backup, use git!
" Enable filetype
filetype indent plugin on
" Persist undo history between file editing sessions.
set undofile
set undodir=~/.vim/undodir
" Modify indenting settings
set autoindent " autoindent always ON.
set shiftwidth=4
set softtabstop=4
" Modify some other settings about files
set encoding=utf-8 " always use unicode (god damnit, windows)
set backspace=indent,eol,start " backspace always works on insert mode
set hidden
"Configuración color scheme
if &t_Co > 2
syntax on
silent! colorscheme aldmeris
let g:aldmeris_transparent = 1
set background=dark
highlight LineNr ctermbg=NONE
" Sometimes I see the syntax be out of sync
set colorcolumn=80
set cursorline
highlight CursorLine cterm=underline ctermfg=NONE ctermbg=NONE
highlight CursorLineNr cterm=bold ctermfg=Yellow
highlight WildMenu cterm=bold ctermfg=black " only aldmeris colorscheme
highlight Folded cterm=reverse ctermbg=0 ctermfg=8
highlight VertSplit cterm=NONE ctermbg=NONE ctermfg=8
highlight Conceal cterm=NONE ctermbg=NONE ctermfg=8
" git gutter config
highlight SignColumn ctermbg=NONE
highlight GitGutterAdd ctermfg=Green cterm=bold
highlight GitGutterDelete ctermfg=Red cterm=bold
highlight GitGutterChange ctermfg=Yellow cterm=bold
" Sometimes I see the syntax be out of sync
noremap <F12> <Esc>:syntax sync fromstart<CR>
inoremap <F12> <C-o>:syntax sync fromstart<CR>
endif
" Mark trailing spaces depending on whether we have a fancy terminal or not
if &t_Co > 2
highlight ExtraWhitespace ctermbg=1
match ExtraWhitespace /\s\+$/
else
set listchars=trail:~
set list
endif
set fillchars+=vert:\┊
set noshowmode
set laststatus=1
set wildmenu
set number
set invrelativenumber
set showmatch
map <C-K> :bprev<CR>
map <C-N> :bnext<CR>
imap <C-K> <Esc>:bnext<CR>i
imap <C-N> <Esc>:bprev<CR>i
let mapleader=','
nmap <F5> :set invrelativenumber<CR>
imap <F5> :set invrelativenumber<CR>
tnoremap <Esc><Esc> <C-\><C-n>
"Busqueda
set hlsearch is
nnoremap <ESC><ESC> :noh<RETURN>