30 lines
578 B
VimL
30 lines
578 B
VimL
set nocompatible
|
|
filetype on
|
|
filetype plugin on
|
|
syntax on
|
|
set number
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set showmatch
|
|
set hlsearch
|
|
set cursorline
|
|
|
|
" colorscheme
|
|
colorscheme desert
|
|
|
|
" open new files right/below
|
|
set splitright
|
|
set splitbelow
|
|
|
|
" link to system clipboard
|
|
set clipboard+=unnamed
|
|
set clipboard+=unnamedplus
|
|
|
|
" If session is present in ~/.vim, then load it
|
|
if filereadable(expand("~/.vim/vimsession.vim"))
|
|
silent source ~/.vim/vimsession.vim
|
|
endif
|
|
|
|
nnoremap yxx :e ~/.vim/vimsession.vim<CR>ggdG:w<CR>:qall<CR>
|
|
nnoremap yxc :mksession! ~/.vim/vimsession.vim<CR>:qall<CR>
|