-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
72 lines (58 loc) · 1.48 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
set nocompatible
set hidden
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
"switch syntax highlighting on
syntax on
filetype plugin indent on " Enable filetype-specific indenting and plugins
"highlight all search matches
set hlsearch
"show search matches while typing
set incsearch
"show line numbers
set number
set encoding=utf-8
set ts=4
"remap window movement keys
nmap <c-h> <c-w>h<c-w><Bar>
nmap <c-l> <c-w>l<c-w><Bar>
map <C-j> <C-W>j
map <C-k> <C-W>k
set si
set ai
set smarttab
" Start with an html skeleton document when opening a new *.html file
autocmd BufNewFile *.html 0r ~/.vim/skeleton.html
autocmd BufNewFile *.php 0r ~/.vim/skeleton.html
" Case insensitive save and quit commands
cmap Q q
cmap W w
"Set processing syntax highlighting
let processing_doc_path="home/ebonadonna/Downloads/processing-1.5.1"
"Improved movement across wrapped lines
nnoremap j gj
nnoremap k gk
"Smash escape
inoremap jk <Esc>
inoremap kj <Esc>
let mapleader = ","
set visualbell " don't beep
set noerrorbells " don't beep
set ignorecase
set smartcase
set gdefault
"modeline support enabled (for python)
set modeline
"set tab and space options for python files automatically
au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4
"better default dark colors
set background=dark
set tabstop=4
"dont write backup files
set nobackup
set noswapfile
" remap paste mode
set pastetoggle=<F2>
" more efficient command mode
nnoremap ; :
set winminwidth=0