blob: 9fd8bc62b0a3229925788dbf7401972b02f60d38 (
plain)
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
|
" mitsuo's vimrc
" Created c. 2019-11-11
"
" ┌─┬─┬─┬─┬─┬─┐
" │m│i│t│s│u│o│✓x
" ├─┼─┼─┼─┼─┼─┤
" │v│i│m│r│c│←│█▓▒░
" └─┴─┴─┴─┴─┴─┘
" がんばれ
" Shit that gets disabled because I created this file
" ===================================================
set nocompatible
" Auto-recognize files and apply pluggins
filetype plugin indent on
syntax on
set wildmenu
set showcmd
" Options that aren't default in some systems
" ===========================================
set backspace=indent,eol,start
" Number gutter
" =============
set number
set relativenumber
" Search
" ======
set hlsearch
set incsearch
" Redraw and turn of search highlight in normal mode (non recursive)
nnoremap <C-L> :nohl<CR><C-L>
set ignorecase
set smartcase
" Indentation
" ===========
" softtabs de 4 columnas, no se expanden los tabs (util para tabular y para
" programar en assembler)
set tabstop=8
set softtabstop=4
set shiftwidth=4
set noexpandtab
set autoindent
set smartindent
set cindent
" Automatic formatting
" ====================
" see fo-table
set formatoptions=rql
set formatoptions-=o
set formatoptions+=t " auto-wrap text (when inserting)
set formatoptions+=c " auto-wrap comments (when inserting)
"set formatoptions+=a " auto-formatting of paragraphs (always). (this
" messes with being able to '=====' underline
" just below a section header comment
" Word wrap
" =========
set wrap
set linebreak
" To 'justify' comments or block of text (paragraph) use "gq{motion}" or
" "gp{motion}", where {motion} can be "[/", "]/", "ip", "i{", "a{".
set textwidth=80
" Other settings
" ==============
set mouse=a
" set cmdheight=1
" Always display the status line, even if only one window is displayed
set laststatus=2
set ruler
" Mappings
" ========
map <F7> :tabp<CR>
map <F8> :tabn<CR>
" Yanking and pasting
" ===================
" TODO: map something to "+y (cut buffer) and "*y (selection buffer) while in
" visual mode.
"vmap <++> "+y " The yank to the cut buffer (clipboard)
"vmap <++> "*y " The yank to the selection buffer
" Additions
" =========
" TODO: Funcion para reindentar archivo con mi configuracion. Esta funcion de
" vim.fandom.com no se como funciona. (Ver perlexpr?)
":command! -nargs=1 -range SuperRetab <line1>,<line2>s/\v%(^ *)@<= {<args>}/\t/g
|