-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
33 lines (32 loc) · 861 Bytes
/
vimrc
File metadata and controls
33 lines (32 loc) · 861 Bytes
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
" Just in case is not in '~/.vimrc'
set nocompatible
" Turn on syntax highlighting
syntax on
" Line numbers
set number
set relativenumber
" Show the status line at the bottom
set laststatus=2
" Disable protection of unsaved changes
set hidden
" Search case-insensitive if doesn't conatin capitals otherwise case-sensitive
set ignorecase
set smartcase
" Enables searching when typing
set incsearch
" Unbind some useless/annoying default key bindings.
nmap Q <Nop>
" Disable audible bell
set noerrorbells visualbell t_vb=
"Indents
set smartindent
set tabstop=4
set shiftwidth=4
"Copy paste
set clipboard=unnamed,unnamedplus
"Compile and run files in c++17
let mapleader = ' '
"compilar el c++
autocmd filetype cpp nnoremap <leader><F2> :w <bar> !g++ -std=c++17 % -o _%:r <CR>
"ejecutar el programa
autocmd filetype cpp nnoremap <leader><F3> :!./_%:r < in <CR>