-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vimrc
96 lines (71 loc) · 2.28 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
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/vimfiles/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
execute pathogen#infect()
syntax on
filetype plugin indent on
syntax enable
if has('gui_running')
set background=light
autocmd GUIEnter * set vb t_vb=
else
set background=dark
endif
colorscheme solarized
set fileencodings=utf-8
set guifont=Courier_New:h14
set listchars=eol:$,tab:>-,trail:.,extends:>,precedes:<
set list
" set the runtime path to include Vundle and initialize
set rtp+=~/vimfiles/bundle/Vundle.vim/
let path='~/vimfiles/bundle'
call vundle#begin(path)
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'pangloss/vim-javascript'
" 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
set tabstop=4 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 4.
set shiftwidth=4 " Indents will have a width of 4
set softtabstop=4 " Sets the number of columns for a TAB
set expandtab " Expand TABs to spaces
set autoindent
au GUIEnter * simalt ~x
set clipboard=unnamed
" Copy to 'clipboard registry'
vmap <C-c> "*y
" Show line numbers
set nu
" Select all text
nmap <C-a> ggVG
nmap <C-v> "+gP
set autoindent
set smarttab
set noswapfile
set nobackup
"make backspace work like most other apps
set backspace=indent,eol,start
"use C-s for saving
noremap <C-s> :w<CR>
inoremap <C-s> <C-O>:w<CR>
"do not move the cursor after copy in visual mode
vmap y y`]
"completion
set completeopt=longest,menuone