Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Create a window-management plugin/

  • Loading branch information...
commit 7a28f40abaf79dfca5ab7739bff13cc7d0d5d585 1 parent b1b8dea
Drew Neil authored January 21, 2012
19  vim/plugin/window-management.vim
... ...
@@ -0,0 +1,19 @@
  1
+" Speed up buffer switching
  2
+map <C-k> <C-W>k
  3
+map <C-j> <C-W>j
  4
+map <C-h> <C-W>h
  5
+map <C-l> <C-W>l
  6
+
  7
+" Speed up tab switching
  8
+map <D-S-]> gt
  9
+map <D-S-[> gT
  10
+map <D-1> 1gt
  11
+map <D-2> 2gt
  12
+map <D-3> 3gt
  13
+map <D-4> 4gt
  14
+map <D-5> 5gt
  15
+map <D-6> 6gt
  16
+map <D-7> 7gt
  17
+map <D-8> 8gt
  18
+map <D-9> 9gt
  19
+map <D-0> :tablast<CR>
19  vimrc
@@ -109,24 +109,6 @@ let Tlist_Show_One_File=1
109 109
 nmap <Leader>/ :TlistToggle<CR>
110 110
 
111 111
 " Mappings {{{1
112  
-" Speed up buffer switching {{{2
113  
-map <C-k> <C-W>k
114  
-map <C-j> <C-W>j
115  
-map <C-h> <C-W>h
116  
-map <C-l> <C-W>l
117  
-" Speed up tab switching {{{2
118  
-map <D-S-]> gt
119  
-map <D-S-[> gT
120  
-map <D-1> 1gt
121  
-map <D-2> 2gt
122  
-map <D-3> 3gt
123  
-map <D-4> 4gt
124  
-map <D-5> 5gt
125  
-map <D-6> 6gt
126  
-map <D-7> 7gt
127  
-map <D-8> 8gt
128  
-map <D-9> 9gt
129  
-map <D-0> :tablast<CR>
130 112
 " Shortcuts to make it easier to explore wrapped lines {{{2
131 113
 " These come in handy when the following settings are enabled:
132 114
 "     :set linebreak wrap nolist
@@ -140,6 +122,7 @@ nmap <D-k> gk
140 122
 nmap <D-4> g$
141 123
 nmap <D-6> g^
142 124
 nmap <D-0> g^
  125
+
143 126
 " Shortcuts for opening file in same directory as current file {{{2
144 127
 cnoremap %% <C-R>=expand('%:h').'/'<cr>
145 128
 map <leader>ew :e %%

0 notes on commit 7a28f40

Please sign in to comment.
Something went wrong with that request. Please try again.