-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc.after
More file actions
85 lines (67 loc) · 1.75 KB
/
.vimrc.after
File metadata and controls
85 lines (67 loc) · 1.75 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
set t_Co=256
colorscheme xoria256
set showmode
set nowrap
set tabstop=4
set smarttab
set tags=tags
set expandtab
set shiftwidth=4
set shiftround
set backspace=indent,eol,start " Permite borrar en cualquier parte en modo de insercion
set autoindent
set copyindent
set number
set ignorecase
set smartcase
set timeout timeoutlen=200 ttimeoutlen=100
set visualbell " No beep
set noerrorbells " No beep
set mouse=a
let mapleader = ","
let g:mapleader = ","
" Guardados rapidos
nmap <leader>w :w!<cr>
" Bajar es realmente a la siguiente linea
nnoremap j gj
nnoremap k gk
" Escapado rapido a modo normal
imap jj <esc>
" Cambia el directorio para igualar al der archivo abierto ,cd
nnoremap ,cd :cd %:p:h<CR>:pwd<CR>
" Facilita la navegacion entre splits
nmap <C-h> <C-w>h
nmap <C-j> <C-w>j
nmap <C-k> <C-w>k
nmap <C-l> <C-w>l
" Para que me envie al inicio de la linea
nmap ñ ^
" CTRL + b para Toggle NERDTree
nmap <C-b> :NERDTreeToggle<cr>
" Muestra el estado parcial del comando
set showcmd
highlight Search cterm=underline
" Archivos temporales en el directorio de vim
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
" Run PHPUnit Tests
map <leader>t :!phpunit %<cr>
" Powerline
let g:Powerline_symbols = 'fancy'
set laststatus=2
set encoding=utf-8
set noshowmode
" Luego de una busqueda /TERMS<cr> permite borrar lo seleccionado con :H
command! H let @/=""
" inoremap {{ {}<Left><CR><CR><Up><Tab>
" Fixing that anoying indentation error when pasting a text, manually
" using F3 for paste mode toggle or automatically with that function
set pastetoggle=<F3>
let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
function! XTermPasteBegin()
set pastetoggle=<Esc>[201~
set paste
return ""
endfunction