-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
51 lines (40 loc) · 944 Bytes
/
.vimrc
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
"# Plugins
packloadall
"#general
filetype plugin on
syntax on
set encoding=utf-8
map <leader>s :!clear && shellcheck % <CR>
map <leader>S :%s//g<left><left>
"# autocomplete commands
set wildmode=longest,list,full
map <F7> set spell spelllang=pt,en_us
"# bout tabs
set ts=3 softtabstop=3
set shiftwidth=3
set expandtab
set smartindent
"set splits order and shortcuts
set splitbelow splitright
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
"#bout lns
set nu relativenumber
"#bout coluns
" set signcolumn=yes
"# bout search
set nohlsearch
set ignorecase
set smartcase "scs
"set incsearch
"#bout buffers
set hidden
set noswapfile
set scrolloff=8
"config to ident yaml
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
let g:indentLine_char = '⦙'
"Save Without sudo
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!