-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
119 lines (92 loc) · 2.64 KB
/
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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
set nocompatible " be iMproved, required
" Simple tabs settings
set softtabstop=4 shiftwidth=4 expandtab
" Vundle Section {
" Install Vundle if necessary
if !isdirectory($HOME."/.vim/bundle")
silent !git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim > /dev/null 2>&1
endif
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" My Plugins
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'bling/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'sickill/vim-monokai'
Plugin 'joshdick/onedark.vim'
" Plugin 'altercation/vim-colors-solarized' " unused
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" 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
"""""""""""""""""""""""
" MAIN CONFIG
"""""""""""""""""""""
" Change leader key to ,
let mapleader=","
set cursorline
" Hide line numbers easier to copy paste
set nonumber
set nowrap
set hidden
" Backup and swap settings
if !isdirectory($HOME."/.vim/swapfiles")
silent !mkdir $HOME/.vim/swapfiles > /dev/null 2>&1
endif
set swapfile
set directory=$HOME/.vim/swapfiles//
set nobackup
set noundofile
" Search config
set showmatch
set hlsearch incsearch
set ignorecase smartcase
set background=dark
" Setup Solarized
" if has('gui_running')
" running gui not really planned right now !
" else
" in terminal mode assuming that solarized theme is selected
" set t_Co=16
" let g:solarized_termcolors=16
" endif
" silent! colorscheme solarized
" Setup Monokai
" set t_Co=16
" colorscheme monokai
" Setup onedark
let g:onedark_termcolors=16
colorscheme onedark
" Fix Backspace key in MacOS
set backspace=indent,eol,start
syntax on
""""""""""""""""
" PLUGIN CONFIG
""""""""""""""""
" NERDTREE
map <F3> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
" CTRL P
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlPBuffer'
" Airline
set laststatus=2 " to show airline on startup
let g:airline_powerline_fonts=1
" let g:airline_theme='solarized'
" let g:airline_theme='base16_monokai'
let g:airline_theme='onedark'
" Disable mouse surpport
set mouse=
set ttymouse=