-
Notifications
You must be signed in to change notification settings - Fork 10
/
.vimrc
58 lines (45 loc) · 1.36 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
set backspace=indent,eol,start
set splitright
syntax enable
set mouse=a
" From https://github.com/colinwren/dotfiles/blob/master/.vimrc
" Remap :W to :w
:command WQ wq
:command Wq wq
:command W w
:command Q q
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'chriskempson/vim-tomorrow-theme'
Plugin 'scrooloose/nerdcommenter'
Plugin 'Lokaltog/vim-powerline'
" Nerd tree Stuffs
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" auto
set sw=2 ts=2 sts=2
set autoindent
set smartindent
set expandtab
set cindent
" Powerline
let g:Powerline_symbols = 'fancy'
set laststatus=2
set t_Co=256 " Explicitly tell Vim that the terminal supports 256 colors
call Pl#Theme#RemoveSegment('fileencoding')
call Pl#Theme#RemoveSegment('fileformat')
"Show line number (disable)for certain filetypes
set number
autocmd BufNewFile,BufRead .*,COMMIT_EDITMSG set nonumber"
"Highlight cursor
"highlight CursorLine cterm=NONE ctermbg=8
"