-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
124 lines (90 loc) · 2.82 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
set number "Enable line numbers
set mouse=a "Enable mouse
set numberwidth=1
set clipboard=unnamed "Permite utilizar el clipboard general del computador
syntax enable "Permite resaltar las palabras
set showcmd "Mustra comandos utilizados y otas funcionalidades
set ruler "Show cursor position
set encoding=utf-8
set showmatch "Show matching parenthesis
"set ai "Enable autoindentation
set sw=4 "Autoindentación como 4 espacios
set laststatus=2 "Enable status bar (always on display)
set noshowmode "Hace que no se vea el modo en la status bar (Como lo hace vim por defecto)
set cursorline
":highlight Cursorline cterm=bold ctermbg=black
call plug#begin('~/.vim/plugged')
"Themes
Plug 'morhetz/gruvbox' "Main theme
Plug 'shinchu/lightline-gruvbox.vim' "Status bar theme
Plug 'catppuccin/nvim', {'as': 'catppuccin'} "Main Theme
"IDE
Plug 'easymotion/vim-easymotion'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'yggdroot/indentline'
Plug 'neoclide/coc.nvim', {'branch':'release'} "Autocompletion
"Syntax
Plug 'sheerun/vim-polyglot'
"Status Bar
Plug 'itchyny/lightline.vim'
Plug 'maximbaz/lightline-ale'
"NerdTree
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'ryanoasis/vim-devicons' "Hay que instalar una nerdfont
" GIT
Plug 'airblade/vim-gitgutter'
" t-mux
Plug 'christoomey/vim-tmux-navigator'
"Typing
Plug 'scrooloose/nerdcommenter'
Plug 'jiangmiao/auto-pairs'
Plug 'alvan/vim-closetag'
Plug 'tpope/vim-surround'
"Previews
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } "Previsualizador de Markdown
call plug#end()
" Otras configuraciones
" Editor theme
"colorscheme gruvbox
let g:catppuccin_flavour = "mocha" " latte, frappe, macchiato, mocha
lua << EOF
require("catppuccin").setup()
EOF
colorscheme catppuccin
" lightline theme
"let g:gruvbox_contrast_dark = "hard"
let g:lightline = {}
"let g:lightline.colorscheme = 'gruvbox'
let g:lightline = {'colorscheme': 'catppuccin'}
let NERDTreeQuitOnOpen = 1
let mapleader=" "
" Plugins
nmap <Leader>s <Plug>(easymotion-s2)
nmap <Leader>nt :NERDTreeFind<CR>
nmap <Leader>7 <Plug>NERDCommenterToggle
vmap <Leader>7 <Plug>NERDCommenterToggle
nmap <Leader>p :File<CR>
" tmux navigator
nnoremap <silent> <Leader><C-h> :TmuxNavigateLeft<CR>
nnoremap <silent> <Leader><C-j> :TmuxNavigateDown<CR>
nnoremap <silent> <Leader><C-k> :TmuxNavigateUp<CR>
nnoremap <silent> <Leader><C-l> :TmuxNavigateRight<CR>
" Native vim
nmap <Leader>w :w<CR>
nmap <Leader>q :q<CR>
" split rezise
nnoremap <Leader>> 10<C-w>>
nnoremap <Leader>< 10<C-w><
" quick semicolon
nnoremap <Leader>; $a;<Esc>
" file path
nnoremap <Leader>kp :let @*=expand("%")<CR>
" faster scrolling
nnoremap <C-j> 10<C-e>
nnoremap <C-k> 10<C-y>
" buffers
map <Leader>ob :Buffers<CR>
" open terminal
"nnoremap <C-t> :call OpenTerminal()<CR>