-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
131 lines (110 loc) · 3.28 KB
/
vimrc
File metadata and controls
131 lines (110 loc) · 3.28 KB
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
call plug#begin('~/.vim/plugged')
Plug 'mileszs/ack.vim'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'git://github.com/tpope/vim-abolish.git'
call plug#end()
set hidden "Permite poner en background sin guardar
set nocompatible "Funcionalidades no compatibles con vi
set history=100
set incsearch " Busqueda incremental
set hlsearch " dejar iluminada la busqueda
set showmatch
set background=dark
set undofile
"
"
"if has( "gui_running" )
" "colo PaperColor
" colo solarized
"elseif $TERM =~ '256'
" colo solarized
"elseif $TERM == 'screen'
" set t_Co=256
" "colo PaperColor
" colo solarized
"elseif $COLORTERM == 'gnome-terminal'
" set t_Co=256
" "colo PaperColor
" colo solarized
"else
" colo desert
"endif
" set is
" set si
" :au Filetype html,xml,xsl source ~/vim/closetag.vim
filetype indent on
filetype plugin on
" set grepprg=grep\ -nH\ $*
"helptags ~/.vim/doc
"autocmd FileType python set omnifunc=pythoncomplete#Complete
"source ~/.vim/plugin/vimballPlugin.vim "plugin vimball
" Navegacion entre tabs
"map <silent><A-Right> :tabnext<CR>
"map <silent><A-Left> :tabprevious<CR>
"runtime macros/matchit.vim "Match expandido
set wildmode=list:longest "Para el completion tipo bash
set scrolloff=3
"let Tlist_File_Fold_Auto_Close = 1
"map T :TaskList<CR>
"map <buffer> <S-e> :w<CR>:!/usr/bin/env python % <CR>
"map P :TlistToggle<CR>
"set invlist
set expandtab
"set textwidth=79
set tabstop=8
set softtabstop=4
set shiftwidth=4
set autoindent
syntax on
set laststatus=2
let g:airline#extensions#obsession#enabled = 1
"let g:airline#extensions#tabline#enabled = 1
let g:airline_section_c = "%<%<%{bufnr('%')} %{airline#extensions#fugitiveline#bufname()}%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#"
"autocmd BufEnter *.md :setlocal filetype=markdown
:set wildignore+=venv/**
:set wildignore+=venv3/**
cabbrev lvim
\ lvim /\<lt><C-R><C-W>\>/gj
\ *<C-R>=(expand("%:e")=="" ? "" : ".".expand("%:e"))<CR>
\ <Bar> lw
\ <C-Left><C-Left><C-Left>
command! -complete=shellcmd -nargs=+ Shell call s:RunShellCommand(<q-args>)
function! s:RunShellCommand(cmdline)
echo a:cmdline
let expanded_cmdline = a:cmdline
for part in split(a:cmdline, ' ')
if part[0] =~ '\v[%#<]'
let expanded_part = fnameescape(expand(part))
let expanded_cmdline = substitute(expanded_cmdline, part, expanded_part, '')
endif
endfor
botright new
setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap
call setline(1, 'You entered: ' . a:cmdline)
call setline(2, 'Expanded Form: ' .expanded_cmdline)
call setline(3,substitute(getline(2),'.','=','g'))
execute '$read !'. expanded_cmdline
setlocal nomodifiable
1
endfunction
nmap <F4> :Utl ol<cr>
nmap <F6> :.w !bash <CR>
nmap <F7> :execute getline(".") <CR>
set nomodeline
nnoremap gb :ls<CR>:b<Space>
let g:syntastic_python_checkers = ['pylint', 'mypy']
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let b:syntastic_mode = 'passive'
let g:syntastic_mode_map = {"mode": "passive"}
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 25
"augroup ProjectDrawer
" autocmd!
" autocmd VimEnter * :Vexplore
"augroup END
let g:netrw_list_hide= '.*\.swp$,\..*\~$'