update
This commit is contained in:
parent
9120d1ced2
commit
399a59ad6b
5
.vimrc
5
.vimrc
|
@ -1,3 +1,8 @@
|
||||||
|
" CheatSheet
|
||||||
|
" http://vimsheet.com/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" Vim shortcuts
|
" Vim shortcuts
|
||||||
" -------------
|
" -------------
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
let g:onedark_termcolors=256
|
let g:onedark_termcolors=256
|
||||||
colorscheme onedark
|
colorscheme onedark
|
||||||
|
|
||||||
|
syntax on
|
||||||
|
set mouse=a
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
set splitright
|
||||||
set autoindent
|
set autoindent
|
||||||
set relativenumber " show relative number lines
|
set relativenumber " show relative number lines
|
||||||
set number " but absolute number for current line
|
set number " but absolute number for current line
|
||||||
|
@ -11,12 +17,12 @@ scriptencoding utf-8
|
||||||
set list
|
set list
|
||||||
set listchars=eol:¬,tab:>\ ,trail:⋅
|
set listchars=eol:¬,tab:>\ ,trail:⋅
|
||||||
|
|
||||||
" tab length
|
" default fold method
|
||||||
set tabstop=5
|
set foldmethod=syntax
|
||||||
|
|
||||||
" search path recursive
|
" search path recursive
|
||||||
set path+=**
|
set path+=**
|
||||||
|
|
||||||
" abbreviations
|
" abbreviations
|
||||||
ab tf tabfind
|
ab tf tabfind
|
||||||
|
ab f find
|
||||||
|
|
|
@ -2,19 +2,15 @@
|
||||||
" new tab
|
" new tab
|
||||||
nmap <silent> <C-t> :tabnew<CR>
|
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)
|
" new line shortcut (ctrl+o)
|
||||||
nnoremap <silent> <CR> <Esc>i<CR><Esc>
|
nnoremap <silent> <CR> o<CR><Esc>
|
||||||
|
|
||||||
" switch windows
|
" switch windows
|
||||||
nmap <silent> <C-k> :wincmd k<CR>
|
" nmap <silent> <C-k> :wincmd k<CR>
|
||||||
nmap <silent> <C-j> :wincmd j<CR>
|
" nmap <silent> <C-j> :wincmd j<CR>
|
||||||
nmap <silent> <C-h> :wincmd h<CR>
|
" nmap <silent> <C-h> :wincmd h<CR>
|
||||||
nmap <silent> <C-l> :wincmd l<CR>
|
" nmap <silent> <C-l> :wincmd l<CR>
|
||||||
|
|
||||||
" bind window : scroll + cursor
|
" 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>
|
nmap <silent> <F12> :set noscrollbind<CR>:set nocursorbind<CR>
|
||||||
|
|
Loading…
Reference in New Issue