-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (48 loc) · 1.13 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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Bundle 'kien/ctrlp.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-commentary.git'
call vundle#end()
"FONTS AND ENCODING"
set encoding=utf8
" SPEED UP VIM
set ttyfast
set ttyscroll=2
set lazyredraw
set synmaxcol=128
"EXTRA CONFIG"
set backspace=indent,eol,start
set shiftwidth=2 " Indentation 4 spaces
set tabstop=2
set expandtab " Conrert tabs to spaces
set autoindent
set number " Show line number
set numberwidth=3
set showcmd
set autoread
set hlsearch
set ignorecase
set smartcase
set cursorline
set hidden
set nobackup
set nowritebackup
set noswapfile
set fileformats=unix,dos,mac
" Enable mouse
if has('mouse')
set mouse=a
endif
" Show the filename in the window titlebar
set title
autocmd StdinReadPre * let s:std_in=1
autocmd vimenter * NERDTree
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
map <C-n> :NERDTreeToggle<CR>
map <C-k> :Commentary<CR>
map <C-t> :tabnew<CR>