2016-12-14 18:09:47 +00:00
|
|
|
let g:onedark_termcolors=256
|
|
|
|
colorscheme onedark
|
2016-12-15 13:01:58 +00:00
|
|
|
|
|
|
|
syntax on
|
|
|
|
set mouse=a
|
2016-12-14 18:09:47 +00:00
|
|
|
|
2017-01-12 10:06:53 +00:00
|
|
|
""""""""""
|
|
|
|
" search "
|
|
|
|
""""""""""
|
|
|
|
set ignorecase " ignore case
|
|
|
|
set smartcase " . only if not all in lowercase
|
|
|
|
set incsearch " show matches when typing pattern
|
|
|
|
set hlsearch " highlights matches
|
|
|
|
|
|
|
|
|
|
|
|
"""""""""""
|
|
|
|
" display "
|
|
|
|
"""""""""""
|
|
|
|
set splitright " split right instead of left
|
|
|
|
set autoindent " auto linebreak indentation
|
|
|
|
set relativenumber " show relative number for lines
|
|
|
|
set number " but absolute number for current line
|
|
|
|
set showcmd " show typed command
|
|
|
|
set encoding=utf-8 " set encoding
|
|
|
|
scriptencoding utf-8 " set encoding ??
|
|
|
|
set list " for next command
|
|
|
|
set listchars=eol:¬,tab:>\ ,trail:⋅ " characters to display instead of whitespace characters
|
2016-12-14 18:09:47 +00:00
|
|
|
|
2016-12-15 13:01:58 +00:00
|
|
|
" default fold method
|
|
|
|
set foldmethod=syntax
|
2016-12-14 18:09:47 +00:00
|
|
|
|
2017-01-12 10:06:53 +00:00
|
|
|
" use filetype
|
|
|
|
filetype plugin on
|
|
|
|
|
2016-12-14 18:09:47 +00:00
|
|
|
" search path recursive
|
|
|
|
set path+=**
|
|
|
|
|
|
|
|
" abbreviations
|
2017-01-12 10:06:53 +00:00
|
|
|
|
|
|
|
" functions
|
|
|
|
" yank buffer "0 to clipboard
|
|
|
|
map <C-Y> :tabnew<CR>"0p:saveas /tmp/cclip.tmp<CR>:!cat % \| xclip -sel clip<CR>:!rm %<CR>:q!<CR>
|
|
|
|
" paste clipboard to buffer "0
|
|
|
|
map <C-P> :tabnew<CR>:.!xclip -sel clip -o<CR>ggdG:q!<CR>
|