-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
96 lines (89 loc) · 2.55 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
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
95
96
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
if has('nvim')
set rtp+=~/.config/nvim/bundle/Vundle.vim
endif
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'tomasr/molokai'
Plugin 'lu-ren/SerialExperimentsLain'
Plugin 'vim-airline/vim-airline-themes'
" Plugins
Plugin 'scrooloose/nerdtree'
Plugin 'ConradIrwin/vim-bracketed-paste'
Plugin 'Yggdroot/indentLine'
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
Plugin 'vim-airline/vim-airline'
Plugin 'mileszs/ack.vim'
Plugin 'jiangmiao/auto-pairs'
Plugin 'Valloric/YouCompleteMe'
" Python
Plugin 'tell-k/vim-autopep8'
Plugin 'gryf/pylint-vim'
" Javascript / React
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
" Rust
Plugin 'rust-lang/rust.vim'
Plugin 'racer-rust/vim-racer'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
syntax on
set t_Co=256
set background=dark
set nowrap
set cursorline
colorscheme molokai
" Fix filas vacias en otro color.
if &term =~ '256color'
" Disable Background Color Erase (BCE) so that color schemes
" work properly when Vim is used inside tmux and GNU screen.
set t_ut=
endif
" Misc
set mouse=a
set hidden
set incsearch
set number
set relativenumber
" coloca pantalla partida hacia la derecha
set splitright
" coloca pantalla partida hacia abajo
set splitbelow
set conceallevel=0
" Atajos
nnoremap <F5> :NERDTreeClose<CR>:bd<CR>
nnoremap <F2> :bp<CR>
nnoremap <F3> :bn<CR>
nnoremap <F12> :NERDTreeToggle<CR>
nnoremap <F4> :Ack<Space>
if has ('nvim') " Nvim only commands
nnoremap <F9> :split<CR>:terminal<CR>
:tnoremap <Esc> <C-\><C-n>
endif
" Airline
let g:airline#extensions#tabline#enabled = 1
set laststatus=2
set ttimeoutlen=10
let g:airline_powerline_fonts=1
let g:airline_theme='dark'
let g:airline_exclude_preview = 1