NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

set nocompatible
"" source $VIMRUNTIME/vimrc_example.vim
"" source $VIMRUNTIME/mswin.vim
"" behave mswin
" set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '<cmd'
let cmd = '""' . $VIMRUNTIME . 'diff"'
let eq = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . 'diff"'
endif
else
let cmd = $VIMRUNTIME . 'diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
" function MyDiff()
" let opt = ''
" if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
" if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
" silent execute '"!C:Program Filesvimdiff" -a ' . opt . v:fname_in . ' ' . v:fname_new . ' > ' . v:fname_out
" endfunction
" if version >= 700
" set spelllang=pl,en
" set encoding=utf-8
" set spell
" endif
" use system clipboard instead of unnamed register
set clipboard=unnamed
" use status line to show command line matches
set wildmenu
set wildmode=full
" lines autonumbering
set number

" window size
if has("gui_running")
" GUI is running or is about to start.
" Maximize gvim window.
set lines=999 columns=999
else
" This is console Vim.
if exists("+lines")
set lines=50
endif
if exists("+columns")
set columns=100
endif
endif

" search options
set ignorecase
set smartcase
set incsearch
" history size
set history=1024
" font settings, size change mapping - by Pawel Piekarski
" set guifont=DejaVu_Sans_Mono:h9:cDEFAULT
" set printfont=DejaVu_Sans_Mono:h9:cDEFAULT
set guifont=DejaVu Sans Mono 9
set printfont=DejaVu Sans Mono 9
nmap <S-F11> :let &guifont = substitute(&guifont, ':h(d+)', '=":h" . (submatch(1) - 1)', '')<CR>
nmap <F11> :let &guifont = substitute(&guifont, ':h(d+)', '=":h" . (submatch(1) + 1)', '')<Cr>
" move screen 1 line up or down using ctrl+arrows
nnoremap <c-up> <c-y>
nnoremap <c-down> <c-e>
vnoremap <c-up> <c-y>
vnoremap <c-down> <c-e>
" USER DEFINED COMMANDS {{{1
" DiffWithSaved (see edits from last save as DIFF) {{{2 - by Pawel Piekarski
function! DiffWithSaved()
let filetype=&ft
diffthis
vnew | r # | normal 1Gdd
diffthis
execute "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype
endfunction
command! -narg=0 DiffWithDisk call DiffWithSaved()
" works also with hex words ;)
function! WordsToSeparateLines()
%s/ /r/g
g/^s*$/d
endfunctio
function! NamesToSeparateLines()
%s/; /r/g
endfunction
function! NamesToOneLine()
%s/n/; /g
%s/; $//g
endfunction
function! NamesSortOneLineUnique()
call NamesToSeparateLines()
sort u
call NamesToOneLine()
endfunction
if !exists("$MYVIMRC")
if has("win32")
let $MYVIMRC=$VIM/_vimrc
else
let $MYVIMRC=expand("~/.vimrc")
endif
endif
" zamykanie okienka podpowiedzi omnicomplete po zakonczeniu korzystania
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
" komentarze xml (mozliwe, ze wymaga surround.vim)
vmap ,c <esc>a --><esc>'<i<!-- <esc>'>$
" wcinanie spacjami
set expandtab
set shiftwidth=2
set softtabstop=2
" traktowanie plikow xjb jako xml
au BufNewFile,BufRead *.xjb set filetype=xml
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.