This commit is contained in:
xdrm-brackets 2016-12-15 14:01:58 +01:00
parent 9120d1ced2
commit 399a59ad6b
3 changed files with 20 additions and 13 deletions

5
.vimrc
View File

@ -1,3 +1,8 @@
" CheatSheet
" http://vimsheet.com/
" Vim shortcuts
" -------------

View File

@ -1,5 +1,11 @@
let g:onedark_termcolors=256
colorscheme onedark
syntax on
set mouse=a
set ignorecase
set smartcase
set splitright
set autoindent
set relativenumber " show relative number lines
set number " but absolute number for current line
@ -11,12 +17,12 @@ scriptencoding utf-8
set list
set listchars=eol,tab:>\ ,trail:⋅
" tab length
set tabstop=5
" default fold method
set foldmethod=syntax
" search path recursive
set path+=**
" abbreviations
ab tf tabfind
ab f find

View File

@ -2,19 +2,15 @@
" new tab
nmap <silent> <C-t> :tabnew<CR>
" Switch tab
nmap <silent> <C-Left> :tabprevious<CR>
nmap <silent> <C-Right> :tabnext<CR>
" new line shortcut (ctrl+o)
nnoremap <silent> <CR> <Esc>i<CR><Esc>
nnoremap <silent> <CR> o<CR><Esc>
" switch windows
nmap <silent> <C-k> :wincmd k<CR>
nmap <silent> <C-j> :wincmd j<CR>
nmap <silent> <C-h> :wincmd h<CR>
nmap <silent> <C-l> :wincmd l<CR>
" nmap <silent> <C-k> :wincmd k<CR>
" nmap <silent> <C-j> :wincmd j<CR>
" nmap <silent> <C-h> :wincmd h<CR>
" nmap <silent> <C-l> :wincmd l<CR>
" bind window : scroll + cursor
nmap <silent> <F11> :set scrollbind<CR>:set cursorbind<CR>
nmap <silent> <F10> :set scrollbind<CR>:set cursorbind<CR>
nmap <silent> <F12> :set noscrollbind<CR>:set nocursorbind<CR>