diff options
Diffstat (limited to 'vim/init')
-rw-r--r-- | vim/init/keymaps.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim index 5e472d2..540dd33 100644 --- a/vim/init/keymaps.vim +++ b/vim/init/keymaps.vim | |||
@@ -5,6 +5,7 @@ | |||
5 | " - COMMON_MAPPING | 5 | " - COMMON_MAPPING |
6 | " - LINKS | 6 | " - LINKS |
7 | " - MOVING_WITH_READLINE | 7 | " - MOVING_WITH_READLINE |
8 | " - INSERT_SURROUNDING | ||
8 | " - JUMP_TO_TABS_WITH_ALT | 9 | " - JUMP_TO_TABS_WITH_ALT |
9 | " - MANAGE_TABS | 10 | " - MANAGE_TABS |
10 | " - MANAGE_BUFFERS | 11 | " - MANAGE_BUFFERS |
@@ -166,6 +167,14 @@ noremap <m-k> gk | |||
166 | inoremap <m-j> <c-\><c-o>gj | 167 | inoremap <m-j> <c-\><c-o>gj |
167 | inoremap <m-k> <c-\><c-o>gk | 168 | inoremap <m-k> <c-\><c-o>gk |
168 | 169 | ||
170 | "---------------------------------------------------------------------- | ||
171 | " INSERT_SURROUNDING | ||
172 | "---------------------------------------------------------------------- | ||
173 | inoremap ' ''<Left> | ||
174 | inoremap " ""<Left> | ||
175 | inoremap ( ()<Left> | ||
176 | inoremap [ []<Left> | ||
177 | inoremap { {}<Left> | ||
169 | 178 | ||
170 | "---------------------------------------------------------------------- | 179 | "---------------------------------------------------------------------- |
171 | " JUMP_TO_TABS_WITH_ALT | 180 | " JUMP_TO_TABS_WITH_ALT |
@@ -209,7 +218,7 @@ autocmd TabLeave * let g:lasttab = tabpagenr() | |||
209 | 218 | ||
210 | " Opens a new tab with the current buffer's path | 219 | " Opens a new tab with the current buffer's path |
211 | " Super useful when editing files in the same directory | 220 | " Super useful when editing files in the same directory |
212 | map <leader>te :tabedit <C-r>=expand("%:p:h")<cr>/ | 221 | map <leader>te :tabedit <C-r>=expand("%:p:h")<cr> |
213 | 222 | ||
214 | " Tab move functions | 223 | " Tab move functions |
215 | function! Tab_MoveLeft() | 224 | function! Tab_MoveLeft() |