Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko ur4ltz

View GitHub Profile
View vim-cheatsheet_ru.md

Конфиги

Навигация

Различные способы перехода в режим вставки

i " вставить текст до курсора
View .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
View gctags
#!/bin/bash
export GTAGSLABEL=ctags
if [ -r $PWD/.globalrc ]; then
GTAGSCONF=$PWD/.globalrc
elif [ -r $HOME/.globalrc ]; then
GTAGSCONF=$HOME/.globalrc
elif [ -r /usr/local/share/gtags/gtags.conf ]; then
GTAGSCONF=/usr/local/share/gtags/gtags.conf
@rcguy
rcguy / rTorrent_ruTorrent_v3.sh
Last active Apr 26, 2018
Install and setup: new rtorrent user, apache2, php5, XMLRPC, rTorrent, Libtorrent, ruTorrent.Tested on: Ubuntu Server 14.10 x64 / 4 Cores / 4GB RAM / 20 GB SSD / VPS
View rTorrent_ruTorrent_v3.sh
#!/bin/bash
# Install and setup: new rtorrent user, apache2, XMLRPC, rTorrent, Libtorrent, ruTorrent.
# Tested on: Ubuntu Server 14.10 x64 / 4 Cores / 4GB RAM / 20 GB SSD
# ==> VARIABLES <==
# Software Versions
LIBTORRENT_VER="0.13.6"
RTORRENT_VER="0.9.6"
RUTORRENT_VER="3.7"
RUTORRENT_PLUGINS_VER="3.6"
@bonsaiviking
bonsaiviking / lua.vim
Last active Dec 10, 2018
A Vim indent file for the Lua scripting language. Install as ~/.vim/indent/lua.vim
View lua.vim
" Vim indent file
" Language: Lua
" Maintainer: Daniel Miller <daniel@bonsaiviking.com>
" Original Author: Daniel Miller <daniel@bonsaiviking.com>
" Last Change: 2014 Feb 6
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
endif
@sagax
sagax / vim_article-1.md
Last active Feb 2, 2019
vim article-1
View vim_article-1.md

Такого еще не было на данном ресурсе, и надеюсь, что сообщество поддержит инициативу. Есть предложение, сделать живую статью, в которой все мы будем выкладывать клавиатурные сочетания, которые каждый из нас использует в повседневной работе с Vim. Я обязуюсь анализировать комментарии и добавлять в статью новые клавиатурные сочетания. Если клавиатурное сочетание использует какой-то плагин, то указываем его имя.


Навигация:

  • ge - перейти к концу предыдущего слова

Замена текста:

View git-gone
#!/bin/bash
usage() {
cat <<EOF
usage: git gone [-pldD] [<branch>=origin]
OPTIONS
-p prune remote branch
-n dry run: list the gone branches
-d delete the gone branches
-D delete the gone branches forcefully
@sagax
sagax / compile_vim_source.sh
Last active May 19, 2019
vim compile snippet
View compile_vim_source.sh
# lua compiling have some problems
# if OS 64 then lib64 in path
./configure --prefix="$HOME/vimp" \
--with-tlib=ncurses \
--with-ruby-command=ruby \
--with-tclsh=/usr/bin/tclsh8.6 \
--with-python3-config-dir=/usr/lib/python3.7/config \
--with-python-config-dir=/usr/lib/python2.7/config \
--with-luajit \
--with-lua-prefix=/usr/include \
@ruario
ruario / README.md
Last active Jun 16, 2019
Alternative (fake) makepkg to create Slackware packages
View README.md

These scripts are for people who want an alternative to the official Slackware provided makepkg.

Why would you want that?

  • To be able to create Slackware packages with root-owned files, even when run as a regular user.
  • To be able create Slackware packages on non-Slackware based systems without the need to port Pkgtools and its dependencies (e.g. tar-1.13). Some examples being:
    • Projects (or proprietary software vendors) that want to be able to provide binary Slackware packages, where their build/packaging system is on another distro.
    • People who want to pair a package creation script with spkg to use as a secondary package manger on a non-Slackware based distro. This gives the advantage of simple packaging scripts (.SlackBuilds) for additional, self-compiled software.

Two versions are provided:

@morphIsmail
morphIsmail / settings.json
Last active Oct 1, 2019
Настройки для VS Code
View settings.json
{
"git.path": "C:\\Program Files\\Git\\cmd\\git.exe",
"editor.minimap.enabled": true,
"editor.wordWrap": "on",
"editor.tabSize": 3,
"editor.fontFamily": "'Consolas', monospace",
"editor.fontSize": 16,
"editor.mouseWheelZoom": true,
"window.menuBarVisibility": "default",
"workbench.sideBar.location": "left",