forked from Carmain/shell-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
58 lines (38 loc) · 1.43 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
execute pathogen#infect()
"---------- Basic configuration ----------
syntax on
set t_Co=256
set number
set mouse=a
set backspace=indent,eol,start " Make backspace behave like every editors
set tabstop=4 " Tell vim how many columns a tab counts for
set expandtab " Htting tab in insert mode will procude the appropriate number of space
set shiftwidth=4 " Control how many columns text is indented with the reindent operations
set smartindent " Smart indent
set autoindent
set ignorecase
set showmode
set ruler
" give us nice EOL (end of line) characters
set list
set listchars=tab:▸\ ,eol:¬
" Remember the cursor position when we reopen the file
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
" ---------- Themes configuration ----------
" hybrid configuration
let g:hybrid_user_Xressources = 1
set background=dark
" solarized configuration (comment the hybrid configuration if you want to use it)
" set background=dark " (dark or light)
" Availables colorscheme :
" - solarized (set background to dark or light)
" - monokai
" - hybrid
colorscheme hybrid
" ---------- Package configurations ----------
" NERDTree CONFIGURATION
" Open a NERDTree automatically when vim starts up if no files were specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" ---------- Mapping ----------
map <C-n> :NERDTreeToggle<CR>