-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
57 lines (43 loc) · 1.35 KB
/
init.vim
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
let mapleader=" "
syntax enable
set number "Activate number of the Line
set relativenumber "Activate relativenumber
set autoindent "Able autoindent
set tabstop=4
set shiftwidth=4
set smarttab
set softtabstop=4 "Assign four spaces to TAB
set mouse=a "able to mouse to interact with vim
set nowrap "All in the line
set clipboard=unnamed "Enable copy and paste
set encoding=UTF-8 "Encodign
set noswapfile "avoid swap message
set splitright "Open buffer in right side
set splitbelow "Open buffer below
" :::Agregamos Plugins
source ~/.config/nvim/pluginsConfiguration/plugins.vim
" source ~/AppData/Local/nvim/pluginsConfiguration/plugins.vim
" ::: Add plugins configuration
source ~/.config/nvim/pluginsConfiguration/pluginsConfig.vim
" source ~/AppData/Local/nvim/pluginsConfiguration/pluginsConfig.vim
"mueve bloques de codigo en modo visual o V-Line
xnoremap K :move '<-2<CR>gv-gv
xnoremap J :move '>+1<CR>gv-gv
" Better indeng
vnoremap < <gv
vnoremap > >gv
" Easy maps
nnoremap <Leader>w :w<CR>
" Split resize
nnoremap <Leader>< 10<C-w><
nnoremap <Leader>> 10<C-w>>
" Quick semi
nnoremap <Leader>; $a;<Esc>
" diagnostic
nnoremap <Leader>dr :let @*=expand("%")<CR>
" Terminal
nnoremap <Leader>tv :botright vnew <Bar> :terminal<cr>
nnoremap <Leader>th :botright new <Bar> :terminal<cr>
" Add line without insert mode
nnoremap <Leader>o o<Esc>
nnoremap <Leader>O O<Esc>