-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvirmc.local
More file actions
84 lines (66 loc) · 1.71 KB
/
Copy pathvirmc.local
File metadata and controls
84 lines (66 loc) · 1.71 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
colorscheme wombat256
set nu
set mouse=a
set ai
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
set hidden
" ; = . (redo last action)
:noremap ; .
" Ragtag mapping
" Close last HTML tag
:imap <C-q> <C-X>/
" Enable filetype plugin
filetype plugin on
filetype indent on
" CTRL+S = save
:nmap <C-s> :w!<CR>
" Zen Coding remapping
let g:user_zen_expandabbr_key='<C-e>'
":imap <C-d> <C-y><S-d>
:nmap <C-d> <C-y><S-d>
:nmap <C-S-d> <C-Y>d
":imap <C-S-d> <C-Y>d
":nmap <C-d> <C-y>d
" CommandT mapping
:nmap <C-t> :CommandT<CR>
:imap <C-t> <Esc>:CommandT<CR>
" NERDTree mapping
:nmap <C-a> :NERDTreeToggle<CR>
:imap <C-a> <Esc>:NERDTreeToggle<CR>
" Left and Right keys change line
set whichwrap+=<,>,[,]
" Tabs mappings
:nmap <C-S-tab> :bprevious<CR>
:nmap <C-tab> :bnext<CR>
:map <C-S-tab> :bprevious<CR>
:map <C-tab> :bnext<CR>
:imap <C-S-tab> <Esc>:bprevious<CR>i
:imap <C-tab> <Esc>:bnext<CR>i
:nmap <C-w> :bdelete<CR>
:imap <C-w> <Esc>:bdelete<CR>
":nmap <C-t> :tabnew<CR>
":imap <C-t> <Esc>:tabnew<CR>
" CTRL-X and SHIFT-Del are Cut
vnoremap <C-X> "+x
vnoremap <S-Del> "+x
" " CTRL-C and CTRL-Insert are Copy
vnoremap <C-C> "+y
vnoremap <C-Insert> "+y
" " CTRL-V and SHIFT-Insert are Paste
map <C-V> "+gP
map <S-Insert> "+gP
cmap <C-V>gP <C-R>+
cmap <S-Insert> <C-R>+
" " Pasting blockwise and linewise selections is not possible in Insert and
" " Visual mode without the +virtualedit feature. They are pasted as if they
" " were characterwise instead.
" " Uses the paste.vim autoload script.
exe 'inoremap <script> <C-V>' paste#paste_cmd['i']
exe 'vnoremap <script> <C-V>' paste#paste_cmd['v']
imap <S-Insert> <C-V>
vmap <S-Insert> <C-V>
" " Use CTRL-Q to do what CTRL-V used to do
"noremap <C-Q> <C-V>