Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set number
- set nolist
- set ruler
- set rnu
- set cursorline
- set mouse=a
- set clipboard=unnamed
- set laststatus=2
- set showcmd
- set noshowmode
- set showmatch
- set encoding=utf-8
- set regexpengine=0
- syntax enable
- set foldlevelstart=20
- let mapleader=","
- " Directorio de plugins
- call plug#begin()
- Plug 'tpope/vim-surround'
- Plug 'tpope/vim-fugitive'
- Plug 'tpope/vim-commentary'
- Plug 'tpope/vim-repeat'
- Plug 'easymotion/vim-easymotion'
- Plug 'godlygeek/tabular', { 'for': 'markdown'}
- Plug 'plasticboy/vim-markdown', { 'for': 'markdown'}
- Plug 'christoomey/vim-tmux-navigator'
- Plug 'junegunn/vim-easy-align'
- Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
- Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
- Plug 'Yggdroot/indentLine'
- Plug 'jiangmiao/auto-pairs'
- Plug 'xuyuanp/nerdtree-git-plugin'
- Plug 'tomasiser/vim-code-dark'
- Plug 'vim-airline/vim-airline'
- Plug 'neoclide/coc.nvim', {'branch': 'release'}
- Plug 'honza/vim-snippets'
- Plug 'stephpy/vim-yaml'
- Plug 'pedrohdz/vim-yaml-folds'
- call plug#end()
- " Luego de esta línea puedes agregar tus configuraciones y mapping
- " yaml config
- autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
- "Folding
- let g:yaml_limit_spell_check = 1
- "Linter
- let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
- let g:ale_sign_error = '✘'
- let g:ale_sign_warning = '⚠'
- let g:ale_lint_on_text_changed = 'never'
- noremap <leader>q c"<C-r>""
- nmap<Leader>s <Plug>(easymotion-s2)
- "configure plugins
- "coc
- noremap <leader>gs :CocSearch
- noremap <leader>fs :Files<cr>
- nmap <silent> gd <Plug>(coc-definition)
- nmap <silent> gy <Plug>(coc-type-definition)
- nmap <silent> gi <Plug>(coc-implementation)
- nmap <silent> gr <Plug>(coc-references)
- " template
- " Expandir snippet con Ctrl + j
- let g:UltiSnipsExpandTrigger = '<c-j>'
- " Ir a siguiente ubicacion con Ctrl + j
- let g:UltiSnipsJumpForwardTrigger = '<c-j>'
- " Ir a anterior ubicacion con Ctrl + k
- let g:UltiSnipsJumpBackwardTrigger = '<c-k>'"
- "nerdtree
- let g:NERDTreeChDirMode=2
- let g:NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.db$', '\.sqlite$', '__pycache__']
- let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']
- let g:NERDTreeShowBookmarks=1
- let g:nerdtree_tabs_focus_on_files=1
- let g:NERDTreeMapOpenInTabSilent = '<RightMouse>'
- let g:NERDTreeWinSize = 30
- set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.db,*.sqlite
- nnoremap <silent> <F2> :NERDTreeFind<CR>
- noremap <F3> :NERDTreeToggle<CR>
- autocmd bufenter * if(winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
- autocmd VimEnter * NERDTree
- "end_nerdtree
- "Jenkinsfile groovy
- au BufNewFile,BufRead Jenkinsfile setf groovy
- "tab
- " size of a hard tabstop
- set tabstop=4
- " always uses spaces instead of tab characters
- set expandtab
- " size of an "indent"
- set shiftwidth=2
- set autoindent
- " color theme vscode
- colorscheme codedark
- " copy all
- "map <C-a> <esc>ggVG<CR>
- nnoremap <C-a> ggmqvG"+y'q
- " No mostrar en ciertos tipos de buffers y archivos
- let g:indentLine_fileTypeExclude = ['text', 'sh', 'help', 'terminal']
- let g:indentLine_bufNameExclude = ['NERD_tree.*', 'term:.*']
- let g:indentLine_char = '⦙'
- " Ejecutar comandos con alt-enter :Commands
- let g:fzf_commands_expect = 'alt-enter'
- " Guardar historial de busquedas
- let g:fzf_history_dir = '~/.local/share/fzf-history'
- " Empezar a buscar presionando Ctrl + p
- " nnoremap <C-p> :Files<CR>
- "let g:airline_powerline_fonts = 1
- let g:airline#extensions#tabline#enabled = 1 " Mostrar buffers abiertos (como pestañas)
- let g:airline#extensions#tabline#fnamemod = ':t' " Mostrar sólo el nombre del archivo
- let g:airline#extensions#tabline#left_sep = ' '
- let g:airline#extensions#tabline#left_alt_sep = '|'
- let g:airline#extensions#tabline#formatter = 'default'
- set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ [BUFFER=%n]\ %{strftime('%c')}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement