syntax enable
set smartindent
set showmatch

set ignorecase hlsearch incsearch smartcase
set nowrapscan

set nowrap

set tabstop=4 shiftwidth=4 expandtab

set shortmess-=S

" Show "invisible" characters
set lcs=tab:>>,trail:.,nbsp:_
set list

" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed

set cursorline

" center current line
nmap wc zz
" top current line
nmap wt zt
" bottom current line
nmap wb L
" copy all lines in current file
nnoremap <C-c> :%y+<CR>
" paste from system clipboard
nnoremap <C-v> "+p
" top current file
nnoremap <C-Up> gg
" bottom current file
nnoremap <C-Down> G

" copy current line to the next line
nnoremap <C-d> :t.<CR>

" Add a new line below the current line
nnoremap <C-n> o<Esc>

" Comment multiple lines
nnoremap <C-_> :s/^/#/<CR>
" Uncomment multiple lines
nnoremap <C-?> :s/^#//<CR>

" previous searching results
nnoremap p N
