-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_vimrc
More file actions
46 lines (36 loc) · 1.2 KB
/
Copy path_vimrc
File metadata and controls
46 lines (36 loc) · 1.2 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
let mapleader = ','
set nocompatible
behave mswin
syntax on
nnoremap <silent> <leader>vev :tabe ~/vimrc/_vimrc<cr>
nnoremap <silent> <leader>vss :so ~/vimrc/_vimrc<cr>
source ~/vimrc/_vimrc_common
source ~/vimrc/_vimrc_functions
colorscheme darkblue
inoremap <leader>{ {
nnoremap <silent> [b :bprevious<cr>
nnoremap <silent> ]b :bnext<cr>
nnoremap <silent> [B :bfirst<cr>
nnoremap <silent> ]B :blast<cr>
"Shortcuts for traversing the buffer list.
map <up> <nop>
map <right> <nop>
map <left> <nop>
map <down> <nop>
imap <up> <nop>
imap <right> <nop>
imap <left> <nop>
imap <down> <nop>
"removes functionality of arrow keys. Mainly for learning vim.
"Abbreviation section
inoreabbrev f function
inoreabbrev fn function() {<cr>}O <esc>a
inoreabbrev fni function() {<cr>};O <esc>a
inoreabbrev ifi if() {<cr>};<esc>kf(a
inoreabbrev ife if() {<cr>}<cr>else {<cr>};<esc>3kf(a
inoreabbrev fj for ( var j = 0 ; j < ; j += 1) {<cr>};<esc>kf<li
inoreabbrev fp for ($j = 0 ; $j < ; $j += 1)<esc>2F i
"A couple of abbreviations to put common text when programming.
inoremap < <> <esc>hi
inoremap <leader>< <
"An added mapping for automatically entering a closing character.