summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-04-04 16:20:15 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-04-04 16:20:15 +0200
commit11fd28378c9cfed68b44c3ccd6b35a738e3d26ef (patch)
tree09baf0e37ebc08bc52809285af0f31e1f79a30c4 /vimrc
parent4e4be3805c6db25d4ec86aea3b6b105ee065f9b2 (diff)
downloaddotfiles-11fd28378c9cfed68b44c3ccd6b35a738e3d26ef.tar.gz
Added shortcuts
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc22
1 files changed, 22 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 02e6987..f90682e 100644
--- a/vimrc
+++ b/vimrc
@@ -2,3 +2,25 @@ let mapleader = ","
execute pathogen#infect()
syntax on
filetype plugin indent on
+
+"Autostart NERDtree
+autocmd vimenter * NERDTree
+
+"Switch windows with Alt+Arrow keys
+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>
+
+nmap <F5> :NERDTree<CR>
+nmap <F6> :TlistToggle<CR>
+
+"Tab mgmt
+nmap <F1> :tabclose<CR>
+nmap <F2> :tabprevious<CR>
+nmap <F3> :tabnext<CR>
+nmap <F4> :tabnew<CR>
+
+"Line number Highlight
+set nu
+highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE