-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
72 lines (66 loc) · 1.64 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
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'tpope/vim-fugitive'
Plugin 'godlygeek/tabular'
Plugin 'scrooloose/nerdcommenter'
Plugin 'vim-auto-save'
Plugin 'kovisoft/slimv'
Plugin 'elzr/vim-json'
Plugin 'romainl/flattened'
call vundle#end()
filetype plugin indent on
syntax on
let mapleader = ";"
let localleader = ";;"
set noswapfile
"""Text settings"""
set expandtab
set textwidth=79
"set tabstop=8
"set softtabstop=4
"set shiftwidth=4
"font size and type
set guifont=Courier\ Prime\ Code\ 10
set autoindent
set number
"""Insert mode mappings"""
inoremap jj <esc>
"Completion mode
inoremap <leader>n <c-n>
inoremap <leader>p <c-p>
"Do normal command
inoremap <leader>o <c-o>
"""Normal mode mappings"""
nnoremap <leader>r <c-r>
nnoremap <leader>h ^
nnoremap <leader>l $
""Search settings/mappings
set hlsearch
set incsearch
"switch off highlighting
nnoremap <leader>W :noh<cr>
""Buffer mappings""
nnoremap <leader>b^ <c-^>
nnoremap <leader>b# :execute "rightbelow vsplit " . bufname("#")
""Window mappings""
nnoremap <leader>w <c-w>
nnoremap <leader>h# :sp #<cr>
nnoremap <leader>v# :vsp #<cr>
""Tab mappings""
nnoremap <leader>to :tabonly<cr>
nnoremap <leader>te :tabe
nnoremap <leader>tc :tabc<cr>
nnoremap <leader>tm :tabmove
""Text openers""
nnoremap <leader>ev :vsplit ~/.vimrc<cr>
nnoremap <leader>ei :vsplit ~/Dropbox/writings/ideas.md<cr>
nnoremap <leader>ej :vsplit ~/Dropbox/writings/jokes.md<cr>
"Vim installation bindings
nnoremap <leader>pv :PluginInstall<cr>
nnoremap <leader>sv :source ~/.vimrc<cr>
let g:auto_save = 1
colorscheme flattened_light