From 399a59ad6b760001353af2dd32de1fcf1c7c8bda Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 15 Dec 2016 14:01:58 +0100 Subject: [PATCH] update --- .vimrc | 5 +++++ config/default.vim | 12 +++++++++--- config/maps.vim | 16 ++++++---------- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/.vimrc b/.vimrc index 44f978b..310ddc4 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,8 @@ +" CheatSheet +" http://vimsheet.com/ + + + " Vim shortcuts " ------------- diff --git a/config/default.vim b/config/default.vim index 6126470..14ad83a 100644 --- a/config/default.vim +++ b/config/default.vim @@ -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 diff --git a/config/maps.vim b/config/maps.vim index 7ac29de..5bc979a 100644 --- a/config/maps.vim +++ b/config/maps.vim @@ -2,19 +2,15 @@ " new tab nmap :tabnew -" Switch tab -nmap :tabprevious -nmap :tabnext - " new line shortcut (ctrl+o) -nnoremap i +nnoremap o " switch windows -nmap :wincmd k -nmap :wincmd j -nmap :wincmd h -nmap :wincmd l +" nmap :wincmd k +" nmap :wincmd j +" nmap :wincmd h +" nmap :wincmd l " bind window : scroll + cursor -nmap :set scrollbind:set cursorbind +nmap :set scrollbind:set cursorbind nmap :set noscrollbind:set nocursorbind