-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
91 lines (76 loc) · 3.4 KB
/
.vimrc
File metadata and controls
91 lines (76 loc) · 3.4 KB
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
" Vundle settings.
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'The-NERD-tree'
Bundle 'ZoomWin'
Bundle 'blackboard.vim'
Bundle 'django.vim'
Bundle 'gmarik/vundle'
Bundle 'hdima/python-syntax'
Bundle 'inkpot'
Bundle 'lepture/vim-css'
Bundle 'pangloss/vim-javascript'
Bundle 'scrooloose/nerdcommenter'
filetype plugin indent on
" END Vundle settings.
set nocompatible
set backspace=indent,eol,start
set nowrap
set ai ts=2 sts=2 et sw=2
set smarttab
set autoindent nocindent nosmartindent
" Pretty colors
syntax on
if filereadable(expand("~/.vim/bundle/inkpot/colors/inkpot.vim"))
colorscheme inkpot
endif
set cursorline
set colorcolumn=80
hi CursorLine term=NONE cterm=NONE ctermbg=235 guibg=#444444
hi ColorColumn term=NONE ctermbg=234 guibg=#1c1c1c
" python.vim syntax
let python_highlight_all=1
" load the plugin and indent settings for the detected filetype
filetype plugin on
filetype indent on
" Disable scrollbars
set guioptions-=r
set guioptions-=T
set guioptions-=L
" don't leave backup files scattered about.
set updatecount=0
set nobackup
set nowritebackup
"Directories for swp files
set backupdir=~/.vim/backup
set directory=~/.vim/backup
"NERDTree
let NERDTreeIgnore=['\.pyc$']
let NERDTreeShowHidden=1
map <Leader>n :NERDTreeToggle<CR>
" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" Always show status line
set laststatus=2
set statusline=
set statusline +=\ %n\ "buffer number
set statusline +=[%Y] "file type
set statusline +=\ %<%F "full path
set statusline +=%m "modified flag
set statusline +=%=%5l "current line
set statusline +=/%L "total lines
set statusline +=%4v\ "virtual column number
set statusline +=0x%04B\ "character under cursor"
" Allow inserting at beginning of all lines selected in Visual Line mode
vnoremap <expr> I mode() ==# 'V' ? "\<C-v>0I" : "I"
" Rebind of ZoomWin. <c-w>o doesn't seem to work right
map <Leader>z :ZoomWin<CR>
" use ctrl-h/j/k/l to switch between splits
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
map <c-h> <c-w>h