Added silent to the tab and window shortcuts
This commit is contained in:
parent
028acff01c
commit
569090a88d
16
init.vim
16
init.vim
@ -65,20 +65,20 @@ colorscheme gruvbox
|
||||
|
||||
" =================Windows and Tabs====================
|
||||
" Open a new tab with F2
|
||||
map <F2> <Esc>:tabnew <CR><ESC>:Explore<CR>
|
||||
imap <F2> <Esc>:tabnew <CR><ESC>:Explore<CR>
|
||||
map <S-Right> :tabnext<CR>
|
||||
map <S-Left> :tabprevious<CR>
|
||||
map <silent> <F2> <Esc>:tabnew <CR><ESC>:Explore<CR>
|
||||
imap <silent> <F2> <Esc>:tabnew <CR><ESC>:Explore<CR>
|
||||
map <silent> <S-Right> :tabnext<CR>
|
||||
map <silent> <S-Left> :tabprevious<CR>
|
||||
nmap <silent> <A-Up> :wincmd k<CR>
|
||||
nmap <silent> <A-Down> :wincmd j<CR>
|
||||
nmap <silent> <A-Left> :wincmd h<CR>
|
||||
nmap <silent> <A-Right> :wincmd l<CR>
|
||||
" Open a new vertical split window with Ctrl - F2
|
||||
map <C-F2> <Esc>:vsplit .<CR>
|
||||
imap <C-F2> <Esc>:vsplit .<CR>
|
||||
map <silent> <C-F2> <Esc>:vsplit .<CR>
|
||||
imap <silent> <C-F2> <Esc>:vsplit .<CR>
|
||||
" Open a new horizontal split window with Shift - F2
|
||||
map <S-F2> <Esc>:split .<CR>
|
||||
imap <S-F2> <Esc>:split .<CR>
|
||||
map <silent> <S-F2> <Esc>:split .<CR>
|
||||
imap <silent> <S-F2> <Esc>:split .<CR>
|
||||
|
||||
" ========================Codestyle========================
|
||||
set tabstop=2 " Size of a tab
|
||||
|
Loading…
x
Reference in New Issue
Block a user