-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
38 lines (38 loc) · 1.05 KB
/
.vimrc
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
execute pathogen#infect()
filetype plugin indent on
syn on
set nu
\ relativenumber
\ cursorline
\ cursorcolumn
\ hlsearch
\ scrolloff=3
\ shiftwidth=2
\ colorcolumn=81
colorscheme molokai
hi Normal guibg=NONE ctermbg=NONE
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" Set space as Leaderkey
let mapleader="\<Space>"
" Move between windows with hjkl keys
nnoremap <Leader>h <C-W><Left>
nnoremap <Leader>l <C-W><Right>
nnoremap <Leader>k <C-W><Up>
nnoremap <Leader>j <C-W><Down>
nnoremap <Leader>w <C-W>
nnoremap <Leader>m <C-W>_<C-W>|
nnoremap <Leader>n :NERDTreeToggle<CR>
nnoremap <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>
"" vim-easy-align
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
" vim-airline
let g:airline_powerline_fonts = 1
"let g:airline_theme = 'gruvbox'
let g:airline_theme = 'ayu_dark'